sqllogictest

Artifact [3aa58b9151]
Login

Artifact 3aa58b9151530dc8d6d4366cfdd514ee0147c884:


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)

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * + col2 col1 FROM tab1 AS cor0
----
2913
3185
9136

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

query I rowsort
SELECT ALL + 56 + cor0.col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1304
1460
626

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

query I rowsort
SELECT ALL col1 + - 56 FROM tab0 cor0
----
30
35
41

query I rowsort
SELECT + col0 + - 19 AS col2 FROM tab0 AS cor0
----
16
5
70

query I rowsort
SELECT DISTINCT - + col0 + 74 AS col2 FROM tab0 cor0
----
-15
39
50

query I rowsort
SELECT DISTINCT + - col0 + - ( + 82 ) FROM tab0 AS cor0
----
-106
-117
-171

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8
SELECT ALL col1 * - CAST( 41 AS SIGNED ) FROM tab0 AS cor0
----
-3526
-3731
-3977

skipif mysql # not compatible
query I rowsort label-8
SELECT ALL col1 * - CAST ( 41 AS INTEGER ) FROM tab0 AS cor0
----
-3526
-3731
-3977

query I rowsort
SELECT ALL + col0 + 4 AS col0 FROM tab1 AS cor0
----
68
7
84

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-11
SELECT ALL col0 DIV - cor0.col2 + 90 col1 FROM tab0 AS cor0
----
55
89
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-11
SELECT ALL col0 / - cor0.col2 + 90 col1 FROM tab0 AS cor0
----
55
89
90

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col2 * 84 - 91 col1 FROM tab0
----
-174
-2830
-6897

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

skipif mysql # not compatible
query I rowsort label-14
SELECT tab1.col2 * + tab1.col0 - - CAST ( - col0 AS INTEGER ) AS col1 FROM tab1
----
159
3584
7600

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

query I rowsort
SELECT DISTINCT - col2 * - col0 + - col1 * col1 FROM tab2 AS cor0
----
-1453
-772
2713

query I rowsort
SELECT DISTINCT - - col0 + - ( col1 ) + col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL + col0 + + 25 AS col0 FROM tab0 AS cor0
----
114
49
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-19
SELECT - cor0.col0 * ( col2 ) + col2 DIV + col1 FROM tab2 AS cor0
----
-189
-2028
-3000

skipif mysql # not compatible
query I rowsort label-19
SELECT - cor0.col0 * ( col2 ) + col2 / + col1 FROM tab2 AS cor0
----
-189
-2028
-3000

query I rowsort
SELECT DISTINCT + - col0 + + 80 FROM tab2 AS cor0
----
1
2
73

query I rowsort
SELECT ALL - col0 + - col2 + 50 AS col1 FROM tab2
----
-54
-67
16

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-23
SELECT - CAST( 38 AS SIGNED ) * col2 AS col1 FROM tab1 cor0
----
-2052
-2166
-3648

skipif mysql # not compatible
query I rowsort label-23
SELECT - CAST ( 38 AS INTEGER ) * col2 AS col1 FROM tab1 cor0
----
-2052
-2166
-3648

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 cor2
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae

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

query I rowsort
SELECT + 30 + - col1 AS col1 FROM tab0 AS cor0
----
-56
-61
-67

query I rowsort
SELECT + 49 + - col2 AS col1 FROM tab2 cor0
----
11
22
23

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

query I rowsort
SELECT - col2 * - 61 AS col0 FROM tab0
----
2013
5002
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-30
SELECT DISTINCT - col2 DIV 91 col1 FROM tab1
----
-1
0

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

query I rowsort
SELECT + + col2 + col2 * col2 + - ( 91 * - col0 ) AS col0 FROM tab2 AS cor0
----
1393
7800
8671

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

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

query I rowsort
SELECT DISTINCT + + col0 * col2 + - col1 + 67 * - col0 AS col0 FROM tab1 AS cor0
----
-65
-650
2307

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 22 col2 FROM tab0
----
-1804
-22
-726

query I rowsort
SELECT + col1 + - col0 * - 22 FROM tab2
----
1755
1775
185

onlyif mysql # use DIV operator for integer division
query I rowsort label-36
SELECT ALL col0 DIV + col2 + 19 col2 FROM tab1
----
19
19
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-36
SELECT ALL col0 / + col2 + 19 col2 FROM tab1
----
19
19
20

query I rowsort
SELECT DISTINCT - + 76 + + cor0.col0 FROM tab1 AS cor0
----
-12
-73
4

query I rowsort
SELECT ALL cor0.col2 + col0 * 20 FROM tab1 AS cor0
----
114
1337
1696

onlyif mysql # use DIV operator for integer division
query I rowsort label-39
SELECT ALL - + cor0.col1 * - ( - 27 ) + + col2 DIV 9 FROM tab2 AS cor0
----
-1591
-455
-834

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL - + cor0.col1 * - ( - 27 ) + + col2 / 9 FROM tab2 AS cor0
----
-1591
-455
-834

onlyif mysql # use DIV operator for integer division
query I rowsort label-40
SELECT DISTINCT + - col1 - ( col0 + cor0.col1 ) DIV - 51 FROM tab2 AS cor0
----
-16
-31
-57

skipif mysql # not compatible
query I rowsort label-40
SELECT DISTINCT + - col1 - ( col0 + cor0.col1 ) / - 51 FROM tab2 AS cor0
----
-16
-31
-57

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 * - col2 col1 FROM tab0 AS cor0
----
-1003
-6633
96

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

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

query I rowsort
SELECT DISTINCT + 75 + + col1 AS col2 FROM tab0 AS cor0
----
161
166
172

onlyif mysql # use DIV operator for integer division
query I rowsort label-47
SELECT col0 DIV cor0.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-47
SELECT col0 / cor0.col0 col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + + 48 * - col0 FROM tab2 AS cor0
----
-336
-3744
-3792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 * - col0 + col2 + - 15 * col2 * col2 col1 FROM tab1 AS cor0
----
-135744
-43596
-46758

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

query I rowsort
SELECT - col0 * tab2.col2 * - ( 35 ) + col0 + - col0 FROM tab2
----
105070
6615
70980

onlyif mysql # use DIV operator for integer division
query I rowsort label-52
SELECT ALL - col2 DIV col1 + - col1 * col2 * CAST( + col0 AS SIGNED ) + - col0 col2 FROM tab2
----
-119730
-51115
-5866

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-52
SELECT ALL - col2 / col1 + - col1 * col2 * CAST ( + col0 AS INTEGER ) + - col0 col2 FROM tab2
----
-119730
-51115
-5866

query I rowsort
SELECT - 69 + - col2 AS col2 FROM tab1 AS cor0
----
-123
-126
-165

query I rowsort
SELECT + 37 + + col2 FROM tab0
----
119
38
70

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

query I rowsort
SELECT DISTINCT + 64 FROM tab0, tab1 cor0
----
64

query I rowsort
SELECT col0 + 17 FROM tab2 AS cor0
----
24
95
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-58
SELECT ALL CAST( 34 AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
1836
1938
3264

skipif mysql # not compatible
query I rowsort label-58
SELECT ALL CAST ( 34 AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
1836
1938
3264

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 50 * col2 + ( col0 ) * col2 col2 FROM tab2 AS cor0
----
-1161
1102
728

query I rowsort
SELECT ALL - + cor0.col2 + - col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 + - col0 col1 FROM tab1 AS cor0
----
-1
-17
60

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

query I rowsort
SELECT + col1 - + ( 89 ) FROM tab1 AS cor0
----
-63
-76
-79

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

query I rowsort
SELECT DISTINCT + col1 + 1 * tab0.col1 AS col0 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL col0 + + col0 * 51 FROM tab1
----
156
3328
4160

query I rowsort
SELECT col0 * - col0 + + 5 AS col1 FROM tab1 cor0
----
-4
-4091
-6395

onlyif mysql # use DIV operator for integer division
query I rowsort label-72
SELECT ALL - col2 DIV 31 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL - col2 / 31 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL col1 * 84 * cor0.col1 + col2 AS col2 FROM tab0 AS cor0
----
621297
695686
790357

query I rowsort
SELECT ALL + - col1 + 48 * - 55 * col0 FROM tab1 AS cor0
----
-168970
-211213
-7946

query I rowsort
SELECT - cor0.col1 * ( 36 ) - + col2 AS col1 FROM tab1 cor0
----
-417
-564
-990

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

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

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL + CAST ( NULL AS REAL ) * - 26 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * - ( col0 ) AS col0 FROM tab1
----
-4096
-6400
-9

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-81
SELECT ALL - - col2 DIV col1 AS col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL - - col2 / col1 AS col1 FROM tab1 AS cor0
----
2
5
7

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

query I rowsort
SELECT + + 6 * - col0 + - cor0.col2 FROM tab1 AS cor0
----
-441
-576
-72

query I rowsort
SELECT ALL col1 * col1 + 5 AS col0 FROM tab2
----
294
3486
966

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-86
SELECT DISTINCT - col1 + CAST( col2 + + col0 AS SIGNED ) FROM tab0
----
-29
-61
80

skipif mysql # not compatible
query I rowsort label-86
SELECT DISTINCT - col1 + CAST ( col2 + + col0 AS INTEGER ) FROM tab0
----
-29
-61
80

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-89
SELECT - col1 * - CAST( + 98 AS SIGNED ) FROM tab0 AS cor0
----
8428
8918
9506

skipif mysql # not compatible
query I rowsort label-89
SELECT - col1 * - CAST ( + 98 AS INTEGER ) FROM tab0 AS cor0
----
8428
8918
9506

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

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

query I rowsort
SELECT DISTINCT - 46 AS col1 FROM tab2, tab1 AS cor0
----
-46

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

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

query I rowsort
SELECT ALL 51 + + 78 + cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 413841b6b59ebb0c473f5c98f96f1039

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

query I rowsort
SELECT - col0 * ( + cor0.col0 ) + + col1 FROM tab2 AS cor0
----
-18
-6025
-6224

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

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

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

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

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

query I rowsort
SELECT DISTINCT cor0.col1 + + ( - 37 ) FROM tab0 AS cor0
----
49
54
60

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

query I rowsort
SELECT ALL + ( + 11 ) + - col2 AS col1 FROM tab0
----
-22
-71
10

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

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 96 AS REAL ) * + col2 + - 25 AS col2 FROM tab0
----
-121
-3193
-7897

query I rowsort
SELECT + col0 + col0 * col0 + + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-271
-6796
-8149

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 52 + col0 col0 FROM tab2 AS cor0
----
1411
1430
2055

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

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

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

query I rowsort
SELECT - col1 * 52 + col0 - - 31 FROM tab2 AS cor0
----
-1574
-2959
-774

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

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

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

query I rowsort
SELECT DISTINCT col2 + + col0 * - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ALL - 43 * col2 + - col2 * + col0 FROM tab0 AS cor0
----
-10824
-2211
-78

query I rowsort
SELECT ALL col1 * - cor0.col1 - col0 * - col2 FROM tab0 cor0
----
-6604
-9374
-983

query I rowsort
SELECT ALL + 97 * col1 + col1 + 90 AS col1 FROM tab1 AS cor0
----
1070
1364
2638

query I rowsort
SELECT DISTINCT - 14 + col0 - 79 FROM tab2 cor0
----
-14
-15
-86

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-119
SELECT ALL - 52 DIV col0 + - ( + col0 ) col1 FROM tab1 AS cor0
----
-20
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-119
SELECT ALL - 52 / col0 + - ( + col0 ) col1 FROM tab1 AS cor0
----
-20
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-120
SELECT 31 + - col2 DIV + 37 FROM tab0 AS cor0
----
29
31
31

skipif mysql # not compatible
query I rowsort label-120
SELECT 31 + - col2 / + 37 FROM tab0 AS cor0
----
29
31
31

query I rowsort
SELECT ALL + 48 * cor0.col1 FROM tab2 AS cor0
----
1488
2832
816

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

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

query I rowsort
SELECT col0 + col1 * ( + cor0.col2 ) * + col0 AS col2 FROM tab2 AS cor0
----
119730
51113
5866

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-124
SELECT + col0 + cor0.col2 * CAST ( col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT - 63 - - col1 * - 59 AS col1 FROM tab0 AS cor0
----
-5137
-5432
-5786

onlyif mysql # use DIV operator for integer division
query I rowsort label-126
SELECT col0 DIV cor0.col1 + - cor0.col0 - col1 AS col0 FROM tab1 AS cor0
----
-29
-68
-87

skipif mysql # not compatible
query I rowsort label-126
SELECT col0 / cor0.col1 + - cor0.col0 - col1 AS col0 FROM tab1 AS cor0
----
-29
-68
-87

query I rowsort
SELECT DISTINCT + 58 * + col2 FROM tab1
----
3132
3306
5568

query I rowsort
SELECT DISTINCT col0 * - col1 + - 95 AS col0 FROM tab2 AS cor0
----
-1438
-312
-4697

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

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

query I rowsort
SELECT + col1 * + col1 * 13 + + col1 - - cor0.col2 AS col1 FROM tab1 AS cor0
----
1367
2306
8868

query I rowsort
SELECT + + col0 * - col1 + col2 + + col2 AS col1 FROM tab2 AS cor0
----
-1267
-163
-4550

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-135
SELECT col2 + + CAST( col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-135
SELECT col2 + + CAST ( col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
55
58
85

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

skipif mysql # not compatible
query I rowsort label-136
SELECT col2 * + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + 60 * - col0 FROM tab0
----
-1440
-2100
-5340

query I rowsort
SELECT + + col2 * ( - col0 + - col2 * col1 ) AS col2 FROM tab2 AS cor0
----
-22788
-27550
-41912

query I rowsort
SELECT + col2 + - tab0.col2 * + 23 AS col0 FROM tab0
----
-1804
-22
-726

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

skipif mysql # not compatible
query I rowsort label-140
SELECT + CAST ( 48 AS INTEGER ) * col0 FROM tab1 AS cor0
----
144
3072
3840

onlyif mysql # use DIV operator for integer division
query I rowsort label-141
SELECT col1 DIV + 48 FROM tab0 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-141
SELECT col1 / + 48 FROM tab0 AS cor0
----
1
1
2

query I rowsort
SELECT - 42 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1092
-420
-546

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

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

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

query I rowsort
SELECT + + cor0.col2 + 76 AS col0 FROM tab1 AS cor0
----
130
133
172

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

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

query I rowsort
SELECT DISTINCT + 44 * + tab0.col0 FROM tab0, tab0 AS cor0
----
1056
1540
3916

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-149
SELECT - + 20 * ( col2 ) + - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-1134
-1197
-2016

skipif mysql # not compatible
query I rowsort label-149
SELECT - + 20 * ( col2 ) + - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-1134
-1197
-2016

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

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

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

skipif mysql # not compatible
query I rowsort label-151
SELECT - cor0.col2 / + 90 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - col0 * + ( col0 ) + + col2 * + col1 FROM tab0 AS cor0
----
-1128
-459
2262

query I rowsort
SELECT DISTINCT - + col1 * + ( 69 ) FROM tab0 AS cor0
----
-5934
-6279
-6693

query I rowsort
SELECT + + cor0.col1 + ( 56 ) AS col1 FROM tab0 AS cor0
----
142
147
153

query I rowsort
SELECT DISTINCT - col2 + col2 * - col0 * + col0 FROM tab2 cor0
----
-1350
-158210
-237196

onlyif mysql # use DIV operator for integer division
query I rowsort label-156
SELECT ALL - - col2 + - col2 DIV - cor0.col0 AS col1 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-156
SELECT ALL - - col2 + - col2 / - cor0.col0 AS col1 FROM tab1 AS cor0
----
57
72
97

query I rowsort
SELECT + col2 * 43 AS col2 FROM tab1 AS cor0
----
2322
2451
4128

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

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

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

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

query I rowsort
SELECT DISTINCT - + 43 * col2 FROM tab0 AS cor0
----
-1419
-3526
-43

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0 CROSS JOIN tab0, tab1 cor1
----
972 values hashing to 9af67d6f98010464af5d560bf949d487

onlyif mysql # use DIV operator for integer division
query I rowsort label-162
SELECT DISTINCT tab1.col1 DIV col0 + 81 FROM tab1
----
81
89

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT tab1.col1 / col0 + 81 FROM tab1
----
81
89

query I rowsort
SELECT DISTINCT 59 + + col0 AS col2 FROM tab1
----
123
139
62

query I rowsort
SELECT + 8 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT + 3 + col1 FROM tab1 AS cor0
----
13
16
29

query I rowsort
SELECT - + 33 * + cor0.col1 - - col0 FROM tab1 AS cor0
----
-266
-349
-855

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

query I rowsort
SELECT ALL col0 * - col2 - - col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT + + col2 * col1 + + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT + col1 - - cor0.col1 AS col2 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-171
SELECT ALL + CAST( 22 AS SIGNED ) * - col2 FROM tab1
----
-1188
-1254
-2112

skipif mysql # not compatible
query I rowsort label-171
SELECT ALL + CAST ( 22 AS INTEGER ) * - col2 FROM tab1
----
-1188
-1254
-2112

query I rowsort
SELECT - col0 + 5 * + col1 FROM tab1
----
-14
-15
127

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

skipif mysql # not compatible
query I rowsort label-173
SELECT ALL ( + col1 ) / col1 - + col2 AS col2 FROM tab1
----
-53
-56
-95

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

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

query I rowsort
SELECT DISTINCT - - 81 AS col2 FROM tab0 cor0
----
81

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

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

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

query I rowsort
SELECT ALL + - cor0.col1 * - col1 + - col1 AS col0 FROM tab1 AS cor0
----
156
650
90

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

query I rowsort
SELECT - 36 + col2 * - col1 FROM tab2 AS cor0
----
-1570
-682
-873

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

query I rowsort
SELECT DISTINCT - ( tab0.col2 + col2 ) AS col0 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT col1 - ( - tab1.col1 ) AS col2 FROM tab1
----
20
26
52

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

query I rowsort
SELECT DISTINCT - + 15 * col1 AS col0 FROM tab1 AS cor0
----
-150
-195
-390

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

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

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

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

query I rowsort
SELECT DISTINCT + + 66 * + cor0.col0 FROM tab0 AS cor0
----
1584
2310
5874

query I rowsort
SELECT - cor0.col0 + 93 * + cor0.col1 FROM tab2 cor0
----
1502
2876
5409

query I rowsort
SELECT + tab2.col1 * col2 + + col1 * col2 FROM tab2
----
1292
1674
3068

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

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

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

skipif mysql # not compatible
query I rowsort label-194
SELECT DISTINCT 3 / - col2 AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col2 * 56 FROM tab2
----
1456
1512
2128

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

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

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

query I rowsort
SELECT ( + 6 * + col0 ) AS col1 FROM tab0
----
144
210
534

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

skipif mysql # not compatible
query I rowsort label-199
SELECT + CAST ( col2 * col2 + - col1 AS INTEGER ) AS col0 FROM tab1
----
2890
3239
9203

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

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

query I rowsort
SELECT 85 * - ( + col2 ) FROM tab2
----
-2210
-2295
-3230

query I rowsort
SELECT DISTINCT + 45 * + tab1.col1 + - cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to f884d656bf3bd7b8f5f8396ce47ccd0e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 220a93709e207779b34ef74b544764a5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-204
SELECT ALL CAST( + col2 * - col1 AS SIGNED ) AS col1 FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-204
SELECT ALL CAST ( + col2 * - col1 AS INTEGER ) AS col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + 4 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT 85 + - col0 AS col0 FROM tab0
----
-4
50
61

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

query I rowsort
SELECT ALL + cor0.col1 * col1 + col0 + - col2 * ( 4 * col1 ) AS col1 FROM tab2 AS cor0
----
-2216
-2380
-2577

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 + col1 ) * - col2 col2 FROM tab2
----
1566
2090
2210

onlyif mysql # use DIV operator for integer division
query I rowsort label-210
SELECT DISTINCT + col1 DIV - 79 + col0 AS col0 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-210
SELECT DISTINCT + col1 / - 79 + col0 AS col0 FROM tab0
----
23
34
88

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-212
SELECT ALL + col2 * + CAST( col1 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
0
2752
7371

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL + col2 * + CAST ( col1 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT + col2 + - 66 AS col1 FROM tab2 AS cor0
----
-28
-39
-40

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

query I rowsort
SELECT DISTINCT - cor0.col0 + - 7 FROM tab0 AS cor0
----
-31
-42
-96

query I rowsort
SELECT DISTINCT col2 + + 52 AS col2 FROM tab2 cor0
----
78
79
90

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * + 95 FROM tab2 cor0
----
2470
2565
3610

query I rowsort
SELECT + - 18 - + col0 * col2 FROM tab0 AS cor0
----
-53
-7316
-810

query I rowsort
SELECT - 87 + 35 FROM tab1 AS cor0
----
-52
-52
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-225
SELECT + col2 DIV 26 + col0 + - col2 * + col0 AS col1 FROM tab2 AS cor0
----
-181
-1949
-2922

skipif mysql # not compatible
query I rowsort label-225
SELECT + col2 / 26 + col0 + - col2 * + col0 AS col1 FROM tab2 AS cor0
----
-181
-1949
-2922

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

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

query I rowsort
SELECT ALL 99 * cor0.col0 AS col0 FROM tab1 AS cor0
----
297
6336
7920

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 * + col2 + 58 * + 16 + col2 col0 FROM tab1 AS cor0
----
-2663
-6656
820

query I rowsort
SELECT + - col1 + + col2 * 96 + col1 AS col2 FROM tab0 AS cor0
----
3168
7872
96

query I rowsort
SELECT DISTINCT + col1 * + col2 * + 14 FROM tab1 AS cor0
----
17472
19656
7980

query I rowsort
SELECT ALL - 32 * - col0 FROM tab1 AS cor0
----
2048
2560
96

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-238
SELECT col0 DIV col0 + + ( - col2 ) * + col2 FROM tab2
----
-1443
-675
-728

skipif mysql # not compatible
query I rowsort label-238
SELECT col0 / col0 + + ( - col2 ) * + col2 FROM tab2
----
-1443
-675
-728

query I rowsort
SELECT ALL 10 * tab1.col1 + + col1 FROM tab1
----
110
143
286

onlyif mysql # use DIV operator for integer division
query I rowsort label-240
SELECT DISTINCT + col2 + + col1 DIV + 33 FROM tab2
----
27
38

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT + col2 + + col1 / + 33 FROM tab2
----
27
38

query I rowsort
SELECT 94 + col2 - col2 AS col0 FROM tab0 AS cor0
----
94
94
94

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

query I rowsort
SELECT cor0.col2 * 66 + cor0.col0 AS col1 FROM tab1 AS cor0
----
3567
3826
6416

query I rowsort
SELECT col2 + + 7 AS col1 FROM tab0 AS cor0
----
40
8
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( col0 * col1 ) col1 FROM tab1 cor0
----
234
40960
83200

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

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

query I rowsort
SELECT ALL col1 - 77 AS col0 FROM tab2 cor0
----
-18
-46
-60

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

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

query I rowsort
SELECT DISTINCT col2 + - ( col0 ) * col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL - + col2 - 96 * col2 AS col1 FROM tab0 AS cor0
----
-3201
-7954
-97

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

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

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

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

query I rowsort
SELECT - 59 + 48 - - col2 FROM tab2 AS cor0
----
15
16
27

query I rowsort
SELECT + - col1 + + col2 * - col2 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT 46 + + col2 AS col1 FROM tab0 AS cor0
----
128
47
79

query I rowsort
SELECT DISTINCT col2 * - 10 - tab0.col0 AS col1 FROM tab0
----
-354
-45
-909

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

query I rowsort
SELECT - ( - 19 ) + + col0 AS col1 FROM tab2 AS cor0
----
26
97
98

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

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

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

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

query I rowsort
SELECT ( + 79 ) * - col0 FROM tab1 AS cor0
----
-237
-5056
-6320

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

skipif mysql # not compatible
query I rowsort label-264
SELECT + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT ALL - + col2 * + 56 FROM tab0 AS cor0
----
-1848
-4592
-56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-266
SELECT ALL col1 + col2 - - CAST( + 74 * col1 AS SIGNED ) FROM tab0 AS cor0
----
6483
6907
7276

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL col1 + col2 - - CAST ( + 74 * col1 AS INTEGER ) FROM tab0 AS cor0
----
6483
6907
7276

query I rowsort
SELECT ALL col2 + col1 * 55 FROM tab2 AS cor0
----
1732
3271
973

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

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

query I rowsort
SELECT col1 * cor0.col2 + - ( - col2 ) - - col1 AS col1 FROM tab1 AS cor0
----
1357
1484
637

query I rowsort
SELECT ALL ( col2 ) + + col2 + + 31 * + col1 * + col0 AS col2 FROM tab1 AS cor0
----
19954
2526
32432

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-273
SELECT ALL - col2 + col1 * + CAST( 11 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
149
314
623

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL - col2 + col1 * + CAST ( 11 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
149
314
623

query I rowsort
SELECT + col1 * col1 * + col0 + - col0 FROM tab1 AS cor0
----
13440
2025
6336

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

query I rowsort
SELECT ALL - 81 + - col2 FROM tab1 AS cor0
----
-135
-138
-177

query I rowsort
SELECT 48 * col1 + col0 FROM tab2
----
1495
2910
895

onlyif mysql # use DIV operator for integer division
query I rowsort label-278
SELECT ALL + 45 DIV cor0.col1 + + col2 FROM tab1 AS cor0
----
55
61
99

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL + 45 / cor0.col1 + + col2 FROM tab1 AS cor0
----
55
61
99

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

query I rowsort
SELECT ALL 71 * + col0 * 45 FROM tab2 AS cor0
----
22365
249210
252405

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

query I rowsort
SELECT DISTINCT + col0 + col0 + ( col2 ) FROM tab2 AS cor0
----
182
196
41

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

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

query I rowsort
SELECT ALL 81 + col0 AS col2 FROM tab0 cor0
----
105
116
170

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

skipif mysql # not compatible
query I rowsort label-286
SELECT DISTINCT - cor0.col1 * col0 + CAST ( ( col2 ) * col2 AS INTEGER ) FROM tab1 AS cor0
----
2609
2838
8176

query I rowsort
SELECT - ( cor0.col2 ) + + 10 AS col1 FROM tab2 AS cor0
----
-16
-17
-28

onlyif mysql # use DIV operator for integer division
query I rowsort label-288
SELECT DISTINCT - col2 + + tab1.col2 DIV + col2 AS col2 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-288
SELECT DISTINCT - col2 + + tab1.col2 / + col2 AS col2 FROM tab1
----
-53
-56
-95

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

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

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

query I rowsort
SELECT DISTINCT + 82 * + cor0.col2 + col2 FROM tab0 AS cor0
----
2739
6806
83

query I rowsort
SELECT ALL - ( - cor0.col1 ) + + col2 * ( + col1 * + col2 ) FROM tab0 AS cor0
----
194
611975
93740

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

query I rowsort
SELECT + 67 * - cor1.col0 * - cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 4c5584a5f31666db58bfcbb151919367

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

query I rowsort
SELECT ALL 92 * 57 AS col0 FROM tab1
----
5244
5244
5244

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-298
SELECT DISTINCT - ( - col0 ) * - col0 + cor0.col0 * col0 DIV col1 AS col1 FROM tab0 AS cor0
----
-1213
-570
-7834

skipif mysql # not compatible
query I rowsort label-298
SELECT DISTINCT - ( - col0 ) * - col0 + cor0.col0 * col0 / col1 AS col1 FROM tab0 AS cor0
----
-1213
-570
-7834

query I rowsort
SELECT ALL + 96 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to e03080212e3345d8b37e64e3264019c4

query I rowsort
SELECT DISTINCT + 81 * 89 FROM tab0 AS cor0
----
7209

onlyif mysql # use DIV operator for integer division
query I rowsort label-301
SELECT ALL - col1 * + 97 + + col1 * cor0.col0 DIV + col0 col2 FROM tab1 AS cor0
----
-1248
-2496
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-301
SELECT ALL - col1 * + 97 + + col1 * cor0.col0 / + col0 col2 FROM tab1 AS cor0
----
-1248
-2496
-960

query I rowsort
SELECT + 11 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT DISTINCT - - cor0.col1 * + 24 + - 31 AS col2 FROM tab0 AS cor0
----
2033
2153
2297

query I rowsort
SELECT ALL + col2 + 30 * 22 FROM tab0 AS cor0
----
661
693
742

query I rowsort
SELECT ALL + - col1 * + 36 AS col0 FROM tab0 AS cor0
----
-3096
-3276
-3492

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

query I rowsort
SELECT - col2 + 56 * + col1 AS col1 FROM tab2 cor0
----
1709
3278
914

onlyif mysql # use DIV operator for integer division
query I rowsort label-308
SELECT - col0 DIV + 92 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-308
SELECT - col0 / + 92 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col0 * + col0 + - col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT col2 * + 30 FROM tab0 cor0
----
2460
30
990

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-311
SELECT DISTINCT cor0.col1 + + cor0.col0 / col1 col0 FROM tab2 cor0
----
21
31
60

query I rowsort
SELECT - 26 * - cor0.col0 - + col2 FROM tab0 cor0
----
2232
591
909

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

skipif mysql # not compatible
query I rowsort label-313
SELECT + col0 + + col0 / - ( col0 ) FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT col0 + + col0 * - 84 FROM tab2 AS cor0
----
-581
-6474
-6557

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

query I rowsort
SELECT + + 81 * col0 * - 66 AS col2 FROM tab2 AS cor0
----
-37422
-416988
-422334

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 + col1 col1 FROM tab0
----
48
53
59

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 * - col0 col0 FROM tab2
----
-609
-6786
-6873

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

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

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

query I rowsort
SELECT ALL - 73 * tab2.col1 FROM tab2
----
-1241
-2263
-4307

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

query I rowsort
SELECT - tab0.col1 * + 12 + - 24 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ab32125f446d83659f6dedc3115deba1

onlyif mysql # use DIV operator for integer division
query I rowsort label-325
SELECT + 25 DIV ( col1 * tab1.col1 ) + 34 + - col1 * + col0 FROM tab1
----
-1006
-44
-606

skipif mysql # not compatible
query I rowsort label-325
SELECT + 25 / ( col1 * tab1.col1 ) + 34 + - col1 * + col0 FROM tab1
----
-1006
-44
-606

query I rowsort
SELECT DISTINCT + ( + ( - col0 ) ) FROM tab2
----
-7
-78
-79

query I rowsort
SELECT + col0 * col2 * + col0 AS col2 FROM tab0
----
1225
19008
649522

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

query I rowsort
SELECT - - 25 + + col0 AS col1 FROM tab0 AS cor0
----
114
49
60

query I rowsort
SELECT - 53 + + col0 AS col0 FROM tab1 AS cor0
----
-50
11
27

query I rowsort
SELECT + + col2 * - col0 + + ( - cor0.col0 + - col1 ) AS col0 FROM tab0 AS cor0
----
-167
-7478
-902

onlyif mysql # use DIV operator for integer division
query I rowsort label-332
SELECT + col2 * + col1 + col1 DIV col0 AS col1 FROM tab0 AS cor0
----
2841
7463
99

skipif mysql # not compatible
query I rowsort label-332
SELECT + col2 * + col1 + col1 / col0 AS col1 FROM tab0 AS cor0
----
2841
7463
99

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

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

query I rowsort
SELECT - 38 + + cor0.col0 FROM tab1 AS cor0
----
-35
26
42

query I rowsort
SELECT ALL 3 * col2 FROM tab0 AS cor0
----
246
3
99

query I rowsort
SELECT ALL - 49 + - cor0.col1 FROM tab1 AS cor0
----
-59
-62
-75

query I rowsort
SELECT ALL - col2 - tab0.col2 * - 81 FROM tab0
----
2640
6560
80

query I rowsort
SELECT DISTINCT col1 - ( 45 ) AS col1 FROM tab2
----
-14
-28
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-340
SELECT ALL - 59 DIV - col0 + col2 col1 FROM tab2
----
26
35
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-340
SELECT ALL - 59 / - col0 + col2 col1 FROM tab2
----
26
35
38

query I rowsort
SELECT ( - 22 ) * col0 + + 62 FROM tab1 AS cor0
----
-1346
-1698
-4

query I rowsort
SELECT tab0.col1 * - 21 + col1 FROM tab0
----
-1720
-1820
-1940

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-344
SELECT ALL - + 63 DIV 45 - - col2 AS col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-344
SELECT ALL - + 63 / 45 - - col2 AS col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT - - 69 * cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
3780
3990
6720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-346
SELECT DISTINCT - + CAST( - col2 AS SIGNED ) * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-349
SELECT DISTINCT + col0 * 1 + - col0 DIV 23 + cor0.col1 * col0 col1 FROM tab0 AS cor0
----
2087
3429
8185

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-349
SELECT DISTINCT + col0 * 1 + - col0 / 23 + cor0.col1 * col0 col1 FROM tab0 AS cor0
----
2087
3429
8185

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

skipif mysql # not compatible
query I rowsort label-350
SELECT DISTINCT + - CAST ( - 41 AS INTEGER ) + - col0 * CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
4137
50
6441

query I rowsort
SELECT 34 * + col1 + col2 AS col1 FROM tab0 AS cor0
----
2957
3176
3299

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

skipif mysql # not compatible
query I rowsort label-352
SELECT - ( col0 ) + - col1 / 56 FROM tab2 AS cor0
----
-7
-79
-79

query I rowsort
SELECT - col1 * col2 * col1 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

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

skipif mysql # not compatible
query I rowsort label-354
SELECT DISTINCT + col2 / col1 - + col0 AS col1 FROM tab2 AS cor0
----
-7
-77
-78

query I rowsort
SELECT DISTINCT cor0.col2 * + col0 * + col0 - col1 FROM tab0 AS cor0
----
1128
18922
649431

query I rowsort
SELECT DISTINCT col2 * col0 + + col1 * col0 AS col2 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT DISTINCT - col0 * - 98 FROM tab2 AS cor0
----
686
7644
7742

query I rowsort
SELECT ALL - + col2 + 60 AS col2 FROM tab0 AS cor0
----
-22
27
59

query I rowsort
SELECT DISTINCT + col1 + 40 AS col2 FROM tab2 AS cor0
----
57
71
99

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

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

query I rowsort
SELECT ALL + col0 * col2 + - col2 AS col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT ALL col1 + + ( col1 + + col0 ) * - ( - 41 ) FROM tab2 AS cor0
----
1589
3953
5676

query I rowsort
SELECT - col1 + 4 FROM tab0 AS cor0
----
-82
-87
-93

query I rowsort
SELECT ALL - col1 * 29 AS col1 FROM tab2 cor0
----
-1711
-493
-899

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + cor0.col1 * col0 col1 FROM tab1 AS cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + 1 col1 FROM tab2 AS cor0
----
-6
-77
-78

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

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

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

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab0, tab0 AS cor0 WHERE NULL > ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT + col0 / col1 + - col0 AS col0 FROM tab1 AS cor0
----
-3
-58
-74

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

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

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

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

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

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

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

query I rowsort
SELECT + 53 * col2 * col1 FROM tab1
----
30210
66144
74412

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-378
SELECT - col0 + + col0 * - CAST( - 82 * + col2 AS SIGNED ) FROM tab1
----
13281
299072
629680

skipif mysql # not compatible
query I rowsort label-378
SELECT - col0 + + col0 * - CAST ( - 82 * + col2 AS INTEGER ) FROM tab1
----
13281
299072
629680

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

query I rowsort
SELECT + col1 - tab1.col1 * - 57 AS col0 FROM tab1
----
1508
580
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * col1 + - col2 * + col0 * col0 col2 FROM tab2
----
-1106
-153582
-235815

onlyif mysql # use DIV operator for integer division
query I rowsort label-382
SELECT DISTINCT 32 DIV + col0 FROM tab1
----
0
10

skipif mysql # not compatible
query I rowsort label-382
SELECT DISTINCT 32 / + col0 FROM tab1
----
0
10

query I rowsort
SELECT + 20 + - ( col0 ) FROM tab2 AS cor0
----
-58
-59
13

query I rowsort
SELECT ALL + + 14 * - col0 * + col2 FROM tab0 AS cor0
----
-102172
-11088
-490

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

query I rowsort
SELECT ALL + - 3 + + col1 FROM tab1 AS cor0
----
10
23
7

query I rowsort
SELECT 21 + + col2 FROM tab1 AS cor0
----
117
75
78

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

query I rowsort
SELECT + 81 + - col0 FROM tab0 cor0
----
-8
46
57

query I rowsort
SELECT ALL 12 * - 76 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8080d9b8c4fbdcceb29ff5837823840a

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

query I rowsort
SELECT ALL + col1 + 89 FROM tab2 cor0
----
106
120
148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 44 col1 FROM tab1
----
132
2816
3520

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * + 42 FROM tab2 AS cor0
----
-294
-3276
-3318

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( - 53 ) col2 FROM tab0 AS cor0
----
1749
4346
53

query I rowsort
SELECT 63 * 61 FROM tab0 AS cor0
----
3843
3843
3843

query I rowsort
SELECT + 46 * col1 + + col2 FROM tab0 AS cor0
----
3989
4268
4463

query I rowsort
SELECT + - cor0.col0 * - 41 FROM tab2 AS cor0
----
287
3198
3239

query I rowsort
SELECT ALL + col2 + 17 + col2 FROM tab1 AS cor0
----
125
131
209

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

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

query I rowsort
SELECT DISTINCT + - ( + ( + col1 ) ) + + col0 * col0 FROM tab2 AS cor0
----
18
6025
6224

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

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

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

query I rowsort
SELECT + + cor0.col1 * 62 AS col0 FROM tab0 cor0
----
5332
5642
6014

onlyif mysql # use DIV operator for integer division
query I rowsort label-409
SELECT DISTINCT - col1 + - 46 DIV - 53 col1 FROM tab1
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-409
SELECT DISTINCT - col1 + - 46 / - 53 col1 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) * cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - + ( + 81 ) * col0 + + col2 AS col2 FROM tab2 AS cor0
----
-540
-6292
-6361

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 94 col1 FROM tab2 AS cor0
----
1598
2914
5546

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

query I rowsort
SELECT - ( ( - col2 ) ) * 90 FROM tab2 AS cor0
----
2340
2430
3420

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

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

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL - 8 / col1 FROM tab2 AS cor0
----
0
0
0

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

query I rowsort
SELECT + + 67 AS col1 FROM tab1 AS cor0
----
67
67
67

query I rowsort
SELECT ALL - ( - 86 ) FROM tab2
----
86
86
86

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

skipif mysql # not compatible
query I rowsort label-421
SELECT ALL + CAST ( + col1 AS INTEGER ) * - col2 FROM tab2
----
-1534
-646
-837

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-423
SELECT + col0 + - CAST( 9 + + col2 * + 67 AS SIGNED ) FROM tab2 AS cor0
----
-1673
-1811
-2476

skipif mysql # not compatible
query I rowsort label-423
SELECT + col0 + - CAST ( 9 + + col2 * + 67 AS INTEGER ) FROM tab2 AS cor0
----
-1673
-1811
-2476

onlyif mysql # use DIV operator for integer division
query I rowsort label-424
SELECT ALL + 89 + col1 DIV - 22 AS col1 FROM tab1
----
88
89
89

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL + 89 + col1 / - 22 AS col1 FROM tab1
----
88
89
89

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

skipif mysql # not compatible
query I rowsort label-425
SELECT col0 / 62 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + - col0 * + col1 * + 11 FROM tab1 AS cor0
----
-11440
-7040
-858

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

skipif mysql # not compatible
query I rowsort label-427
SELECT + + col1 / ( ( col1 ) + 2 ) AS col1 FROM tab0 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT - tab0.col1 * + col1 AS col0 FROM tab0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-430
SELECT DISTINCT ( - tab1.col1 ) + - tab1.col1 DIV 86 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-430
SELECT DISTINCT ( - tab1.col1 ) + - tab1.col1 / 86 FROM tab1
----
-10
-13
-26

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

query I rowsort
SELECT + col0 * - 98 AS col0 FROM tab0
----
-2352
-3430
-8722

query I rowsort
SELECT + col1 * + col1 - 13 FROM tab0 AS cor0
----
7383
8268
9396

query I rowsort
SELECT - - col1 + - cor0.col2 * 65 AS col2 FROM tab2 AS cor0
----
-1631
-1724
-2453

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-438
SELECT DISTINCT ( col0 ) DIV - CAST( - 13 + col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-438
SELECT DISTINCT ( col0 ) / - CAST ( - 13 + col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 * - cor0.col2 col0 FROM tab2 AS cor0
----
1026
1444
988

query I rowsort
SELECT DISTINCT - col1 + cor0.col1 * 73 * 67 FROM tab2 cor0
----
151590
288510
83130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 * - cor1.col0 col0 FROM tab2, tab1 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 46ee73c1c6ca8762b6a2669f44068900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 * - col1 * - col0 col0 FROM tab1 cor0
----
39040
4758
63440

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

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

query I rowsort
SELECT ALL + 86 + col2 AS col2 FROM tab0 AS cor0
----
119
168
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * - col2 * col1 col0 FROM tab1
----
-16224
-36504
-5700

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

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

query I rowsort
SELECT 23 + + col0 * + ( + col2 ) FROM tab1
----
185
3671
7703

query I rowsort
SELECT DISTINCT + tab2.col0 - - col0 * 24 FROM tab2
----
175
1950
1975

query I rowsort
SELECT DISTINCT + 42 - col1 FROM tab2
----
-17
11
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-451
SELECT col2 + col2 DIV - col1 - 33 * - col0 FROM tab0
----
1156
3019
825

skipif mysql # not compatible
query I rowsort label-451
SELECT col2 + col2 / - col1 - 33 * - col0 FROM tab0
----
1156
3019
825

query I rowsort
SELECT + cor0.col2 + 29 FROM tab0 AS cor0
----
111
30
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 * - 77 + - col2 col2 FROM tab2 AS cor0
----
1192
2353
4439

query I rowsort
SELECT DISTINCT + col2 * - 73 - - col2 FROM tab0 AS cor0
----
-2376
-5904
-72

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 + - col2 col0 FROM tab1
----
-26
13
16

query I rowsort
SELECT ALL 37 * col0 AS col0 FROM tab2
----
259
2886
2923

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-459
SELECT ALL col0 DIV 5 col1 FROM tab1
----
0
12
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-459
SELECT ALL col0 / 5 col1 FROM tab1
----
0
12
16

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

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

query I rowsort
SELECT 24 * - col2 AS col2 FROM tab0 AS cor0
----
-1968
-24
-792

query I rowsort
SELECT ALL + 41 * + col2 + - cor0.col1 FROM tab2 AS cor0
----
1007
1076
1541

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

query I rowsort
SELECT + col1 + 20 * col0 FROM tab2 AS cor0
----
1597
1619
171

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

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

query I rowsort
SELECT ALL col1 + col2 * tab2.col2 AS col2 FROM tab2
----
1461
735
760

query I rowsort
SELECT col0 * 29 + - tab1.col0 AS col0 FROM tab1
----
1792
2240
84

query I rowsort
SELECT DISTINCT + 96 * + cor0.col0 * 13 FROM tab2, tab2 AS cor0
----
8736
97344
98592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 * cor0.col0 col2 FROM tab2 cor0
----
308
3432
3476

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-471
SELECT ALL + CAST( col1 AS SIGNED ) DIV col0 + - col1 * ( - col1 ) AS col1 FROM tab0 AS cor0
----
7399
8282
9411

skipif mysql # not compatible
query I rowsort label-471
SELECT ALL + CAST ( col1 AS INTEGER ) / col0 + - col1 * ( - col1 ) AS col1 FROM tab0 AS cor0
----
7399
8282
9411

query I rowsort
SELECT + - cor0.col1 + ( + col0 ) + + 16 FROM tab1 AS cor0
----
-7
70
83

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

query I rowsort
SELECT - ( 8 ) + + col1 FROM tab2 AS cor0
----
23
51
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 50 col2 FROM tab0
----
-36
-41
-47

query I rowsort
SELECT DISTINCT tab0.col1 + - ( col1 ) * col2 AS col2 FROM tab0
----
-2752
-7371
0

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-479
SELECT 45 DIV - 9 + + col1 FROM tab1
----
21
5
8

skipif mysql # not compatible
query I rowsort label-479
SELECT 45 / - 9 + + col1 FROM tab1
----
21
5
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-480
SELECT ALL CAST( - col1 AS SIGNED ) + col0 DIV col0 AS col0 FROM tab2
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-480
SELECT ALL CAST ( - col1 AS INTEGER ) + col0 / col0 AS col0 FROM tab2
----
-16
-30
-58

query I rowsort
SELECT 88 + col1 FROM tab1
----
101
114
98

query I rowsort
SELECT DISTINCT - col0 * - 97 - col2 * + cor0.col2 FROM tab0 cor0
----
1239
1909
3394

onlyif mysql # use DIV operator for integer division
query I rowsort label-483
SELECT ALL 15 * cor0.col2 DIV cor0.col2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif mysql # not compatible
query I rowsort label-483
SELECT ALL 15 * cor0.col2 / cor0.col2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

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

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

query I rowsort
SELECT ALL + 51 + col1 * + cor0.col0 FROM tab2 AS cor0
----
1394
268
4653

query I rowsort
SELECT ALL - 87 * cor0.col2 + - col2 * + col1 AS col1 FROM tab1 AS cor0
----
-5529
-6102
-9600

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

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

query I rowsort
SELECT + - 2 + col1 FROM tab1 AS cor0
----
11
24
8

query I rowsort
SELECT - 72 + - col2 FROM tab2 AS cor0
----
-110
-98
-99

query I rowsort
SELECT ALL - col2 * - col2 + col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312

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

query I rowsort
SELECT ALL - + 13 + col0 + col1 AS col2 FROM tab2 AS cor0
----
124
25
83

query I rowsort
SELECT tab1.col0 * 2 + - 41 FROM tab1
----
-35
119
87

query I rowsort
SELECT ALL - cor0.col0 + col2 - col0 AS col1 FROM tab1 cor0
----
-64
-71
48

query I rowsort
SELECT - col2 + col0 * + col2 AS col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT col1 + - 55 AS col2 FROM tab0
----
31
36
42

query I rowsort
SELECT ALL + col0 * 53 AS col1 FROM tab0 AS cor0
----
1272
1855
4717

query I rowsort
SELECT + col0 * 84 + 8 - col0 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
15405
2600
4173

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

query I rowsort
SELECT DISTINCT col1 * + ( cor0.col1 * col1 + + col0 ) FROM tab0 AS cor0
----
638120
761670
916068

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

query I rowsort
SELECT DISTINCT + cor0.col0 * col0 * - col0 FROM tab1 AS cor0
----
-262144
-27
-512000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + cor0.col0 + 91 col1 FROM tab2 AS cor0
----
129
187
228

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

query I rowsort
SELECT ALL + - col2 * 71 AS col1 FROM tab0 AS cor0
----
-2343
-5822
-71

query I rowsort
SELECT col2 * 87 FROM tab1 AS cor0
----
4698
4959
8352

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

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

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

query I rowsort
SELECT 94 * - col2 FROM tab0 AS cor0
----
-3102
-7708
-94

query I rowsort
SELECT ALL 74 * col0 * col0 AS col2 FROM tab1 AS cor0
----
303104
473600
666

query I rowsort
SELECT DISTINCT - col2 + 60 * - col2 FROM tab1 AS cor0
----
-3294
-3477
-5856

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-517
SELECT DISTINCT 75 + ( col2 ) * cor0.col0 DIV - col0 FROM tab1 AS cor0
----
-21
18
21

skipif mysql # not compatible
query I rowsort label-517
SELECT DISTINCT 75 + ( col2 ) * cor0.col0 / - col0 FROM tab1 AS cor0
----
-21
18
21

query I rowsort
SELECT + tab1.col2 - + 63 * ( col1 ) AS col0 FROM tab1
----
-1584
-573
-723

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

query I rowsort
SELECT + col2 + col2 * + 10 * + col1 + + col1 AS col0 FROM tab1 AS cor0
----
12589
14120
5767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * col2 + cor0.col0 + + col2 * - ( cor0.col1 ) col2 FROM tab2 AS cor0
----
-1019
-3484
-3569

onlyif mysql # use DIV operator for integer division
query I rowsort label-522
SELECT + + col2 * + 31 + col1 DIV - col2 FROM tab0 AS cor0
----
-66
1021
2541

skipif mysql # not compatible
query I rowsort label-522
SELECT + + col2 * + 31 + col1 / - col2 FROM tab0 AS cor0
----
-66
1021
2541

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

query I rowsort
SELECT + 64 + col2 FROM tab2
----
102
90
91

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

query I rowsort
SELECT col0 * - 69 + + col1 AS col0 FROM tab0 AS cor0
----
-1570
-2318
-6050

query I rowsort
SELECT col1 + col2 * + ( - 76 ) FROM tab0
----
-2422
-6141
21

query I rowsort
SELECT + 17 * 71 FROM tab1, tab1 cor0
----
9 values hashing to da34adee91cf07e62b1c4b3c3743fad7

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

query I rowsort
SELECT DISTINCT col2 + - col0 * ( + col2 ) * col0 + col2 FROM tab2 AS cor0
----
-1269
-158132
-237082

onlyif mysql # use DIV operator for integer division
query I rowsort label-531
SELECT DISTINCT col0 * ( - 42 ) DIV - col2 col2 FROM tab1
----
2
35
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-531
SELECT DISTINCT col0 * ( - 42 ) / - col2 col2 FROM tab1
----
2
35
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-532
SELECT ALL + CAST( 99 AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

skipif mysql # not compatible
query I rowsort label-532
SELECT ALL + CAST ( 99 AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # use DIV operator for integer division
query I rowsort label-533
SELECT DISTINCT col0 DIV col2 + - col0 * - col1 AS col1 FROM tab0
----
2064
3430
8100

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT col0 / col2 + - col0 * - col1 AS col1 FROM tab0
----
2064
3430
8100

onlyif mysql # use DIV operator for integer division
query I rowsort label-534
SELECT + + col2 DIV + col0 - CAST( col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
-85
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-534
SELECT + + col2 / + col0 - CAST ( col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
-85
-91
-97

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

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

query I rowsort
SELECT - 72 - col2 FROM tab2 AS cor0
----
-110
-98
-99

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

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

query I rowsort
SELECT col1 * col2 * 35 + + col2 * - col2 AS col2 FROM tab1 AS cor0
----
16701
34464
46224

query I rowsort
SELECT DISTINCT cor0.col0 * col1 + col0 * + col0 FROM tab0 AS cor0
----
16020
2640
4620

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 * - tab1.col1 * 92 col2 FROM tab1, tab1 AS cor0
----
-58880
-7176
-95680

query I rowsort
SELECT + 90 * + col1 + - 16 FROM tab1 AS cor0
----
1154
2324
884

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

query I rowsort
SELECT - + 34 * - cor0.col1 + - col1 FROM tab1 AS cor0
----
330
429
858

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

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

query I rowsort
SELECT col0 * col0 + col1 * - 81 * col1 FROM tab2 AS cor0
----
-17168
-275877
-77792

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

query I rowsort
SELECT col1 - 14 FROM tab1
----
-1
-4
12

query I rowsort
SELECT DISTINCT - 25 * + cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
-650
-675
-950

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col1 + cor0.col0 * 93 FROM tab0 AS cor0
----
2146
3158
8186

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

query I rowsort
SELECT ALL 98 * 73 AS col1 FROM tab0
----
7154
7154
7154

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

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

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

skipif mysql # not compatible
query I rowsort label-563
SELECT ALL + tab0.col1 / - ( col1 * + tab0.col2 + + tab0.col1 ) FROM tab0
----
0
0
0

query I rowsort
SELECT + col1 + - 55 AS col2 FROM tab0
----
31
36
42

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

query I rowsort
SELECT - 48 * + col2 AS col0 FROM tab1 AS cor0
----
-2592
-2736
-4608

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 88213a0de4c0a44aaefe8bbffbcaf44a

query I rowsort
SELECT + + cor0.col2 * - 17 AS col2 FROM tab1 AS cor0
----
-1632
-918
-969

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col0 - 59 * col1 col2 FROM tab0 AS cor0
----
-4964
-5189
-5591

query I rowsort
SELECT ALL + 17 + - col2 FROM tab2 cor0
----
-10
-21
-9

query I rowsort
SELECT - ( col2 ) * + ( 36 * col2 ) FROM tab0 AS cor0
----
-242064
-36
-39204

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

query I rowsort
SELECT ALL - - col1 + - col2 * - ( - col1 ) FROM tab0 AS cor0
----
-2752
-7371
0

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

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

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

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

query I rowsort
SELECT DISTINCT ( - 39 ) AS col0 FROM tab2
----
-39

query I rowsort
SELECT + col0 - - 52 FROM tab0 AS cor0
----
141
76
87

query I rowsort
SELECT DISTINCT col1 * - col1 * + 14 AS col2 FROM tab2 AS cor0
----
-13454
-4046
-48734

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

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

query I rowsort
SELECT col0 + - 84 * col2 FROM tab0 AS cor0
----
-2748
-49
-6799

query I rowsort
SELECT + 29 * col1 FROM tab2
----
1711
493
899

onlyif mysql # use DIV operator for integer division
query I rowsort label-585
SELECT ALL - + col2 DIV ( cor0.col1 ) + - col2 FROM tab2 AS cor0
----
-26
-27
-40

skipif mysql # not compatible
query I rowsort label-585
SELECT ALL - + col2 / ( cor0.col1 ) + - col2 FROM tab2 AS cor0
----
-26
-27
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 95 col1 FROM tab2 AS cor0
----
665
7410
7505

query I rowsort
SELECT DISTINCT + 11 AS col1 FROM tab0
----
11

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-589
SELECT + col0 DIV - ( 68 ) FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-589
SELECT + col0 / - ( 68 ) FROM tab2 cor0
----
-1
-1
0

query I rowsort
SELECT + + col1 + - ( + 55 ) FROM tab0 AS cor0
----
31
36
42

query I rowsort
SELECT - col0 + ( - col2 ) + col1 FROM tab0
----
-80
29
61

query I rowsort
SELECT tab2.col0 + - 10 FROM tab2
----
-3
68
69

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-594
SELECT ALL + CAST( 2 AS SIGNED ) + col1 * - 19 FROM tab1 AS cor0
----
-188
-245
-492

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL + CAST ( 2 AS INTEGER ) + col1 * - 19 FROM tab1 AS cor0
----
-188
-245
-492

query I rowsort
SELECT DISTINCT 0 - ( - col0 + - col0 ) AS col1 FROM tab1 AS cor0
----
128
160
6

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

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

query I rowsort
SELECT ALL - ( + col1 ) + cor0.col0 AS col2 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-599
SELECT ALL + col1 + cor0.col1 * col2 DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL + col1 + cor0.col1 * col2 / cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT col0 * 83 AS col1 FROM tab1 AS cor0
----
249
5312
6640

query I rowsort
SELECT ALL - tab2.col0 + - 76 FROM tab2
----
-154
-155
-83

query I rowsort
SELECT ALL 31 + cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to f3dfb201fe3c72290083e00a49c945ff

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col2 + - col0 col0 FROM tab1
----
-121
-176
-57

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

query I rowsort
SELECT ALL - col0 * col1 * tab2.col0 AS col0 FROM tab2
----
-106097
-1519
-358956

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-607
SELECT DISTINCT + + col2 DIV 89 + - col2 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-607
SELECT DISTINCT + + col2 / 89 + - col2 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 + ( - col2 ) + - col0 col0 FROM tab1 cor0
----
-107
-52
12

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

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL - CAST ( - col2 AS INTEGER ) + col2 * col1 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT - 24 * col2 + col0 FROM tab2 AS cor0
----
-546
-641
-833

query I rowsort
SELECT DISTINCT - 85 * cor0.col0 FROM tab1 AS cor0
----
-255
-5440
-6800

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

query I rowsort
SELECT - - 36 + + 64 FROM tab0 AS cor0
----
100
100
100

query I rowsort
SELECT - col0 * - col2 * - 7 + col2 FROM tab0
----
-244
-51004
-5511

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT DISTINCT + - 93 * - col1 FROM tab1 AS cor0
----
1209
2418
930

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

query I rowsort
SELECT DISTINCT ( col2 * + 97 ) AS col1 FROM tab2
----
2522
2619
3686

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

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

query I rowsort
SELECT ALL col0 + + 79 FROM tab2 AS cor0
----
157
158
86

query I rowsort
SELECT ALL col2 + col2 + - col0 AS col2 FROM tab1 AS cor0
----
105
112
50

query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col2 + 36 AS col1 FROM tab1 cor0
----
2952
3285
9252

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

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

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

query I rowsort
SELECT - col0 * + ( ( - col2 ) ) * 63 + - tab1.col1 AS col0 FROM tab1
----
10180
229814
483827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( - 97 ) + tab0.col1 col0 FROM tab0
----
1
22
76

query I rowsort
SELECT DISTINCT - 9 * 78 FROM tab2, tab2 AS cor0
----
-702

query I rowsort
SELECT ALL + cor0.col2 * cor0.col1 + ( + col1 * + col0 ) AS col0 FROM tab1 AS cor0
----
1210
1482
2288

onlyif mysql # use DIV operator for integer division
query I rowsort label-631
SELECT ALL + - col0 * col2 DIV 2 - + col2 col0 FROM tab1 AS cor0
----
-135
-1881
-3936

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-631
SELECT ALL + - col0 * col2 / 2 - + col2 col0 FROM tab1 AS cor0
----
-135
-1881
-3936

query I rowsort
SELECT DISTINCT + col2 * + col2 * - col1 + - col1 FROM tab2 AS cor0
----
-22630
-24565
-39943

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-634
SELECT - cor0.col2 DIV col0 + - col0 * col2 AS col2 FROM tab1 AS cor0
----
-180
-3648
-7681

skipif mysql # not compatible
query I rowsort label-634
SELECT - cor0.col2 / col0 + - col0 * col2 AS col2 FROM tab1 AS cor0
----
-180
-3648
-7681

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

query I rowsort
SELECT col0 - 49 AS col0 FROM tab0 AS cor0
----
-14
-25
40

query I rowsort
SELECT ALL col0 - 62 AS col2 FROM tab0 AS cor0
----
-27
-38
27

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

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

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

query I rowsort
SELECT + - cor0.col0 * col0 + - cor0.col1 - col0 AS col1 FROM tab1 AS cor0
----
-38
-4170
-6493

query I rowsort
SELECT - col1 + col0 + + col1 * col1 FROM tab2 cor0
----
3500
351
937

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

skipif mysql # not compatible
query I rowsort label-643
SELECT + - col2 / + col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) >= col2 + col2
----

query I rowsort
SELECT - col2 + col2 * + col2 * - col0 AS col0 FROM tab0
----
-26169
-36
-598518

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

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

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

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

skipif mysql # not compatible
query I rowsort label-649
SELECT - col2 / cor0.col1 FROM tab0 cor0
----
0
0
0

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

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

query I rowsort
SELECT - col2 * + col1 + col1 + col0 FROM tab2
----
-1397
-550
-799

onlyif mysql # use DIV operator for integer division
query I rowsort label-653
SELECT DISTINCT + col0 * col0 + col0 DIV + tab1.col2 + - col2 AS col0 FROM tab1
----
-45
4040
6304

skipif mysql # not compatible
query I rowsort label-653
SELECT DISTINCT + col0 * col0 + col0 / + tab1.col2 + - col2 AS col0 FROM tab1
----
-45
4040
6304

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + tab2.col2 + - col0 col1 FROM tab2
----
-24
51
7

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

query I rowsort
SELECT ALL tab2.col0 - - col2 AS col0 FROM tab2
----
104
117
34

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-660
SELECT DISTINCT col2 DIV col1 - - col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-660
SELECT DISTINCT col2 / col1 - - col1 FROM tab0
----
86
91
97

query I rowsort
SELECT - col1 - tab0.col1 * tab0.col1 FROM tab0
----
-7482
-8372
-9506

query I rowsort
SELECT DISTINCT col1 * - col0 - col1 * - col0 AS col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab0 WHERE NOT NULL >= + col1
----

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-668
SELECT ALL col0 DIV col1 - col1 FROM tab1
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL col0 / col1 - col1 FROM tab1
----
-26
-4
-7

query I rowsort
SELECT ALL + 95 - tab1.col1 * - col1 FROM tab1
----
195
264
771

onlyif mysql # use DIV operator for integer division
query I rowsort label-670
SELECT DISTINCT col0 * + col2 + - col2 DIV col1 AS col0 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT col0 * + col2 + - col2 / col1 AS col0 FROM tab0
----
35
7298
792

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 > ( NULL )
----

query I rowsort
SELECT + col1 + col0 * col1 * col2 AS col1 FROM tab1
----
36490
4238
99853

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

skipif mysql # not compatible
query I rowsort label-673
SELECT ALL col2 / col0 + - tab2.col2 FROM tab2
----
-24
-26
-38

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * - col0 >= NULL
----

query I rowsort
SELECT ALL col1 * col0 + + col2 AS col2 FROM tab0
----
2097
3396
8181

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( col2 * + col2 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 = - col1 + col2 / + col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

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

query I rowsort
SELECT ALL col0 * + col0 + - col2 AS col1 FROM tab0
----
1224
543
7839

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-683
SELECT ALL - col2 * - col2 * - tab0.col2 + - tab0.col1 DIV col0 FROM tab0
----
-3
-35940
-551369

skipif mysql # not compatible
query I rowsort label-683
SELECT ALL - col2 * - col2 * - tab0.col2 + - tab0.col1 / col0 FROM tab0
----
-3
-35940
-551369

query I rowsort
SELECT - col0 + tab0.col2 + - col0 FROM tab0
----
-15
-69
-96

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

query I rowsort
SELECT DISTINCT - col0 - col1 FROM tab0 WHERE - col0 <= - col0 + tab0.col2 * - col1 * - col0
----
-110
-132
-180

query I rowsort
SELECT col1 + tab1.col1 * - col0 * col2 FROM tab1
----
-36470
-4186
-99827

query I rowsort
SELECT + col2 - col1 * + col1 * - col2 AS col1 FROM tab0
----
244101
679124
9410

query I rowsort
SELECT ALL - tab2.col0 * + col0 + + col0 * + 75 AS col2 FROM tab2
----
-234
-316
476

query I rowsort
SELECT - + 80 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # use DIV operator for integer division
query I rowsort label-691
SELECT col2 DIV + tab1.col2 + col1 - - ( col1 ) FROM tab1
----
21
27
53

skipif mysql # not compatible
query I rowsort label-691
SELECT col2 / + tab1.col2 + col1 - - ( col1 ) FROM tab1
----
21
27
53

query I rowsort
SELECT DISTINCT - + cor0.col2 * - cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1444
676
729

query I rowsort
SELECT DISTINCT col0 + - 39 FROM tab2 AS cor0
----
-32
39
40

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-695
SELECT + - col1 * + 74 + ( + col2 ) DIV + col1 + 78 * col2 FROM tab0 AS cor0
----
-338
-3790
-7100

skipif mysql # not compatible
query I rowsort label-695
SELECT + - col1 * + 74 + ( + col2 ) / + col1 + 78 * col2 FROM tab0 AS cor0
----
-338
-3790
-7100

query I rowsort
SELECT - + col2 * - 2 + 40 FROM tab0 AS cor0
----
106
204
42

query I rowsort
SELECT col1 * ( - 38 ) AS col0 FROM tab0
----
-3268
-3458
-3686

query I rowsort
SELECT ALL - - col1 * 51 FROM tab0 AS cor0
----
4386
4641
4947

query I rowsort
SELECT + col2 * + 68 + - cor0.col2 FROM tab1 AS cor0
----
3618
3819
6432

query I rowsort
SELECT + col1 + - col0 + - ( + cor0.col1 ) * + 77 FROM tab2 cor0
----
-1371
-2363
-4562

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 * - col2 * - col2 col0 FROM tab2
----
43940
47385
93860

query I rowsort
SELECT DISTINCT col2 - + 37 FROM tab0
----
-36
-4
45

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

query I rowsort
SELECT + ( - col1 ) * + col2 + ( - col0 ) + + col2 FROM tab1
----
-1232
-1353
-577

query I rowsort
SELECT ALL - tab1.col2 * 41 - + col2 FROM tab1
----
-2268
-2394
-4032

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - 12 col2 FROM tab0
----
-12
-23
-77

query I rowsort
SELECT 56 * + col1 + col2 AS col0 FROM tab1 AS cor0
----
1510
617
824

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

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

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

query I rowsort
SELECT DISTINCT + cor0.col1 * - col2 * - col0 - 76 AS col2 FROM tab2 AS cor0
----
119576
50958
5783

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

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

query I rowsort
SELECT - 53 * col0 FROM tab0
----
-1272
-1855
-4717

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

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

query I rowsort
SELECT DISTINCT col1 * - col0 * 45 + - 77 FROM tab2 AS cor0
----
-207167
-60512
-9842

query I rowsort
SELECT DISTINCT + col1 * cor0.col1 - col0 AS col2 FROM tab2 AS cor0
----
210
3403
954

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

query I rowsort
SELECT + col1 * + col2 + cor0.col1 * - 83 AS col0 FROM tab1 AS cor0
----
-260
-754
169

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

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

query I rowsort
SELECT ALL col2 + col0 + 27 * - ( - col1 ) FROM tab1
----
391
527
759

query I rowsort
SELECT - cor0.col0 FROM tab1, tab2 cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to adaea38eae032c1639715f21831dd376

query I rowsort
SELECT DISTINCT + 90 * - col0 + col2 + - col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-5133
-5856
1188

query I rowsort
SELECT - 19 + cor0.col1 AS col2 FROM tab0 AS cor0
----
67
72
78

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

query I rowsort
SELECT + cor0.col1 + cor0.col0 * - 38 - col1 AS col1 FROM tab2 AS cor0
----
-266
-2964
-3002

query I rowsort
SELECT ( col1 + col2 ) * - 30 FROM tab1
----
-2010
-2400
-3270

query I rowsort
SELECT col2 + + col1 + 86 FROM tab1
----
153
166
195

onlyif mysql # use DIV operator for integer division
query I rowsort label-733
SELECT DISTINCT 12 * col0 DIV + 28 + col1 FROM tab2
----
34
50
92

skipif mysql # not compatible
query I rowsort label-733
SELECT DISTINCT 12 * col0 / + 28 + col1 FROM tab2
----
34
50
92

query I rowsort
SELECT - 64 + + col2 * col1 FROM tab0 cor0
----
2774
33
7398

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

skipif mysql # not compatible
query I rowsort label-735
SELECT DISTINCT + ( - col1 ) + + col2 * + CAST ( - 55 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-2996
-3145
-5293

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-738
SELECT DISTINCT CAST( col1 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT CAST ( col1 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

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

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

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL - - CAST ( + 72 AS INTEGER ) + col2 FROM tab1 AS cor0
----
126
129
168

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) * col1 + - 29 AS col0 FROM tab1 AS cor0
----
-1069
-107
-669

query I rowsort
SELECT + col1 + + 22 FROM tab0
----
108
113
119

query I rowsort
SELECT 3 * - 22 AS col0 FROM tab0 AS cor0
----
-66
-66
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-744
SELECT DISTINCT - col2 DIV 95 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-744
SELECT DISTINCT - col2 / 95 FROM tab2
----
0

query I rowsort
SELECT ALL 64 - 85 FROM tab0, tab2 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT DISTINCT - 80 AS col1 FROM tab2, tab1 cor0
----
-80

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-748
SELECT + 87 DIV 80 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-748
SELECT + 87 / 80 FROM tab0 AS cor0
----
1
1
1

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

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

query I rowsort
SELECT DISTINCT 71 + + col1 * col1 FROM tab0 AS cor0
----
7467
8352
9480

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

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

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

query I rowsort
SELECT ( 96 ) AS col1 FROM tab1
----
96
96
96

query I rowsort
SELECT ALL + col0 + + ( - 89 ) AS col2 FROM tab2
----
-10
-11
-82

query I rowsort
SELECT 8 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

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

query I rowsort
SELECT - 41 + + col0 * col2 FROM tab0 AS cor0
----
-6
7257
751

query I rowsort
SELECT - + 31 * + col2 * cor0.col1 + 16 AS col1 FROM tab0 AS cor0
----
-231306
-2991
-87962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 - + col1 col2 FROM tab2 AS cor0
----
-306
-3540
-992

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

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

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

query I rowsort
SELECT + 14 + + cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1211
-562
-7907

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col0 col1 FROM tab1 cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * 24 + + cor0.col2 col2 FROM tab2 AS cor0
----
2042
2043
2054

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

query I rowsort
SELECT - col0 * - col1 + 22 * + col1 FROM tab2 cor0
----
1717
5900
899

query I rowsort
SELECT ALL - 84 * col0 + + cor0.col0 * - col2 FROM tab1 AS cor0
----
-14400
-414
-9024

query I rowsort
SELECT DISTINCT cor0.col0 + col1 * ( col1 + col2 ) AS col1 FROM tab1 cor0
----
1497
2083
734

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-772
SELECT DISTINCT + col1 * col2 * + CAST( + col0 AS SIGNED ) + - col0 + col1 FROM tab2 AS cor0
----
119633
50972
5883

skipif mysql # not compatible
query I rowsort label-772
SELECT DISTINCT + col1 * col2 * + CAST ( + col0 AS INTEGER ) + - col0 + col1 FROM tab2 AS cor0
----
119633
50972
5883

query I rowsort
SELECT - ( col0 ) + - 95 AS col0 FROM tab1 AS cor0
----
-159
-175
-98

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

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

query I rowsort
SELECT ALL - 83 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

query I rowsort
SELECT col0 * ( 21 ) AS col0 FROM tab0 AS cor0
----
1869
504
735

query I rowsort
SELECT - - col1 * 51 * + 46 + - col0 + + col2 AS col1 FROM tab2 cor0
----
138362
39841
72746

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-779
SELECT ALL col2 * - CAST( + col0 AS SIGNED ) * - cor0.col0 FROM tab0 cor0
----
1225
19008
649522

skipif mysql # not compatible
query I rowsort label-779
SELECT ALL col2 * - CAST ( + col0 AS INTEGER ) * - cor0.col0 FROM tab0 cor0
----
1225
19008
649522

query I rowsort
SELECT - tab1.col1 * col2 * 13 FROM tab1
----
-16224
-18252
-7410

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-783
SELECT ALL + + cor0.col2 * col2 DIV col0 AS col0 FROM tab1 AS cor0
----
115
50
972

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL + + cor0.col2 * col2 / col0 AS col0 FROM tab1 AS cor0
----
115
50
972

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

skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT - col2 / - 86 AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL cor0.col2 + + 24 * cor0.col0 AS col1 FROM tab0 AS cor0
----
2218
609
841

query I rowsort
SELECT + col1 * - 87 FROM tab2 cor0
----
-1479
-2697
-5133

query I rowsort
SELECT - col2 + + col1 * - ( - col1 + + col1 ) FROM tab0 AS cor0
----
-1
-33
-82

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

query I rowsort
SELECT ALL - + cor0.col0 FROM tab1, tab0 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

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

query I rowsort
SELECT DISTINCT 95 * 88 * col1 FROM tab0 AS cor0
----
718960
760760
810920

query I rowsort
SELECT DISTINCT col0 * - 88 FROM tab0
----
-2112
-3080
-7832

query I rowsort
SELECT - 63 * + col0 FROM tab0 AS cor0
----
-1512
-2205
-5607

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

query I rowsort
SELECT ALL - col0 * + col1 * col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

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

query I rowsort
SELECT + 6 AS col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to 44f233d1b3804e00d9436c0a41d1e2c8

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

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

query I rowsort
SELECT - tab2.col1 * col0 + - 46 - + col2 AS col1 FROM tab2
----
-1427
-290
-4674

query I rowsort
SELECT ALL - - ( + 15 ) * + col2 * 12 AS col0 FROM tab2 AS cor0
----
4680
4860
6840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-801
SELECT ALL + col1 * - cor0.col0 + col0 + - CAST( + 81 AS SIGNED ) FROM tab0 cor0
----
-2121
-3441
-8091

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL + col1 * - cor0.col0 + col0 + - CAST ( + 81 AS INTEGER ) FROM tab0 cor0
----
-2121
-3441
-8091

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

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

query I rowsort
SELECT DISTINCT + 92 + 61 * col0 FROM tab0 AS cor0
----
1556
2227
5521

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

query I rowsort
SELECT + cor0.col1 * - 19 FROM tab2 AS cor0
----
-1121
-323
-589

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

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

query I rowsort
SELECT ALL + + cor2.col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 cor2
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8

query I rowsort
SELECT ALL tab0.col0 - ( - 99 ) * - col2 AS col1 FROM tab0
----
-3243
-64
-8029

onlyif mysql # use DIV operator for integer division
query I rowsort label-809
SELECT ALL tab1.col0 DIV col1 + col2 + + ( - col0 * col1 ) AS col1 FROM tab1
----
-24
-577
-938

skipif mysql # not compatible
query I rowsort label-809
SELECT ALL tab1.col0 / col1 + col2 + + ( - col0 * col1 ) AS col1 FROM tab1
----
-24
-577
-938

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

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

query I rowsort
SELECT ALL col2 + 32 * + col2 FROM tab0
----
1089
2706
33

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-814
SELECT ALL + ( col1 ) + - col1 DIV 47 AS col1 FROM tab0
----
85
90
95

skipif mysql # not compatible
query I rowsort label-814
SELECT ALL + ( col1 ) + - col1 / 47 AS col1 FROM tab0
----
85
90
95

query I rowsort
SELECT DISTINCT 58 + tab1.col2 AS col1 FROM tab1
----
112
115
154

query I rowsort
SELECT col2 * col1 + col0 * - 54 * + 35 - col1 FROM tab2 AS cor0
----
-12424
-145945
-148681

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

query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col0 + cor0.col2 AS col2 FROM tab1, tab1 AS cor0
----
-108
-3591
-7584

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

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

query I rowsort
SELECT DISTINCT - 85 + col1 AS col2 FROM tab1 AS cor0
----
-59
-72
-75

query I rowsort
SELECT - col2 - 33 AS col2 FROM tab2 AS cor0
----
-59
-60
-71

query I rowsort
SELECT - col2 * - 55 FROM tab1
----
2970
3135
5280

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

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

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

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

query I rowsort
SELECT 18 - col2 AS col2 FROM tab1
----
-36
-39
-78

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

skipif mysql # not compatible
query I rowsort label-827
SELECT col0 + col2 * + CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
2919
3313
9296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - 21 * + 3 col0 FROM tab1 AS cor0
----
3402
3591
6048

query I rowsort
SELECT col1 * col0 * 82 + + tab2.col2 FROM tab2
----
110164
17821
377390

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

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL - col1 + - CAST ( - ( col0 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-831
SELECT DISTINCT - col2 DIV + col2 + col0 + col1 * + cor0.col1 FROM tab1 AS cor0
----
163
248
678

skipif mysql # not compatible
query I rowsort label-831
SELECT DISTINCT - col2 / + col2 + col0 + col1 * + cor0.col1 FROM tab1 AS cor0
----
163
248
678

query I rowsort
SELECT ALL + col2 * + col2 + col1 * col1 FROM tab2 AS cor0
----
1690
1733
4157

onlyif mysql # use DIV operator for integer division
query I rowsort label-833
SELECT DISTINCT col1 * col2 - col2 DIV + col0 FROM tab2 AS cor0
----
1534
646
834

skipif mysql # not compatible
query I rowsort label-833
SELECT DISTINCT col1 * col2 - col2 / + col0 FROM tab2 AS cor0
----
1534
646
834

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

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

query I rowsort
SELECT + col0 + + 57 AS col1 FROM tab2 cor0
----
135
136
64

query I rowsort
SELECT ALL + col1 * - ( + col2 + - col1 ) FROM tab0
----
4558
819
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 75 + col2 col1 FROM tab0 AS cor0
----
-1767
-2624
-6593

query I rowsort
SELECT ALL col1 * - ( - 2 ) FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL - col0 + ( - cor0.col1 ) * ( 79 ) AS col0 FROM tab0 AS cor0
----
-6818
-7278
-7698

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

query I rowsort
SELECT - col0 + 51 FROM tab1 AS cor0
----
-13
-29
48

query I rowsort
SELECT ALL ( + col2 ) * + cor0.col0 + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT + col0 - + 29 AS col2 FROM tab1 AS cor0
----
-26
35
51

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-846
SELECT ALL + 60 DIV + 19 FROM tab1 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL + 60 / + 19 FROM tab1 AS cor0
----
3
3
3

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

query I rowsort
SELECT + col2 + 31 * - col2 FROM tab0
----
-2460
-30
-990

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

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

query I rowsort
SELECT 99 AS col2 FROM tab2 cor0
----
99
99
99

query I rowsort
SELECT ALL + - 53 * + col1 FROM tab2 cor0
----
-1643
-3127
-901

onlyif mysql # use DIV operator for integer division
query I rowsort label-853
SELECT + col0 DIV - col0 + - col0 + + col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
7371
8191
9373

skipif mysql # not compatible
query I rowsort label-853
SELECT + col0 / - col0 + - col0 + + col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
7371
8191
9373

query I rowsort
SELECT - 16 + col2 FROM tab1 AS cor0
----
38
41
80

query I rowsort
SELECT DISTINCT - + ( col2 ) + col1 * 49 AS col0 FROM tab0 AS cor0
----
4181
4377
4752

query I rowsort
SELECT ALL + ( cor0.col2 ) + + cor1.col1 * - 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d0403203ba17281773d3a0cc3bfe3ead

query I rowsort
SELECT - col1 + col0 + - ( 91 ) * cor0.col2 FROM tab0 AS cor0
----
-153
-3065
-7464

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

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

query I rowsort
SELECT DISTINCT - col2 * col0 - - 76 * col1 AS col2 FROM tab2 AS cor0
----
-1710
2167
2456

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-861
SELECT ALL 72 DIV - col2 FROM tab0 cor0
----
-2
-72
0

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL 72 / - col2 FROM tab0 cor0
----
-2
-72
0

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

query I rowsort
SELECT + 76 * col2 FROM tab2 AS cor0
----
1976
2052
2888

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-866
SELECT - col1 DIV col0 + + cor0.col2 + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4039
-6304
37

skipif mysql # not compatible
query I rowsort label-866
SELECT - col1 / col0 + + cor0.col2 + - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4039
-6304
37

query I rowsort
SELECT cor0.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

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

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

query I rowsort
SELECT 96 + col0 FROM tab2 AS cor0
----
103
174
175

query I rowsort
SELECT DISTINCT - - 94 * 87 - + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
8081
8087
8092

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 + + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1612
725
844

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-879
SELECT DISTINCT + + col0 DIV - 33 FROM tab1 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-879
SELECT DISTINCT + + col0 / - 33 FROM tab1 cor0
----
-1
-2
0

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-882
SELECT ALL - + col0 * - 39 - col1 DIV ( - col0 ) AS col1 FROM tab1 AS cor0
----
125
2496
3120

skipif mysql # not compatible
query I rowsort label-882
SELECT ALL - + col0 * - 39 - col1 / ( - col0 ) AS col1 FROM tab1 AS cor0
----
125
2496
3120

query I rowsort
SELECT + col2 + 18 FROM tab1 cor0
----
114
72
75

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

query I rowsort
SELECT DISTINCT col1 * - 87 AS col2 FROM tab2 AS cor0
----
-1479
-2697
-5133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - ( + col2 ) col1 FROM tab1 AS cor0
----
-28
-47
-83

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

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL - CAST ( NULL AS INTEGER ) * + 91 + - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 67 + col0 FROM tab2 AS cor0
----
145
146
74

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

query I rowsort
SELECT col2 * - 88 + + col2 AS col0 FROM tab1
----
-4698
-4959
-8352

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-891
SELECT CAST( 26 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
2314
624
910

skipif mysql # not compatible
query I rowsort label-891
SELECT CAST ( 26 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
2314
624
910

query I rowsort
SELECT - 73 * 90 + col0 * 85 AS col2 FROM tab1 AS cor0
----
-1130
-6315
230

query I rowsort
SELECT 30 + 66 FROM tab0 AS cor0
----
96
96
96

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

query I rowsort
SELECT + + col1 * 86 AS col0 FROM tab1 AS cor0
----
1118
2236
860

query I rowsort
SELECT - 48 * + col0 AS col1 FROM tab1 AS cor0
----
-144
-3072
-3840

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

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

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

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

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

query I rowsort
SELECT + 90 * col2 FROM tab1
----
4860
5130
8640

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

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

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

query I rowsort
SELECT + - cor0.col2 * ( cor0.col2 ) + col2 * + col1 FROM tab0 AS cor0
----
1749
738
96

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

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

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

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

query I rowsort
SELECT ALL + col2 + col0 * - ( cor0.col2 ) * ( col2 + + col1 ) AS col2 FROM tab1 cor0
----
-12906
-244359
-837024

onlyif mysql # use DIV operator for integer division
query I rowsort label-912
SELECT ALL + col1 DIV - 14 + col0 AS col0 FROM tab1 AS cor0
----
2
64
80

skipif mysql # not compatible
query I rowsort label-912
SELECT ALL + col1 / - 14 + col0 AS col0 FROM tab1 AS cor0
----
2
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-913
SELECT ALL + col0 DIV - 7 FROM tab2 AS cor0
----
-1
-11
-11

skipif mysql # not compatible
query I rowsort label-913
SELECT ALL + col0 / - 7 FROM tab2 AS cor0
----
-1
-11
-11

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

query I rowsort
SELECT - col1 * 63 FROM tab1 cor0
----
-1638
-630
-819

query I rowsort
SELECT DISTINCT col2 * 52 + col1 FROM tab0 AS cor0
----
149
1802
4355

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

query I rowsort
SELECT ALL - cor0.col2 + 59 * + 94 AS col1 FROM tab2 AS cor0
----
5508
5519
5520

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

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

query I rowsort
SELECT ALL + col0 + col2 * + 89 FROM tab1 AS cor0
----
4809
5137
8624

query I rowsort
SELECT DISTINCT + cor0.col2 + 3 AS col2 FROM tab0 AS cor0
----
36
4
85

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-923
SELECT ALL cor0.col1 + - col2 DIV 59 AS col2 FROM tab1 AS cor0
----
10
12
26

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL cor0.col1 + - col2 / 59 AS col2 FROM tab1 AS cor0
----
10
12
26

query I rowsort
SELECT ALL - col0 + ( - 74 ) AS col0 FROM tab1 AS cor0
----
-138
-154
-77

query I rowsort
SELECT ALL col1 + 9 AS col2 FROM tab2 AS cor0
----
26
40
68

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

query I rowsort
SELECT DISTINCT - col0 + + 65 AS col0 FROM tab0 AS cor0
----
-24
30
41

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

query I rowsort
SELECT - 84 - + col2 * + col0 FROM tab2 AS cor0
----
-2112
-273
-3086

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

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

query I rowsort
SELECT col2 * col0 - col2 * 4 FROM tab0 AS cor0
----
31
660
6970

onlyif mysql # use DIV operator for integer division
query I rowsort label-933
SELECT col1 DIV tab1.col0 - col1 * col2 FROM tab1
----
-1248
-1396
-570

skipif mysql # not compatible
query I rowsort label-933
SELECT col1 / tab1.col0 - col1 * col2 FROM tab1
----
-1248
-1396
-570

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

query I rowsort
SELECT + col0 + col1 * + ( + col2 * col0 + + ( + col2 ) * col2 ) FROM tab1 AS cor0
----
219728
69034
80031

query I rowsort
SELECT DISTINCT - + ( - col1 ) * 73 AS col1 FROM tab2 cor0
----
1241
2263
4307

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

query I rowsort
SELECT ALL col1 * - col1 * col1 FROM tab1
----
-1000
-17576
-2197

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

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE ( col0 / - col2 ) >= + col2
----

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * col0 * - 52 AS col0 FROM tab0
----
-29952
-411892
-63700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 75 col1 FROM tab0
----
1800
2625
6675

query I rowsort
SELECT ALL col1 * 61 FROM tab0
----
5246
5551
5917

query I rowsort
SELECT DISTINCT 76 * 30 FROM tab1, tab0 AS cor0
----
2280

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-952
SELECT col0 + - CAST( 48 AS SIGNED ) FROM tab0 cor0
----
-13
-24
41

skipif mysql # not compatible
query I rowsort label-952
SELECT col0 + - CAST ( 48 AS INTEGER ) FROM tab0 cor0
----
-13
-24
41

query I rowsort
SELECT DISTINCT + 83 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
83

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-955
SELECT ALL - ( + col2 ) DIV col0 + + 62 * + col0 * col0 FROM tab1
----
253952
396799
540

skipif mysql # not compatible
query I rowsort label-955
SELECT ALL - ( + col2 ) / col0 + + 62 * + col0 * col0 FROM tab1
----
253952
396799
540

query I rowsort
SELECT + 8 * - col1 FROM tab2
----
-136
-248
-472

query I rowsort
SELECT 43 * - col1 FROM tab1
----
-1118
-430
-559

query I rowsort
SELECT + 90 + 85 * - col1 FROM tab0
----
-7220
-7645
-8155

query I rowsort
SELECT ALL - col0 + 50 FROM tab0
----
-39
15
26

query I rowsort
SELECT ALL + 11 + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1078
-6713
10

query I rowsort
SELECT ALL - col2 * 3 - col0 AS col1 FROM tab2 cor0
----
-156
-193
-88

query I rowsort
SELECT DISTINCT ( ( + col0 ) ) * - 93 + 51 + + col0 FROM tab2 cor0
----
-593
-7125
-7217

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

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

query I rowsort
SELECT DISTINCT col0 + + col0 + - col2 AS col2 FROM tab2 AS cor0
----
-13
120
130

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-967
SELECT - - col2 + col1 DIV 15 AS col1 FROM tab0 cor0
----
38
7
88

skipif mysql # not compatible
query I rowsort label-967
SELECT - - col2 + col1 / 15 AS col1 FROM tab0 cor0
----
38
7
88

query I rowsort
SELECT ALL + col0 + - col0 * 50 AS col2 FROM tab2 AS cor0
----
-343
-3822
-3871

query I rowsort
SELECT ALL - - 79 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1327
1483
649

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

query I rowsort
SELECT 68 + col1 AS col2 FROM tab2 AS cor0
----
127
85
99

query I rowsort
SELECT DISTINCT - + col0 * col2 + + 99 * 31 FROM tab0 AS cor0
----
-4229
2277
3034

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

query I rowsort
SELECT + col0 + + col2 * - col1 + + 6 FROM tab0 AS cor0
----
-2808
-56
-7367

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

query I rowsort
SELECT + 37 * cor0.col2 + ( col2 + cor0.col0 * - 20 ) AS col1 FROM tab0 AS cor0
----
-662
1336
774

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

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 * - col2 * col2 IN ( col0 * - col2 ) OR NULL NOT BETWEEN NULL AND ( NULL )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 + - col2 * - col2 col0 FROM tab2 cor0
----
1365
598
722

query I rowsort
SELECT col1 * - col1 + + cor0.col0 FROM tab2 AS cor0
----
-210
-3403
-954

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

query I rowsort
SELECT ALL + 12 + - col1 * + col1 + + col0 FROM tab1
----
-24
-661
-77

query I rowsort
SELECT 18 * - col0 + col0 * col1 FROM tab0 AS cor0
----
1632
2765
6497

onlyif mysql # use DIV operator for integer division
query I rowsort label-986
SELECT ( + ( - col1 ) ) * + col0 DIV col0 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-986
SELECT ( + ( - col1 ) ) * + col0 / col0 FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-987
SELECT ALL - col0 * + 58 + col2 DIV + col1 + + col1 AS col1 FROM tab1
----
-146
-3697
-4620

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL - col0 * + 58 + col2 / + col1 + + col1 AS col1 FROM tab1
----
-146
-3697
-4620

query I rowsort
SELECT DISTINCT col0 * 96 FROM tab2
----
672
7488
7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-989
SELECT ALL - CAST( + 66 AS SIGNED ) + col2 FROM tab1
----
-12
-9
30

skipif mysql # not compatible
query I rowsort label-989
SELECT ALL - CAST ( + 66 AS INTEGER ) + col2 FROM tab1
----
-12
-9
30

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

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

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

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

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

query I rowsort
SELECT - col1 + + col0 * cor0.col0 AS col2 FROM tab1 cor0
----
-17
4086
6387

query I rowsort
SELECT DISTINCT - col1 * - col0 * col0 AS col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT col1 + - col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND + col0
----

query I rowsort
SELECT col1 * - tab1.col0 + col0 * + col0 AS col1 FROM tab1
----
-69
3456
5360

query I rowsort
SELECT + col2 + + col1 / col0 AS col2 FROM tab1 WHERE NOT NULL = NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-999
SELECT ALL - col0 + tab0.col0 / - col1 col2 FROM tab0
----
-24
-35
-89

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1002
SELECT ALL tab2.col0 DIV tab2.col0 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL tab2.col0 / tab2.col0 AS col1 FROM tab2
----
1
1
1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1004
SELECT col2 * - col0 + - col0 - col0 DIV + col1 AS col2 FROM tab0
----
-70
-7387
-816

skipif mysql # not compatible
query I rowsort label-1004
SELECT col2 * - col0 + - col0 - col0 / + col1 AS col2 FROM tab0
----
-70
-7387
-816

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

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

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL + tab1.col0 / + tab1.col1 AS col0 FROM tab1
----
0
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1007
SELECT DISTINCT - col1 * - col1 DIV - col1 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-1007
SELECT DISTINCT - col1 * - col1 / - col1 FROM tab1
----
-10
-13
-26

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

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

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

query I rowsort
SELECT tab2.col1 AS col1 FROM tab2 WHERE NOT NULL IN ( tab2.col1 / col0 )
----

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

query I rowsort
SELECT DISTINCT col1 * + col1 + + col1 - - col2 * tab2.col0 AS col2 FROM tab2
----
1181
3308
5568

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

query I rowsort
SELECT ALL + col1 - tab2.col1 * - tab2.col1 FROM tab2
----
306
3540
992

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

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

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

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

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

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

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

query I rowsort
SELECT - tab0.col2 FROM tab0 WHERE NOT + col0 + col1 < NULL
----

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1026
SELECT DISTINCT - cor0.col0 DIV cor0.col0 FROM tab0, tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1026
SELECT DISTINCT - cor0.col0 / cor0.col0 FROM tab0, tab1 AS cor0
----
-1

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

skipif mysql # not compatible
query I rowsort label-1027
SELECT ALL - cor0.col0 * col1 / col1 FROM tab2 AS cor0
----
-7
-78
-79

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

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

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

query I rowsort
SELECT - + col2 + + 73 AS col1 FROM tab1 cor0
----
-23
16
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-1031
SELECT ALL + col1 + + col0 DIV - col2 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL + col1 + + col0 / - col2 FROM tab1 AS cor0
----
13
26
9

query I rowsort
SELECT 54 * 82 + + col0 AS col0 FROM tab2 AS cor0
----
4435
4506
4507

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

query I rowsort
SELECT DISTINCT - col1 * col0 * col0 - - 79 * col2 FROM tab2 AS cor0
----
-103095
-356902
614

onlyif mysql # use DIV operator for integer division
query I rowsort label-1035
SELECT DISTINCT - 6 DIV cor0.col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1035
SELECT DISTINCT - 6 / cor0.col1 FROM tab2 cor0
----
0

query I rowsort
SELECT - - 12 * cor0.col1 + - col2 FROM tab1 cor0
----
258
60
63

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

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

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

skipif mysql # not compatible
query I rowsort label-1039
SELECT + + col1 + - col0 * CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-1040
SELECT DISTINCT + col2 DIV col0 + - 5 FROM tab0 AS cor0
----
-4
-5

skipif mysql # not compatible
query I rowsort label-1040
SELECT DISTINCT + col2 / col0 + - 5 FROM tab0 AS cor0
----
-4
-5

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

query I rowsort
SELECT - col1 + ( 79 + col0 ) * col0 FROM tab1 AS cor0
----
12707
220
9142

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

query I rowsort
SELECT ALL + + col0 + 59 * - col1 FROM tab0 cor0
----
-5050
-5280
-5688

query I rowsort
SELECT ALL col2 + col2 - col0 FROM tab1 AS cor0
----
105
112
50

query I rowsort
SELECT - - col2 * + col1 + col1 * col2 FROM tab1 AS cor0
----
1140
2496
2808

query I rowsort
SELECT - col2 * col1 - col0 * col2 AS col0 FROM tab2 AS cor0
----
-1026
-3562
-3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-1048
SELECT ALL 83 DIV + col1 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL 83 / + col1 FROM tab2 AS cor0
----
1
2
4

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1050
SELECT + - ( + col2 ) DIV - col2 + + col1 FROM tab1 cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-1050
SELECT + - ( + col2 ) / - col2 + + col1 FROM tab1 cor0
----
11
14
27

query I rowsort
SELECT DISTINCT + col1 * 91 FROM tab2 cor0
----
1547
2821
5369

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1054
SELECT DISTINCT - - 83 DIV + 31 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT - - 83 / + 31 FROM tab2 AS cor0
----
2

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

query I rowsort
SELECT ALL col1 + ( 2 ) AS col0 FROM tab2
----
19
33
61

query I rowsort
SELECT DISTINCT - 59 * col0 + cor0.col1 FROM tab1 AS cor0
----
-151
-3766
-4707

query I rowsort
SELECT - - 43 + + 38 AS col1 FROM tab1 AS cor0
----
81
81
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1059
SELECT ALL - + 22 * - col2 + col0 * - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
643
6656
7077

skipif mysql # not compatible
query I rowsort label-1059
SELECT ALL - + 22 * - col2 + col0 * - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
643
6656
7077

onlyif mysql # use DIV operator for integer division
query I rowsort label-1060
SELECT DISTINCT col0 DIV 17 + + col2 AS col2 FROM tab2
----
27
30
42

skipif mysql # not compatible
query I rowsort label-1060
SELECT DISTINCT col0 / 17 + + col2 AS col2 FROM tab2
----
27
30
42

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

query I rowsort
SELECT DISTINCT col1 + - 23 FROM tab2
----
-6
36
8

query I rowsort
SELECT + 6 * col2 FROM tab1 cor0
----
324
342
576

query I rowsort
SELECT col2 + 81 AS col2 FROM tab2
----
107
108
119

query I rowsort
SELECT + 47 * - 5 AS col0 FROM tab1
----
-235
-235
-235

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

query I rowsort
SELECT DISTINCT 14 + col0 * + col1 + + col2 FROM tab0
----
2111
3410
8195

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

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

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

query I rowsort
SELECT DISTINCT - + col1 * - 53 * + col2 FROM tab0 AS cor0
----
150414
395486
5141

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

query I rowsort
SELECT DISTINCT 57 + - cor0.col0 FROM tab0, tab1, tab0 AS cor0
----
-32
22
33

query I rowsort
SELECT tab1.col0 * + 59 FROM tab1
----
177
3776
4720

query I rowsort
SELECT ( - 45 ) * + cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to e4d5c63cd450f2b33efe605cd738029d

query I rowsort
SELECT + col2 * + 74 - cor0.col0 * col1 FROM tab2 AS cor0
----
-2678
1469
1781

query I rowsort
SELECT DISTINCT - - col1 + 51 * col2 AS col2 FROM tab2 AS cor0
----
1385
1408
1955

onlyif mysql # use DIV operator for integer division
query I rowsort label-1077
SELECT - + col1 DIV - col1 + - 27 FROM tab0 cor0
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-1077
SELECT - + col1 / - col1 + - 27 FROM tab0 cor0
----
-26
-26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 - - col2 col1 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT DISTINCT col1 * - 6 FROM tab0 AS cor0
----
-516
-546
-582

query I rowsort
SELECT col2 + col1 * 74 AS col1 FROM tab0 AS cor0
----
6397
6816
7179

query I rowsort
SELECT DISTINCT + - col1 * ( col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL 54 * col0 FROM tab1
----
162
3456
4320

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

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

query I rowsort
SELECT 48 * - col1 + - 24 FROM tab1 AS cor0
----
-1272
-504
-648

query I rowsort
SELECT - + col1 + - col0 * - col0 AS col1 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT col0 * 9 + - 56 AS col0 FROM tab0 AS cor0
----
160
259
745

query I rowsort
SELECT + col0 * - 19 FROM tab0 cor0
----
-1691
-456
-665

query I rowsort
SELECT - col0 * cor0.col1 * - col0 FROM tab2 AS cor0
----
106097
1519
358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 52 col0 FROM tab0 AS cor0
----
138
143
149

query I rowsort
SELECT - cor0.col2 + - ( 99 ) AS col1 FROM tab2 AS cor0
----
-125
-126
-137

query I rowsort
SELECT - - col2 + + 58 AS col2 FROM tab1 AS cor0
----
112
115
154

query I rowsort
SELECT + ( - 52 ) * - col1 AS col0 FROM tab0 AS cor0
----
4472
4732
5044

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

skipif mysql # not compatible
query I rowsort label-1094
SELECT - CAST ( + col1 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
-2838
-7462
-97

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

query I rowsort
SELECT + 82 * + col0 * col1 FROM tab2 AS cor0
----
110126
17794
377364

query I rowsort
SELECT DISTINCT - 95 * + cor0.col1 FROM tab2 AS cor0
----
-1615
-2945
-5605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 7 col1 FROM tab0 AS cor0
----
231
574
7

query I rowsort
SELECT - - 47 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-329
-3666
-3713

onlyif mysql # use DIV operator for integer division
query I rowsort label-1100
SELECT col0 + ( col0 ) DIV + tab0.col0 AS col0 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-1100
SELECT col0 + ( col0 ) / + tab0.col0 AS col0 FROM tab0
----
25
36
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1101
SELECT + CAST( NULL AS DECIMAL ) * 32 AS col2 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-1101
SELECT + CAST ( NULL AS REAL ) * 32 AS col2 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT col1 * - col2 - + 92 * cor0.col2 FROM tab0 AS cor0
----
-15006
-189
-5874

query I rowsort
SELECT ALL + 46 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1 cor1
----
81 values hashing to 086e8f56201fbf4c0ce74087e710811d

query I rowsort
SELECT cor2.col1 - cor1.col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2, tab1 AS cor1, tab0 AS cor2
----
729 values hashing to 00800f84633c93f94fddc72dc0bf045f

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

query I rowsort
SELECT 96 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT ALL + - 97 * + col1 + - col1 + + col1 AS col0 FROM tab0 AS cor0
----
-8342
-8827
-9409

query I rowsort
SELECT DISTINCT - 84 + col2 AS col1 FROM tab0 AS cor0
----
-2
-51
-83

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

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

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

query I rowsort
SELECT ALL + ( - col2 ) + 68 FROM tab1 cor0
----
-28
11
14

query I rowsort
SELECT + 88 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # use DIV operator for integer division
query I rowsort label-1113
SELECT ALL + 34 DIV + tab1.col0 FROM tab1
----
0
0
11

skipif mysql # not compatible
query I rowsort label-1113
SELECT ALL + 34 / + tab1.col0 FROM tab1
----
0
0
11

query I rowsort
SELECT 77 + col2 FROM tab0
----
110
159
78

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

query I rowsort
SELECT DISTINCT col0 * + col1 - 75 FROM tab0
----
1989
3320
8024

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

query I rowsort
SELECT DISTINCT - 34 * col2 - + col0 FROM tab1
----
-1839
-2002
-3344

query I rowsort
SELECT 16 + col1 - - col2 AS col2 FROM tab1 AS cor0
----
125
83
96

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

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

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

skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL CAST ( col1 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT 23 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT - - col2 * - 69 FROM tab1 cor0
----
-3726
-3933
-6624

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

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

query I rowsort
SELECT - 66 * col1 - col2 FROM tab0
----
-5709
-6088
-6403

query I rowsort
SELECT + 4 - - col0 AS col1 FROM tab1
----
68
7
84

query I rowsort
SELECT ALL - - 5 * col2 * col1 FROM tab0 AS cor0
----
14190
37310
485

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

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

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

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

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

query I rowsort
SELECT ALL - cor1.col1 * + cor0.col1 + 18 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 83d4bdf12a2dca63b1cc0bb6d4f2446c

query I rowsort
SELECT ALL - cor1.col0 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT + col2 * cor0.col0 + - 33 FROM tab0 AS cor0
----
2
7265
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-1135
SELECT + col2 * 96 + col1 DIV - col2 FROM tab1 AS cor0
----
5184
5472
9216

skipif mysql # not compatible
query I rowsort label-1135
SELECT + col2 * 96 + col1 / - col2 FROM tab1 AS cor0
----
5184
5472
9216

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

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

query I rowsort
SELECT - + col1 * ( - 93 ) FROM tab2 cor0
----
1581
2883
5487

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 * + col2 + 80 col1 FROM tab1
----
4724
4982
8336

query I rowsort
SELECT ALL + col2 + + col0 + tab2.col0 AS col1 FROM tab2
----
182
196
41

query I rowsort
SELECT ALL 68 + - col0 FROM tab1
----
-12
4
65

query I rowsort
SELECT ALL col2 + col0 + col2 AS col1 FROM tab2
----
130
155
61

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 36 col1 FROM tab2 cor0
----
-1368
-936
-972

query I rowsort
SELECT DISTINCT + col0 * - 52 AS col2 FROM tab2 cor0
----
-364
-4056
-4108

query I rowsort
SELECT ALL col1 * 21 FROM tab2 AS cor0
----
1239
357
651

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

skipif mysql # not compatible
query I rowsort label-1150
SELECT - col2 + col0 / + 58 FROM tab1 AS cor0
----
-54
-56
-95

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

query I rowsort
SELECT ALL col1 + + 48 FROM tab2 AS cor0
----
107
65
79

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL - - col2 / + col0 col1 FROM tab1 AS cor0
----
0
1
18

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

query I rowsort
SELECT ALL ( - 27 ) - col0 * 33 FROM tab1
----
-126
-2139
-2667

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

query I rowsort
SELECT DISTINCT + - col2 * col0 * col1 + - 86 AS col1 FROM tab1 AS cor0
----
-36566
-4298
-99926

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

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

query I rowsort
SELECT ALL - 71 * + col2 + + ( ( + col2 ) * 79 ) AS col1 FROM tab0 AS cor0
----
264
656
8

query I rowsort
SELECT + + col2 * col2 + + ( 38 ) FROM tab0 AS cor0
----
1127
39
6762

query I rowsort
SELECT + - col0 * + col1 - + 56 FROM tab2 AS cor0
----
-1399
-273
-4658

query I rowsort
SELECT + 12 * col2 * col0 + col2 AS col2 FROM tab0
----
421
87658
9537

query I rowsort
SELECT DISTINCT col1 + tab2.col2 * + 83 FROM tab2
----
2217
2272
3171

onlyif mysql # use DIV operator for integer division
query I rowsort label-1164
SELECT DISTINCT + - col2 DIV col1 + - col0 * + col2 FROM tab1 AS cor0
----
-164
-3653
-7687

skipif mysql # not compatible
query I rowsort label-1164
SELECT DISTINCT + - col2 / col1 + - col0 * + col2 FROM tab1 AS cor0
----
-164
-3653
-7687

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

query I rowsort
SELECT + - col2 * - col2 + col1 * + col2 - col2 AS col2 FROM tab0 cor0
----
14104
3894
97

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1168
SELECT + 74 DIV + cor0.col2 FROM tab0 AS cor0
----
0
2
74

skipif mysql # not compatible
query I rowsort label-1168
SELECT + 74 / + cor0.col2 FROM tab0 AS cor0
----
0
2
74

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

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

query I rowsort
SELECT DISTINCT + + 41 + - col1 * col2 * - col0 FROM tab0 AS cor0
----
3436
664159
68153

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

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

query I rowsort
SELECT + col1 * col2 - + col1 FROM tab1 AS cor0
----
1235
1378
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-1176
SELECT - - col0 DIV CAST( col1 AS SIGNED ) - - col0 * + col2 AS col0 FROM tab2 AS cor0
----
189
2029
3006

skipif mysql # not compatible
query I rowsort label-1176
SELECT - - col0 / CAST ( col1 AS INTEGER ) - - col0 * + col2 AS col0 FROM tab2 AS cor0
----
189
2029
3006

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

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

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

query I rowsort
SELECT - - col0 * 66 AS col1 FROM tab0 AS cor0
----
1584
2310
5874

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT + 82 * - col1 AS col2 FROM tab2 AS cor0
----
-1394
-2542
-4838

query I rowsort
SELECT + - col1 + 91 * col2 AS col1 FROM tab1 AS cor0
----
4888
5177
8723

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

query I rowsort
SELECT col0 * + col1 - 52 FROM tab0
----
2012
3343
8047

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

query I rowsort
SELECT col2 * 50 * + col2 + + 78 FROM tab0
----
128
336278
54528

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

query I rowsort
SELECT - 83 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1079
-2158
-830

query I rowsort
SELECT 36 * col0 FROM tab1 AS cor0
----
108
2304
2880

query I rowsort
SELECT ALL 92 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 84 ) + + col1 - + ( + cor0.col1 + col0 ) * - col0 col1 FROM tab2 AS cor0
----
10829
381
7685

query I rowsort
SELECT DISTINCT - + 13 * - col0 AS col2 FROM tab0 AS cor0
----
1157
312
455

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

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

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

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

query I rowsort
SELECT ALL + 50 * col1 * - col0 + + 61 - col1 AS col2 FROM tab1
----
-31949
-3865
-51952

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

query I rowsort
SELECT cor0.col0 + - col1 - col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - 31 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac

query I rowsort
SELECT - 92 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1202
SELECT col1 + + col2 * col1 DIV + 60 AS col0 FROM tab1 AS cor0
----
19
33
49

skipif mysql # not compatible
query I rowsort label-1202
SELECT col1 + + col2 * col1 / + 60 AS col0 FROM tab1 AS cor0
----
19
33
49

query I rowsort
SELECT 35 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT DISTINCT + 80 * col1 AS col2 FROM tab2 cor0
----
1360
2480
4720

query I rowsort
SELECT + - cor0.col0 * - 15 * - col2 FROM tab1 AS cor0
----
-115200
-2430
-54720

query I rowsort
SELECT + tab0.col1 + col2 * tab0.col1 * - col1 AS col0 FROM tab0
----
-243982
-678951
-9312

query I rowsort
SELECT ALL + + col1 + 99 AS col0 FROM tab1 AS cor0
----
109
112
125

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

query I rowsort
SELECT + col0 * + col1 + ( col2 ) FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT - col2 + - ( - col0 ) * 72 FROM tab1 AS cor0
----
162
4551
5664

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

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

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

query I rowsort
SELECT DISTINCT 26 * + 4 AS col1 FROM tab0 cor0
----
104

query I rowsort
SELECT ALL - col0 * col0 + col0 * - col2 + col0 * - col1 FROM tab0 AS cor0
----
-23318
-3432
-4655

query I rowsort
SELECT - 85 + + col2 AS col0 FROM tab1 AS cor0
----
-28
-31
11

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

query I rowsort
SELECT DISTINCT + 13 + - 66 FROM tab1 AS cor0
----
-53

query I rowsort
SELECT ALL - 14 - + col1 FROM tab2 AS cor0
----
-31
-45
-73

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

query I rowsort
SELECT DISTINCT - 45 * - col1 * + col2 FROM tab2 AS cor0
----
29070
37665
69030

query I rowsort
SELECT DISTINCT + col1 * col1 * + 50 + - col1 * + col2 FROM tab2 AS cor0
----
13804
172516
47213

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 + - col1 col2 FROM tab1 AS cor0
----
-1261
-1430
-580

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

query I rowsort
SELECT ALL cor0.col0 * - col2 - 73 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-13520
-381
-8320

query I rowsort
SELECT ALL - 23 FROM tab0, tab1 cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT DISTINCT 43 * tab1.col1 FROM tab1
----
1118
430
559

query I rowsort
SELECT DISTINCT + 30 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-1230
SELECT - col0 + col2 DIV + ( col0 ) FROM tab2 cor0
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-1230
SELECT - col0 + col2 / + ( col0 ) FROM tab2 cor0
----
-4
-78
-79

query I rowsort
SELECT DISTINCT col1 + - col1 * 89 FROM tab1
----
-1144
-2288
-880

query I rowsort
SELECT ALL col1 * + col0 - col0 * col0 FROM tab1 AS cor0
----
-3456
-5360
69

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

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

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

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

query I rowsort
SELECT ALL + 82 * 34 FROM tab0 AS cor0
----
2788
2788
2788

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

query I rowsort
SELECT DISTINCT cor0.col2 * 24 FROM tab1 AS cor0
----
1296
1368
2304

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

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

query I rowsort
SELECT + 69 * + col1 + col2 FROM tab0 cor0
----
5967
6361
6694

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

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

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

skipif mysql # not compatible
query I rowsort label-1242
SELECT - CAST ( 78 AS INTEGER ) AS col2 FROM tab1 cor0
----
-78
-78
-78

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

query I rowsort
SELECT 3 + + col1 - cor0.col2 * - cor0.col1 FROM tab1 cor0
----
1264
1433
583

query I rowsort
SELECT DISTINCT col2 + + 35 AS col0 FROM tab2
----
61
62
73

query I rowsort
SELECT DISTINCT - 78 + col1 AS col1 FROM tab1 AS cor0
----
-52
-65
-68

query I rowsort
SELECT ALL - col2 * - ( - col1 + - cor0.col0 * cor0.col2 ) FROM tab1 AS cor0
----
-10152
-208506
-738528

query I rowsort
SELECT ALL + - col2 + col1 * + col2 * col1 AS col2 FROM tab0 AS cor0
----
244035
678960
9408

query I rowsort
SELECT DISTINCT 81 + 52 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
133

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

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

query I rowsort
SELECT ALL - col0 + - ( 47 ) * col2 AS col2 FROM tab1 AS cor0
----
-2541
-2743
-4592

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

skipif mysql # not compatible
query I rowsort
SELECT + col1 * CAST ( 77 AS REAL ) FROM tab2 AS cor0
----
1309
2387
4543

query I rowsort
SELECT ALL col2 * 90 FROM tab1 AS cor0
----
4860
5130
8640

query I rowsort
SELECT col1 + ( 40 ) AS col2 FROM tab0
----
126
131
137

query I rowsort
SELECT 54 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT + col1 + 96 AS col2 FROM tab0 AS cor0
----
182
187
193

query I rowsort
SELECT DISTINCT cor0.col1 + + ( - cor0.col2 ) + col0 * - col2 FROM tab2 cor0
----
-185
-1995
-3023

query I rowsort
SELECT DISTINCT + col0 + - 65 FROM tab1 AS cor0
----
-1
-62
15

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

query I rowsort
SELECT ALL + + 62 + + 45 FROM tab0 AS cor0
----
107
107
107

query I rowsort
SELECT + 33 * - 25 AS col2 FROM tab1 AS cor0
----
-825
-825
-825

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

query I rowsort
SELECT DISTINCT + ( 85 ) * col2 * - cor0.col2 AS col2 FROM tab1 cor0
----
-247860
-276165
-783360

query I rowsort
SELECT col2 + 62 * - cor0.col2 AS col1 FROM tab0 cor0
----
-2013
-5002
-61

query I rowsort
SELECT - ( col2 ) * - col2 * col2 AS col0 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT ALL + + 77 + - col1 AS col0 FROM tab2 cor0
----
18
46
60

query I rowsort
SELECT ( col2 + col2 ) * ( + col1 ) AS col0 FROM tab1
----
1140
2496
2808

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

query I rowsort
SELECT DISTINCT - 78 - col1 AS col2 FROM tab2 AS cor0
----
-109
-137
-95

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * - 82 FROM tab0 AS cor0
----
-2706
-6724
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1276
SELECT DISTINCT + cor0.col1 + 94 DIV cor0.col1 + col1 AS col2 FROM tab0 AS cor0
----
173
183
194

skipif mysql # not compatible
query I rowsort label-1276
SELECT DISTINCT + cor0.col1 + 94 / cor0.col1 + col1 AS col2 FROM tab0 AS cor0
----
173
183
194

query I rowsort
SELECT ALL + col0 * + 40 - col1 AS col2 FROM tab0 AS cor0
----
1303
3469
874

query I rowsort
SELECT ALL - col0 * + col1 + + 25 FROM tab2 AS cor0
----
-1318
-192
-4577

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

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

query I rowsort
SELECT DISTINCT + 82 FROM tab0, tab1 cor0
----
82

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

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

query I rowsort
SELECT - col2 + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT 20 * - col1 AS col2 FROM tab1 AS cor0
----
-200
-260
-520

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

query I rowsort
SELECT - 64 + + col2 FROM tab1
----
-10
-7
32

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

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

query I rowsort
SELECT ( 6 ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1293
SELECT ALL col1 DIV - 4 AS col1 FROM tab0
----
-21
-22
-24

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL col1 / - 4 AS col1 FROM tab0
----
-21
-22
-24

query I rowsort
SELECT col1 * - 35 FROM tab1
----
-350
-455
-910

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

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

query I rowsort
SELECT + + ( 46 ) * cor0.col0 * - 50 FROM tab1 AS cor0
----
-147200
-184000
-6900

query I rowsort
SELECT + ( - 91 ) + col0 * - col0 * + col2 + col0 AS col0 FROM tab0 AS cor0
----
-1281
-19075
-649524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 56 ) * col0 col1 FROM tab1 AS cor0
----
168
3584
4480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1300
SELECT + CAST( - cor0.col1 AS SIGNED ) * - col2 + 30 + col0 AS col0 FROM tab1 cor0
----
1358
1437
664

skipif mysql # not compatible
query I rowsort label-1300
SELECT + CAST ( - cor0.col1 AS INTEGER ) * - col2 + 30 + col0 AS col0 FROM tab1 cor0
----
1358
1437
664

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1301
SELECT - CAST( + col2 AS SIGNED ) * - col2 AS col2 FROM tab2
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-1301
SELECT - CAST ( + col2 AS INTEGER ) * - col2 AS col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL + 35 * + tab1.col1 + tab1.col0 AS col0 FROM tab1
----
414
535
913

query I rowsort
SELECT - 3 + - 50 * col0 FROM tab0 cor0
----
-1203
-1753
-4453

query I rowsort
SELECT - 80 * col2 * col0 + - col1 FROM tab2 AS cor0
----
-15151
-162299
-240177

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

query I rowsort
SELECT DISTINCT + - 22 * col1 + + col2 FROM tab0 AS cor0
----
-1859
-1920
-2133

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

skipif mysql # not compatible
query I rowsort label-1307
SELECT - + ( col1 ) / 75 FROM tab2 AS cor0
----
0
0
0

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

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

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

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

query I rowsort
SELECT col1 + cor0.col0 * - col2 + - 85 AS col2 FROM tab0 AS cor0
----
-23
-7292
-791

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

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

query I rowsort
SELECT + col2 * cor0.col1 * 73 + + col1 * col2 FROM tab2 AS cor0
----
113516
47804
61938

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

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

skipif mysql # not compatible
query I rowsort label-1315
SELECT - col1 + + col1 / - 95 FROM tab2 AS cor0
----
-17
-31
-59

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

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

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

query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 + - col1 * ( col1 * - col1 + ( col0 ) ) FROM tab0 AS cor0
----
635081
752196
909279

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

query I rowsort
SELECT col1 + - 93 + + col1 FROM tab2 AS cor0
----
-31
-59
25

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

query I rowsort
SELECT - - col1 - + ( - col0 + + col1 * col2 ) AS col2 FROM tab2 AS cor0
----
-1397
-550
-799

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1323
SELECT + col2 + CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-1323
SELECT + col2 + CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT col1 + + ( 20 ) - + col0 FROM tab0
----
22
82
82

query I rowsort
SELECT + 50 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT DISTINCT cor0.col0 * + 20 * + col1 AS col1 FROM tab2 AS cor0
----
26860
4340
92040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1327
SELECT + col1 - + CAST( - 26 AS SIGNED ) AS col0 FROM tab0 cor0
----
112
117
123

skipif mysql # not compatible
query I rowsort label-1327
SELECT + col1 - + CAST ( - 26 AS INTEGER ) AS col0 FROM tab0 cor0
----
112
117
123

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

query I rowsort
SELECT ALL + col2 * 76 FROM tab2 cor0
----
1976
2052
2888

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) * + col1 col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + 9 * - ( col1 ) AS col0 FROM tab0 AS cor0
----
-774
-819
-873

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

query I rowsort
SELECT ALL + tab2.col1 * - col2 - 70 * + col2 FROM tab2
----
-2727
-3306
-3354

query I rowsort
SELECT ALL 30 FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 1ae25494a21836bac07879aa19fd4615

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

query I rowsort
SELECT ALL - + col2 + - 14 * - 48 + col2 FROM tab1 cor0
----
672
672
672

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

query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 + + 55 FROM tab2 AS cor0
----
1499
731
784

query I rowsort
SELECT ALL + 72 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT DISTINCT - ( - 71 ) AS col0 FROM tab1 cor0
----
71

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

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

query I rowsort
SELECT ALL + col0 * - 67 + col0 AS col1 FROM tab1 AS cor0
----
-198
-4224
-5280

query I rowsort
SELECT + - 75 + col0 FROM tab1 AS cor0
----
-11
-72
5

query I rowsort
SELECT DISTINCT col2 * col1 + col2 * ( - col1 * + col1 + + ( col2 ) * cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-2511
-49088
14212

query I rowsort
SELECT - + cor0.col1 * ( + cor0.col1 ) + + ( col1 + - col2 ) AS col2 FROM tab1 AS cor0
----
-147
-252
-704

query I rowsort
SELECT - col1 + - col2 * + col2 * - col1 - - col0 AS col0 FROM tab0 AS cor0
----
35
611882
93592

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

query I rowsort
SELECT col1 + - 91 AS col1 FROM tab0
----
-5
0
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col0 * - 94 col1 FROM tab1, tab1 AS cor0
----
-282
-6016
-7520

query I rowsort
SELECT + - ( 81 ) * col1 FROM tab1 AS cor0
----
-1053
-2106
-810

query I rowsort
SELECT DISTINCT + 82 * col2 FROM tab1 AS cor0
----
4428
4674
7872

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

query I rowsort
SELECT DISTINCT 70 + - col0 * 38 + + col1 FROM tab0 AS cor0
----
-1163
-3221
-756

query I rowsort
SELECT ALL + + ( col1 ) - 17 FROM tab1 AS cor0
----
-4
-7
9

query I rowsort
SELECT - col2 * - cor0.col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1
35937
551368

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

query I rowsort
SELECT ALL - col2 - col1 * + 80 AS col1 FROM tab1 AS cor0
----
-1136
-2134
-857

query I rowsort
SELECT DISTINCT - 93 AS col0 FROM tab1 cor0
----
-93

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

query I rowsort
SELECT ALL + 82 * cor0.col0 + - col2 AS col1 FROM tab0 AS cor0
----
1935
2869
7216

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

query I rowsort
SELECT DISTINCT col0 + col1 * cor0.col0 * 52 FROM tab0 AS cor0
----
107352
176575
421237

query I rowsort
SELECT ALL + - cor0.col0 * + col0 * cor0.col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

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

query I rowsort
SELECT + cor0.col2 + + 95 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9bacac79dde20ab939355a58755ed6e3

query I rowsort
SELECT + col2 * 15 FROM tab2 AS cor0
----
390
405
570

skipif mysql # not compatible
query I rowsort
SELECT - col1 * + CAST ( + 99 AS REAL ) AS col1 FROM tab2 cor0
----
-1683
-3069
-5841

query I rowsort
SELECT + col1 * + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - col0 * col0 + 8 FROM tab0 AS cor0
----
-1217
-568
-7913

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

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

query I rowsort
SELECT DISTINCT col1 + ( 41 ) FROM tab0 AS cor0
----
127
132
138

query I rowsort
SELECT - cor0.col0 * - col1 + - col0 + - col0 AS col1 FROM tab2 AS cor0
----
1185
203
4446

query I rowsort
SELECT + col0 * 56 FROM tab2
----
392
4368
4424

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

query I rowsort
SELECT - tab1.col2 * - 44 FROM tab1
----
2376
2508
4224

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

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

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

query I rowsort
SELECT ALL 5 AS col0 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT + ( 57 ) * col2 + 49 FROM tab2 AS cor0
----
1531
1588
2215

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1387
SELECT + col1 + - col0 DIV col2 col1 FROM tab1
----
13
26
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1387
SELECT + col1 + - col0 / col2 col1 FROM tab1
----
13
26
9

query I rowsort
SELECT DISTINCT - 4 + + 40 FROM tab2
----
36

query I rowsort
SELECT + col2 + + 97 * col0 FROM tab1 AS cor0
----
345
6265
7856

query I rowsort
SELECT DISTINCT + - ( - ( col0 ) ) + + col0 AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT col2 * col2 + col1 * + col1 AS col2 FROM tab2 AS cor0
----
1690
1733
4157

query I rowsort
SELECT - col1 + 38 FROM tab2 cor0
----
-21
21
7

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

query I rowsort
SELECT cor1.col2 + 87 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 5000987aefcbbf92b39f4f92674de286

query I rowsort
SELECT DISTINCT + col2 + + col1 * - 2 AS col2 FROM tab1 AS cor0
----
2
37
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1396
SELECT CAST( - 10 AS SIGNED ) * tab2.col0 AS col1 FROM tab2
----
-70
-780
-790

skipif mysql # not compatible
query I rowsort label-1396
SELECT CAST ( - 10 AS INTEGER ) * tab2.col0 AS col1 FROM tab2
----
-70
-780
-790

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

query I rowsort
SELECT 48 * + tab0.col2 FROM tab0
----
1584
3936
48

query I rowsort
SELECT - cor0.col0 + + col1 - col0 FROM tab0 AS cor0
----
-87
27
38

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-1401
SELECT - col2 - - col2 DIV col1 AS col1 FROM tab1 cor0
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-1401
SELECT - col2 - - col2 / col1 AS col1 FROM tab1 cor0
----
-52
-52
-89

query I rowsort
SELECT DISTINCT + 85 + 49 * + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
232
3221
4005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col2 * + 69 - col0 * col2 col2 FROM tab2 AS cor0
----
44616
50112
96634

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1407
SELECT ALL - - CAST( - 91 AS SIGNED ) - - col1 FROM tab1 AS cor0
----
-65
-78
-81

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL - - CAST ( - 91 AS INTEGER ) - - col1 FROM tab1 AS cor0
----
-65
-78
-81

query I rowsort
SELECT DISTINCT ( col1 ) + + col2 * + ( - col1 ) FROM tab0 AS cor0
----
-2752
-7371
0

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 - - cor0.col1 col1 FROM tab2 AS cor0
----
-24
51
7

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1414
SELECT ALL CAST( 33 AS SIGNED ) * - col1 col2 FROM tab0 AS cor0
----
-2838
-3003
-3201

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL CAST ( 33 AS INTEGER ) * - col1 col2 FROM tab0 AS cor0
----
-2838
-3003
-3201

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

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

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

query I rowsort
SELECT DISTINCT + tab0.col0 * + col0 + + col1 + - col1 * + col0 FROM tab0
----
-1402
-2073
-87

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 - col1 col0 FROM tab0 cor0
----
0
2752
7371

query I rowsort
SELECT + 69 * + col2 AS col0 FROM tab2 cor0
----
1794
1863
2622

query I rowsort
SELECT DISTINCT + 35 + col0 FROM tab0 AS cor0
----
124
59
70

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 + + 70 * + col2 col1 FROM tab2 AS cor0
----
1865
1935
2705

query I rowsort
SELECT - - cor0.col0 + - 36 FROM tab0 AS cor0
----
-1
-12
53

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

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

query I rowsort
SELECT 71 - - tab1.col1 FROM tab1
----
81
84
97

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

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

query I rowsort
SELECT DISTINCT + col0 + 58 FROM tab0 AS cor0
----
147
82
93

query I rowsort
SELECT ALL - 84 FROM tab1, tab2 cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT DISTINCT + col0 + 8 AS col1 FROM tab1 AS cor0
----
11
72
88

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1435
SELECT - col0 DIV 2 FROM tab0 AS cor0
----
-12
-17
-44

skipif mysql # not compatible
query I rowsort label-1435
SELECT - col0 / 2 FROM tab0 AS cor0
----
-12
-17
-44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1436
SELECT DISTINCT - - col2 + CAST( col1 AS SIGNED ) * col2 col0 FROM tab0 cor0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1436
SELECT DISTINCT - - col2 + CAST ( col1 AS INTEGER ) * col2 col0 FROM tab0 cor0
----
2871
7544
98

skipif mysql # not compatible
query I rowsort
SELECT + - col1 * CAST ( + col2 AS REAL ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - col1 + ( - col1 ) * - col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT DISTINCT + - cor0.col2 * 53 + col2 AS col0 FROM tab1 AS cor0
----
-2808
-2964
-4992

onlyif mysql # use DIV operator for integer division
query I rowsort label-1440
SELECT ALL - cor0.col2 DIV + 5 FROM tab1 cor0
----
-10
-11
-19

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL - cor0.col2 / + 5 FROM tab1 cor0
----
-10
-11
-19

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

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

query I rowsort
SELECT DISTINCT - col0 + col0 * ( + col1 ) FROM tab0 AS cor0
----
2040
3360
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + ( 19 ) * - col2 col1 FROM tab1 AS cor0
----
-1080
-1140
-1920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 27 col0 FROM tab2 AS cor0
----
1593
459
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1445
SELECT - CAST( + ( - col0 ) AS SIGNED ) + 17 FROM tab1
----
20
81
97

skipif mysql # not compatible
query I rowsort label-1445
SELECT - CAST ( + ( - col0 ) AS INTEGER ) + 17 FROM tab1
----
20
81
97

query I rowsort
SELECT + 69 * col1 + + col0 AS col1 FROM tab2
----
1252
2146
4149

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

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

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

query I rowsort
SELECT ALL - ( 32 ) * tab1.col0 AS col0 FROM tab1
----
-2048
-2560
-96

query I rowsort
SELECT + ( 92 ) + + col2 FROM tab2
----
118
119
130

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 + 36 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1455
SELECT + ( - tab1.col0 ) DIV - col2 + tab1.col1 FROM tab1
----
11
13
26

skipif mysql # not compatible
query I rowsort label-1455
SELECT + ( - tab1.col0 ) / - col2 + tab1.col1 FROM tab1
----
11
13
26

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

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

query I rowsort
SELECT ALL + col0 + col0 * + 25 AS col2 FROM tab1 AS cor0
----
1664
2080
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1458
SELECT ALL 37 * - col1 + CAST( col0 * col2 AS SIGNED ) FROM tab2 AS cor0
----
-155
-958
2373

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL 37 * - col1 + CAST ( col0 * col2 AS INTEGER ) FROM tab2 AS cor0
----
-155
-958
2373

query I rowsort
SELECT DISTINCT cor0.col0 * col1 + + col0 * + 95 * col2 FROM tab2 AS cor0
----
18172
197262
286533

onlyif mysql # use DIV operator for integer division
query I rowsort label-1460
SELECT - - 77 * col2 DIV - col1 col1 FROM tab2 cor0
----
-172
-33
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1460
SELECT - - 77 * col2 / - col1 col1 FROM tab2 cor0
----
-172
-33
-67

query I rowsort
SELECT DISTINCT col0 + col1 * - col1 * + col0 FROM tab2 AS cor0
----
-22752
-271440
-6720

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

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

query I rowsort
SELECT + ( col1 ) + + col1 AS col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT - + 65 * - col2 FROM tab1 AS cor0
----
3510
3705
6240

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

query I rowsort
SELECT + + col0 * 38 + 48 FROM tab1 AS cor0
----
162
2480
3088

query I rowsort
SELECT DISTINCT - - col0 + 90 * cor0.col0 * - col2 AS col0 FROM tab0 AS cor0
----
-3115
-656731
-71256

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

query I rowsort
SELECT ALL + + col0 + 4 FROM tab0 AS cor0
----
28
39
93

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

query I rowsort
SELECT - + col1 + ( + col2 ) * - col0 * + col0 FROM tab2 AS cor0
----
-1354
-158243
-237175

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

query I rowsort
SELECT ALL col2 + 97 FROM tab0 AS cor0
----
130
179
98

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1475
SELECT - col0 DIV col2 + - col0 * - cor0.col1 FROM tab0 AS cor0
----
2064
3360
8098

skipif mysql # not compatible
query I rowsort label-1475
SELECT - col0 / col2 + - col0 * - cor0.col1 FROM tab0 AS cor0
----
2064
3360
8098

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 - col0 * + col0 col2 FROM tab1 AS cor0
----
-3456
-5360
69

query I rowsort
SELECT DISTINCT cor0.col1 + ( 70 ) FROM tab1 AS cor0
----
80
83
96

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

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

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

query I rowsort
SELECT - - 47 * + cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
1214
1742
4274

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

query I rowsort
SELECT DISTINCT - col0 - + 26 * col2 FROM tab2 AS cor0
----
-1067
-709
-754

query I rowsort
SELECT + col0 * + col2 * tab1.col0 - + col2 AS col2 FROM tab1
----
233415
432
614304

query I rowsort
SELECT DISTINCT 18 * - col2 FROM tab2 AS cor0
----
-468
-486
-684

query I rowsort
SELECT + col1 + + col2 * - col1 FROM tab2 cor0
----
-1475
-629
-806

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1490
SELECT ALL - - CAST( col1 AS SIGNED ) + col1 FROM tab2 AS cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL - - CAST ( col1 AS INTEGER ) + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT + - 40 * col2 AS col1 FROM tab0 AS cor0
----
-1320
-3280
-40

query I rowsort
SELECT 3 + 38 AS col0 FROM tab0 AS cor0
----
41
41
41

query I rowsort
SELECT - - 11 - col0 FROM tab0 AS cor0
----
-13
-24
-78

query I rowsort
SELECT - - col2 - - 16 AS col0 FROM tab1 AS cor0
----
112
70
73

query I rowsort
SELECT - 60 + + col2 FROM tab1 AS cor0
----
-3
-6
36

query I rowsort
SELECT - - 55 * + col0 FROM tab0 AS cor0
----
1320
1925
4895

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

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

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

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

query I rowsort
SELECT - col1 + - 83 * + col2 AS col2 FROM tab0
----
-180
-2825
-6897

onlyif mysql # use DIV operator for integer division
query I rowsort label-1502
SELECT ALL - 27 DIV 87 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL - 27 / 87 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

skipif mysql # not compatible
query I rowsort label-1503
SELECT DISTINCT - col0 / + col0 + - col0 FROM tab0
----
-25
-36
-90

query I rowsort
SELECT ALL col0 * col2 + 64 AS col0 FROM tab2
----
2092
253
3066

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

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

query I rowsort
SELECT - + col2 + - 61 - col2 FROM tab1 AS cor0
----
-169
-175
-253

query I rowsort
SELECT DISTINCT + col0 + + ( - col0 ) * col1 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-1508
SELECT DISTINCT col1 DIV + 36 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1508
SELECT DISTINCT col1 / + 36 FROM tab2 AS cor0
----
0
1

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

query I rowsort
SELECT ALL 14 * - 87 + - cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 84f674c5ffb6507d545aa57885d4bc80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1511
SELECT + + col1 + 78 DIV - col0 col2 FROM tab2 AS cor0
----
17
20
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1511
SELECT + + col1 + 78 / - col0 col2 FROM tab2 AS cor0
----
17
20
58

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

query I rowsort
SELECT DISTINCT - 74 AS col1 FROM tab0, tab2 AS cor0, tab2 cor1
----
-74

query I rowsort
SELECT + col0 * - col2 + 88 AS col2 FROM tab1 AS cor0
----
-3560
-74
-7592

query I rowsort
SELECT 0 AS col0 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

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

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

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

query I rowsort
SELECT + col1 + 97 * col2 * + col0 FROM tab1 AS cor0
----
15740
353866
744973

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

query I rowsort
SELECT + col2 * - 96 FROM tab1 cor0
----
-5184
-5472
-9216

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

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

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

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

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

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

query I rowsort
SELECT + ( + col1 ) + - 58 FROM tab0 AS cor0
----
28
33
39

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

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

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

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

query I rowsort
SELECT 16 - col0 * col2 AS col2 FROM tab1 AS cor0
----
-146
-3632
-7664

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1534
SELECT - 56 + 60 DIV cor0.col2 + + 6 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b6ded8ea8e92f51f45920d8b579d3e48

skipif mysql # not compatible
query I rowsort label-1534
SELECT - 56 + 60 / cor0.col2 + + 6 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b6ded8ea8e92f51f45920d8b579d3e48

onlyif mysql # use DIV operator for integer division
query I rowsort label-1535
SELECT DISTINCT + 8 DIV - col0 - + 13 DIV - ( + col1 * ( + 48 ) + - col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1535
SELECT DISTINCT + 8 / - col0 - + 13 / - ( + col1 * ( + 48 ) + - col2 ) FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1536
SELECT DISTINCT + cor0.col2 * + col2 - - ( + col0 ) DIV col1 FROM tab2 AS cor0
----
1448
677
729

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT + cor0.col2 * + col2 - - ( + col0 ) / col1 FROM tab2 AS cor0
----
1448
677
729

query I rowsort
SELECT ALL - 43 * cor0.col0 FROM tab0 AS cor0
----
-1032
-1505
-3827

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1539
SELECT - 37 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1539
SELECT - 37 / col2 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT ALL - + col2 * - 36 - - 31 * col0 * ( + col1 ) FROM tab2 AS cor0
----
143598
43001
7699

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

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

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

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

query I rowsort
SELECT ALL + col1 + - col2 + + col1 * col1 AS col2 FROM tab0 cor0
----
7449
8290
9505

query I rowsort
SELECT ALL + col0 - col1 * + ( col1 ) AS col2 FROM tab0
----
-7372
-8192
-9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 - + 35 * ( col1 + col1 * - tab0.col2 ) col0 FROM tab0
----
258156
36
96377

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

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

query I rowsort
SELECT DISTINCT - - 41 * col0 + col2 + + 26 * col1 AS col1 FROM tab2 AS cor0
----
1120
3719
4758

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1552
SELECT DISTINCT col0 DIV - 36 AS col1 FROM tab1 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1552
SELECT DISTINCT col0 / - 36 AS col1 FROM tab1 cor0
----
-1
-2
0

query I rowsort
SELECT ALL + 66 + 64 * col1 FROM tab0 AS cor0
----
5570
5890
6274

query I rowsort
SELECT + col0 + col0 * cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
2174
3527
8279

query I rowsort
SELECT ALL + col0 * col2 + + col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT ALL - - ( + 72 ) * + col2 * + col0 AS col1 FROM tab1 AS cor0
----
11664
262656
552960

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

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

query I rowsort
SELECT + 30 FROM tab0, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

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

query I rowsort
SELECT ALL col2 + + 38 * + col1 AS col0 FROM tab0
----
3301
3540
3687

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

query I rowsort
SELECT - 80 AS col1 FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to a3c8e513c78e2eef41ad24aabcbeff52

query I rowsort
SELECT - cor0.col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + 25 col0 FROM tab1 AS cor0
----
35
38
51

query I rowsort
SELECT - - 68 AS col2 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT + 38 * - cor0.col0 FROM tab2 AS cor0
----
-266
-2964
-3002

query I rowsort
SELECT - col2 * + 81 FROM tab0 AS cor0
----
-2673
-6642
-81

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1572
SELECT ALL + + col1 - col0 * 18 DIV + col0 AS col0 FROM tab1 AS cor0
----
-5
-8
8

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL + + col1 - col0 * 18 / + col0 AS col0 FROM tab1 AS cor0
----
-5
-8
8

query I rowsort
SELECT ALL - col0 * 3 * + 19 AS col1 FROM tab1 AS cor0
----
-171
-3648
-4560

query I rowsort
SELECT 99 + - col2 FROM tab2
----
61
72
73

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1576
SELECT - + col2 * col2 + + 86 * + cor0.col2 * CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
571540
85
92565

skipif mysql # not compatible
query I rowsort label-1576
SELECT - + col2 * col2 + + 86 * + cor0.col2 * CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
571540
85
92565

query I rowsort
SELECT ALL - col1 * - col2 - 69 FROM tab2 AS cor0
----
1465
577
768

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 + - 85 * col2 col1 FROM tab0
----
-2781
-50
-6881

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

query I rowsort
SELECT 63 * col2 AS col2 FROM tab0 AS cor0
----
2079
5166
63

query I rowsort
SELECT 69 * col1 + 44 * 72 FROM tab2 AS cor0
----
4341
5307
7239

query I rowsort
SELECT DISTINCT col2 + + tab1.col2 * col0 + col0 FROM tab1
----
219
3769
7856

query I rowsort
SELECT - cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT DISTINCT + ( + col0 * + col2 ) + col0 * - col2 FROM tab0
----
0

query I rowsort
SELECT - 87 * tab0.col0 * col2 + + 21 * col2 + - col1 FROM tab0
----
-3121
-633295
-68297

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1588
SELECT - - cor0.col2 DIV + col0 + - ( col0 * col2 ) - + 10 col0 FROM tab1 cor0
----
-154
-3658
-7689

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1588
SELECT - - cor0.col2 / + col0 + - ( col0 * col2 ) - + 10 col0 FROM tab1 cor0
----
-154
-3658
-7689

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

query I rowsort
SELECT DISTINCT - col2 * col1 + ( - 30 ) + col1 FROM tab2 AS cor0
----
-1505
-659
-836

query I rowsort
SELECT - col2 + cor0.col1 - - col0 AS col0 FROM tab0 AS cor0
----
131
77
98

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

query I rowsort
SELECT + 69 - + cor0.col0 AS col2 FROM tab1 AS cor0
----
-11
5
66

query I rowsort
SELECT ALL - tab0.col0 + 85 FROM tab0, tab2 AS cor0
----
9 values hashing to c333dbacd6df68425f723e05778a1518

query I rowsort
SELECT DISTINCT - - 49 AS col1 FROM tab2, tab1, tab2 AS cor0
----
49

query I rowsort
SELECT 50 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

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

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

skipif mysql # not compatible
query I rowsort label-1598
SELECT col1 + + col1 * + CAST ( - ( - col2 ) AS INTEGER ) * - col1 AS col1 FROM tab2 AS cor0
----
-10965
-25916
-90447

onlyif mysql # use DIV operator for integer division
query I rowsort label-1599
SELECT + cor0.col0 DIV - col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1599
SELECT + cor0.col0 / - col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 59 FROM tab2, tab1 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT DISTINCT + col2 + + ( col1 ) * - col0 - tab1.col1 * col1 FROM tab1
----
-1113
-683
-700

query I rowsort
SELECT + + col2 + + 70 FROM tab0 AS cor0
----
103
152
71

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1605
SELECT - col1 DIV col0 + col2 * col2 - col2 AS col0 FROM tab2 AS cor0
----
1406
650
698

skipif mysql # not compatible
query I rowsort label-1605
SELECT - col1 / col0 + col2 * col2 - col2 AS col0 FROM tab2 AS cor0
----
1406
650
698

query I rowsort
SELECT ALL col1 + - col2 * + 48 FROM tab0
----
-1498
-3845
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-1607
SELECT ALL 27 * - col0 + col1 DIV tab1.col2 + col1 FROM tab1
----
-1718
-2147
-55

skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL 27 * - col0 + col1 / tab1.col2 + col1 FROM tab1
----
-1718
-2147
-55

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col2 AS REAL ) col2 FROM tab1 AS cor0
----
54
57
96

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

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

query I rowsort
SELECT ALL ( - col0 ) * + col2 + - 47 * col1 FROM tab1 AS cor0
----
-1384
-4118
-8291

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1616
SELECT CAST ( cor0.col1 AS INTEGER ) + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

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

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

query I rowsort
SELECT ALL + 98 * col1 + col1 + - 2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
1127
2568
862

query I rowsort
SELECT DISTINCT - - col2 - - col2 FROM tab1 AS cor0
----
108
114
192

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

query I rowsort
SELECT - 28 * - col0 AS col0 FROM tab1 AS cor0
----
1792
2240
84

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 98 col1 FROM tab0
----
-8428
-8918
-9506

query I rowsort
SELECT ALL - + 57 * 2 FROM tab0 AS cor0
----
-114
-114
-114

onlyif mysql # use DIV operator for integer division
query I rowsort label-1625
SELECT col2 DIV 25 AS col2 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1625
SELECT col2 / 25 AS col2 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT - 36 + - col1 * + col2 FROM tab1 AS cor0
----
-1284
-1440
-606

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1627
SELECT - CAST( + ( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-1627
SELECT - CAST ( + ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - + 98 * + cor0.col0 * - col1 FROM tab0 AS cor0
----
202272
332710
793702

query I rowsort
SELECT ALL + 32 * ( - col1 ) AS col0 FROM tab1 AS cor0
----
-320
-416
-832

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 + - 20 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1862
-513
-701

query I rowsort
SELECT 79 FROM tab0, tab1 cor0 CROSS JOIN tab1, tab1 AS cor1
----
81 values hashing to da0116d31b8af0da9f685c090d378baf

onlyif mysql # use DIV operator for integer division
query I rowsort label-1636
SELECT + + cor0.col2 * 49 DIV - col2 - - ( col2 ) FROM tab1 cor0
----
47
5
8

skipif mysql # not compatible
query I rowsort label-1636
SELECT + + cor0.col2 * 49 / - col2 - - ( col2 ) FROM tab1 cor0
----
47
5
8

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

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

query I rowsort
SELECT DISTINCT col2 * + col0 - col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT ALL col2 * 25 FROM tab0 cor0
----
2050
25
825

query I rowsort
SELECT ALL - 56 FROM tab0, tab0 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

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

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

query I rowsort
SELECT - col1 * - 32 FROM tab0 cor0
----
2752
2912
3104

query I rowsort
SELECT - cor1.col2 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to 1d38a1a4aacea9827ed2338191291f0e

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

query I rowsort
SELECT - + ( - cor1.col1 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

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

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

query I rowsort
SELECT + + col1 * + 99 + 30 FROM tab2 AS cor0
----
1713
3099
5871

query I rowsort
SELECT + - col1 * + ( 25 ) FROM tab1 AS cor0
----
-250
-325
-650

query I rowsort
SELECT ALL - cor0.col1 * - col2 + 76 AS col0 FROM tab2 AS cor0
----
1610
722
913

query I rowsort
SELECT DISTINCT - cor0.col1 + col0 * - ( - col0 ) * col2 AS col1 FROM tab0 AS cor0
----
1128
18922
649431

query I rowsort
SELECT ALL - col1 + 61 FROM tab1 cor0
----
35
48
51

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

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

query I rowsort
SELECT cor0.col1 + - 41 FROM tab0 AS cor0
----
45
50
56

query I rowsort
SELECT DISTINCT ( - 79 ) AS col1 FROM tab1 AS cor0
----
-79

query I rowsort
SELECT + 68 + 81 * col0 FROM tab0 AS cor0
----
2012
2903
7277

query I rowsort
SELECT DISTINCT 24 * 10 FROM tab0 cor0
----
240

query I rowsort
SELECT 18 * 9 * cor0.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to badc990739efd9ff82561d39f1d6a3f0

query I rowsort
SELECT DISTINCT + col0 * + 14 + - col1 * + 16 AS col0 FROM tab1 AS cor0
----
-374
736
912

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

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

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

query I rowsort
SELECT + 26 + 91 FROM tab2 AS cor0
----
117
117
117

onlyif mysql # use DIV operator for integer division
query I rowsort label-1666
SELECT + col1 * + cor0.col0 + - col2 DIV 38 FROM tab0 AS cor0
----
2064
3395
8097

skipif mysql # not compatible
query I rowsort label-1666
SELECT + col1 * + cor0.col0 + - col2 / 38 FROM tab0 AS cor0
----
2064
3395
8097

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

query I rowsort
SELECT + 6 + - col2 FROM tab0 AS cor0
----
-27
-76
5

query I rowsort
SELECT DISTINCT + col1 * + tab2.col2 + - tab2.col2 * + 38 AS col2 FROM tab2
----
-189
-798
546

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

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT cor0.col2 + CAST ( col2 AS REAL ) AS col0 FROM tab1 AS cor0
----
108
114
192

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1674
SELECT DISTINCT - + col2 DIV + 13 FROM tab2 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT - + col2 / + 13 FROM tab2 cor0
----
-2

query I rowsort
SELECT ALL col2 * ( ( + col1 ) ) + + col0 * + col0 AS col0 FROM tab1 AS cor0
----
1413
4666
7648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * 14 col0 FROM tab1 AS cor0
----
1120
42
896

query I rowsort
SELECT ALL col1 + + col2 * col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1128
-18922
-649431

query I rowsort
SELECT + - col1 + + 25 FROM tab0 cor0
----
-61
-66
-72

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1680
SELECT col0 DIV - tab2.col0 + - 95 - col2 AS col0 FROM tab2
----
-122
-123
-134

skipif mysql # not compatible
query I rowsort label-1680
SELECT col0 / - tab2.col0 + - 95 - col2 AS col0 FROM tab2
----
-122
-123
-134

query I rowsort
SELECT 54 * + col2 - + tab1.col2 AS col2 FROM tab1
----
2862
3021
5088

query I rowsort
SELECT ALL + 88 + col2 FROM tab2
----
114
115
126

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

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT + ( + col0 ) * + CAST ( + col2 AS INTEGER ) + col1 + + ( cor0.col0 * col2 ) FROM tab0 cor0
----
14687
167
1670

query I rowsort
SELECT DISTINCT - 83 - - col1 * col1 FROM tab1 AS cor0
----
17
593
86

query I rowsort
SELECT + col1 * - col1 + col1 * - col2 FROM tab2 AS cor0
----
-1798
-5015
-935

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1686
SELECT 36 * + col2 - CAST( + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1918
2042
3443

skipif mysql # not compatible
query I rowsort label-1686
SELECT 36 * + col2 - CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1918
2042
3443

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

query I rowsort
SELECT ALL + + 27 + + col1 AS col0 FROM tab2 AS cor0
----
44
58
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 + 64 * + col0 + + col2 col2 FROM tab2 AS cor0
----
2092
286
2990

onlyif mysql # use DIV operator for integer division
query I rowsort label-1690
SELECT + col2 DIV - col0 - ( + cor0.col0 + cor0.col1 ) * + col2 FROM tab2 AS cor0
----
-1029
-3562
-3648

skipif mysql # not compatible
query I rowsort label-1690
SELECT + col2 / - col0 - ( + cor0.col0 + cor0.col1 ) * + col2 FROM tab2 AS cor0
----
-1029
-3562
-3648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 * + cor0.col1 + - cor0.col0 * + col1 col1 FROM tab1 AS cor0
----
-240
-520
962

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

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

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

skipif mysql # not compatible
query I rowsort label-1693
SELECT + ( + cor0.col2 ) * + CAST ( 24 AS INTEGER ) - col1 FROM tab2 AS cor0
----
565
617
895

query I rowsort
SELECT + col1 + - 2 * + 31 * cor0.col2 FROM tab1 cor0
----
-3322
-3524
-5939

query I rowsort
SELECT ALL + col1 * col1 + - ( - 75 * + col0 ) AS col0 FROM tab1
----
4900
6169
901

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

query I rowsort
SELECT + 69 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT ALL 43 + col0 FROM tab1
----
107
123
46

query I rowsort
SELECT ALL + ( - col1 ) + 65 FROM tab1
----
39
52
55

query I rowsort
SELECT + col1 + tab2.col2 - - col1 FROM tab2
----
144
72
89

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

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

query I rowsort
SELECT col0 + col0 * - col1 * + col2 FROM tab2
----
-119574
-50955
-5852

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT ( NULL ) >= col2
----

query I rowsort
SELECT tab2.col1 + + col0 + - tab2.col2 * col2 * + col0 AS col2 FROM tab2
----
-113980
-5065
-52591

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

query I rowsort
SELECT tab2.col0 + - col2 * + col1 FROM tab2
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 - tab0.col1 col0 FROM tab0
----
-53
-9
-96

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

query I rowsort
SELECT tab2.col2 AS col1 FROM tab2 WHERE NOT + col0 < - col1 * col1
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1711
SELECT ALL col2 DIV + col2 + - col0 AS col2 FROM tab1
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-1711
SELECT ALL col2 / + col2 + - col0 AS col2 FROM tab1
----
-2
-63
-79

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

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

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

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

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

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

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

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

query I rowsort
SELECT + - col1 + col2 * - 95 AS col1 FROM tab1 AS cor0
----
-5156
-5425
-9133

query I rowsort
SELECT DISTINCT 97 + + 53 FROM tab0, tab1, tab2 AS cor0
----
150

query I rowsort
SELECT col0 * - col0 * col2 AS col2 FROM tab0
----
-1225
-19008
-649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT ALL - col2 + col0 + ( col1 + 86 ) FROM tab0 AS cor0
----
163
184
217

query I rowsort
SELECT - - col2 + - 8 FROM tab1 AS cor0
----
46
49
88

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 * CAST ( col1 AS REAL ) FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT - + col1 * + cor0.col2 + + ( col1 ) AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-1728
SELECT - - col0 + cor0.col0 DIV col1 + - col2 * - ( + col0 * col1 ) AS col0 FROM tab2 cor0
----
119731
51117
5866

skipif mysql # not compatible
query I rowsort label-1728
SELECT - - col0 + cor0.col0 / col1 + - col2 * - ( + col0 * col1 ) AS col0 FROM tab2 cor0
----
119731
51117
5866

query I rowsort
SELECT DISTINCT - col0 * col2 + col1 * col2 AS col2 FROM tab1 AS cor0
----
-3078
-6432
1242

query I rowsort
SELECT - col1 + - col1 * 4 * + cor0.col1 AS col2 FROM tab0 cor0
----
-29670
-33215
-37733

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

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

query I rowsort
SELECT + ( 55 ) * col1 + - col1 + + col1 FROM tab2 AS cor0
----
1705
3245
935

query I rowsort
SELECT ALL 74 + - col1 FROM tab2 AS cor0
----
15
43
57

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

query I rowsort
SELECT col1 * + col1 * col1 FROM tab2 cor0
----
205379
29791
4913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 * col0 col0 FROM tab1 AS cor0
----
-1536
-1920
-72

query I rowsort
SELECT cor0.col2 + + col0 * + col2 * - col1 FROM tab1 AS cor0
----
-36423
-4158
-99744

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

query I rowsort
SELECT - ( - 37 ) FROM tab0
----
37
37
37

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

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

query I rowsort
SELECT ALL + 84 + - cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
-708
-7214
49

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

query I rowsort
SELECT ALL col1 * - col0 + cor0.col1 - col0 AS col0 FROM tab0 AS cor0
----
-2002
-3333
-8097

query I rowsort
SELECT DISTINCT - 0 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT + col2 * - col2 + col2 AS col0 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT + 2 FROM tab1 cor0
----
2

query I rowsort
SELECT ALL + col1 + col2 * + col1 * + col1 + col2 * col1 FROM tab1 AS cor0
----
17485
37934
6280

query I rowsort
SELECT ALL - cor0.col1 * col0 + - col2 * col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-100880
-37120
-4290

query I rowsort
SELECT DISTINCT - col0 * + cor0.col0 + col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT - col2 + + col2 * col1 AS col0 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL tab0.col1 FROM tab0 WHERE ( NOT col0 = + col0 ) AND NOT - col1 * - col2 IN ( + tab0.col2 + col2 )
----

query I rowsort
SELECT ALL ( - col2 + col1 ) FROM tab1
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( + 73 AS REAL ) * cor0.col0 * - col1 AS col2 FROM tab2 cor0
----
-15841
-335946
-98039

query I rowsort
SELECT + col1 * + 7 FROM tab2
----
119
217
413

query I rowsort
SELECT ALL tab0.col0 * ( + col2 ) AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT - 31 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT DISTINCT + - col1 * - ( col2 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * tab0.col0 * col0 col1 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT ALL - col1 * col1 + col2 FROM tab2
----
-251
-3455
-934

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1761
SELECT ALL CAST( + col0 AS SIGNED ) * col1 * + col1 + + col0 AS col2 FROM tab0
----
177528
329350
737098

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL CAST ( + col0 AS INTEGER ) * col1 * + col1 + + col0 AS col2 FROM tab0
----
177528
329350
737098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 * - 84 col0 FROM tab2
----
-7560

query I rowsort
SELECT + 0 * + 21 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1764
SELECT ALL - CAST( - col2 AS SIGNED ) + - col1 AS col0 FROM tab1
----
28
47
83

skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL - CAST ( - col2 AS INTEGER ) + - col1 AS col0 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL - 60 FROM tab0, tab0 cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 col1 FROM tab0 AS cor0
----
83
83
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1767
SELECT DISTINCT col0 DIV tab1.col1 + col0 FROM tab1
----
3
70
86

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT col0 / tab1.col1 + col0 FROM tab1
----
3
70
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-1768
SELECT ALL col2 DIV col2 col1 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL col2 / col2 col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - tab0.col1 * - col0 + col2 + + col0 * col2 FROM tab0
----
15479
2889
3431

query I rowsort
SELECT - col2 * col0 + col1 + col0 FROM tab1
----
-133
-3574
-7587

query I rowsort
SELECT ALL col2 + col0 * - col2 AS col1 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT col2 * col0 + - col0 FROM tab1 WHERE ( NULL ) NOT IN ( - col2 )
----

query I rowsort
SELECT ALL + col0 + + col1 + col2 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT ALL col2 + + col2 * col1 AS col0 FROM tab2
----
1560
684
864

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - cor0.col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = ( col0 * col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN NULL AND + col2 * col0
----

query I rowsort
SELECT ALL + col1 * col1 - + col0 AS col0 FROM tab1
----
36
673
89

query I rowsort
SELECT ALL col0 - col1 * col2 * - col2 AS col1 FROM tab2
----
22606
24627
39962

query I rowsort
SELECT ALL col1 * col2 - col0 * + tab0.col2 AS col1 FROM tab0
----
164
2046
62

query I rowsort
SELECT + col2 * col0 + col0 + col2 FROM tab2
----
2132
223
3119

query I rowsort
SELECT ALL col0 - + col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT DISTINCT + tab0.col2 - + col1 * + col2 AS col0 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT col2 + + col0 * col1 AS col2 FROM tab2
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1786
SELECT DISTINCT - col1 + cor0.col2 DIV col0 AS col2 FROM tab0 AS cor0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT - col1 + cor0.col2 / col0 AS col2 FROM tab0 AS cor0
----
-85
-91
-97

query I rowsort
SELECT DISTINCT + - col1 + cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + + cor0.col0 + - col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL + col2 * - col2 + + col0 * + col2 FROM tab0 AS cor0
----
-297
34
574

onlyif mysql # use DIV operator for integer division
query I rowsort label-1790
SELECT DISTINCT + col1 DIV col2 + col1 + - col1 * - col1 * col2 FROM tab1 AS cor0
----
16237
36530
5710

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT + col1 / col2 + col1 + - col1 * - col1 * col2 FROM tab1 AS cor0
----
16237
36530
5710

query I rowsort
SELECT col0 * col2 + + cor0.col1 * col2 * + col0 FROM tab2 AS cor0
----
121680
54036
6048

onlyif mysql # use DIV operator for integer division
query I rowsort label-1792
SELECT + col0 DIV + col2 + - col2 AS col1 FROM tab0 AS cor0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort label-1792
SELECT + col0 / + col2 + - col2 AS col1 FROM tab0 AS cor0
----
-33
-81
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-1793
SELECT - - col1 * col0 - col1 DIV col2 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-1793
SELECT - - col1 * col0 - col1 / col2 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-1794
SELECT + - col1 + col2 DIV col0 FROM tab1 AS cor0
----
-10
-12
-8

skipif mysql # not compatible
query I rowsort label-1794
SELECT + - col1 + col2 / col0 FROM tab1 AS cor0
----
-10
-12
-8

query I rowsort
SELECT ALL + + col2 * cor0.col1 * - col2 + - col2 FROM tab0 AS cor0
----
-611966
-93687
-98

query I rowsort
SELECT ALL col0 * cor0.col1 * col1 AS col2 FROM tab0 cor0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-1797
SELECT DISTINCT + col0 DIV - col2 AS col1 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-1797
SELECT DISTINCT + col0 / - col2 AS col1 FROM tab0
----
-1
-35
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1798
SELECT DISTINCT - cor0.col1 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1798
SELECT DISTINCT - cor0.col1 / cor0.col1 AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1799
SELECT 25 DIV + tab2.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 83c163442931d28e4160369d40047ea7

skipif mysql # not compatible
query I rowsort label-1799
SELECT 25 / + tab2.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 83c163442931d28e4160369d40047ea7

query I rowsort
SELECT - 62 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 cor2
----
81 values hashing to 98946dcadb23f354040593c91d9c8559

query I rowsort
SELECT DISTINCT - - col0 + + col0 * 35 AS col0 FROM tab0 AS cor0
----
1260
3204
864

query I rowsort
SELECT DISTINCT col2 + + col0 * - col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL + 1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0, tab0 AS cor2, tab2
----
13122 values hashing to 0022f6cfc46b6affcfc3051aa10c34ab

onlyif mysql # use DIV operator for integer division
query I rowsort label-1805
SELECT ALL - + col1 DIV col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL - + col1 / col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1806
SELECT - 2 DIV + col0 col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1806
SELECT - 2 / + col0 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + 16 AS col0 FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT + - 38 * - col1 * - col0 FROM tab0 AS cor0
----
-129010
-307762
-78432

query I rowsort
SELECT - 58 + - col1 FROM tab0 AS cor0
----
-144
-149
-155

query I rowsort
SELECT DISTINCT + + 36 + col2 AS col2 FROM tab0 AS cor0
----
118
37
69

query I rowsort
SELECT - 42 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27

query I rowsort
SELECT DISTINCT ( - col2 + 57 * col2 ) AS col0 FROM tab1
----
3024
3192
5376

query I rowsort
SELECT - 45 * tab2.col0 AS col0 FROM tab2
----
-315
-3510
-3555

query I rowsort
SELECT DISTINCT - 77 * - 5 AS col2 FROM tab0, tab0 cor0
----
385

query I rowsort
SELECT ALL - col0 * + col0 - cor0.col2 AS col1 FROM tab2 cor0
----
-6110
-6279
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1816
SELECT DISTINCT + + ( col1 ) DIV + 49 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1816
SELECT DISTINCT + + ( col1 ) / + 49 AS col2 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT + - col2 + 94 AS col2 FROM tab2 AS cor0
----
56
67
68

query I rowsort
SELECT + col0 * 52 FROM tab0 AS cor0
----
1248
1820
4628

query I rowsort
SELECT + 96 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT ( col0 + + 86 ) AS col2 FROM tab0
----
110
121
175

query I rowsort
SELECT - + col2 * ( 40 ) AS col0 FROM tab0 AS cor0
----
-1320
-3280
-40

query I rowsort
SELECT + 32 - col1 FROM tab1
----
19
22
6

query I rowsort
SELECT ALL - cor0.col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1824
SELECT + + col1 + - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-1824
SELECT + + col1 + - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - col1 * - 87 + col1 FROM tab1 AS cor0
----
1144
2288
880

onlyif mysql # use DIV operator for integer division
query I rowsort label-1826
SELECT ALL - col2 * col2 + - cor0.col1 * col2 + - col1 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-10464
-3819
-4328

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL - col2 * col2 + - cor0.col1 * col2 + - col1 / cor0.col0 AS col1 FROM tab1 AS cor0
----
-10464
-3819
-4328

onlyif mysql # use DIV operator for integer division
query I rowsort label-1827
SELECT ALL ( - col2 ) DIV col0 + ( - col1 ) FROM tab0 AS cor0
----
-87
-91
-97

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL ( - col2 ) / col0 + ( - col1 ) FROM tab0 AS cor0
----
-87
-91
-97

query I rowsort
SELECT ALL - - tab1.col1 + 85 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 6adfddf5a7dc32f856a6c831f9278c73

query I rowsort
SELECT ALL + 96 AS col2 FROM tab0 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT 81 * - col0 FROM tab0 AS cor0
----
-1944
-2835
-7209

query I rowsort
SELECT DISTINCT - - 5 + ( - cor0.col0 ) AS col0 FROM tab2 cor0
----
-2
-73
-74

query I rowsort
SELECT - + col1 * + col1 + - col0 - + col1 AS col0 FROM tab1 cor0
----
-174
-262
-705

query I rowsort
SELECT - - 78 + col2 FROM tab1 AS cor0
----
132
135
174

query I rowsort
SELECT 83 + - col1 - col0 * col0 FROM tab1 cor0
----
-4023
-6330
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-1835
SELECT + col1 * col0 DIV - col0 + cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-1835
SELECT + col1 * col0 / - col0 + cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 75 ) col1 FROM tab1
----
75
75
75

query I rowsort
SELECT - 86 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af

query I rowsort
SELECT ( + 35 ) * cor0.col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 6232d2ee80935a817b0b1ef0cb5ede5a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) + col0 + - col1 col1 FROM tab1
----
-20
118
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + tab1.col2 col0 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL 21 + 32 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT - - 75 * - 46 AS col0 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 946e08b54dfd1a683807b2acb1ff7119

query I rowsort
SELECT + ( cor0.col1 ) - + 69 FROM tab1 AS cor0
----
-43
-56
-59

query I rowsort
SELECT ALL - col1 + + ( - tab1.col0 + + col2 ) * col2 * tab1.col0 FROM tab1
----
-25546
122867
8236

query I rowsort
SELECT ALL col1 * tab0.col0 * col2 + col0 AS col0 FROM tab0
----
3430
664207
68136

query I rowsort
SELECT - ( col1 ) * + col0 * 79 AS col0 FROM tab1
----
-50560
-6162
-82160

query I rowsort
SELECT + cor0.col1 + + col1 + col2 * - ( - col0 * + col2 ) FROM tab2 AS cor0
----
114110
5165
52846

query I rowsort
SELECT + - ( - 52 ) * + col1 + + ( + col0 ) AS col1 FROM tab1 AS cor0
----
1355
584
756

query I rowsort
SELECT DISTINCT 73 + - col1 FROM tab1
----
47
60
63

query I rowsort
SELECT DISTINCT ( tab1.col2 * - col1 ) + col0 AS col1 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + - col2 * + col0 AS col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT col2 * + cor0.col1 + col1 + - ( col2 + ( + col2 ) * cor0.col1 ) FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - 3 * col2 AS col1 FROM tab0 AS cor0
----
-246
-3
-99

query I rowsort
SELECT - 14 + + col2 * ( ( col1 ) * ( 92 ) + - col0 ) FROM tab0 AS cor0
----
260290
679192
8875

query I rowsort
SELECT ALL - col2 + col1 + - 50 AS col1 FROM tab2 cor0
----
-17
-46
-71

query I rowsort
SELECT ALL + cor0.col0 * + col2 + + 57 FROM tab0 AS cor0
----
7355
849
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col0 + - col2 col1 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT ALL + col1 + + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL 87 * col1 * - cor0.col0 + + 59 FROM tab2 AS cor0
----
-116782
-18820
-400315

query I rowsort
SELECT ALL col2 + + col0 * ( + col1 ) * + col1 + - cor0.col0 FROM tab0 AS cor0
----
177513
329281
737002

query I rowsort
SELECT col0 * - col0 + - col1 FROM tab0 AS cor0
----
-1322
-662
-8012

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1862
SELECT + + col1 + - CAST( 26 * col2 AS SIGNED ) FROM tab2 AS cor0
----
-617
-671
-971

skipif mysql # not compatible
query I rowsort label-1862
SELECT + + col1 + - CAST ( 26 * col2 AS INTEGER ) FROM tab2 AS cor0
----
-617
-671
-971

query I rowsort
SELECT ALL - col0 + - 52 * + 11 AS col1 FROM tab2 cor0
----
-579
-650
-651

query I rowsort
SELECT + col1 - 54 FROM tab2 AS cor0
----
-23
-37
5

query I rowsort
SELECT ALL + col1 * + cor0.col2 + 30 * col0 * 49 FROM tab2 cor0
----
11127
116194
116776

query I rowsort
SELECT + col2 + col1 * + col2 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1867
SELECT ALL col0 + + CAST( ( - col2 ) AS SIGNED ) * 90 FROM tab2 AS cor0
----
-2262
-2423
-3341

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL col0 + + CAST ( ( - col2 ) AS INTEGER ) * 90 FROM tab2 AS cor0
----
-2262
-2423
-3341

query I rowsort
SELECT - col1 + + 97 * col0 * col1 AS col0 FROM tab0 AS cor0
----
200122
329218
785512

query I rowsort
SELECT DISTINCT - cor0.col2 - ( - col1 * col2 + cor0.col1 ) AS col2 FROM tab2 AS cor0
----
1449
591
779

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1870
SELECT ALL CAST( NULL AS SIGNED ) + + ( - col0 * + col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1870
SELECT ALL CAST ( NULL AS INTEGER ) + + ( - col0 * + col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1871
SELECT ALL + + CAST( NULL AS SIGNED ) * ( - col0 + col0 ) * + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL + + CAST ( NULL AS INTEGER ) * ( - col0 + col0 ) * + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 83 - col1 FROM tab1 AS cor0
----
57
70
73

query I rowsort
SELECT DISTINCT + 74 * + col0 AS col2 FROM tab1 cor0
----
222
4736
5920

query I rowsort
SELECT - + 25 * + col2 FROM tab0 cor0
----
-2050
-25
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 67 ) col0 FROM tab0, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT DISTINCT + 43 - ( - col0 ) * col0 FROM tab2 AS cor0
----
6127
6284
92

query I rowsort
SELECT DISTINCT - col2 - - col1 AS col2 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT ALL ( - 77 ) + col2 FROM tab2 AS cor0
----
-39
-50
-51

query I rowsort
SELECT cor0.col1 - 14 * + col0 AS col1 FROM tab1 AS cor0
----
-1107
-16
-886

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1880
SELECT cor0.col2 * ( - col2 ) + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1880
SELECT cor0.col2 * ( - col2 ) + CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 3 ) * - col0 AS col0 FROM tab1 AS cor0
----
-192
-240
-9

query I rowsort
SELECT ALL - - col1 - col2 * + col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL + 38 + + 24 FROM tab2 cor0
----
62
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-1884
SELECT ALL - cor0.col2 DIV col0 + col1 col2 FROM tab1 AS cor0
----
10
12
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1884
SELECT ALL - cor0.col2 / col0 + col1 col2 FROM tab1 AS cor0
----
10
12
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1885
SELECT + + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1885
SELECT + + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 - cor0.col0 * - col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT DISTINCT tab0.col1 - ( - col2 ) FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 + 8 * ( col0 ) - - 38 * col2 col1 FROM tab2
----
1051
1553
2059

query I rowsort
SELECT DISTINCT - col2 * col1 - col2 FROM tab0
----
-2871
-7544
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + tab2.col1 - col1 col0 FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-1891
SELECT + + col1 + - col0 DIV col0 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-1891
SELECT + + col1 + - col0 / col0 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT ( 43 ) * col1 + col1 FROM tab2 cor0
----
1364
2596
748

query I rowsort
SELECT 49 * - col1 FROM tab2
----
-1519
-2891
-833

query I rowsort
SELECT 86 + cor0.col1 FROM tab2 AS cor0
----
103
117
145

query I rowsort
SELECT ALL + - cor0.col1 * col1 + + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1178
-1632
-8083

query I rowsort
SELECT DISTINCT col2 + - 92 * col2 FROM tab2 AS cor0
----
-2366
-2457
-3458

query I rowsort
SELECT + ( ( cor0.col0 ) ) AS col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT 3 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT + - cor0.col2 + + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c1eca5ea8dadf5efbc400ae6094b52e3

query IIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1901
SELECT DISTINCT col0 DIV tab0.col1 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1901
SELECT DISTINCT col0 / tab0.col1 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL 64 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT ALL col0 * - 57 AS col2 FROM tab1 AS cor0
----
-171
-3648
-4560

query I rowsort
SELECT DISTINCT - col2 + col0 * - 31 AS col1 FROM tab0 AS cor0
----
-1086
-2841
-777

query I rowsort
SELECT DISTINCT col0 + 87 AS col2 FROM tab1 AS cor0
----
151
167
90

query I rowsort
SELECT - + col0 + ( + 68 ) FROM tab0 AS cor0
----
-21
33
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-1907
SELECT DISTINCT - col0 * col0 DIV + cor0.col0 + + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-1907
SELECT DISTINCT - col0 * col0 / + cor0.col0 + + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - col0 * 33 AS col1 FROM tab1 AS cor0
----
-2112
-2640
-99

query I rowsort
SELECT ALL + col0 - 1 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT - cor0.col1 * + 88 AS col1 FROM tab1 AS cor0
----
-1144
-2288
-880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * - 72 col2 FROM tab1 AS cor0
----
-216
-4608
-5760

query I rowsort
SELECT ALL 37 * + tab0.col1 FROM tab0
----
3182
3367
3589

query I rowsort
SELECT + 1 + cor0.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 2036013494344f92349618089e7342a0

query I rowsort
SELECT 43 AS col0 FROM tab2
----
43
43
43

query I rowsort
SELECT DISTINCT 50 * col2 AS col2 FROM tab2
----
1300
1350
1900

query I rowsort
SELECT DISTINCT col1 + - 88 FROM tab0
----
-2
3
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1917
SELECT ALL tab2.col1 + ( + col2 ) DIV + col0 + tab2.col0 FROM tab2
----
137
41
96

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL tab2.col1 + ( + col2 ) / + col0 + tab2.col0 FROM tab2
----
137
41
96

query I rowsort
SELECT ALL - col0 + ( - 7 ) AS col1 FROM tab0 AS cor0
----
-31
-42
-96

query I rowsort
SELECT - col2 * + 71 - cor0.col1 AS col1 FROM tab0 AS cor0
----
-168
-2429
-5913

query I rowsort
SELECT DISTINCT - + cor0.col2 * - 88 + col1 * + col0 FROM tab1 AS cor0
----
4830
5656
9488

query I rowsort
SELECT ALL - 30 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT col1 + + ( + col0 ) * - col2 + - 73 AS col1 FROM tab1 AS cor0
----
-209
-3711
-7740

query I rowsort
SELECT ALL - - ( + col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col1 + - col2 * col0 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - - col0 * 43 * - col1 AS col2 FROM tab2 AS cor0
----
-197886
-57749
-9331

onlyif mysql # use DIV operator for integer division
query I rowsort label-1926
SELECT ALL + - cor0.col2 DIV col2 col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL + - cor0.col2 / col2 col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + + col0 + - 31 FROM tab0 AS cor0
----
-7
4
58

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 + col0 + col0 * + cor0.col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT - - col2 + - 43 + - col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1449
-693
-745

query I rowsort
SELECT - 57 + 26 FROM tab2 AS cor0
----
-31
-31
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 33 col2 FROM tab2, tab2 cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

onlyif mysql # use DIV operator for integer division
query I rowsort label-1933
SELECT 29 + - col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-1933
SELECT 29 + - col0 / + col1 AS col2 FROM tab0 AS cor0
----
29
29
29

query I rowsort
SELECT ( 6 ) + - col2 - col1 AS col2 FROM tab0
----
-113
-167
-92

query I rowsort
SELECT col1 + - 39 AS col1 FROM tab2 AS cor0
----
-22
-8
20

query I rowsort
SELECT cor1.col1 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - 1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT - - col0 * - 24 AS col1 FROM tab2 AS cor0
----
-168
-1872
-1896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col0 col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - - 38 * cor0.col1 + + 98 FROM tab2 AS cor0
----
1276
2340
744

query I rowsort
SELECT + ( col0 ) + - ( col1 * col1 ) FROM tab0 AS cor0
----
-7372
-8192
-9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-1942
SELECT ALL - col2 DIV - 19 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-1942
SELECT ALL - col2 / - 19 FROM tab0
----
0
1
4

query I rowsort
SELECT DISTINCT 73 * + col0 + - 15 * col1 + - col2 FROM tab0 AS cor0
----
1099
429
5050

query I rowsort
SELECT ALL + - col1 + - col2 - + col1 AS col2 FROM tab1 AS cor0
----
-106
-122
-77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1945
SELECT DISTINCT - ( - col0 ) * CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT - ( - col0 ) * CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + ( col1 ) * col0 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT col2 + 34 AS col1 FROM tab2 AS cor0
----
60
61
72

query I rowsort
SELECT + cor0.col1 * 20 AS col1 FROM tab1 AS cor0
----
200
260
520

onlyif mysql # use DIV operator for integer division
query I rowsort label-1949
SELECT - col0 DIV + col1 + - col1 AS col0 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-1949
SELECT - col0 / + col1 + - col1 AS col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT - col1 * ( + col2 ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1951
SELECT DISTINCT - col1 * CAST( + col0 AS SIGNED ) * tab1.col2 + col2 FROM tab1
----
-36423
-4158
-99744

skipif mysql # not compatible
query I rowsort label-1951
SELECT DISTINCT - col1 * CAST ( + col0 AS INTEGER ) * tab1.col2 + col2 FROM tab1
----
-36423
-4158
-99744

query I rowsort
SELECT DISTINCT - tab0.col2 + 56 * - col2 AS col1 FROM tab0
----
-1881
-4674
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * tab1.col0 * col0 col2 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT - + col0 - - cor0.col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL + cor0.col2 + - cor0.col2 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 86dbd337f00ab84c613ad03d6fc06e28

query I rowsort
SELECT ALL + - 59 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT 33 - - col2 AS col0 FROM tab0
----
115
34
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col1 col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + col1 * + ( col1 ) + col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT col0 * col1 + col2 + col0 FROM tab0
----
2121
3431
8270

query I rowsort
SELECT DISTINCT - col2 - - tab2.col1 AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL tab2.col2 - - tab2.col1 FROM tab2
----
55
58
85

query I rowsort
SELECT 50 - + col0 AS col1 FROM tab1
----
-14
-30
47

query I rowsort
SELECT tab1.col0 + - col2 * col1 * col1 + 36 FROM tab1
----
-16108
-36465
-5600

query I rowsort
SELECT DISTINCT - col1 * + col1 - ( col1 ) AS col0 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT DISTINCT - col2 + 92 AS col2 FROM tab0 cor0
----
10
59
91

query I rowsort
SELECT ALL - col0 * 94 AS col0 FROM tab0 AS cor0
----
-2256
-3290
-8366

query I rowsort
SELECT ALL - + col0 * - col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col1 + 78 FROM tab0 AS cor0
----
164
169
175

query I rowsort
SELECT - col2 * cor0.col0 + 2 AS col0 FROM tab2 AS cor0
----
-187
-2026
-3000

query I rowsort
SELECT + col0 + + ( - col2 ) FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col1 FROM tab0
----
23
23
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-1974
SELECT ( - 36 ) DIV + col2 col0 FROM tab0 AS cor0
----
-1
-36
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1974
SELECT ( - 36 ) / + col2 col0 FROM tab0 AS cor0
----
-1
-36
0

query I rowsort
SELECT + + col2 * - col2 + col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT - 40 * col2 FROM tab2 AS cor0
----
-1040
-1080
-1520

onlyif mysql # use DIV operator for integer division
query I rowsort label-1977
SELECT + col1 - + col2 * CAST( - col1 AS SIGNED ) DIV col2 FROM tab0 AS cor0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-1977
SELECT + col1 - + col2 * CAST ( - col1 AS INTEGER ) / col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + 89 + col0 * col2 AS col0 FROM tab1 AS cor0
----
251
3737
7769

onlyif mysql # use DIV operator for integer division
query I rowsort label-1979
SELECT DISTINCT - cor1.col2 DIV 6 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-13
-5
0

skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT - cor1.col2 / 6 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-13
-5
0

query I rowsort
SELECT DISTINCT + col1 * + col2 + col0 * cor0.col0 FROM tab0 AS cor0
----
1322
15383
3414

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 col1 FROM tab0 cor0
----
8
8
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1982
SELECT DISTINCT + col2 + + col0 DIV - col0 + + 63 AS col0 FROM tab0 AS cor0
----
144
63
95

skipif mysql # not compatible
query I rowsort label-1982
SELECT DISTINCT + col2 + + col0 / - col0 + + 63 AS col0 FROM tab0 AS cor0
----
144
63
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-1983
SELECT ALL - col2 DIV col0 - + 6 FROM tab1 AS cor0
----
-24
-6
-7

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL - col2 / col0 - + 6 FROM tab1 AS cor0
----
-24
-6
-7

query I rowsort
SELECT ALL ( col2 ) * col2 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
1482
702
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 + col1 col1 FROM tab2 AS cor0
----
10
24
52

query I rowsort
SELECT ALL - - 9 - + col0 * 64 AS col0 FROM tab1 AS cor0
----
-183
-4087
-5111

query I rowsort
SELECT ALL + col2 * - col1 + + ( + cor0.col2 ) AS col0 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT col2 * + col1 + 93 * - cor0.col0 + - col2 AS col0 FROM tab1 AS cor0
----
-5439
-6288
1071

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + col2 col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + - 82 AS col2 FROM tab1 AS cor0
----
-82
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 - - col1 * col1 col1 FROM tab0 cor0
----
7310
8190
9312

query I rowsort
SELECT DISTINCT - - 58 - - cor0.col0 FROM tab0 AS cor0
----
147
82
93

query I rowsort
SELECT col0 * col1 * col0 AS col0 FROM tab2 AS cor0
----
106097
1519
358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col0 col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL 88 + col2 FROM tab1 cor0
----
142
145
184

onlyif mysql # use DIV operator for integer division
query I rowsort label-1996
SELECT DISTINCT + - col0 + + ( col0 ) DIV + col1 FROM tab2 cor0
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-1996
SELECT DISTINCT + - col0 + + ( col0 ) / + col1 FROM tab2 cor0
----
-7
-75
-77

query I rowsort
SELECT + col2 * - 82 - col1 FROM tab0 AS cor0
----
-179
-2792
-6815

query I rowsort
SELECT DISTINCT + col1 + col1 AS col2 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT col0 * - col0 - col2 FROM tab2 AS cor0
----
-6110
-6279
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2000
SELECT ALL - cor0.col0 * CAST( - col1 AS SIGNED ) * - col2 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL - cor0.col0 * CAST ( - col1 AS INTEGER ) * - col2 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT - col0 + 68 * col2 AS col0 FROM tab0 cor0
----
2220
33
5487

query I rowsort
SELECT ALL 20 - col1 FROM tab2
----
-11
-39
3

query I rowsort
SELECT DISTINCT + 42 * - 17 AS col0 FROM tab2 AS cor0
----
-714

query I rowsort
SELECT DISTINCT 29 FROM tab1, tab0 AS cor0
----
29

query I rowsort
SELECT - ( col1 ) + - col1 * 61 AS col2 FROM tab1 AS cor0
----
-1612
-620
-806

query I rowsort
SELECT DISTINCT - col2 + + 52 AS col0 FROM tab0 AS cor0
----
-30
19
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2007
SELECT DISTINCT - ( + col2 ) + + col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2007
SELECT DISTINCT - ( + col2 ) + + col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2008
SELECT ALL - CAST( NULL AS SIGNED ) + col0 * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL - CAST ( NULL AS INTEGER ) + col0 * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 66 AS col2 FROM tab0 cor0
----
-66
-66
-66

query I rowsort
SELECT DISTINCT - - 18 + 52 * cor0.col0 FROM tab1 AS cor0
----
174
3346
4178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - 17 col0 FROM tab1
----
-20
-81
-97

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab1 cor0, tab1 cor1
----
10
13
26

query I rowsort
SELECT DISTINCT - ( + col1 ) * col2 FROM tab0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2014
SELECT CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2014
SELECT CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2015
SELECT DISTINCT CAST( 12 AS SIGNED ) col0 FROM tab0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT CAST ( 12 AS INTEGER ) col0 FROM tab0
----
12

query I rowsort
SELECT col0 FROM tab0 WHERE ( tab0.col2 ) NOT IN ( col0 / + tab0.col2 )
----
24
35
89

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 + - col2 * - col2 ) <= - col2
----

query I rowsort
SELECT ALL tab2.col2 * col2 AS col0 FROM tab2
----
1444
676
729

query I rowsort
SELECT tab0.col2 * col1 * - tab0.col0 FROM tab0
----
-3395
-664118
-68112

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) = col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT + col0 + + tab2.col2 * col1 - col2 FROM tab2
----
1586
687
817

query I rowsort
SELECT DISTINCT - tab0.col2 + - col1 + col1 AS col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT - col1 - + col1 * col0 AS col1 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT + col1 + - col0 + + col0 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL tab1.col2 + - col0 AS col1 FROM tab1 WHERE - col1 * - col0 + - col2 NOT IN ( - col0 )
----
-7
16
51

query I rowsort
SELECT ALL - tab0.col0 + tab0.col2 * - col0 AS col2 FROM tab0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT + col1 * col1 * col1 AS col1 FROM tab0
----
636056
753571
912673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 * col1 col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT tab2.col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col2 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 * - col2 * + col0 + col0 col0 FROM tab0
----
-3360
-664029
-68088

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE + col1 IN ( + col1 )
----
-10
-13
-26

query I rowsort
SELECT col1 * + tab0.col2 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + col0 * - col1 - + col2 * + tab1.col1 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2035
SELECT col0 DIV - col0 + + tab1.col1 AS col0 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-2035
SELECT col0 / - col0 + + tab1.col1 AS col0 FROM tab1
----
12
25
9

query I rowsort
SELECT col2 FROM tab2 WHERE col2 + col1 IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 * col2 + - col0 / - col0 NOT IN ( col0 + col0 + + col1 )
----

query I rowsort
SELECT col1 * - col1 * - col2 + col0 FROM tab1
----
16304
36507
5764

query I rowsort
SELECT - col2 + + col0 * - col0 FROM tab1 AS cor0
----
-4153
-63
-6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-2040
SELECT ALL - col1 DIV col2 - cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL - col1 / col2 - cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - col2 * + col1 FROM tab2 WHERE col2 NOT IN ( - col1 + + col1 )
----
-1534
-646
-837

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) < col0
----

query I rowsort
SELECT + ( - 59 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col2 col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL 37 * + 20 FROM tab1 AS cor0
----
740
740
740

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2046
SELECT DISTINCT + CAST( - 14 AS SIGNED ) FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT + CAST ( - 14 AS INTEGER ) FROM tab2 AS cor0
----
-14

query I rowsort
SELECT DISTINCT + col2 - 1 AS col1 FROM tab1
----
53
56
95

query I rowsort
SELECT DISTINCT + 82 - 63 AS col2 FROM tab0
----
19

query I rowsort
SELECT DISTINCT - 69 AS col2 FROM tab1, tab2, tab2 cor0
----
-69

query I rowsort
SELECT + 17 AS col0 FROM tab2
----
17
17
17

query I rowsort
SELECT ALL + 45 + col0 AS col1 FROM tab1
----
109
125
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-2052
SELECT - col0 + + 36 DIV - col2 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2052
SELECT - col0 + + 36 / - col2 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + col0 * + 92 AS col2 FROM tab2 AS cor0
----
644
7176
7268

query I rowsort
SELECT ALL col0 * + 2 + - col2 AS col0 FROM tab1 AS cor0
----
-48
64
71

query I rowsort
SELECT DISTINCT - - col0 + col1 AS col2 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL + col2 + col2 * + col1 FROM tab0 AS cor0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - cor0.col0 col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT + 49 * - col2 AS col2 FROM tab2 AS cor0
----
-1274
-1323
-1862

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 44 + col2 * - col2 col2 FROM tab2 AS cor0
----
-1488
-720
-773

query I rowsort
SELECT ALL 57 + cor0.col0 - col2 FROM tab1 AS cor0
----
41
6
64

query I rowsort
SELECT DISTINCT col1 * - 25 * col0 - + col2 FROM tab0 cor0
----
-202557
-51633
-84876

query I rowsort
SELECT 54 * + col2 FROM tab2 cor0
----
1404
1458
2052

query I rowsort
SELECT cor0.col2 + - tab0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 058c984b3f4456ee2c7744387482643c

query I rowsort
SELECT + ( 46 + + col2 ) FROM tab2
----
72
73
84

query I rowsort
SELECT 49 * col0 AS col2 FROM tab1
----
147
3136
3920

query I rowsort
SELECT DISTINCT ( - col2 ) * col2 - col2 * - col0 AS col1 FROM tab1
----
-1536
-2754
399

query I rowsort
SELECT ALL + - col1 * - cor0.col0 + - col1 AS col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT + 40 * + col1 AS col2 FROM tab1 AS cor0
----
1040
400
520

query I rowsort
SELECT 3 - - col0 * - cor0.col0 FROM tab0 cor0
----
-1222
-573
-7918

query I rowsort
SELECT DISTINCT ( + col0 * col0 ) - col1 * + col0 AS col1 FROM tab2
----
-168
1482
4898

query I rowsort
SELECT - 89 * + col0 - + col0 FROM tab2 AS cor0
----
-630
-7020
-7110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 + + 49 * + tab0.col2 + col2 col2 FROM tab0
----
1617
4018
49

query I rowsort
SELECT ( + col0 ) + col2 + tab2.col1 * col0 FROM tab2
----
1460
251
4706

onlyif mysql # use DIV operator for integer division
query I rowsort label-2074
SELECT 69 DIV + col1 + + col0 * col0 AS col1 FROM tab0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-2074
SELECT 69 / + col1 + + col0 * col0 AS col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT ALL + tab2.col2 - - 18 AS col1 FROM tab2
----
44
45
56

query I rowsort
SELECT DISTINCT + col0 * col1 + + ( - col0 + - col1 * + col1 ) AS col1 FROM tab0 AS cor0
----
-271
-5356
-6049

query I rowsort
SELECT DISTINCT col1 - + col2 * + cor0.col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ( - tab2.col2 ) * col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + 68 AS col1 FROM tab1, tab0, tab2 AS cor0
----
68

query I rowsort
SELECT DISTINCT - col2 * - col2 - 4 FROM tab2 AS cor0
----
1440
672
725

query I rowsort
SELECT DISTINCT - + cor0.col0 * col0 + + ( - col0 * + col0 ) - - col1 FROM tab1 AS cor0
----
-12787
-8182
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2082
SELECT DISTINCT cor0.col1 * CAST( NULL AS SIGNED ) + + 71 + cor0.col1 / - col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT cor0.col1 * CAST ( NULL AS INTEGER ) + + 71 + cor0.col1 / - col0 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 * + 93 AS col1 FROM tab2 AS cor0
----
1581
2883
5487

query I rowsort
SELECT ALL col1 * col0 + col2 + + col2 * col1 FROM tab1
----
1267
1536
2384

query I rowsort
SELECT ALL col2 * col0 + tab1.col1 * - col1 * + col0 FROM tab1
----
-1866
-2752
-5840

onlyif mysql # use DIV operator for integer division
query I rowsort label-2086
SELECT col0 DIV col0 + ( + tab0.col1 ) AS col0 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-2086
SELECT col0 / col0 + ( + tab0.col1 ) AS col0 FROM tab0
----
87
92
98

query I rowsort
SELECT - + cor0.col1 * 32 AS col1 FROM tab2 cor0
----
-1888
-544
-992

onlyif mysql # use DIV operator for integer division
query I rowsort label-2088
SELECT - cor0.col2 DIV - 41 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2088
SELECT - cor0.col2 / - 41 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col1 + col2 * col1 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
1331
1432
617

query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - col0 * - 84 AS col2 FROM tab0 AS cor0
----
2016
2940
7476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col1 col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT col2 + col0 * - col0 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT - col1 + + col2 * col0 AS col0 FROM tab1 AS cor0
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-2095
SELECT DISTINCT col1 DIV tab0.col1 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2095
SELECT DISTINCT col1 / tab0.col1 AS col2 FROM tab0
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL AND ( - col0 ) NOT IN ( + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2097
SELECT DISTINCT col2 * col2 DIV tab1.col2 AS col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT col2 * col2 / tab1.col2 AS col2 FROM tab1
----
54
57
96

query I rowsort
SELECT - - cor0.col2 * + col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + col0 + col0 * cor0.col1 AS col0 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT 0 * col0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 6 + col2 + + col0 AS col2 FROM tab2
----
110
123
40

query I rowsort
SELECT + 56 * + tab1.col2 * + col1 + + col2 FROM tab1
----
31977
69984
78678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 + - col1 col0 FROM tab0 AS cor0
----
-163
-168
-174

query I rowsort
SELECT + col2 * col1 + - col0 AS col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT + + 87 - cor0.col1 FROM tab1 AS cor0
----
61
74
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - cor0.col1 col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - col2 * col2 + - col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT ALL - col2 * - col1 + + col1 * col1 FROM tab1 AS cor0
----
1417
2080
670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 col1 FROM tab1 AS cor0
----
99

query I rowsort
SELECT ALL cor0.col2 * + col0 + - col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT + - 21 * col1 AS col2 FROM tab1 AS cor0
----
-210
-273
-546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col1 col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL + + col2 + + col2 + - cor0.col0 FROM tab1 AS cor0
----
105
112
50

query I rowsort
SELECT - - col1 - col0 * - col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - 63 * - cor0.col0 * + col0 FROM tab2 AS cor0
----
3087
383292
393183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 + + col0 * - col0 * col2 col0 FROM tab0
----
-1149
-18932
-649446

query I rowsort
SELECT ALL ( + col1 ) * col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT col2 * col0 - cor0.col2 AS col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - col0 * - cor0.col2 - 59 AS col0 FROM tab1 AS cor0
----
103
3589
7621

query I rowsort
SELECT ALL + + ( col1 ) + - col0 * 65 * - col1 FROM tab2 AS cor0
----
14136
299189
87312

query I rowsort
SELECT col0 * - col0 + col0 * col1 FROM tab0 AS cor0
----
1488
178
2170

query I rowsort
SELECT + + col2 + cor0.col1 * + col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT col0 * cor0.col0 + - col1 + col1 * + cor0.col2 AS col2 FROM tab2 cor0
----
6870
7559
855

query I rowsort
SELECT DISTINCT - 45 * cor0.col2 FROM tab2 cor0
----
-1170
-1215
-1710

query I rowsort
SELECT 6 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1, tab2 cor2
----
81 values hashing to 44f233d1b3804e00d9436c0a41d1e2c8

query I rowsort
SELECT + - ( col1 ) * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 col2 FROM tab2, tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + - col1 * cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL - ( col2 + - col2 * + 65 ) AS col1 FROM tab1
----
3456
3648
6144

query I rowsort
SELECT - 84 * + col1 FROM tab1 cor0
----
-1092
-2184
-840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2132
SELECT CAST( 12 AS SIGNED ) FROM tab2
----
12
12
12

skipif mysql # not compatible
query I rowsort label-2132
SELECT CAST ( 12 AS INTEGER ) FROM tab2
----
12
12
12

query I rowsort
SELECT ALL + - 70 FROM tab0 AS cor0
----
-70
-70
-70

query I rowsort
SELECT + cor0.col2 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT + 30 FROM tab1, tab2 AS cor0
----
30

query I rowsort
SELECT ALL - 92 AS col1 FROM tab0
----
-92
-92
-92

query I rowsort
SELECT tab0.col1 + + 40 FROM tab0, tab1 AS cor0
----
9 values hashing to e0e7e667fbf86531d37dabb9ed0ff2fa

query I rowsort
SELECT 46 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT - cor0.col2 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - col0 - - tab2.col0 * col0 FROM tab2
----
42
6006
6162

query I rowsort
SELECT col0 * + col2 * 99 + + col2 FROM tab2
----
18738
200798
297236

query I rowsort
SELECT col2 * ( + 84 ) FROM tab0
----
2772
6888
84

query I rowsort
SELECT + col2 * + ( tab2.col1 ) FROM tab2
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 * - 34 col0 FROM tab1
----
22984
3400
5746

query I rowsort
SELECT - + 88 + col1 + col0 FROM tab1 AS cor0
----
-14
-59
5

query I rowsort
SELECT + cor0.col2 * cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2147
SELECT - + CAST( - col1 AS SIGNED ) * + col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-2147
SELECT - + CAST ( - col1 AS INTEGER ) * + col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT 17 + 75 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT - tab0.col0 + col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + col1 * ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - col0 * col0 * - col1 AS col0 FROM tab1
----
234
40960
83200

query I rowsort
SELECT - 4 * 75 FROM tab0, tab0 AS cor0
----
9 values hashing to 8bb594e94001159a15ba26d8c530a962

query I rowsort
SELECT DISTINCT - 80 * - cor1.col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
560
6240
6320

query I rowsort
SELECT DISTINCT col2 + 54 * col1 * - col2 + - 50 * + col2 AS col2 FROM tab0 AS cor0
----
-154869
-406966
-5287

query I rowsort
SELECT ALL col1 * + ( col1 + - col0 ) * + 38 FROM tab0 AS cor0
----
202616
228532
6916

query I rowsort
SELECT ALL + cor0.col0 + 85 * - col1 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-114076
-18438
-391092

query I rowsort
SELECT DISTINCT 40 FROM tab1, tab1 cor0, tab1 AS cor1
----
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2158
SELECT CAST( NULL AS SIGNED ) + cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2158
SELECT CAST ( NULL AS INTEGER ) + cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 77 + + 92 AS col2 FROM tab2 AS cor0
----
169
169
169

onlyif mysql # use DIV operator for integer division
query I rowsort label-2160
SELECT DISTINCT - col0 DIV col2 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2160
SELECT DISTINCT - col0 / col2 FROM tab1 cor0
----
-1
0

query I rowsort
SELECT ALL + - 98 * - col0 AS col1 FROM tab0 AS cor0
----
2352
3430
8722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 col2 FROM tab0 AS cor0
----
72
72
72

query I rowsort
SELECT + + ( col0 ) * cor0.col0 FROM tab0 cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2164
SELECT DISTINCT + col0 * ( - cor0.col1 ) * CAST( col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
-13520
-2028
-6400

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT + col0 * ( - cor0.col1 ) * CAST ( col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ( + 52 ) + + col1 * + 46 AS col0 FROM tab0 AS cor0
----
4008
4238
4514

query I rowsort
SELECT ALL 88 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT ALL 11 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2168
SELECT CAST( - 73 AS SIGNED ) FROM tab0 AS cor0
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-2168
SELECT CAST ( - 73 AS INTEGER ) FROM tab0 AS cor0
----
-73
-73
-73

query I rowsort
SELECT DISTINCT ( col0 ) + + col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL - col0 * + cor0.col0 + ( + col1 ) AS col2 FROM tab2 AS cor0
----
-18
-6025
-6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-2171
SELECT - col0 + - col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-2171
SELECT - col0 + - col1 / + col0 AS col1 FROM tab2 AS cor0
----
-11
-78
-79

query I rowsort
SELECT ALL 70 + cor0.col2 AS col2 FROM tab0 AS cor0
----
103
152
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - cor0.col0 * - col2 col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - - 88 + - col1 * + col2 FROM tab2 AS cor0
----
-1446
-558
-749

query I rowsort
SELECT DISTINCT + - col2 * - col1 - ( - col2 ) AS col1 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-2176
SELECT - - 86 + col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
104
86
87

skipif mysql # not compatible
query I rowsort label-2176
SELECT - - 86 + col2 / + col0 AS col2 FROM tab1 AS cor0
----
104
86
87

query I rowsort
SELECT - 96 * - col0 + + ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
2218
3263
8453

query I rowsort
SELECT ( + col1 ) * col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT ALL - 40 * col0 AS col1 FROM tab1 AS cor0
----
-120
-2560
-3200

query I rowsort
SELECT - cor0.col1 + + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 51 * col1 AS col1 FROM tab2 AS cor0
----
1581
3009
867

query I rowsort
SELECT - 60 * + col0 - col2 FROM tab2
----
-447
-4706
-4778

onlyif mysql # use DIV operator for integer division
query I rowsort label-2183
SELECT DISTINCT + col1 + cor0.col0 * col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-2183
SELECT DISTINCT + col1 + cor0.col0 * col2 / + col2 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - col0 * - col1 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT - 21 * - cor0.col2 + + col2 AS col0 FROM tab2 AS cor0
----
572
594
836

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2186
SELECT 93 * + col1 * ( 46 ) + - col1 * CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
131657
248921
72437

skipif mysql # not compatible
query I rowsort label-2186
SELECT 93 * + col1 * ( 46 ) + - col1 * CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
131657
248921
72437

query I rowsort
SELECT tab2.col0 - + tab2.col1 AS col2 FROM tab2
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 - + cor0.col1 * col1 * - ( col1 + col2 * - ( 53 ) ) col2 FROM tab2 AS cor0
----
-1345211
-4589411
-574131

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2189
SELECT - col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2189
SELECT - col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col0 - - ( - 24 ) FROM tab0 AS cor0
----
0
11
65

query I rowsort
SELECT DISTINCT + - col0 + + col0 + + 64 FROM tab1 AS cor0
----
64

query I rowsort
SELECT ALL 24 + - tab1.col2 + ( col2 * col2 ) AS col2 FROM tab1
----
2886
3216
9144

query I rowsort
SELECT ALL - col0 + - tab1.col1 AS col1 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT ALL 58 + + col2 AS col2 FROM tab2
----
84
85
96

query I rowsort
SELECT DISTINCT col1 * - col0 + 95 FROM tab2
----
-122
-1248
-4507

query I rowsort
SELECT ALL + col2 * - col2 + + 8 + 60 * - col2 FROM tab1
----
-14968
-6148
-6661

query I rowsort
SELECT col0 + 59 FROM tab2
----
137
138
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2198
SELECT + cor1.col0 DIV - cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0cf123df00ec8476d9e0a7b2d2f6001e

skipif mysql # not compatible
query I rowsort label-2198
SELECT + cor1.col0 / - cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0cf123df00ec8476d9e0a7b2d2f6001e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2199
SELECT - - cor0.col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2199
SELECT - - cor0.col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 * + 16 + col2 * col1 FROM tab1 AS cor0
----
1040
410
988

query I rowsort
SELECT - col0 + 43 FROM tab1 AS cor0
----
-21
-37
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2202
SELECT ALL col1 + CAST( NULL AS SIGNED ) / + 38 + - col0 * col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL col1 + CAST ( NULL AS INTEGER ) / + 38 + - col0 * col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * + 58 + col1 * - col0 FROM tab1 AS cor0
----
-286
-60
1430

query I rowsort
SELECT DISTINCT + col1 - 74 FROM tab0 AS cor0
----
12
17
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-2205
SELECT - col0 DIV CAST( col0 AS SIGNED ) + col1 FROM tab2 cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-2205
SELECT - col0 / CAST ( col0 AS INTEGER ) + col1 FROM tab2 cor0
----
16
30
58

query I rowsort
SELECT DISTINCT col0 * 53 + ( + col2 ) FROM tab1 cor0
----
213
3449
4336

onlyif mysql # use DIV operator for integer division
query I rowsort label-2207
SELECT col2 DIV + 40 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2207
SELECT col2 / + 40 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col2 * + ( + cor0.col1 ) * cor0.col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ALL tab1.col0 * ( + tab1.col1 ) * ( + 87 ) - tab1.col2 FROM tab1
----
55623
6732
90384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 * + col0 col0 FROM tab2 cor0
----
406
4524
4582

query I rowsort
SELECT - col2 * - 9 AS col1 FROM tab0 AS cor0
----
297
738
9

query I rowsort
SELECT + - col2 * - ( col1 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT 76 * col1 AS col0 FROM tab1 AS cor0
----
1976
760
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col2 ) * - col1 col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + ( 86 ) AS col2 FROM tab0 AS cor0
----
86

query I rowsort
SELECT DISTINCT + 72 AS col0 FROM tab1, tab0 AS cor0
----
72

query I rowsort
SELECT DISTINCT col1 * col0 * + col1 AS col2 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT + 2 + col1 - - col0 AS col0 FROM tab0 AS cor0
----
112
134
182

query I rowsort
SELECT - col1 * - col2 * + col1 + - col0 AS col1 FROM tab1
----
16144
36501
5636

query I rowsort
SELECT tab2.col2 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT ALL + - cor0.col2 * - col0 + - cor0.col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT - + 88 * + col2 AS col0 FROM tab1 AS cor0
----
-4752
-5016
-8448

query I rowsort
SELECT col1 * + col2 * - col1 + + col2 FROM tab1 AS cor0
----
-16128
-36450
-5643

onlyif mysql # use DIV operator for integer division
query I rowsort label-2224
SELECT - 73 DIV + cor0.col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2224
SELECT - 73 / + cor0.col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL 48 * col1 FROM tab2 AS cor0
----
1488
2832
816

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 * + col2 * CAST ( - col1 AS REAL ) FROM tab1 AS cor0
----
16224
36504
5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col0 ) * - 94 + col2 + - col2 col1 FROM tab0 AS cor0
----
2256
3290
8366

query I rowsort
SELECT DISTINCT - col0 + col1 + col1 * + col1 FROM tab2 AS cor0
----
227
3462
985

query I rowsort
SELECT DISTINCT 10 FROM tab1, tab1 AS cor0
----
10

query I rowsort
SELECT DISTINCT 14 AS col1 FROM tab1, tab1 AS cor0
----
14

query I rowsort
SELECT ( 87 ) FROM tab2, tab2 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT - - cor0.col1 AS col2 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT col0 * 45 AS col2 FROM tab0
----
1080
1575
4005

query I rowsort
SELECT + - 26 * + col1 * - col0 AS col0 FROM tab2 AS cor0
----
119652
34918
5642

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2235
SELECT ( + ( + cor0.col1 / + CAST( NULL AS SIGNED ) ) ) * - cor0.col2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2235
SELECT ( + ( + cor0.col1 / + CAST ( NULL AS INTEGER ) ) ) * - cor0.col2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( col0 ) * col2 * - 9 FROM tab0 AS cor0
----
315
65682
7128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor1.col2 col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL - col1 * - col0 * col0 FROM tab1
----
234
40960
83200

query I rowsort
SELECT ALL ( + 87 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT ALL + col0 * col1 * tab2.col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT - col2 * - col1 + + 49 AS col1 FROM tab1 cor0
----
1297
1453
619

query I rowsort
SELECT ALL cor0.col2 + - col0 * 81 FROM tab1 AS cor0
----
-189
-5127
-6384

query I rowsort
SELECT ALL - 20 + col0 + col1 AS col0 FROM tab1 AS cor0
----
54
73
9

query I rowsort
SELECT DISTINCT - - 24 + cor0.col0 * + 87 * cor0.col0 AS col1 FROM tab1 AS cor0
----
356376
556824
807

query I rowsort
SELECT DISTINCT - col0 + col1 + 60 AS col1 FROM tab2 cor0
----
-2
41
84

query I rowsort
SELECT 82 + col2 AS col1 FROM tab1 cor0
----
136
139
178

onlyif mysql # use DIV operator for integer division
query I rowsort label-2247
SELECT DISTINCT - ( + col2 ) DIV ( col1 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2247
SELECT DISTINCT - ( + col2 ) / ( col1 ) AS col0 FROM tab0
----
0

query I rowsort
SELECT + 82 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

onlyif mysql # use DIV operator for integer division
query I rowsort label-2249
SELECT DISTINCT col0 DIV - col2 FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-2249
SELECT DISTINCT col0 / - col2 FROM tab0 cor0
----
-1
-35
0

query I rowsort
SELECT + - col0 * + col1 * 65 FROM tab2 AS cor0
----
-14105
-299130
-87295

query I rowsort
SELECT col1 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + col1 * 54 + + col0 AS col1 FROM tab2
----
1681
3264
997

query I rowsort
SELECT + col0 * - col1 + + 2 FROM tab1 AS cor0
----
-1038
-638
-76

query I rowsort
SELECT col1 * - col0 + + col1 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT cor0.col0 + + cor0.col2 AS col1 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT + - 10 AS col2 FROM tab2 AS cor0
----
-10
-10
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 * + col0 col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT ALL 70 FROM tab2, tab0 cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT ALL - - cor0.col0 * 96 FROM tab1 cor0
----
288
6144
7680

query I rowsort
SELECT ALL - col0 + 85 * + col0 FROM tab2 AS cor0
----
588
6552
6636

onlyif mysql # use DIV operator for integer division
query I rowsort label-2261
SELECT DISTINCT ( col1 ) * col2 DIV 93 AS col2 FROM tab2 AS cor0
----
16
6
9

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT ( col1 ) * col2 / 93 AS col2 FROM tab2 AS cor0
----
16
6
9

query I rowsort
SELECT DISTINCT + ( + col1 ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + - col2 * - col2 * col1 - + 45 AS col2 FROM tab0 AS cor0
----
52
611839
93609

onlyif mysql # use DIV operator for integer division
query I rowsort label-2264
SELECT + 78 DIV col2 - + 76 FROM tab0 AS cor0
----
-74
-76
2

skipif mysql # not compatible
query I rowsort label-2264
SELECT + 78 / col2 - + 76 FROM tab0 AS cor0
----
-74
-76
2

query I rowsort
SELECT ALL 15 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT ALL + col2 - col0 * - 95 * + col0 FROM tab0 AS cor0
----
116376
54753
752577

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 - + col1 * - col0 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - tab1.col0 * 86 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 0246696263f11371e6d6fb8f79dfa27d

onlyif mysql # use DIV operator for integer division
query I rowsort label-2269
SELECT - 79 DIV - col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2269
SELECT - 79 / - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - + col2 * col0 + + col0 + col0 AS col2 FROM tab0 cor0
----
-7120
-744
35

query I rowsort
SELECT ALL col2 * - 38 FROM tab0 AS cor0
----
-1254
-3116
-38

query I rowsort
SELECT DISTINCT + col0 * col1 - - col2 AS col1 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT - col0 * col2 + tab0.col1 AS col0 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT ( col0 ) + - ( - col2 ) * col0 + + ( 1 ) AS col0 FROM tab1
----
166
3713
7761

query I rowsort
SELECT - col0 * + tab0.col1 * col2 + + 86 + col2 * tab0.col2 FROM tab0
----
-3308
-657308
-66937

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2276
SELECT - col1 * + col1 * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2276
SELECT - col1 * + col1 * + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - col1 - col2 AS col1 FROM tab2
----
251
3455
934

query I rowsort
SELECT ALL - 37 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207

query I rowsort
SELECT - - col2 * + col2 + - 48 FROM tab1 AS cor0
----
2868
3201
9168

query I rowsort
SELECT 47 * col1 + + col0 + + 5 AS col1 FROM tab2
----
1469
2856
883

onlyif mysql # use DIV operator for integer division
query I rowsort label-2281
SELECT - 25 DIV + 97 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2281
SELECT - 25 / + 97 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - ( col0 * 99 + + col0 ) FROM tab2
----
-700
-7800
-7900

query I rowsort
SELECT - 27 AS col2 FROM tab2 cor0
----
-27
-27
-27

query I rowsort
SELECT + 5 * col1 AS col0 FROM tab0 AS cor0
----
430
455
485

query I rowsort
SELECT DISTINCT - 10 * + col2 + - 26 AS col0 FROM tab1 AS cor0
----
-566
-596
-986

query I rowsort
SELECT DISTINCT + 14 * col2 FROM tab0 AS cor0
----
1148
14
462

query I rowsort
SELECT ALL + + col2 * - col0 + - col1 * - 14 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
-13322
-380
1288

query I rowsort
SELECT ALL - + col0 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT 35 FROM tab2 cor0
----
35
35
35

query I rowsort
SELECT DISTINCT 69 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2291
SELECT ALL - CAST( NULL AS SIGNED ) * ( tab0.col1 ) + CAST( 22 AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL - CAST ( NULL AS INTEGER ) * ( tab0.col1 ) + CAST ( 22 AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + col0 + + col2 AS col2 FROM tab2 cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2293
SELECT ALL + col2 * - col1 - + cor0.col2 DIV - col0 FROM tab1 AS cor0
----
-1247
-1386
-570

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL + col2 * - col1 - + cor0.col2 / - col0 FROM tab1 AS cor0
----
-1247
-1386
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2294
SELECT ALL col0 DIV col0 + 90 AS col2 FROM tab1 AS cor0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL col0 / col0 + 90 AS col2 FROM tab1 AS cor0
----
91
91
91

query I rowsort
SELECT ALL - 64 * 6 FROM tab0 AS cor0
----
-384
-384
-384

query I rowsort
SELECT 92 + col2 FROM tab1 AS cor0
----
146
149
188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + col1 ) * + col0 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col1 + + cor0.col2 * col2 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT DISTINCT + col0 + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT - col2 + 78 * col2 FROM tab1 AS cor0
----
4158
4389
7392

query I rowsort
SELECT + col0 + 40 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
287
3198
3239

query I rowsort
SELECT ALL + ( + col1 ) * col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT tab1.col0 + - 53 FROM tab1
----
-50
11
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-2304
SELECT - col2 - col1 DIV + tab2.col0 FROM tab2
----
-26
-31
-38

skipif mysql # not compatible
query I rowsort label-2304
SELECT - col2 - col1 / + tab2.col0 FROM tab2
----
-26
-31
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - ( - cor0.col0 ) ) col2 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2306
SELECT ALL + + CAST( NULL AS DECIMAL ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL + + CAST ( NULL AS REAL ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 * col1 col1 FROM tab2 AS cor0
----
1411
2573
4897

query I rowsort
SELECT DISTINCT + col1 + 59 * - col2 FROM tab1 AS cor0
----
-3160
-3353
-5651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - + col0 col2 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT cor0.col0 * - col0 + + col2 FROM tab1 AS cor0
----
-4039
-6304
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2311
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / col2 + col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / col2 + col0 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 * + col1 + + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT 18 * - col1 * col0 FROM tab1
----
-11520
-1404
-18720

onlyif mysql # use DIV operator for integer division
query I rowsort label-2314
SELECT 92 DIV - col2 FROM tab0
----
-1
-2
-92

skipif mysql # not compatible
query I rowsort label-2314
SELECT 92 / - col2 FROM tab0
----
-1
-2
-92

query I rowsort
SELECT col1 * + ( col1 ) - ( 5 ) AS col1 FROM tab1 AS cor0
----
164
671
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2316
SELECT ALL - CAST( NULL AS SIGNED ) + + 26 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL - CAST ( NULL AS INTEGER ) + + 26 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 16 + ( cor0.col1 ) FROM tab1 AS cor0
----
26
29
42

query I rowsort
SELECT DISTINCT cor0.col2 * ( + col2 ) + 41 AS col1 FROM tab1 AS cor0
----
2957
3290
9257

onlyif mysql # use DIV operator for integer division
query I rowsort label-2319
SELECT cor0.col1 DIV + col0 - - col2 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-2319
SELECT cor0.col1 / + col0 - - col2 FROM tab0 AS cor0
----
3
36
83

query I rowsort
SELECT + 90 * + col2 FROM tab2 cor0
----
2340
2430
3420

query I rowsort
SELECT - col2 * + col1 + - col2 FROM tab2 AS cor0
----
-1560
-684
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + col2 * + 95 + col2 col2 FROM tab1 AS cor0
----
5187
5536
9296

query I rowsort
SELECT + + 59 * + col2 + 73 AS col2 FROM tab2 AS cor0
----
1607
1666
2315

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2324
SELECT - 65 + col0 / - CAST( NULL AS SIGNED ) + + col2 * col2 * 99 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2324
SELECT - 65 + col0 / - CAST ( NULL AS INTEGER ) + + col2 * col2 * 99 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 12 + - col2 FROM tab1
----
-42
-45
-84

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 56 AS REAL ) * + col0 AS col2 FROM tab2
----
392
4368
4424

query I rowsort
SELECT - 83 FROM tab2, tab0 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT ALL tab1.col1 + col0 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT col1 * - 4 AS col2 FROM tab0 AS cor0
----
-344
-364
-388

query I rowsort
SELECT ALL - col2 + 45 FROM tab0 cor0
----
-37
12
44

query I rowsort
SELECT - col0 * + 12 FROM tab2 cor0
----
-84
-936
-948

query I rowsort
SELECT DISTINCT + col1 * col0 + + ( + col2 + + col2 ) AS col2 FROM tab2 AS cor0
----
1419
271
4654

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2333
SELECT ALL cor0.col1 * CAST( col2 AS SIGNED ) + + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL cor0.col1 * CAST ( col2 AS INTEGER ) + + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT col2 * + ( - col0 * - col2 ) + 16 FROM tab0 AS cor0
----
26152
51
598452

query I rowsort
SELECT DISTINCT - - col2 + + ( - ( col1 ) ) * - cor0.col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT col0 + + col2 * 38 FROM tab0 AS cor0
----
1278
3205
73

query I rowsort
SELECT ALL 21 * col0 AS col2 FROM tab0
----
1869
504
735

query I rowsort
SELECT - ( tab0.col2 ) * + 12 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 9365a349ab59848c2d9a3abf06116f5f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 * col2 col2 FROM tab1
----
4320
4560
7680

query I rowsort
SELECT ALL - cor0.col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT + 56 - col0 AS col2 FROM tab2 AS cor0
----
-22
-23
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-2342
SELECT - + 63 * col2 DIV col2 FROM tab0 cor0
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-2342
SELECT - + 63 * col2 / col2 FROM tab0 cor0
----
-63
-63
-63

query I rowsort
SELECT DISTINCT col0 - col1 * col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL col1 * - col1 * + col1 FROM tab1 AS cor0
----
-1000
-17576
-2197

query I rowsort
SELECT DISTINCT col0 + col2 * col2 AS col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT + col2 + + 18 AS col0 FROM tab2 cor0
----
44
45
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2347
SELECT + - 65 + + col1 * + CAST( + 88 AS SIGNED ) FROM tab0 AS cor0
----
7503
7943
8471

skipif mysql # not compatible
query I rowsort label-2347
SELECT + - 65 + + col1 * + CAST ( + 88 AS INTEGER ) FROM tab0 AS cor0
----
7503
7943
8471

query I rowsort
SELECT ( col2 ) * + col1 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL tab1.col0 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 + ( - 50 ) ) col2 FROM tab0
----
-136
-141
-147

query I rowsort
SELECT DISTINCT - 49 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-49

query I rowsort
SELECT - cor0.col1 * + col1 * + ( col2 * col2 ) FROM tab2 AS cor0
----
-2353156
-417316
-700569

query I rowsort
SELECT col1 * col2 * col2 + col0 * - col0 FROM tab2 AS cor0
----
18307
22550
33800

query I rowsort
SELECT DISTINCT 66 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
66

query I rowsort
SELECT + col1 + - col2 AS col2 FROM tab2 cor0
----
-21
33
4

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 cor2
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474

query I rowsort
SELECT ALL 10 + cor0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3f416bfbd4b3e8065cd42c3e00112554

query I rowsort
SELECT + col0 * 92 FROM tab1
----
276
5888
7360

query I rowsort
SELECT - col0 * - 24 AS col0 FROM tab2
----
168
1872
1896

onlyif mysql # use DIV operator for integer division
query I rowsort label-2360
SELECT DISTINCT col0 + col0 DIV + tab1.col1 FROM tab1
----
3
70
86

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT col0 + col0 / + tab1.col1 FROM tab1
----
3
70
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-2361
SELECT col0 + ( col2 ) DIV col2 + col2 * - col0 AS col2 FROM tab1
----
-158
-3583
-7599

skipif mysql # not compatible
query I rowsort label-2361
SELECT col0 + ( col2 ) / col2 + col2 * - col0 AS col2 FROM tab1
----
-158
-3583
-7599

query I rowsort
SELECT DISTINCT col2 * ( col2 ) FROM tab1
----
2916
3249
9216

query I rowsort
SELECT 22 * col0 FROM tab2
----
154
1716
1738

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2364
SELECT + CAST( col1 AS SIGNED ) * - col1 FROM tab2
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-2364
SELECT + CAST ( col1 AS INTEGER ) * - col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT 78 * 78 AS col0 FROM tab0
----
6084
6084
6084

query I rowsort
SELECT + ( 59 * col0 ) FROM tab2
----
413
4602
4661

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) * - col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - - ( - 81 ) + col0 FROM tab1 AS cor0
----
-1
-17
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2369
SELECT ALL - 16 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL - 16 / + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + ( + col2 ) + col2 * - col1 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT - 15 * col0 AS col1 FROM tab0 AS cor0
----
-1335
-360
-525

query I rowsort
SELECT + - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT - - col1 * + col1 + col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT cor0.col2 + cor0.col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT + + ( col2 ) - cor0.col2 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2376
SELECT ( + col2 ) DIV col2 + - col2 - col1 FROM tab0
----
-118
-172
-97

skipif mysql # not compatible
query I rowsort label-2376
SELECT ( + col2 ) / col2 + - col2 - col1 FROM tab0
----
-118
-172
-97

query I rowsort
SELECT - ( + col0 * tab1.col1 ) + + 81 FROM tab1
----
-559
-959
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2378
SELECT DISTINCT - col1 DIV + col1 + - 95 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-2378
SELECT DISTINCT - col1 / + col1 + - 95 FROM tab2
----
-96

query I rowsort
SELECT ALL + 68 AS col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT + col0 * col0 * + 10 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1327
62374
63056

query I rowsort
SELECT ALL - 9 * cor0.col1 FROM tab2 AS cor0
----
-153
-279
-531

query I rowsort
SELECT - col0 * + col2 + + col0 * col0 AS col2 FROM tab2 AS cor0
----
-140
3239
4056

query I rowsort
SELECT - col2 - col2 * col2 AS col0 FROM tab0
----
-1122
-2
-6806

query I rowsort
SELECT col1 - + ( + col0 ) * + tab2.col0 AS col2 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT - 39 * 74 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 24ac9a4c3d634c5af41a1c1b597a8c57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2386
SELECT + col2 * - cor0.col2 + col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2386
SELECT + col2 * - cor0.col2 + col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - 57 ) * col0 + - 96 FROM tab0 AS cor0
----
1272
1899
4977

query I rowsort
SELECT ALL + 48 * - col1 + - col0 AS col1 FROM tab1 AS cor0
----
-1251
-544
-704

query I rowsort
SELECT + ( + cor0.col0 ) - + col1 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT col0 * + 41 + + cor0.col1 FROM tab1 AS cor0
----
149
2634
3293

query I rowsort
SELECT - col2 * col2 - - col0 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2392
SELECT + + col2 DIV + col2 + + col1 AS col2 FROM tab0 cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-2392
SELECT + + col2 / + col2 + + col1 AS col2 FROM tab0 cor0
----
87
92
98

query I rowsort
SELECT + col0 + - col2 * col2 * 9 AS col1 FROM tab1 AS cor0
----
-26241
-29177
-82864

query I rowsort
SELECT ALL + col1 * ( 47 ) FROM tab0
----
4042
4277
4559

onlyif mysql # use DIV operator for integer division
query I rowsort label-2395
SELECT + col2 * + ( - 57 ) - - col1 DIV + col1 col1 FROM tab2 cor0
----
-1481
-1538
-2165

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2395
SELECT + col2 * + ( - 57 ) - - col1 / + col1 col1 FROM tab2 cor0
----
-1481
-1538
-2165

query I rowsort
SELECT - - col0 - 20 * col1 FROM tab1 AS cor0
----
-136
-180
-517

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 95 + col1 - + col2 * col1 col0 FROM tab2 AS cor0
----
2139
4130
986

onlyif mysql # use DIV operator for integer division
query I rowsort label-2398
SELECT ALL + col0 + 80 DIV 95 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL + col0 + 80 / 95 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - + col0 + - 25 - cor0.col2 FROM tab0 AS cor0
----
-196
-61
-82

query I rowsort
SELECT + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT col1 + + col2 * col2 AS col2 FROM tab2
----
1461
735
760

query I rowsort
SELECT - - col1 * + 1 + 8 AS col2 FROM tab0 AS cor0
----
105
94
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 63 col1 FROM tab1 AS cor0
----
-33
6
9

query I rowsort
SELECT ALL col1 * - 26 + - col1 AS col0 FROM tab0
----
-2322
-2457
-2619

query I rowsort
SELECT ALL + - col2 * ( - cor0.col1 ) * + col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL col1 * 29 * - col2 FROM tab2
----
-18734
-24273
-44486

onlyif mysql # use DIV operator for integer division
query I rowsort label-2407
SELECT DISTINCT - ( col2 ) DIV - col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2407
SELECT DISTINCT - ( col2 ) / - col1 FROM tab0
----
0

query I rowsort
SELECT col2 * col1 * col1 - 1 FROM tab1
----
16223
36503
5699

onlyif mysql # use DIV operator for integer division
query I rowsort label-2409
SELECT col1 - + col0 DIV col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2409
SELECT col1 - + col0 / col1 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT 63 + - cor0.col2 + + 3 * col0 AS col0 FROM tab1 AS cor0
----
18
198
207

query I rowsort
SELECT ALL - 1 * col0 * col0 - col1 * + col2 AS col0 FROM tab1 cor0
----
-1413
-4666
-7648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2412
SELECT ALL CAST( 91 AS SIGNED ) AS col0 FROM tab2
----
91
91
91

skipif mysql # not compatible
query I rowsort label-2412
SELECT ALL CAST ( 91 AS INTEGER ) AS col0 FROM tab2
----
91
91
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-2413
SELECT DISTINCT + ( ( + col0 ) + + 19 ) DIV + 9 FROM tab0
----
12
4
6

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT + ( ( + col0 ) + + 19 ) / + 9 FROM tab0
----
12
4
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2414
SELECT CAST( col2 AS SIGNED ) * col1 + + CAST( - col1 AS SIGNED ) * + col0 AS col2 FROM tab1
----
-70
1326
208

skipif mysql # not compatible
query I rowsort label-2414
SELECT CAST ( col2 AS INTEGER ) * col1 + + CAST ( - col1 AS INTEGER ) * + col0 AS col2 FROM tab1
----
-70
1326
208

query I rowsort
SELECT - 24 - col0 * - col2 AS col2 FROM tab2 AS cor0
----
165
2004
2978

query I rowsort
SELECT DISTINCT cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + 28 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
65

query I rowsort
SELECT ALL - 10 * col0 AS col2 FROM tab2 AS cor0
----
-70
-780
-790

query I rowsort
SELECT ALL 50 * col2 FROM tab0 cor0
----
1650
4100
50

query I rowsort
SELECT DISTINCT - col0 * col1 * col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT - 4 * + col1 AS col0 FROM tab0 AS cor0
----
-344
-364
-388

query I rowsort
SELECT ALL - 4 * - col0 AS col2 FROM tab2 AS cor0
----
28
312
316

onlyif mysql # use DIV operator for integer division
query I rowsort label-2424
SELECT + - 57 DIV cor0.col0 FROM tab2 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2424
SELECT + - 57 / cor0.col0 FROM tab2 AS cor0
----
-8
0
0

query I rowsort
SELECT DISTINCT - + cor0.col1 + - col2 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2426
SELECT 87 DIV - col0 + col0 col0 FROM tab2
----
-5
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2426
SELECT 87 / - col0 + col0 col0 FROM tab2
----
-5
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - tab1.col1 + col2 * + tab1.col2 ) col2 FROM tab1
----
2890
3239
9203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2428
SELECT col2 + - col0 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2428
SELECT col2 + - col0 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + col0 ) * - col1 + - col1 + col0 * + 99 * - col0 FROM tab1 AS cor0
----
-406154
-634653
-995

query I rowsort
SELECT + + 22 + col0 FROM tab1 AS cor0
----
102
25
86

query I rowsort
SELECT DISTINCT + col0 * + col0 * + tab0.col2 AS col1 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT - + col0 + cor0.col1 - + col1 FROM tab2 cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - cor0.col0 col1 FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 col1 FROM tab2
----
72
72
72

query I rowsort
SELECT + col2 + + 67 * + col1 * + col1 AS col2 FROM tab1 AS cor0
----
11419
45346
6757

onlyif mysql # use DIV operator for integer division
query I rowsort label-2436
SELECT - col2 + + ( 17 ) * col1 DIV col2 FROM tab1 AS cor0
----
-46
-55
-94

skipif mysql # not compatible
query I rowsort label-2436
SELECT - col2 + + ( 17 ) * col1 / col2 FROM tab1 AS cor0
----
-46
-55
-94

query I rowsort
SELECT col1 * 52 AS col1 FROM tab2 AS cor0
----
1612
3068
884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 * 35 + - col2 col0 FROM tab1 AS cor0
----
-1384
-1387
-1426

query I rowsort
SELECT DISTINCT + - 34 + + cor0.col0 * cor0.col2 FROM tab2 cor0
----
155
1994
2968

query I rowsort
SELECT DISTINCT + - col0 + - col1 * cor0.col1 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT DISTINCT - - col2 * + col2 + cor0.col2 FROM tab1 AS cor0
----
2970
3306
9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2442
SELECT + CAST( NULL AS SIGNED ) / - col1 + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT + CAST ( NULL AS INTEGER ) / - col1 + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 68 + + 65 FROM tab1 AS cor0
----
133
133
133

onlyif mysql # use DIV operator for integer division
query I rowsort label-2444
SELECT ALL 98 * col0 + cor0.col1 DIV + ( + col1 ) AS col1 FROM tab0 AS cor0
----
2353
3431
8723

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL 98 * col0 + cor0.col1 / + ( + col1 ) AS col1 FROM tab0 AS cor0
----
2353
3431
8723

query I rowsort
SELECT DISTINCT - 67 * col1 + col0 * + 63 * - col0 AS col0 FROM tab1 AS cor0
----
-2309
-258718
-404071

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 38 - - 45 * col0 col2 FROM tab2 AS cor0
----
353
3548
3593

query I rowsort
SELECT 69 * col0 AS col1 FROM tab0 AS cor0
----
1656
2415
6141

query I rowsort
SELECT DISTINCT + + 1 + + cor0.col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL + - col2 * - ( col1 ) * - col0 FROM tab0 cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL - ( col0 ) - - col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + ( 40 ) * col0 + + cor0.col0 FROM tab0 AS cor0
----
1435
3649
984

query I rowsort
SELECT DISTINCT + + 11 + - 12 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - 47 + col0 FROM tab0 cor0
----
-12
-23
42

query I rowsort
SELECT - cor0.col1 - - ( + cor0.col2 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to ae0eeb942db3f01544a81804e95e971a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL + ( tab0.col1 ) FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ( tab2.col0 ) + - cor0.col2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f9524de6b4589f5113ca4b5c855b9642

query I rowsort
SELECT + 8 + col1 FROM tab1
----
18
21
34

query I rowsort
SELECT + col2 * tab2.col0 * col2 AS col0 FROM tab2
----
114076
5103
52728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2460
SELECT ( + col2 ) * - col0 - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2460
SELECT ( + col2 ) * - col0 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + col0 + ( col2 ) AS col1 FROM tab2 cor0
----
134
163
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 * cor0.col2 col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + cor0.col0 + + col1 * + col2 AS col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + - col1 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + 60 * - col0 AS col2 FROM tab2 AS cor0
----
-420
-4680
-4740

query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col1 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2467
SELECT + col0 DIV - col0 + col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
188
2027
3001

skipif mysql # not compatible
query I rowsort label-2467
SELECT + col0 / - col0 + col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
188
2027
3001

query I rowsort
SELECT ALL 77 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2469
SELECT col2 + + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-2469
SELECT col2 + + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 72 + col2 col2 FROM tab2 AS cor0
----
-1186
-2205
-4222

query I rowsort
SELECT - cor0.col0 + - col2 * - cor0.col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT DISTINCT + 53 AS col2 FROM tab0, tab1 cor0, tab2 cor1
----
53

query I rowsort
SELECT DISTINCT - 31 AS col0 FROM tab2, tab0 AS cor0, tab1, tab1 AS cor1
----
-31

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1, tab1 cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to 5a114c3d024b82b28eeddb04849c8215

query I rowsort
SELECT + col0 * + ( + col2 + col0 ) AS col2 FROM tab0
----
1260
1368
15219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 * + tab1.col2 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b03a487d842d1b1b52d4eddc48b27ad7

query I rowsort
SELECT ALL - + 80 * cor0.col1 FROM tab1 AS cor0
----
-1040
-2080
-800

onlyif mysql # use DIV operator for integer division
query I rowsort label-2478
SELECT DISTINCT - + 34 + col2 * + col0 + 89 DIV 77 col2 FROM tab2 AS cor0
----
156
1995
2969

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2478
SELECT DISTINCT - + 34 + col2 * + col0 + 89 / 77 col2 FROM tab2 AS cor0
----
156
1995
2969

onlyif mysql # use DIV operator for integer division
query I rowsort label-2479
SELECT DISTINCT col2 * - col1 + col0 * ( - col2 ) DIV col1 AS col0 FROM tab1 AS cor0
----
-1410
-1838
-934

skipif mysql # not compatible
query I rowsort label-2479
SELECT DISTINCT col2 * - col1 + col0 * ( - col2 ) / col1 AS col0 FROM tab1 AS cor0
----
-1410
-1838
-934

query I rowsort
SELECT ALL + 97 - col1 * - col0 AS col2 FROM tab0 AS cor0
----
2161
3492
8196

query I rowsort
SELECT DISTINCT + 0 + col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) + - col1 + 96 * 80 col0 FROM tab0 AS cor0
----
7680
7680
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2483
SELECT CAST( + col0 AS SIGNED ) * - cor0.col1 * - col1 - - ( + col2 ) AS col0 FROM tab2 AS cor0
----
22869
271544
6754

skipif mysql # not compatible
query I rowsort label-2483
SELECT CAST ( + col0 AS INTEGER ) * - cor0.col1 * - col1 - - ( + col2 ) AS col0 FROM tab2 AS cor0
----
22869
271544
6754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2484
SELECT DISTINCT - CAST( + col2 AS SIGNED ) + col0 FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2485
SELECT ALL + col1 DIV 44 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL + col1 / 44 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) - col2 * 13 col2 FROM tab0 AS cor0
----
-405
-977
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 + + col1 col1 FROM tab2 AS cor0
----
16
2
44

query I rowsort
SELECT DISTINCT 53 * + col0 + col0 FROM tab2 AS cor0
----
378
4212
4266

query I rowsort
SELECT DISTINCT - ( - col1 ) * col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT - 26 - col2 AS col1 FROM tab1 cor0
----
-122
-80
-83

query I rowsort
SELECT + + ( 84 ) * + col2 AS col1 FROM tab2 AS cor0
----
2184
2268
3192

query I rowsort
SELECT DISTINCT + col0 * + ( - 4 * + col0 ) AS col0 FROM tab2
----
-196
-24336
-24964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2493
SELECT ALL + col1 * - CAST( col1 AS SIGNED ) FROM tab1
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL + col1 * - CAST ( col1 AS INTEGER ) FROM tab1
----
-100
-169
-676

query I rowsort
SELECT ALL tab1.col1 * + tab1.col2 * - col2 AS col0 FROM tab1
----
-119808
-32490
-75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-2495
SELECT ALL col2 * tab1.col2 - + col1 DIV col0 FROM tab1
----
2908
3249
9216

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL col2 * tab1.col2 - + col1 / col0 FROM tab1
----
2908
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 79 + col1 col1 FROM tab0 AS cor0
----
165
170
176

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2497
SELECT + ( col0 ) * col2 - + CAST( NULL AS DECIMAL ) / - 58 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT + ( col0 ) * col2 - + CAST ( NULL AS REAL ) / - 58 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 20 + col2 FROM tab1 AS cor0
----
34
37
76

query I rowsort
SELECT DISTINCT + cor0.col0 * 41 - - col0 * col2 FROM tab2 AS cor0
----
476
5226
6241

query I rowsort
SELECT - 2 * - col0 + ( 56 ) + col2 FROM tab0 AS cor0
----
127
137
316

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * + 41 col0 FROM tab0 cor0
----
1070
1532
3740

query I rowsort
SELECT DISTINCT col1 + col1 + + 34 AS col2 FROM tab0
----
206
216
228

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2503
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2503
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col1 - - ( - col2 ) AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL col1 * 57 AS col2 FROM tab0 cor0
----
4902
5187
5529

query I rowsort
SELECT - ( + 2 ) FROM tab0, tab1 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 * col0 col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL 75 * col0 FROM tab1 AS cor0
----
225
4800
6000

query I rowsort
SELECT ALL + col2 * cor0.col1 * 91 FROM tab2 AS cor0
----
139594
58786
76167

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2510
SELECT + ( col1 * CAST( 49 AS SIGNED ) ) + col0 * col2 col0 FROM tab2
----
1708
3835
4919

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2510
SELECT + ( col1 * CAST ( 49 AS INTEGER ) ) + col0 * col2 col0 FROM tab2
----
1708
3835
4919

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 * ( - col0 ) col0 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col0 ) + 49 col1 FROM tab2 AS cor0
----
-29
-30
42

query I rowsort
SELECT + 2 + col1 FROM tab2 AS cor0
----
19
33
61

query I rowsort
SELECT DISTINCT + col0 * col0 + + col1 AS col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL - - col2 + - col0 AS col1 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT 46 + col2 FROM tab0 AS cor0
----
128
47
79

query I rowsort
SELECT DISTINCT + col2 + cor0.col2 * + col0 * col0 FROM tab2 AS cor0
----
1350
158210
237196

query I rowsort
SELECT col2 * 97 * - ( - col0 ) AS col2 FROM tab1 cor0
----
15714
353856
744960

query I rowsort
SELECT ALL - col1 * 20 AS col1 FROM tab0 AS cor0
----
-1720
-1820
-1940

query I rowsort
SELECT ALL + 63 * tab2.col2 - col2 * 57 AS col2 FROM tab2
----
156
162
228

query I rowsort
SELECT ALL + - ( - col1 ) * + cor0.col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2522
SELECT DISTINCT + + col0 + - 26 DIV col0 FROM tab2 cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT + + col0 + - 26 / col0 FROM tab2 cor0
----
4
78
79

query I rowsort
SELECT ALL - - 34 + - col2 AS col2 FROM tab0 AS cor0
----
-48
1
33

query I rowsort
SELECT + col1 + 26 AS col0 FROM tab1 cor0
----
36
39
52

query I rowsort
SELECT ALL + 89 * - 24 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-21360
-27768
-55536

query I rowsort
SELECT + - 3 AS col0 FROM tab1 cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT + 8 + col0 FROM tab1 AS cor0
----
11
72
88

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) * col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2529
SELECT DISTINCT - - cor0.col2 * + col2 + + cor0.col0 DIV col2 + col0 FROM tab0 AS cor0
----
1113
6814
71

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT - - cor0.col2 * + col2 + + cor0.col0 / col2 + col0 FROM tab0 AS cor0
----
1113
6814
71

query I rowsort
SELECT col2 * + col2 * - col0 + col2 * col0 * tab0.col0 FROM tab0
----
-7128
1190
51086

query I rowsort
SELECT col2 * col0 + col2 AS col1 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL - tab0.col1 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT tab0.col1 + - 62 AS col0 FROM tab0
----
24
29
35

query I rowsort
SELECT - 86 + col0 * + ( col2 ) AS col0 FROM tab1
----
3562
7594
76

query I rowsort
SELECT - + 31 FROM tab0 cor0
----
-31
-31
-31

query I rowsort
SELECT + 68 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT col0 * tab1.col1 + + 72 AS col0 FROM tab1
----
1112
150
712

query I rowsort
SELECT ALL col2 + col1 + - col1 AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT col2 * ( - 76 ) + col2 AS col2 FROM tab2 AS cor0
----
-1950
-2025
-2850

query I rowsort
SELECT ALL - + col1 + - 40 + + ( - col0 + col0 ) FROM tab2 AS cor0
----
-57
-71
-99

query I rowsort
SELECT + col0 * cor0.col0 + - cor0.col2 * - col0 * col0 FROM tab0 cor0
----
19584
2450
657443

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2542
SELECT DISTINCT - cor0.col0 + + 57 + - col0 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT - cor0.col0 + + 57 + - col0 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + 66 - + col1 AS col2 FROM tab0 AS cor0
----
-20
-25
-31

onlyif mysql # use DIV operator for integer division
query I rowsort label-2544
SELECT DISTINCT + 6 DIV + 7 + col2 + col0 * + col0 FROM tab1 AS cor0
----
4153
63
6496

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT + 6 / + 7 + col2 + col0 * + col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT - col0 * 98 AS col0 FROM tab0 AS cor0
----
-2352
-3430
-8722

query I rowsort
SELECT ALL - 70 - 47 * col2 AS col1 FROM tab1 AS cor0
----
-2608
-2749
-4582

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2547
SELECT DISTINCT CAST( NULL AS SIGNED ) + col2 * cor0.col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 * cor0.col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 + - 32 * col0 FROM tab1 AS cor0
----
-150
-2105
-2656

onlyif mysql # use DIV operator for integer division
query I rowsort label-2549
SELECT - + ( - cor0.col1 ) DIV - cor0.col0 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2549
SELECT - + ( - cor0.col1 ) / - cor0.col0 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT - col1 + 89 FROM tab2 AS cor0
----
30
58
72

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col0 AS REAL ) * col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ( + 33 ) FROM tab0 AS cor0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 + + col2 col1 FROM tab0 AS cor0
----
147
66
98

query I rowsort
SELECT + 74 * col0 AS col0 FROM tab2 AS cor0
----
518
5772
5846

query I rowsort
SELECT ALL - cor1.col2 AS col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT col1 + + cor0.col2 * ( col0 ) AS col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - + col2 - 48 FROM tab2 AS cor0
----
-74
-75
-86

query I rowsort
SELECT col0 + col0 * 22 FROM tab0 AS cor0
----
2047
552
805

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2559
SELECT CAST( 12 AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

skipif mysql # not compatible
query I rowsort label-2559
SELECT CAST ( 12 AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2560
SELECT - - col1 * CAST( NULL AS SIGNED ) + ( cor0.col2 * + col1 + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2560
SELECT - - col1 * CAST ( NULL AS INTEGER ) + ( cor0.col2 * + col1 + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2561
SELECT + + col1 DIV - col0 AS col2 FROM tab0 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2561
SELECT + + col1 / - col0 AS col2 FROM tab0 cor0
----
-1
-2
-3

query I rowsort
SELECT col1 + 60 * - 23 FROM tab2 AS cor0
----
-1321
-1349
-1363

query I rowsort
SELECT - - col1 + - col2 - col0 FROM tab0 AS cor0
----
-80
29
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2564
SELECT - col1 * CAST( NULL AS DECIMAL ) + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2564
SELECT - col1 * CAST ( NULL AS REAL ) + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor2.col0 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab0 cor1, tab2 AS cor2
----
243 values hashing to b2b584cb071e1d63bf99874835e1bfc4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 62 col1 FROM tab1 AS cor0
----
3348
3534
5952

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) + + col1 * col1 * - 98 FROM tab1 AS cor0
----
-16482
-66245
-9736

query I rowsort
SELECT + - 57 AS col2 FROM tab0 AS cor0
----
-57
-57
-57

query I rowsort
SELECT ALL - - 48 * col0 + - col2 + - col2 * - col0 AS col2 FROM tab0 AS cor0
----
11488
1714
1911

query I rowsort
SELECT DISTINCT + 27 + col1 FROM tab2 AS cor0
----
44
58
86

query I rowsort
SELECT DISTINCT - col1 + col2 + 49 AS col0 FROM tab2 cor0
----
16
45
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2572
SELECT DISTINCT + 49 + col2 DIV + col0 + + col2 FROM tab0 AS cor0
----
131
50
83

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT + 49 + col2 / + col0 + + col2 FROM tab0 AS cor0
----
131
50
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2573
SELECT ALL + CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2573
SELECT ALL + CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT ( - 16 ) FROM tab1
----
-16
-16
-16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2575
SELECT DISTINCT - col1 + - col2 + - CAST( NULL AS SIGNED ) * col1 / - col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT - col1 + - col2 + - CAST ( NULL AS INTEGER ) * col1 / - col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 24 * col2 AS col1 FROM tab0 AS cor0
----
1968
24
792

query I rowsort
SELECT ALL + col2 - - col0 * col2 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-2578
SELECT ALL + col2 * col1 * col0 + - col2 DIV - 90 AS col1 FROM tab1 AS cor0
----
36480
4212
99841

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL + col2 * col1 * col0 + - col2 / - 90 AS col1 FROM tab1 AS cor0
----
36480
4212
99841

query I rowsort
SELECT 11 + col0 * col2 FROM tab0
----
46
7309
803

query I rowsort
SELECT + + 14 * 70 + cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f0af29c4f4d7152cdc2b047fa39a9994

query I rowsort
SELECT DISTINCT + 44 * col2 + + col2 FROM tab1 AS cor0
----
2430
2565
4320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 + cor0.col2 col0 FROM tab0 AS cor0
----
-42
-74
7

query I rowsort
SELECT DISTINCT + 67 * + col1 * cor0.col1 FROM tab0 AS cor0
----
495532
554827
630403

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 col0 FROM tab0, tab2 AS cor0
----
-6

query I rowsort
SELECT ( - 98 ) * + col0 FROM tab2
----
-686
-7644
-7742

query I rowsort
SELECT ALL ( - 96 ) AS col2 FROM tab1
----
-96
-96
-96

query I rowsort
SELECT + 38 * + col2 AS col2 FROM tab0 AS cor0
----
1254
3116
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2588
SELECT - CAST( cor0.col0 AS SIGNED ) + col0 * ( col0 * + col2 ) AS col0 FROM tab2 cor0
----
1316
158106
237079

skipif mysql # not compatible
query I rowsort label-2588
SELECT - CAST ( cor0.col0 AS INTEGER ) + col0 * ( col0 * + col2 ) AS col0 FROM tab2 cor0
----
1316
158106
237079

query I rowsort
SELECT DISTINCT + col0 * col1 + - tab1.col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT DISTINCT ( tab1.col0 ) AS col2 FROM tab1, tab2 cor0
----
3
64
80

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab2 cor3
----
3645 values hashing to 28412d50061391eec23a02d0efcfb3f9

query I rowsort
SELECT col1 + col2 * col2 * + col0 AS col2 FROM tab0
----
132
26222
598527

query I rowsort
SELECT ALL cor0.col1 * 50 + + col2 FROM tab1 AS cor0
----
1354
557
746

query I rowsort
SELECT DISTINCT + cor0.col0 + col0 * cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
3430
664207
68136

onlyif mysql # use DIV operator for integer division
query I rowsort label-2595
SELECT col1 * col0 + + cor0.col1 DIV + col0 AS col0 FROM tab1 cor0
----
1040
640
86

skipif mysql # not compatible
query I rowsort label-2595
SELECT col1 * col0 + + cor0.col1 / + col0 AS col0 FROM tab1 cor0
----
1040
640
86

query I rowsort
SELECT ALL - col1 * 97 + col0 * + col2 * 18 + 42 AS col2 FROM tab1 AS cor0
----
137021
436
64736

onlyif mysql # use DIV operator for integer division
query I rowsort label-2597
SELECT - cor0.col0 + col2 DIV col1 FROM tab1 cor0
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-2597
SELECT - cor0.col0 + col2 / col1 FROM tab1 cor0
----
-1
-59
-73

query I rowsort
SELECT ALL - 66 * + 30 FROM tab0 AS cor0
----
-1980
-1980
-1980

query I rowsort
SELECT DISTINCT - - 25 + col0 * - col1 FROM tab0 AS cor0
----
-2039
-3370
-8074

query I rowsort
SELECT ALL col1 * col1 + col2 AS col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL + + 88 + 52 * col0 AS col0 FROM tab2 AS cor0
----
4144
4196
452

query I rowsort
SELECT tab0.col1 * 38 + + col0 AS col0 FROM tab0
----
3292
3547
3721

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2603
SELECT DISTINCT + + CAST( - col2 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-2603
SELECT DISTINCT + + CAST ( - col2 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2604
SELECT DISTINCT - col1 * col1 + CAST( NULL AS SIGNED ) * cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT - col1 * col1 + CAST ( NULL AS INTEGER ) * cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - 35 * col1 + col2 FROM tab2 cor0
----
1112
2091
633

query I rowsort
SELECT - - cor0.col2 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL 82 + col0 AS col2 FROM tab1
----
146
162
85

query I rowsort
SELECT - 62 * col1 + tab0.col0 * col0 + - col0 FROM tab0
----
-4780
-4824
2190

query I rowsort
SELECT DISTINCT 80 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
80

query I rowsort
SELECT + + col2 + cor0.col1 + col2 * 82 * + col2 AS col2 FROM tab0 AS cor0
----
180
551541
89417

query I rowsort
SELECT + 21 + + col1 * ( col2 ) FROM tab1 AS cor0
----
1269
1425
591

query I rowsort
SELECT ALL - col2 + col0 * - col1 * ( col1 + + col1 ) FROM tab1 AS cor0
----
-12857
-27136
-4110

query I rowsort
SELECT ALL col2 * col2 + ( + col2 ) * - col1 AS col2 FROM tab0 AS cor0
----
-1749
-738
-96

query I rowsort
SELECT DISTINCT + - cor0.col0 + + col2 * 26 FROM tab1 AS cor0
----
1401
1418
2416

query I rowsort
SELECT DISTINCT + col0 * ( - 68 ) AS col0 FROM tab2 AS cor0
----
-476
-5304
-5372

query I rowsort
SELECT DISTINCT + col2 + - col1 + col1 FROM tab0
----
1
33
82

query I rowsort
SELECT + col2 * - ( - col2 ) + + col1 + ( ( col0 ) ) FROM tab2 AS cor0
----
1540
767
813

query I rowsort
SELECT cor0.col1 + + tab1.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 1897f50f7cf9347194b630d1613bd20b

query I rowsort
SELECT - tab2.col1 - - col2 * - ( - col2 ) * - tab2.col1 AS col1 FROM tab2
----
-22630
-24565
-39943

query I rowsort
SELECT cor0.col0 + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2621
SELECT DISTINCT + col0 * CAST( + 79 AS SIGNED ) FROM tab1 AS cor0
----
237
5056
6320

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT + col0 * CAST ( + 79 AS INTEGER ) FROM tab1 AS cor0
----
237
5056
6320

query I rowsort
SELECT col0 * 40 + - col2 * - cor0.col1 + - col2 FROM tab2 AS cor0
----
1090
3768
4628

query I rowsort
SELECT ALL 85 + col2 * col1 AS col0 FROM tab2
----
1619
731
922

onlyif mysql # use DIV operator for integer division
query I rowsort label-2624
SELECT col1 DIV + tab2.col0 + - 7 AS col2 FROM tab2
----
-3
-7
-7

skipif mysql # not compatible
query I rowsort label-2624
SELECT col1 / + tab2.col0 + - 7 AS col2 FROM tab2
----
-3
-7
-7

query I rowsort
SELECT ALL 41 + + col1 FROM tab2
----
100
58
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-2626
SELECT DISTINCT tab1.col2 DIV + tab1.col2 + - ( 59 ) FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT tab1.col2 / + tab1.col2 + - ( 59 ) FROM tab1
----
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-2627
SELECT ALL col1 + col2 DIV col0 AS col2 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL col1 + col2 / col0 AS col2 FROM tab2 AS cor0
----
17
34
59

query I rowsort
SELECT DISTINCT - col1 * 18 + - 9 FROM tab2 AS cor0
----
-1071
-315
-567

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2629
SELECT + col2 * + CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-2629
SELECT + col2 * + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - ( 66 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT DISTINCT - cor0.col0 * 54 - col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-12905
-3360
-5285

query I rowsort
SELECT - col1 * + col0 + + 25 FROM tab1 cor0
----
-1015
-53
-615

query I rowsort
SELECT DISTINCT tab1.col1 - col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT col2 * + col0 - col0 * 35 FROM tab1
----
1408
4880
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2636
SELECT DISTINCT - CAST( NULL AS SIGNED ) - col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - col2 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - ( - 47 + tab1.col1 ) FROM tab1
----
21
34
37

query I rowsort
SELECT col1 * + 84 * col0 AS col0 FROM tab2
----
112812
18228
386568

query I rowsort
SELECT col0 + - 92 + col0 * - col2 * 66 AS col2 FROM tab2
----
-12559
-133862
-198145

query I rowsort
SELECT - 58 - - cor0.col2 * - 91 AS col1 FROM tab0 AS cor0
----
-149
-3061
-7520

query I rowsort
SELECT + col2 + - cor0.col2 * 24 * - col0 AS col1 FROM tab0 AS cor0
----
175234
19041
841

query I rowsort
SELECT - col0 - - cor0.col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * col2 * + col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT + col2 * + 90 + col0 FROM tab0
----
125
2994
7469

query I rowsort
SELECT - 92 + - cor0.col0 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to ff0fab11cdfec3412755398edca2e03f

query I rowsort
SELECT DISTINCT + - 42 + - col1 * - col0 FROM tab2 AS cor0
----
1301
175
4560

query I rowsort
SELECT 66 * + col0 - - 11 AS col0 FROM tab2 AS cor0
----
473
5159
5225

query I rowsort
SELECT 38 + cor0.col0 FROM tab1 AS cor0
----
102
118
41

query I rowsort
SELECT DISTINCT + - col0 + cor0.col2 * + cor0.col0 - 99 FROM tab0 AS cor0
----
-99
669
7110

onlyif mysql # use DIV operator for integer division
query I rowsort label-2650
SELECT - col0 DIV + cor0.col0 + - 51 AS col2 FROM tab0 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-2650
SELECT - col0 / + cor0.col0 + - 51 AS col2 FROM tab0 AS cor0
----
-52
-52
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2651
SELECT ALL - 61 DIV 45 + col2 * cor0.col2 FROM tab1 AS cor0
----
2915
3248
9215

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL - 61 / 45 + col2 * cor0.col2 FROM tab1 AS cor0
----
2915
3248
9215

query I rowsort
SELECT 23 * - cor1.col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 761087a544937f4b9ce09a94ad1d16e1

query I rowsort
SELECT + - cor0.col2 + cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c9cfe0a4bb4818c8cac363c2529f2675

query I rowsort
SELECT ALL - col2 + 32 + col0 FROM tab1 AS cor0
----
-19
16
39

query I rowsort
SELECT + 27 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2656
SELECT ALL + CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL + CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + tab2.col0 ) col0 FROM tab2
----
7
78
79

query I rowsort
SELECT cor0.col1 * col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 * - col1 - - col1 col1 FROM tab1
----
16237
36530
5710

query I rowsort
SELECT ( + col1 ) + col0 FROM tab2
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2661
SELECT CAST( NULL AS SIGNED ) * 42 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2661
SELECT CAST ( NULL AS INTEGER ) * 42 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + col2 * - ( ( - col0 ) ) + - col0 FROM tab1 AS cor0
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 col0 FROM tab1
----
30
30
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2664
SELECT col0 * CAST( 45 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
135
2880
3600

skipif mysql # not compatible
query I rowsort label-2664
SELECT col0 * CAST ( 45 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
135
2880
3600

query I rowsort
SELECT - + cor0.col2 * - col0 + - 34 FROM tab2 AS cor0
----
155
1994
2968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( col1 ) + col0 col1 FROM tab0 cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-2667
SELECT + - col2 DIV - col1 + - col1 * col1 FROM tab1 AS cor0
----
-162
-674
-95

skipif mysql # not compatible
query I rowsort label-2667
SELECT + - col2 / - col1 + - col1 * col1 FROM tab1 AS cor0
----
-162
-674
-95

query I rowsort
SELECT ALL col0 + + ( - 5 * col0 ) FROM tab0
----
-140
-356
-96

query I rowsort
SELECT ALL tab1.col0 + - col0 + ( col0 ) * - ( tab1.col2 ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL - col0 + + 72 FROM tab1 AS cor0
----
-8
69
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2671
SELECT ALL col0 + - col0 DIV 40 FROM tab2
----
7
77
78

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL col0 + - col0 / 40 FROM tab2
----
7
77
78

query I rowsort
SELECT ALL tab0.col1 * + col2 + col1 FROM tab0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-2673
SELECT DISTINCT + col0 * 16 DIV col1 + col0 FROM tab1 AS cor0
----
166
178
4

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT + col0 * 16 / col1 + col0 FROM tab1 AS cor0
----
166
178
4

query I rowsort
SELECT DISTINCT - col0 + - col2 * col1 - 43 AS col2 FROM tab1 AS cor0
----
-1371
-1450
-677

query I rowsort
SELECT DISTINCT + col1 * 41 + col0 FROM tab0 AS cor0
----
3550
3820
4012

query I rowsort
SELECT ALL + ( - col2 ) * col1 - + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT ( 72 ) AS col1 FROM tab1 cor0
----
72
72
72

query I rowsort
SELECT ALL - 31 * + 22 - - col0 AS col0 FROM tab1 AS cor0
----
-602
-618
-679

query I rowsort
SELECT DISTINCT 36 * - 21 + + col1 AS col1 FROM tab0 AS cor0
----
-659
-665
-670

query I rowsort
SELECT + col0 + - col1 + - col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + - 76 * col0 FROM tab2 cor0
----
-532
-5928
-6004

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( col0 AS REAL ) * + col0 AS col1 FROM tab1 cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2683
SELECT DISTINCT + tab2.col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT + tab2.col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + cor0.col1 AS REAL ) * - col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + 66 * col0 AS col0 FROM tab0 AS cor0
----
1584
2310
5874

query I rowsort
SELECT DISTINCT + ( - 49 ) + - col2 FROM tab0 cor0
----
-131
-50
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2687
SELECT DISTINCT + - CAST( + col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT + - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + 69 * col0 FROM tab1 AS cor0
----
207
4416
5520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 51 * - col1 + 78 * - col2 col1 FROM tab2 AS cor0
----
-3687
-3831
-5037

onlyif mysql # use DIV operator for integer division
query I rowsort label-2690
SELECT col1 DIV + cor0.col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2690
SELECT col1 / + cor0.col0 FROM tab0 AS cor0
----
1
2
3

query I rowsort
SELECT - col2 + + col1 - - col0 FROM tab2 AS cor0
----
11
111
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 * + cor0.col1 * + 75 - + col1 * col2 col1 FROM tab2 AS cor0
----
144491
41429
75888

query I rowsort
SELECT DISTINCT - col0 * + col2 + - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT ALL - + cor0.col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2695
SELECT - 62 + cor0.col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2695
SELECT - 62 + cor0.col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col0 * + col2 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL col2 * - col2 * ( ( col2 ) ) FROM tab2 cor0
----
-17576
-19683
-54872

query I rowsort
SELECT + col2 * - cor0.col2 + - col0 * cor0.col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-158860
-2052
-238602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2699
SELECT DISTINCT col1 DIV + col2 col0 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT col1 / + col2 col0 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 * cor0.col0 + + 24 * + col1 - + col0 col1 FROM tab2 AS cor0
----
1325
6965
7890

query I rowsort
SELECT DISTINCT col0 * + col1 + ( col0 ) AS col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - col2 * - col0 * - 6 AS col1 FROM tab2 AS cor0
----
-1134
-12168
-18012

query I rowsort
SELECT DISTINCT - - col1 * + col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * + 1 col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT col2 * col0 + col1 + col1 * col2 FROM tab0 AS cor0
----
14851
229
3716

query I rowsort
SELECT ALL cor0.col1 + col1 * cor0.col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT ALL + - col2 + col0 * + col0 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT ALL tab0.col0 FROM tab0, tab1 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT DISTINCT - 99 * - cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
1287
2574
990

query I rowsort
SELECT DISTINCT ( col0 ) * + col2 + tab1.col0 * + 9 AS col1 FROM tab1
----
189
4224
8400

query I rowsort
SELECT + 41 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
105
121
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col0 * col0 col2 FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-2714
SELECT DISTINCT - col1 - col2 DIV col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT - col1 - col2 / col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + col1 + + col2 * col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + 71 + col1 FROM tab1 AS cor0
----
81
84
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2717
SELECT ALL ( - cor0.col2 ) DIV + cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2717
SELECT ALL ( - cor0.col2 ) / + cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - 94 * - cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 328add90e429012e879f7671bae2d3de

query I rowsort
SELECT col0 + 20 * col0 AS col1 FROM tab1
----
1344
1680
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-2720
SELECT ALL + - col2 - - col1 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL + - col2 - - col1 / cor0.col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - - col2 * - col1 * col2 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT - cor0.col0 + - col2 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT ALL + cor0.col0 * + col1 - cor0.col1 * - col0 AS col2 FROM tab1 cor0
----
1280
156
2080

query I rowsort
SELECT - 9 + col2 AS col0 FROM tab1 AS cor0
----
45
48
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-2725
SELECT DISTINCT + 0 DIV + col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT + 0 / + col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col2 - + 70 AS col2 FROM tab1
----
-13
-16
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 70 col2 FROM tab0 cor0
----
-2310
-5740
-70

query I rowsort
SELECT DISTINCT - + col0 * 89 * col0 AS col1 FROM tab1 AS cor0
----
-364544
-569600
-801

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2729
SELECT DISTINCT + cor0.col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT + cor0.col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 * - 93 AS col1 FROM tab1 AS cor0
----
-279
-5952
-7440

query I rowsort
SELECT ALL + + col1 + - col2 * col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2732
SELECT DISTINCT - CAST( col0 AS SIGNED ) - - col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT - CAST ( col0 AS INTEGER ) - - col0 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2733
SELECT + + col0 DIV - col1 - cor0.col0 * - col2 * + col1 AS col2 FROM tab2 AS cor0
----
119651
51030
5859

skipif mysql # not compatible
query I rowsort label-2733
SELECT + + col0 / - col1 - cor0.col0 * - col2 * + col1 AS col2 FROM tab2 AS cor0
----
119651
51030
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2734
SELECT DISTINCT - + 14 * cor0.col1 - col2 * + CAST( - col1 * cor0.col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
119626
32350
75452

skipif mysql # not compatible
query I rowsort label-2734
SELECT DISTINCT - + 14 * cor0.col1 - col2 * + CAST ( - col1 * cor0.col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
119626
32350
75452

query I rowsort
SELECT ALL 98 * - tab1.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 5922e6cc244b0255e7c5dbe681e5e3af

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col1 * 51 col1 FROM tab1
----
-1326
-510
-663

query I rowsort
SELECT col1 + col0 * + col0 AS col1 FROM tab1
----
35
4106
6413

query I rowsort
SELECT ALL + 73 * + col0 FROM tab0 AS cor0
----
1752
2555
6497

query I rowsort
SELECT DISTINCT col1 + + ( cor0.col1 ) FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ( 59 ) * col1 FROM tab2 AS cor0
----
1003
1829
3481

query I rowsort
SELECT - 6 + col2 FROM tab1 AS cor0
----
48
51
90

query I rowsort
SELECT DISTINCT col0 + - col1 - col2 FROM tab2 AS cor0
----
-51
-7
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2743
SELECT ALL CAST( NULL AS SIGNED ) * cor0.col2 - col0 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL CAST ( NULL AS INTEGER ) * cor0.col2 - col0 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 87 * - 48 AS col2 FROM tab2
----
-4176

onlyif mysql # use DIV operator for integer division
query I rowsort label-2745
SELECT + - ( + cor0.col0 ) + col2 DIV col0 + cor0.col2 FROM tab2 AS cor0
----
-41
-52
23

skipif mysql # not compatible
query I rowsort label-2745
SELECT + - ( + cor0.col0 ) + col2 / col0 + cor0.col2 FROM tab2 AS cor0
----
-41
-52
23

query I rowsort
SELECT + ( 93 ) + - col2 FROM tab0 AS cor0
----
11
60
92

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( - col2 AS REAL ) + + col1 / 60 AS col2 FROM tab0 cor0
----
2
34
83

query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) * col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT - 9 * + col2 + cor0.col0 FROM tab0 AS cor0
----
-273
-649
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2750
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 * ( + 10 ) FROM tab0 AS cor0
----
-10
-330
-820

onlyif mysql # use DIV operator for integer division
query I rowsort label-2752
SELECT 26 DIV 78 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2752
SELECT 26 / 78 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-2753
SELECT DISTINCT col0 DIV ( + col0 + + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT col0 / ( + col0 + + col2 ) FROM tab1
----
0

query I rowsort
SELECT + tab0.col1 * 27 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to 8a3b9ab76b304fe788134e6841a10d00

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + col0 + - col0 BETWEEN NULL AND cor0.col1 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col1 FROM tab0, tab1 AS cor0
----
10
13
26

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT - col2 * col0 AS col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 + tab2.col2 * col1 AS col1 FROM tab2
----
1475
629
806

query I rowsort
SELECT col0 * + col1 + col2 AS col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT ALL col0 * - col0 + - col2 FROM tab0
----
-1226
-609
-8003

query I rowsort
SELECT DISTINCT col1 * - col0 + - col1 * + col0 FROM tab0
----
-16198
-4128
-6790

query I rowsort
SELECT - - col1 - + col2 FROM tab2 AS cor0
----
-21
33
4

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab2 AS cor0 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 + - col0 col2 FROM tab1
----
2913
3185
9136

query I rowsort
SELECT ALL tab2.col1 + + col1 AS col0 FROM tab2
----
118
34
62

query I rowsort
SELECT ALL tab1.col1 * - col0 + + col2 * - col2 * col0 FROM tab1
----
-208576
-738320
-8826

query III rowsort
SELECT * FROM tab0 WHERE - col2 + - col2 <> col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT col2 - + col0 * - col2 AS col1 FROM tab0
----
36
7380
825

query I rowsort
SELECT ALL + 31 FROM tab1
----
31
31
31

query I rowsort
SELECT DISTINCT + cor0.col2 * - tab0.col1 AS col0 FROM tab0, tab1, tab0 AS cor0, tab1 AS cor1
----
9 values hashing to 38ae4ab6a8fdfcd855d57a73fb99e326

query I rowsort
SELECT + 39 * + col0 * 1 FROM tab0
----
1365
3471
936

onlyif mysql # use DIV operator for integer division
query I rowsort label-2773
SELECT + col1 DIV ( + col0 * col1 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2773
SELECT + col1 / ( + col0 * col1 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col2 * 5 AS col0 FROM tab0 AS cor0
----
-165
-410
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2775
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) * ( - col2 * 17 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) * ( - col2 * 17 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 + + 55 FROM tab2 AS cor0
----
17
28
29

query I rowsort
SELECT ALL cor0.col1 * + col2 + - col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT col0 * 11 AS col0 FROM tab0 AS cor0
----
264
385
979

query I rowsort
SELECT tab1.col2 + tab1.col0 - ( - col0 ) AS col1 FROM tab1
----
185
256
60

query I rowsort
SELECT DISTINCT col1 + - col2 * 30 AS col0 FROM tab2
----
-1123
-721
-779

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) + + 26 col2 FROM tab0
----
-63
-9
2

query I rowsort
SELECT DISTINCT ( col1 ) - + 26 * col2 * col2 FROM tab2
----
-17517
-18923
-37527

query I rowsort
SELECT DISTINCT - tab1.col0 * + col0 * col2 - + 72 AS col1 FROM tab1
----
-233544
-558
-614472

onlyif mysql # use DIV operator for integer division
query I rowsort label-2784
SELECT - 75 * col2 + + 77 DIV ( col1 ) + col0 FROM tab0
----
-2451
-40
-6061

skipif mysql # not compatible
query I rowsort label-2784
SELECT - 75 * col2 + + 77 / ( col1 ) + col0 FROM tab0
----
-2451
-40
-6061

query I rowsort
SELECT ALL + 70 - - col1 FROM tab2
----
101
129
87

query I rowsort
SELECT col0 + tab0.col2 * + 29 FROM tab0
----
2467
64
981

query I rowsort
SELECT DISTINCT - col2 * col2 + + col0 AS col1 FROM tab2
----
-1365
-598
-722

onlyif mysql # use DIV operator for integer division
query I rowsort label-2788
SELECT ALL - 88 DIV - 41 FROM tab2, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
query I rowsort label-2788
SELECT ALL - 88 / - 41 FROM tab2, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT - col2 * + 77 AS col2 FROM tab2 AS cor0
----
-2002
-2079
-2926

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2790
SELECT + col2 * + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-2790
SELECT + col2 * + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort
SELECT ALL - cor0.col0 + - CAST ( 99 AS REAL ) FROM tab2 AS cor0
----
-106
-177
-178

query I rowsort
SELECT ALL - col2 * col1 * + col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ALL - col2 * + col0 + + col2 FROM tab2 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT tab1.col0 + col1 * - tab1.col0 AS col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT col1 - col2 * + col1 AS col2 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT + col1 - - col2 * - 97 FROM tab0 AS cor0
----
-3115
-7863
0

query I rowsort
SELECT col0 + cor0.col0 * - ( - 85 ) - col1 FROM tab0 AS cor0
----
1978
2913
7563

query I rowsort
SELECT - col1 * col0 + - col0 - ( + col2 + col1 ) FROM tab2 AS cor0
----
-1477
-282
-4765

query I rowsort
SELECT DISTINCT 0 * + 56 AS col2 FROM tab2, tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 - - tab1.col1 FROM tab1
----
29
74
93

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <> - col2 * + col0 + col0 * col1 + - col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2802
SELECT col2 - + tab2.col1 DIV col1 FROM tab2
----
25
26
37

skipif mysql # not compatible
query I rowsort label-2802
SELECT col2 - + tab2.col1 / col1 FROM tab2
----
25
26
37

query I rowsort
SELECT ALL col1 * col0 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT + cor0.col0 + + col2 * col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT + col0 + 89 + - col2 FROM tab2 AS cor0
----
130
141
69

query I rowsort
SELECT ALL cor0.col1 * ( 93 + col0 ) FROM tab1 AS cor0
----
1570
2249
2496

query I rowsort
SELECT - col1 - 38 AS col2 FROM tab2 AS cor0
----
-55
-69
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2809
SELECT ALL col0 DIV col1 + + 73 AS col1 FROM tab2 cor0
----
73
74
77

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL col0 / col1 + + 73 AS col1 FROM tab2 cor0
----
73
74
77

query I rowsort
SELECT ALL - col1 * - col0 - - col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - col0 * cor0.col1 + - 83 AS col1 FROM tab2 cor0
----
-1426
-300
-4685

query I rowsort
SELECT col2 + 90 AS col2 FROM tab1 AS cor0
----
144
147
186

query I rowsort
SELECT DISTINCT - col1 * - ( col1 ) * + col1 + + col1 + - col1 AS col0 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT - - col2 + ( cor0.col1 ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL 69 - col1 AS col1 FROM tab2
----
10
38
52

query I rowsort
SELECT + - col0 * - 90 - col0 FROM tab0 AS cor0
----
2136
3115
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2817
SELECT - CAST( - ( - cor0.col2 ) AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

skipif mysql # not compatible
query I rowsort label-2817
SELECT - CAST ( - ( - cor0.col2 ) AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT ALL col0 * + col2 + col2 AS col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT - - col1 * + cor0.col0 - col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT + col0 + + col1 + - col0 * + col0 AS col1 FROM tab0
----
-1093
-466
-7741

query I rowsort
SELECT col2 * - ( col0 ) * col2 AS col2 FROM tab2
----
-114076
-5103
-52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + cor0.col2 col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT 45 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT tab0.col1 + tab0.col2 + cor0.col0 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 1663be43a2d6c5e1a3635c77aca466d3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2825
SELECT tab1.col1 DIV col0 - + col2 * - col1 AS col2 FROM tab1
----
1248
1412
570

skipif mysql # not compatible
query I rowsort label-2825
SELECT tab1.col1 / col0 - + col2 * - col1 AS col2 FROM tab1
----
1248
1412
570

query I rowsort
SELECT ALL + ( 27 ) FROM tab0
----
27
27
27

query I rowsort
SELECT col1 + - col2 * - 94 + col0 AS col2 FROM tab2
----
2576
2581
3668

onlyif mysql # use DIV operator for integer division
query I rowsort label-2828
SELECT DISTINCT col1 DIV col1 + - 52 AS col1 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT col1 / col1 + - 52 AS col1 FROM tab2 AS cor0
----
-51

onlyif mysql # use DIV operator for integer division
query I rowsort label-2829
SELECT ALL - 27 DIV col0 + + col0 FROM tab1 AS cor0
----
-6
64
80

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL - 27 / col0 + + col0 FROM tab1 AS cor0
----
-6
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2830
SELECT ALL - 23 DIV - col0 + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL - 23 / - col0 + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + 3 AS col0 FROM tab1 cor0
----
3
3
3

query I rowsort
SELECT + col0 + - col0 * col0 * - cor0.col1 FROM tab2 AS cor0
----
106176
1526
359034

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col0 + col2 col1 FROM tab0 cor0
----
-33
42
75

query I rowsort
SELECT DISTINCT cor0.col0 * col0 + cor0.col0 FROM tab1 AS cor0
----
12
4160
6480

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 / col2 <= + col1 AND col2 NOT IN ( + col1 )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2836
SELECT DISTINCT CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2836
SELECT DISTINCT CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2837
SELECT ALL CAST( col0 AS SIGNED ) + col1 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL CAST ( col0 AS INTEGER ) + col1 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 col2 FROM tab1
----
47

query I rowsort
SELECT 70 FROM tab0, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT ( + 0 ) + col1 AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT 3 + col0 * col2 AS col0 FROM tab0 AS cor0
----
38
7301
795

query I rowsort
SELECT DISTINCT - - 92 + + col0 AS col2 FROM tab2 AS cor0
----
170
171
99

query I rowsort
SELECT DISTINCT 81 + + col2 * cor0.col0 FROM tab2 AS cor0
----
2109
270
3083

query I rowsort
SELECT ALL - - col0 * col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT - + 86 * col2 AS col1 FROM tab1 cor0
----
-4644
-4902
-8256

query I rowsort
SELECT - 94 + - col1 * + col0 AS col0 FROM tab0
----
-2158
-3489
-8193

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2847
SELECT ALL ( 22 ) * col2 + CAST( NULL AS SIGNED ) + + 0 * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL ( 22 ) * col2 + CAST ( NULL AS INTEGER ) + + 0 * col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 63 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 cor2
----
81 values hashing to 29cdb8d01f1c3eb072511674b1c6d5fd

query I rowsort
SELECT - cor0.col1 + col0 AS col1 FROM tab1 cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2850
SELECT + col1 * - col1 + CAST( 80 AS SIGNED ) FROM tab2 AS cor0
----
-209
-3401
-881

skipif mysql # not compatible
query I rowsort label-2850
SELECT + col1 * - col1 + CAST ( 80 AS INTEGER ) FROM tab2 AS cor0
----
-209
-3401
-881

query I rowsort
SELECT ALL + - cor0.col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + + 58 * col0 FROM tab1 cor0
----
174
3712
4640

query I rowsort
SELECT + 53 * cor1.col2 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to b4872c5d3d5a54d3f5431e23c082206e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col1 col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + + col1 * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + col1 col0 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT col2 + cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - col2 * col2 * + col2 - col2 FROM tab2
----
-17602
-19710
-54910

query I rowsort
SELECT + 50 FROM tab1, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT - col1 * - 8 * col2 FROM tab0 AS cor0
----
22704
59696
776

query I rowsort
SELECT ALL 38 - col0 FROM tab0 AS cor0
----
-51
14
3

query I rowsort
SELECT DISTINCT - ( - 13 ) * + col0 AS col1 FROM tab2 AS cor0
----
1014
1027
91

query I rowsort
SELECT ALL col2 * - col1 + cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 - - col1 * col0 col1 FROM tab1 AS cor0
----
1080
118
680

query I rowsort
SELECT DISTINCT + - 11 + + 48 * + col1 FROM tab0 AS cor0
----
4117
4357
4645

onlyif mysql # use DIV operator for integer division
query I rowsort label-2866
SELECT col0 + col1 * cor0.col0 DIV col2 - - ( col1 ) AS col2 FROM tab1 AS cor0
----
103
30
85

skipif mysql # not compatible
query I rowsort label-2866
SELECT col0 + col1 * cor0.col0 / col2 - - ( col1 ) AS col2 FROM tab1 AS cor0
----
103
30
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-2867
SELECT 57 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2867
SELECT 57 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2868
SELECT ALL col0 * CAST( - 44 AS SIGNED ) DIV + col1 FROM tab1
----
-270
-281
-5

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL col0 * CAST ( - 44 AS INTEGER ) / + col1 FROM tab1
----
-270
-281
-5

query I rowsort
SELECT ALL 29 FROM tab1, tab1 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT DISTINCT - 3 + + cor0.col2 FROM tab0, tab0 AS cor0, tab2 cor1
----
-2
30
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2871
SELECT ALL + 90 + + 92 DIV + col1 FROM tab0 AS cor0
----
90
91
91

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL + 90 + + 92 / + col1 FROM tab0 AS cor0
----
90
91
91

query I rowsort
SELECT 31 + cor0.col1 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f3dfb201fe3c72290083e00a49c945ff

query I rowsort
SELECT ALL - cor0.col1 * - col2 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - ( - cor0.col1 ) + - col0 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT + cor0.col1 * - col2 + col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2876
SELECT cor0.col2 * + ( col2 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2876
SELECT cor0.col2 * + ( col2 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * col2 * - col1 + + ( + 37 ) FROM tab0 AS cor0
----
-244031
-679005
-9372

onlyif mysql # use DIV operator for integer division
query I rowsort label-2878
SELECT ALL - col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL - col1 / + col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT + ( 14 ) * + col1 FROM tab2 AS cor0
----
238
434
826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * col0 col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + 18 * col0 + col0 AS col2 FROM tab0 AS cor0
----
1691
456
665

query I rowsort
SELECT DISTINCT col0 + - col2 * ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT col2 + + col0 + col0 AS col2 FROM tab0
----
260
71
81

query I rowsort
SELECT + ( col2 ) + tab2.col1 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT + tab0.col2 * 67 FROM tab0
----
2211
5494
67

query I rowsort
SELECT ALL - col0 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * - col1 col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + col0 + + 16 AS col2 FROM tab0 AS cor0
----
105
40
51

query I rowsort
SELECT DISTINCT col1 * - col1 * col1 - - col0 FROM tab2 AS cor0
----
-205301
-29784
-4834

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2890
SELECT ALL + col2 * - CAST( - col2 + - col0 AS SIGNED ) FROM tab0 AS cor0
----
14022
1881
36

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL + col2 * - CAST ( - col2 + - col0 AS INTEGER ) FROM tab0 AS cor0
----
14022
1881
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-2891
SELECT DISTINCT col0 + 67 DIV - col2 FROM tab0 cor0
----
-32
22
89

skipif mysql # not compatible
query I rowsort label-2891
SELECT DISTINCT col0 + 67 / - col2 FROM tab0 cor0
----
-32
22
89

query I rowsort
SELECT DISTINCT - 73 * col1 * 82 + - tab1.col2 AS col1 FROM tab1
----
-155690
-59917
-77914

onlyif mysql # use DIV operator for integer division
query I rowsort label-2893
SELECT ALL col0 * - col0 + col1 * tab1.col0 DIV col2 FROM tab1
----
-4085
-6390
-8

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL col0 * - col0 + col1 * tab1.col0 / col2 FROM tab1
----
-4085
-6390
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2894
SELECT ALL 0 + - col1 DIV ( + col2 ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL 0 + - col1 / ( + col2 ) AS col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 + col2 col0 FROM tab2
----
43
44
55

query I rowsort
SELECT ALL - + cor0.col2 AS col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT col1 + ( col1 ) AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL - col2 + ( + col1 ) + cor0.col0 * - 60 FROM tab2 AS cor0
----
-416
-4647
-4761

query I rowsort
SELECT + col0 + col2 * col1 AS col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - cor0.col0 + 66 FROM tab2 AS cor0
----
-12
-13
59

query I rowsort
SELECT col0 * - col2 + - 61 FROM tab0 AS cor0
----
-7359
-853
-96

query I rowsort
SELECT DISTINCT + ( + col0 + - col1 ) * 29 FROM tab2
----
-696
1798
551

query I rowsort
SELECT ALL 42 * col0 FROM tab1
----
126
2688
3360

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2904
SELECT tab1.col2 * - col2 + CAST( - col1 AS SIGNED ) AS col1 FROM tab1
----
-2942
-3259
-9229

skipif mysql # not compatible
query I rowsort label-2904
SELECT tab1.col2 * - col2 + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1
----
-2942
-3259
-9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-2905
SELECT ALL - 35 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL - 35 / cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT + 37 FROM tab1 cor0
----
37

query I rowsort
SELECT DISTINCT + ( - col1 ) * - cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - 85 * + col2 AS col0 FROM tab2 AS cor0
----
-2210
-2295
-3230

onlyif mysql # use DIV operator for integer division
query I rowsort label-2909
SELECT + col1 DIV col0 - + col0 * col2 FROM tab2 AS cor0
----
-185
-2028
-3002

skipif mysql # not compatible
query I rowsort label-2909
SELECT + col1 / col0 - + col0 * col2 FROM tab2 AS cor0
----
-185
-2028
-3002

query I rowsort
SELECT - col2 * 81 + + col1 - - col0 FROM tab1 AS cor0
----
-4345
-4543
-7683

query I rowsort
SELECT DISTINCT col1 * + 27 * col0 AS col0 FROM tab1 cor0
----
17280
2106
28080

query I rowsort
SELECT col2 + - col0 * - cor0.col2 + - col0 FROM tab2 AS cor0
----
1976
209
2961

onlyif mysql # use DIV operator for integer division
query I rowsort label-2913
SELECT DISTINCT + cor0.col1 DIV 73 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2913
SELECT DISTINCT + cor0.col1 / 73 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2914
SELECT DISTINCT + col1 DIV col1 - CAST( col2 AS SIGNED ) FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT + col1 / col1 - CAST ( col2 AS INTEGER ) FROM tab0
----
-32
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * + col2 + - col1 col0 FROM tab2
----
158
1969
2985

query I rowsort
SELECT DISTINCT 44 * col0 * col2 AS col0 FROM tab0
----
1540
321112
34848

query I rowsort
SELECT ALL - - tab2.col1 AS col1 FROM tab0, tab1, tab0 cor0, tab2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 + - col2 col0 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT - 56 + + col0 * col2 AS col0 FROM tab1 AS cor0
----
106
3592
7624

query I rowsort
SELECT ALL - - col1 + col0 AS col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL + + col1 * - col2 * - col2 AS col1 FROM tab0 AS cor0
----
611884
93654
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 * - 78 col0 FROM tab2 AS cor0
----
-7410

query I rowsort
SELECT + 51 + + col1 * col2 FROM tab0 cor0
----
148
2889
7513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col2 ) col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT 10 + - col1 AS col1 FROM tab1 cor0
----
-16
-3
0

query I rowsort
SELECT ALL + col0 * + cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
343
474552
493039

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2927
SELECT ALL + + CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL + + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2928
SELECT ALL cor0.col1 DIV col2 + - col1 * + 98 * cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
-202237
-332612
-793619

skipif mysql # not compatible
query I rowsort label-2928
SELECT ALL cor0.col1 / col2 + - col1 * + 98 * cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
-202237
-332612
-793619

query I rowsort
SELECT - 46 FROM tab2 cor0
----
-46
-46
-46

onlyif mysql # use DIV operator for integer division
query I rowsort label-2930
SELECT DISTINCT + - col1 + + 69 DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
-84
-91
-96

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT + - col1 + + 69 / + cor0.col0 AS col1 FROM tab0 AS cor0
----
-84
-91
-96

query I rowsort
SELECT + - 50 AS col0 FROM tab1 AS cor0
----
-50
-50
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - cor0.col1 col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT 22 * col1 * - col0 + - col2 * ( - col0 ) AS col0 FROM tab2
----
-26544
-4585
-99216

query I rowsort
SELECT DISTINCT ( - tab1.col2 + - tab1.col2 ) FROM tab1
----
-108
-114
-192

query I rowsort
SELECT - cor0.col0 * - 63 + - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e792500f53c74c3113c91a1c101c8d04

query I rowsort
SELECT col1 + + 84 * cor0.col1 AS col0 FROM tab0 AS cor0
----
7310
7735
8245

query I rowsort
SELECT ALL - ( 57 ) AS col1 FROM tab0, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 1b1b58f936aab250d5d6d3f1065ea6dd

query I rowsort
SELECT ALL col2 * + 98 FROM tab1
----
5292
5586
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-2939
SELECT col2 * col2 + - col0 DIV col0 FROM tab0
----
0
1088
6723

skipif mysql # not compatible
query I rowsort label-2939
SELECT col2 * col2 + - col0 / col0 FROM tab0
----
0
1088
6723

query I rowsort
SELECT DISTINCT + cor0.col2 + 42 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
138
96
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2941
SELECT ALL cor0.col2 DIV col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL cor0.col2 / col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT ( + ( - col1 ) ) * 68 + + col0 AS col1 FROM tab0 AS cor0
----
-5824
-6099
-6561

query I rowsort
SELECT DISTINCT col1 * 76 FROM tab2
----
1292
2356
4484

query I rowsort
SELECT DISTINCT + - 3 + col1 FROM tab2 AS cor0
----
14
28
56

query I rowsort
SELECT - cor0.col2 * + col0 + cor0.col2 * + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col1 + + 47 * col2 FROM tab1 cor0
----
2564
2689
4525

query I rowsort
SELECT - + col0 - - ( + col2 ) FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL + col2 + - 49 AS col2 FROM tab2 AS cor0
----
-11
-22
-23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2949
SELECT ALL col2 + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL col2 + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT 46 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

onlyif mysql # use DIV operator for integer division
query I rowsort label-2951
SELECT ALL col0 * col0 * 62 - - col2 DIV - col1 FROM tab1
----
253947
396793
556

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL col0 * col0 * 62 - - col2 / - col1 FROM tab1
----
253947
396793
556

onlyif mysql # use DIV operator for integer division
query I rowsort label-2952
SELECT - col2 + 94 - - col1 DIV - col1 FROM tab1
----
-3
36
39

skipif mysql # not compatible
query I rowsort label-2952
SELECT - col2 + 94 - - col1 / - col1 FROM tab1
----
-3
36
39

query I rowsort
SELECT col1 * col2 * col0 + col0 + 42 AS col1 FROM tab2
----
119772
51155
5908

query I rowsort
SELECT col1 * + ( + col2 * - col0 ) AS col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT + 12 AS col0 FROM tab0, tab2 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - 23 col1 FROM tab1
----
-103
-26
-87

query I rowsort
SELECT DISTINCT + col2 - col1 * tab0.col2 * tab0.col0 FROM tab0
----
-3394
-664036
-68079

query I rowsort
SELECT cor0.col2 - ( 14 ) * col2 AS col1 FROM tab2 AS cor0
----
-338
-351
-494

query I rowsort
SELECT DISTINCT + col0 * col0 * col2 - - col1 FROM tab0 AS cor0
----
1322
19094
649613

onlyif mysql # use DIV operator for integer division
query I rowsort label-2960
SELECT + - col2 * ( col0 * + cor0.col1 ) + col1 DIV - 9 FROM tab0 AS cor0
----
-3405
-664128
-68121

skipif mysql # not compatible
query I rowsort label-2960
SELECT + - col2 * ( col0 * + cor0.col1 ) + col1 / - 9 FROM tab0 AS cor0
----
-3405
-664128
-68121

query I rowsort
SELECT ALL col1 + + 58 FROM tab0
----
144
149
155

onlyif mysql # use DIV operator for integer division
query I rowsort label-2962
SELECT - col1 + cor0.col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-2962
SELECT - col1 + cor0.col0 / + col1 AS col2 FROM tab1 AS cor0
----
-26
-4
-7

query I rowsort
SELECT + 57 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT + - 4 AS col0 FROM tab1 AS cor0
----
-4
-4
-4

query I rowsort
SELECT + + 11 * + col0 AS col1 FROM tab0 AS cor0
----
264
385
979

query I rowsort
SELECT DISTINCT col0 * cor0.col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - + 70 * + col1 FROM tab1 AS cor0
----
-1820
-700
-910

query I rowsort
SELECT DISTINCT - - col0 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT 20 + col2 FROM tab0
----
102
21
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2970
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + cor1.col2 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + cor1.col2 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL + cor1.col0 AS col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + - 63 FROM tab0 cor0
----
-63
-63
-63

query I rowsort
SELECT DISTINCT + ( col1 ) + 34 FROM tab0 AS cor0
----
120
125
131

onlyif mysql # use DIV operator for integer division
query I rowsort label-2974
SELECT - - col2 DIV + cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2974
SELECT - - col2 / + cor0.col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2975
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * 3 AS col1 FROM tab0 AS cor0
----
-105
-267
-72

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + col1 AS col1 FROM tab1 cor0
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 - col2 col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT + + cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 col0 FROM tab0
----
-41
-41
-41

query I rowsort
SELECT ALL - 83 AS col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 * + col0 col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT ALL 80 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

query I rowsort
SELECT DISTINCT 97 AS col1 FROM tab2 cor0
----
97

query I rowsort
SELECT + 85 + col2 + - col1 * + ( - col2 ) * + col1 FROM tab0 AS cor0
----
244186
679209
9495

query I rowsort
SELECT ALL + col2 * + 87 * cor0.col0 AS col2 FROM tab2 AS cor0
----
16443
176436
261174

query I rowsort
SELECT - + 38 + + col0 * + col2 FROM tab2 AS cor0
----
151
1990
2964

query I rowsort
SELECT DISTINCT + col0 * + col2 * col2 + - 62 AS col0 FROM tab2 AS cor0
----
114014
5041
52666

onlyif mysql # use DIV operator for integer division
query I rowsort label-2989
SELECT - 51 + cor0.col0 * + col1 + col2 DIV + 3 AS col2 FROM tab2 AS cor0
----
1304
175
4559

skipif mysql # not compatible
query I rowsort label-2989
SELECT - 51 + cor0.col0 * + col1 + col2 / + 3 AS col2 FROM tab2 AS cor0
----
1304
175
4559

query I rowsort
SELECT DISTINCT + + col1 + 38 FROM tab2 AS cor0
----
55
69
97

query I rowsort
SELECT + + 5 * - col2 + col1 AS col2 FROM tab1 AS cor0
----
-244
-275
-467

onlyif mysql # use DIV operator for integer division
query I rowsort label-2992
SELECT DISTINCT 33 DIV + ( col2 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT 33 / + ( col2 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 48 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
48

query I rowsort
SELECT DISTINCT - + col0 * col1 * col1 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL cor0.col2 + + col1 * + cor0.col0 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-2996
SELECT col2 DIV col2 + + col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-2996
SELECT col2 / col2 + + col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT ALL tab0.col2 * 90 AS col0 FROM tab0
----
2970
7380
90

query I rowsort
SELECT 53 + + tab1.col2 FROM tab1
----
107
110
149

query I rowsort
SELECT DISTINCT 98 * + col0 + - col1 * - col1 FROM tab1 AS cor0
----
6372
8009
970

query I rowsort
SELECT + + ( + cor0.col0 ) * col0 + col1 AS col2 FROM tab2 cor0
----
6143
6258
80

query I rowsort
SELECT - 76 * + col2 - col1 AS col0 FROM tab0
----
-173
-2594
-6323

query I rowsort
SELECT + ( - 37 ) AS col2 FROM tab2 AS cor0
----
-37
-37
-37

query I rowsort
SELECT + tab0.col2 * cor0.col2 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 1e358219bf03c93d7085a65107d13cf1

query I rowsort
SELECT ALL + 32 AS col1 FROM tab1, tab1 cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to bcc5bc65977c39982bb64628d74972f5

query I rowsort
SELECT ALL + col1 + - ( - col2 ) FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + col0 + ( 28 ) * col2 FROM tab0
----
2385
63
948

onlyif mysql # use DIV operator for integer division
query I rowsort label-3007
SELECT ALL - col1 DIV + col2 - col2 FROM tab0 AS cor0
----
-35
-83
-98

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL - col1 / + col2 - col2 FROM tab0 AS cor0
----
-35
-83
-98

query I rowsort
SELECT DISTINCT + col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3009
SELECT ALL - CAST( cor0.col0 AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL - CAST ( cor0.col0 AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-3010
SELECT DISTINCT - 15 + + ( col1 ) DIV + col1 col2 FROM tab2 AS cor0
----
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3010
SELECT DISTINCT - 15 + + ( col1 ) / + col1 col2 FROM tab2 AS cor0
----
-14

query I rowsort
SELECT ALL + - 15 + cor0.col2 AS col1 FROM tab2 AS cor0
----
11
12
23

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col2 AS REAL ) + + cor0.col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - + 87 AS col0 FROM tab2 cor0
----
-87
-87
-87

query I rowsort
SELECT ALL - ( col1 ) * col2 + - col0 * - col0 AS col0 FROM tab1 cor0
----
-1395
3526
5152

query I rowsort
SELECT + - ( ( col2 ) ) FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + ( col2 ) - - col1 * 39 FROM tab1 AS cor0
----
1068
447
603

query I rowsort
SELECT DISTINCT - col2 * + col0 + - col2 * ( + 57 ) - + cor0.col1 FROM tab2 AS cor0
----
-1759
-3569
-5185

query I rowsort
SELECT + ( - col2 ) + + col2 * col0 * + tab0.col0 FROM tab0
----
1224
18975
649440

query I rowsort
SELECT + col2 + + col1 * col1 FROM tab1 AS cor0
----
157
265
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 * col0 col1 FROM tab1 AS cor0
----
-108
-2304
-2880

query I rowsort
SELECT 89 * - cor0.col0 + ( + 65 + + cor0.col1 * ( 0 ) ) FROM tab1 AS cor0
----
-202
-5631
-7055

query I rowsort
SELECT ALL col2 + - col1 * cor0.col1 FROM tab1 AS cor0
----
-43
-622
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-3023
SELECT + + col0 - + col2 DIV + col1 AS col0 FROM tab1 AS cor0
----
1
59
73

skipif mysql # not compatible
query I rowsort label-3023
SELECT + + col0 - + col2 / + col1 AS col0 FROM tab1 AS cor0
----
1
59
73

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-3025
SELECT DISTINCT - col1 * - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT - col1 * - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-3026
SELECT ALL tab1.col1 * - col0 + col2 + col1 DIV col1 FROM tab1
----
-23
-582
-943

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL tab1.col1 * - col0 + col2 + col1 / col1 FROM tab1
----
-23
-582
-943

query I rowsort
SELECT - tab1.col1 * + tab1.col1 + 89 * col2 AS col1 FROM tab1
----
4130
4973
8375

query I rowsort
SELECT - col2 + - 88 AS col0 FROM tab2 AS cor0
----
-114
-115
-126

query I rowsort
SELECT col1 * 47 + + col1 + + col2 * 6 AS col2 FROM tab0 cor0
----
4326
4662
4860

query I rowsort
SELECT - col1 * + ( col1 ) FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT - 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT - col0 + - ( col0 ) + col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT col2 * + col0 - + 76 AS col0 FROM tab2 AS cor0
----
113
1952
2926

query I rowsort
SELECT + + col0 + ( + 62 ) AS col1 FROM tab0 AS cor0
----
151
86
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3035
SELECT col1 + + ( + cor0.col1 ) + + col1 DIV col0 FROM tab0 cor0
----
175
183
196

skipif mysql # not compatible
query I rowsort label-3035
SELECT col1 + + ( + cor0.col1 ) + + col1 / col0 FROM tab0 cor0
----
175
183
196

query I rowsort
SELECT col1 + + 42 FROM tab2 AS cor0
----
101
59
73

query I rowsort
SELECT - col0 * + col1 * 96 FROM tab1 AS cor0
----
-61440
-7488
-99840

query I rowsort
SELECT ALL 95 + 92 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to f6d7882115e546a1c528b9a356fa1253

query I rowsort
SELECT + col2 * col1 * + cor0.col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT cor0.col0 + + 92 * cor0.col2 FROM tab0 AS cor0
----
127
3060
7633

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to 42ae2eaa7bed53d316a0590d597db470

onlyif mysql # use DIV operator for integer division
query I rowsort label-3042
SELECT ALL col1 * ( - col2 ) DIV col0 FROM tab2
----
-119
-19
-8

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL col1 * ( - col2 ) / col0 FROM tab2
----
-119
-19
-8

query I rowsort
SELECT + col1 * 44 FROM tab1
----
1144
440
572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 * - col1 - + 71 col0 FROM tab2 AS cor0
----
-1487
-479
-815

query I rowsort
SELECT cor0.col2 * + cor0.col1 + - cor0.col1 * + col0 FROM tab0 AS cor0
----
-3298
-637
774

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab1, tab2 cor0, tab1 cor1
----
26
27
38

query I rowsort
SELECT tab0.col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL + 9 FROM tab1, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT ALL - 48 + - tab2.col2 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 094c01a753c48d67e9c7fd2c461c374b

query I rowsort
SELECT ALL 16 * col2 FROM tab0
----
1312
16
528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3051
SELECT + col2 * - col1 * - CAST( NULL AS DECIMAL ) + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3051
SELECT + col2 * - col1 * - CAST ( NULL AS REAL ) + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 68 + col2 AS col0 FROM tab0
----
-35
-67
14

query I rowsort
SELECT DISTINCT tab1.col0 * col2 + ( 1 * + col2 ) FROM tab1
----
216
3705
7776

query I rowsort
SELECT DISTINCT - col2 * + col1 + - 60 * col2 FROM tab2
----
-2457
-2926
-3094

query I rowsort
SELECT DISTINCT - 4 + cor0.col0 AS col1 FROM tab2 cor0
----
3
74
75

query I rowsort
SELECT - 41 - + col2 FROM tab1 AS cor0
----
-137
-95
-98

query I rowsort
SELECT - cor0.col2 + - col0 * col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT - + col0 - + col0 AS col2 FROM tab2 cor0
----
-14
-156
-158

onlyif mysql # use DIV operator for integer division
query I rowsort label-3059
SELECT DISTINCT col0 + col0 DIV col2 AS col0 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT col0 + col0 / col2 AS col0 FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT DISTINCT - - col1 + + cor0.col1 * - 78 FROM tab2 cor0
----
-1309
-2387
-4543

query I rowsort
SELECT ALL - col0 * cor0.col1 - + cor0.col0 * col2 * col0 FROM tab2 AS cor0
----
-1540
-162786
-238501

onlyif mysql # use DIV operator for integer division
query I rowsort label-3062
SELECT ALL col2 DIV col2 + cor0.col1 * col1 FROM tab0 AS cor0
----
7397
8282
9410

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL col2 / col2 + cor0.col1 * col1 FROM tab0 AS cor0
----
7397
8282
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-3063
SELECT - col0 * + col0 DIV col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3063
SELECT - col0 * + col0 / col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + col2 * cor0.col0 AS col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - - cor0.col2 + + col0 AS col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3066
SELECT + - col2 * col2 DIV col0 col0 FROM tab0 AS cor0
----
-45
-75
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3066
SELECT + - col2 * col2 / col0 col0 FROM tab0 AS cor0
----
-45
-75
0

query I rowsort
SELECT ALL + col1 * - col1 * - col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
177590
329412
737100

query I rowsort
SELECT - col0 + + col0 * + col2 * + col2 AS col2 FROM tab1
----
207872
737200
8745

query I rowsort
SELECT ALL col0 * - col0 + - col2 * - col2 AS col1 FROM tab0
----
-1197
-1224
513

query I rowsort
SELECT DISTINCT col1 * col2 + tab0.col0 * - col0 FROM tab0
----
-1128
-459
2262

query I rowsort
SELECT ALL + col2 + col1 + col2 * - tab1.col2 * - col2 FROM tab1
----
157544
185260
884845

onlyif mysql # use DIV operator for integer division
query I rowsort label-3072
SELECT ALL col2 DIV col2 + + col0 col2 FROM tab0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL col2 / col2 + + col0 col2 FROM tab0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 + col0 col2 FROM tab0
----
105
267
72

query I rowsort
SELECT ALL col2 * col1 * col1 AS col1 FROM tab2
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col2 col0 FROM tab1
----
108
114
192

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + col0 * col1 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col1 * + tab1.col1 col1 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL - col1 + + col1 * - 61 FROM tab2 AS cor0
----
-1054
-1922
-3658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab0 WHERE NOT NULL BETWEEN ( col0 * - col2 + + col1 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col1 col0 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT col2 + - col1 + - col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT col0 - col0 FROM tab0 WHERE ( NULL ) BETWEEN ( NULL ) AND - col1
----

query I rowsort
SELECT col2 * - tab1.col2 * col0 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT DISTINCT + col1 * - col2 * col2 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT DISTINCT tab0.col0 * col2 + col1 * + col0 * col1 AS col1 FROM tab0
----
178296
329350
744307

query I rowsort
SELECT - col0 * col1 + tab0.col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL 87 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50

query I rowsort
SELECT 48 + cor0.col1 - cor0.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 0c181f4d5f01aab806f40b8cbb6989a4

query I rowsort
SELECT cor0.col2 * - 60 FROM tab1, tab1 AS cor0
----
9 values hashing to faebb42060ddaf5dec7dbf1f01bae592

query I rowsort
SELECT col1 + col0 * + 64 FROM tab0
----
1622
2337
5787

query I rowsort
SELECT ALL 34 * col0 * col1 AS col1 FROM tab0 cor0
----
115430
275366
70176

query I rowsort
SELECT DISTINCT 0 * + cor0.col2 + col2 * col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + 6 * cor0.col2 * col2 FROM tab2 AS cor0
----
4056
4374
8664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + + col1 * + col2 + 70 col0 FROM tab2 AS cor0
----
1526
637
900

onlyif mysql # use DIV operator for integer division
query I rowsort label-3095
SELECT tab2.col0 DIV col1 + col1 FROM tab2
----
21
31
60

skipif mysql # not compatible
query I rowsort label-3095
SELECT tab2.col0 / col1 + col1 FROM tab2
----
21
31
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-3096
SELECT col0 * col1 DIV + tab0.col0 + - col0 DIV - tab0.col2 col0 FROM tab0
----
132
86
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3096
SELECT col0 * col1 / + tab0.col0 + - col0 / - tab0.col2 col0 FROM tab0
----
132
86
92

query I rowsort
SELECT col1 * + col0 + col0 * col0 * col1 AS col0 FROM tab1
----
312
41600
84240

query I rowsort
SELECT - col2 * - col1 * col0 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT NULL NOT IN ( - col1 / col2 - col2 )
----

query I rowsort
SELECT col1 + - col1 + - col1 AS col0 FROM tab0
----
-86
-91
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( - col2 / + col1 - + col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3102
SELECT + tab2.col0 * col0 DIV tab2.col0 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-3102
SELECT + tab2.col0 * col0 / tab2.col0 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT - tab2.col1 + - col1 + tab2.col0 * col0 * tab2.col2 FROM tab2
----
1261
158066
237124

query I rowsort
SELECT - col1 + col1 * col0 + - col1 AS col2 FROM tab0
----
1892
3201
7917

query I rowsort
SELECT col1 + col1 * + col2 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - cor0.col0 col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT cor0.col2 + - col1 * col0 * - col2 AS col2 FROM tab0 cor0
----
3396
664200
68145

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 <= tab0.col2 * - col2 * + col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3109
SELECT - col0 * col0 DIV - col2 + + col2 * col1 FROM tab0
----
1322
2855
7558

skipif mysql # not compatible
query I rowsort label-3109
SELECT - col0 * col0 / - col2 + + col2 * col1 FROM tab0
----
1322
2855
7558

query I rowsort
SELECT col2 + + col1 * col2 FROM tab0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3111
SELECT ALL col2 DIV - col1 col1 FROM tab1
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL col2 / - col1 col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT - col2 + + col1 + + tab0.col2 * - tab0.col1 FROM tab0
----
-1
-2785
-7453

onlyif mysql # use DIV operator for integer division
query I rowsort label-3113
SELECT ALL + col0 DIV + col1 AS col2 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL + col0 / + col1 AS col2 FROM tab1
----
0
6
6

query I rowsort
SELECT - 76 + - col0 FROM tab1 AS cor0
----
-140
-156
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + col0 * + col0 col2 FROM tab0 cor0
----
1224
543
7839

query I rowsort
SELECT - 30 AS col0 FROM tab1 AS cor0
----
-30
-30
-30

query I rowsort
SELECT ALL 66 FROM tab2 cor0
----
66
66
66

query I rowsort
SELECT - ( - col1 + col2 ) * tab0.col2 AS col2 FROM tab0
----
1749
738
96

query I rowsort
SELECT + col0 * cor0.col2 * col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT col2 * + 62 AS col0 FROM tab2 AS cor0
----
1612
1674
2356

onlyif mysql # use DIV operator for integer division
query I rowsort label-3121
SELECT DISTINCT - - col2 DIV col2 + col0 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-3121
SELECT DISTINCT - - col2 / col2 + col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT - col0 * 55 FROM tab0
----
-1320
-1925
-4895

onlyif mysql # use DIV operator for integer division
query I rowsort label-3123
SELECT - col1 + 68 DIV col2 FROM tab0 AS cor0
----
-29
-84
-91

skipif mysql # not compatible
query I rowsort label-3123
SELECT - col1 + 68 / col2 FROM tab0 AS cor0
----
-29
-84
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + 6 col2 FROM tab0 cor0
----
-80
-85
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-3125
SELECT - col1 DIV ( - col2 ) FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3125
SELECT - col1 / ( - col2 ) FROM tab0
----
1
2
97

query I rowsort
SELECT DISTINCT - col2 + ( col0 ) AS col1 FROM tab1
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3127
SELECT + col2 * col1 + col0 DIV tab0.col0 FROM tab0
----
2839
7463
98

skipif mysql # not compatible
query I rowsort label-3127
SELECT + col2 * col1 + col0 / tab0.col0 FROM tab0
----
2839
7463
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 * - col0 col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT col2 * - tab0.col1 * col1 AS col0 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT tab0.col2 + - col1 + - col2 AS col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT col1 * col1 * col2 - ( + col2 ) * cor0.col1 AS col0 FROM tab1 cor0
----
14976
35100
5130

query I rowsort
SELECT ALL + - ( col1 ) + - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT + 85 FROM tab0 cor0
----
85

query I rowsort
SELECT col2 * col0 - + col2 * - ( col0 ) AS col0 FROM tab1 cor0
----
15360
324
7296

query I rowsort
SELECT + col2 * + col0 - - col0 * col0 * 31 FROM tab0 AS cor0
----
18648
252849
38010

query I rowsort
SELECT ( - col2 ) + + col2 * + ( - col1 ) FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT - cor0.col1 * + 4 + + col1 FROM tab1 cor0
----
-30
-39
-78

query I rowsort
SELECT ALL + + col0 * ( - col1 ) + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL col1 * col1 * col0 AS col2 FROM tab1 AS cor0
----
13520
2028
6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-3141
SELECT ALL - col2 * col2 + col2 DIV + 50 FROM tab1 AS cor0
----
-2915
-3248
-9215

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL - col2 * col2 + col2 / + 50 FROM tab1 AS cor0
----
-2915
-3248
-9215

query I rowsort
SELECT DISTINCT ( cor0.col1 ) + - col2 * 75 FROM tab2 AS cor0
----
-1891
-1994
-2833

query I rowsort
SELECT + ( - col0 ) - col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL tab2.col2 * - 18 AS col2 FROM tab2
----
-468
-486
-684

query I rowsort
SELECT ALL - 91 * col2 + col1 AS col0 FROM tab2 AS cor0
----
-2307
-2426
-3441

query I rowsort
SELECT ALL 12 * col1 FROM tab2
----
204
372
708

query I rowsort
SELECT - col0 + col2 + + col0 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT 71 - 39 * - col0 * + col0 AS col0 FROM tab0
----
22535
308990
47846

query I rowsort
SELECT - 6 * + col0 + col2 FROM tab2 AS cor0
----
-15
-436
-442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 12 col2 FROM tab2 cor0
----
12
12
12

query I rowsort
SELECT DISTINCT col0 * col0 * - col2 + + col0 * - col1 * col0 AS col1 FROM tab0
----
-120050
-1370333
-68544

query I rowsort
SELECT DISTINCT col2 * col0 - cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1190
-623
216

query I rowsort
SELECT ALL - + cor0.col1 * col2 - col2 * col2 FROM tab1 AS cor0
----
-10464
-3819
-4320

onlyif mysql # use DIV operator for integer division
query I rowsort label-3154
SELECT - 88 + col1 DIV col0 FROM tab2 AS cor0
----
-84
-88
-88

skipif mysql # not compatible
query I rowsort label-3154
SELECT - 88 + col1 / col0 FROM tab2 AS cor0
----
-84
-88
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-3155
SELECT + 43 DIV + col2 + - col1 col2 FROM tab0 AS cor0
----
-54
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3155
SELECT + 43 / + col2 + - col1 col2 FROM tab0 AS cor0
----
-54
-85
-91

query I rowsort
SELECT 75 FROM tab2 cor0
----
75
75
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-3157
SELECT ALL + - col2 DIV - 60 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL + - col2 / - 60 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - cor0.col1 * ( + col2 ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - + 54 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-3160
SELECT + col2 DIV + 62 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3160
SELECT + col2 / + 62 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 31 col1 FROM tab1 AS cor0
----
310
403
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-3162
SELECT + ( col1 ) DIV col1 AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3162
SELECT + ( col1 ) / col1 AS col2 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT - ( ( col0 ) ) + col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - + col0 * 23 FROM tab2 AS cor0
----
-161
-1794
-1817

onlyif mysql # use DIV operator for integer division
query I rowsort label-3165
SELECT + col2 * CAST( - col1 AS SIGNED ) DIV - col2 - - 54 FROM tab0
----
140
145
151

skipif mysql # not compatible
query I rowsort label-3165
SELECT + col2 * CAST ( - col1 AS INTEGER ) / - col2 - - 54 FROM tab0
----
140
145
151

query I rowsort
SELECT ALL - tab1.col2 + + col1 + - 85 * tab1.col2 FROM tab1
----
-4618
-4892
-8243

query I rowsort
SELECT ALL + 8 FROM tab2 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 - - col0 * + 85 + col1 * + col1 + col0 col0 FROM tab0 AS cor0
----
12419
15935
9460

query I rowsort
SELECT ALL + col0 * - ( + col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + - col0 * + col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT + cor0.col1 * - ( + col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL 74 * - cor0.col0 FROM tab1 AS cor0
----
-222
-4736
-5920

query I rowsort
SELECT 89 AS col2 FROM tab2 cor0
----
89
89
89

query I rowsort
SELECT DISTINCT col0 + 7 AS col0 FROM tab1 cor0
----
10
71
87

query I rowsort
SELECT ALL + - 74 * col1 + cor0.col0 - col2 FROM tab2 AS cor0
----
-1217
-2314
-4314

query I rowsort
SELECT DISTINCT - 74 FROM tab0, tab2 AS cor0
----
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-3177
SELECT DISTINCT + col2 DIV col2 + + col0 * 91 FROM tab0 AS cor0
----
2185
3186
8100

skipif mysql # not compatible
query I rowsort label-3177
SELECT DISTINCT + col2 / col2 + + col0 * 91 FROM tab0 AS cor0
----
2185
3186
8100

query I rowsort
SELECT - 15 FROM tab2, tab1 cor0, tab0 AS cor1, tab0 cor2
----
81 values hashing to af17c026b0658d7a3496b8b16be82ec5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col1 + 59 col2 FROM tab1 AS cor0
----
-19
-581
-981

query I rowsort
SELECT DISTINCT - col2 + col1 * - 32 FROM tab1 AS cor0
----
-377
-512
-886

query I rowsort
SELECT col0 * - col1 * tab0.col1 FROM tab0
----
-177504
-329315
-737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col0 col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL 32 * col1 * + 75 FROM tab1
----
24000
31200
62400

query I rowsort
SELECT ALL - col1 * + 18 + + 25 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1011
-243
-506

query I rowsort
SELECT + - cor0.col1 * col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT - - col2 * col1 AS col2 FROM tab0 cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3187
SELECT ALL + - col1 DIV - cor0.col2 + 64 * col0 FROM tab1 AS cor0
----
192
4096
5120

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL + - col1 / - cor0.col2 + 64 * col0 FROM tab1 AS cor0
----
192
4096
5120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3188
SELECT + CAST( NULL AS DECIMAL ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3188
SELECT + CAST ( NULL AS REAL ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - col0 * col0 * + 84 AS col1 FROM tab1
----
-344064
-537600
-756

onlyif mysql # use DIV operator for integer division
query I rowsort label-3190
SELECT ( + col1 ) DIV + tab1.col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3190
SELECT ( + col1 ) / + tab1.col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 40 * + col1 FROM tab2
----
-1240
-2360
-680

query I rowsort
SELECT col1 * col1 * 85 - - col1 FROM tab1
----
14378
57486
8510

query I rowsort
SELECT DISTINCT - + col0 * - ( + col2 ) + + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - - col1 * col1 - 14 FROM tab0 AS cor0
----
7382
8267
9395

query I rowsort
SELECT - - col0 + ( col1 ) AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - cor0.col2 * + col1 + - 8 AS col2 FROM tab2 AS cor0
----
-1542
-654
-845

query I rowsort
SELECT DISTINCT col2 - - cor0.col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - col0 - col1 * col1 * + col1 FROM tab1 AS cor0
----
-1064
-17579
-2277

query I rowsort
SELECT ALL + col2 + + col1 AS col0 FROM tab0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 66 col0 FROM tab1
----
-14
2
63

query I rowsort
SELECT DISTINCT + col2 * - 65 + col2 FROM tab2
----
-1664
-1728
-2432

query I rowsort
SELECT ALL - col2 + + ( - col2 ) * + col0 AS col0 FROM tab0
----
-36
-7380
-825

query I rowsort
SELECT - - col2 * col0 + col1 AS col0 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-3204
SELECT ALL - col1 * + 69 + - 28 + + cor0.col1 DIV + ( col1 * col1 + - col1 * 21 ) AS col0 FROM tab0 cor0
----
-5962
-6307
-6721

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL - col1 * + 69 + - 28 + + cor0.col1 / + ( col1 * col1 + - col1 * 21 ) AS col0 FROM tab0 cor0
----
-5962
-6307
-6721

query I rowsort
SELECT ALL + col0 + ( + 34 ) * tab2.col2 AS col0 FROM tab2
----
1371
925
962

query I rowsort
SELECT ALL tab0.col0 + + col0 * tab0.col2 + col2 AS col1 FROM tab0
----
71
7469
849

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3207
SELECT + tab0.col2 * + CAST( + col1 AS SIGNED ) * col0 AS col0 FROM tab0
----
3395
664118
68112

skipif mysql # not compatible
query I rowsort label-3207
SELECT + tab0.col2 * + CAST ( + col1 AS INTEGER ) * col0 AS col0 FROM tab0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( tab1.col2 * - col1 ) - col2 col2 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT ALL + 73 * + col0 FROM tab2 AS cor0
----
511
5694
5767

query I rowsort
SELECT - 78 + - col2 FROM tab1
----
-132
-135
-174

query I rowsort
SELECT ALL 18 FROM tab1, tab1 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT - ( + col2 ) + - col1 FROM tab2
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + tab1.col1 * col2 + col2 * ( + tab1.col1 ) ) col2 FROM tab1
----
-1140
-2496
-2808

query I rowsort
SELECT DISTINCT - 48 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-74
-75
-86

query I rowsort
SELECT ALL 92 + col2 AS col1 FROM tab0 AS cor0
----
125
174
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3216
SELECT col0 + cor0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3216
SELECT col0 + cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 69 + - col0 FROM tab0
----
-20
34
45

query I rowsort
SELECT 63 + col1 FROM tab2 AS cor0
----
122
80
94

query I rowsort
SELECT DISTINCT - + cor0.col1 * + col2 - + col0 * + col2 FROM tab1 AS cor0
----
-1566
-4218
-8928

onlyif mysql # use DIV operator for integer division
query I rowsort label-3220
SELECT ALL + col2 DIV - cor0.col0 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL + col2 / - cor0.col0 FROM tab1 cor0
----
-1
-18
0

query I rowsort
SELECT ALL - cor0.col1 + cor0.col1 * + ( - col0 ) * + col1 AS col2 FROM tab0 cor0
----
-177590
-329412
-737100

onlyif mysql # use DIV operator for integer division
query I rowsort label-3222
SELECT DISTINCT - 87 DIV - col1 + col2 AS col1 FROM tab2 AS cor0
----
27
29
43

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT - 87 / - col1 + col2 AS col1 FROM tab2 AS cor0
----
27
29
43

query I rowsort
SELECT ALL col2 + col1 * col2 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT ALL + 69 + col2 FROM tab0 cor0
----
102
151
70

query I rowsort
SELECT + + col0 + - col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT DISTINCT + 53 + col0 AS col1 FROM tab2 AS cor0
----
131
132
60

query I rowsort
SELECT ALL - 54 - + col1 FROM tab2 AS cor0
----
-113
-71
-85

query I rowsort
SELECT - col1 * col0 + 91 * + 83 AS col0 FROM tab2 AS cor0
----
2951
6210
7336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 19 * - col0 - col0 col1 FROM tab2 AS cor0
----
126
1404
1422

onlyif mysql # use DIV operator for integer division
query I rowsort label-3230
SELECT DISTINCT - - 71 + cor0.col1 DIV + col0 + 47 col1 FROM tab0 AS cor0
----
119
120
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT - - 71 + cor0.col1 / + col0 + 47 col1 FROM tab0 AS cor0
----
119
120
121

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3231
SELECT + CAST( NULL AS SIGNED ) * + 59 - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3231
SELECT + CAST ( NULL AS INTEGER ) * + 59 - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 55 ) + - cor0.col2 * - col2 col2 FROM tab2 cor0
----
1499
731
784

query I rowsort
SELECT DISTINCT + 73 AS col2 FROM tab0, tab1 AS cor0
----
73

query I rowsort
SELECT ( + col0 ) * + col0 AS col1 FROM tab0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-3235
SELECT DISTINCT + ( col0 ) DIV col1 FROM tab1
----
0
6

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT + ( col0 ) / col1 FROM tab1
----
0
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) * - col0 - + 28 col1 FROM tab1 AS cor0
----
-19
4068
6372

query I rowsort
SELECT - + col0 + + 84 AS col1 FROM tab0 AS cor0
----
-5
49
60

query I rowsort
SELECT - col1 * 41 FROM tab0 AS cor0
----
-3526
-3731
-3977

query I rowsort
SELECT - col2 * + col2 - col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT col1 * col1 + col2 AS col1 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT + ( + col1 ) * - col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + col2 * cor0.col2 * - ( col0 ) + cor0.col0 AS col0 FROM tab1 AS cor0
----
-207872
-737200
-8745

query I rowsort
SELECT - cor0.col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - 38 * col0 AS col1 FROM tab2 AS cor0
----
-266
-2964
-3002

query I rowsort
SELECT 56 + ( col1 ) AS col1 FROM tab1
----
66
69
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3246
SELECT ALL + col2 * - col2 + col2 DIV col1 AS col0 FROM tab2
----
-1442
-676
-729

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL + col2 * - col2 + col2 / col1 AS col0 FROM tab2
----
-1442
-676
-729

query I rowsort
SELECT DISTINCT col1 - + col1 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL cor0.col2 * + col1 + + col0 FROM tab1 AS cor0
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - + col1 + + CAST ( cor0.col2 AS REAL ) col1 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3250
SELECT + col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3250
SELECT + col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col1 * - ( - 70 ) + + col2 FROM tab0 cor0
----
6053
6452
6791

onlyif mysql # use DIV operator for integer division
query I rowsort label-3252
SELECT ALL - col0 * col0 + - ( cor0.col0 ) DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL - col0 * col0 + - ( cor0.col0 ) / cor0.col1 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-3253
SELECT ALL - col1 DIV - 30 + - col0 * col0 + + col2 FROM tab1 AS cor0
----
-4039
-6304
45

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL - col1 / - 30 + - col0 * col0 + + col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT + col2 * ( - 62 ) + col1 AS col2 FROM tab1 AS cor0
----
-3322
-3524
-5939

query I rowsort
SELECT ALL + col0 * 93 * - ( col1 ) FROM tab2 AS cor0
----
-124899
-20181
-427986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + - 34 col1 FROM tab0 AS cor0
----
-10
1
55

query I rowsort
SELECT + 14 * col2 * col1 + col0 AS col0 FROM tab0
----
104557
1393
39756

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab0 cor0, tab0 cor1
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5

query I rowsort
SELECT - col0 + 56 * + 31 AS col0 FROM tab1 AS cor0
----
1656
1672
1733

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3260
SELECT DISTINCT - cor0.col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3260
SELECT DISTINCT - cor0.col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 * + col1 + col0 * - col1 + - col1 FROM tab0 AS cor0
----
-179654
-332807
-745199

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3262
SELECT ALL - - col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL - - col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3263
SELECT DISTINCT - + col2 * + CAST( - col1 AS SIGNED ) * col0 + 22 FROM tab2 AS cor0
----
119674
51056
5881

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT - + col2 * + CAST ( - col1 AS INTEGER ) * col0 + 22 FROM tab2 AS cor0
----
119674
51056
5881

query I rowsort
SELECT DISTINCT + col0 * + 41 FROM tab2
----
287
3198
3239

query I rowsort
SELECT ALL 90 + 58 FROM tab0, tab0 AS cor0
----
9 values hashing to 36fe9a243dc625516d8a332d544c71b9

query I rowsort
SELECT - ( + col1 ) * + col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - 56 + 42 * cor0.col2 FROM tab0 AS cor0
----
-14
1330
3388

query I rowsort
SELECT DISTINCT 73 AS col1 FROM tab2, tab0, tab0 AS cor0, tab1
----
73

query I rowsort
SELECT DISTINCT 68 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-3270
SELECT DISTINCT col1 DIV - col0 col1 FROM tab2 AS cor0
----
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT col1 / - col0 col1 FROM tab2 AS cor0
----
-4
0

query I rowsort
SELECT - col0 + col1 + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-111
-163
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + col0 * - col2 col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL - + col2 + + col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL + col2 + - col1 * + col1 AS col0 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT - 7 + col2 AS col0 FROM tab0 AS cor0
----
-6
26
75

query I rowsort
SELECT + - 93 * col1 FROM tab1 AS cor0
----
-1209
-2418
-930

onlyif mysql # use DIV operator for integer division
query I rowsort label-3277
SELECT cor1.col1 + 39 DIV - cor0.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 94a8680f70f932adaeccde597d066447

skipif mysql # not compatible
query I rowsort label-3277
SELECT cor1.col1 + 39 / - cor0.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 94a8680f70f932adaeccde597d066447

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 23 col1 FROM tab1 AS cor0
----
1242
1311
2208

query I rowsort
SELECT 45 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT ( - cor0.col2 ) FROM tab2, tab0, tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ( - 27 ) + + col0 * tab2.col0 FROM tab2
----
22
6057
6214

query I rowsort
SELECT DISTINCT col1 - col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - - 85 * - col0 FROM tab1 AS cor0
----
-255
-5440
-6800

query I rowsort
SELECT DISTINCT - cor0.col0 + col2 * col2 * + 48 - + cor0.col0 AS col2 FROM tab0 AS cor0
----
-22
322574
52224

query I rowsort
SELECT - col1 + col0 * - tab0.col0 + col2 * 99 AS col1 FROM tab0
----
-1223
106
2605

onlyif mysql # use DIV operator for integer division
query I rowsort label-3287
SELECT 66 DIV 2 AS col2 FROM tab0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-3287
SELECT 66 / 2 AS col2 FROM tab0
----
33
33
33

query I rowsort
SELECT + ( 80 ) - col1 FROM tab1
----
54
67
70

query I rowsort
SELECT ( 27 * col0 ) + tab0.col0 + + 75 FROM tab0
----
1055
2567
747

query I rowsort
SELECT DISTINCT 67 - - tab1.col0 AS col1 FROM tab1
----
131
147
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 + + col0 col2 FROM tab0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-3292
SELECT + - col2 DIV col2 + - col1 DIV - 82 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3292
SELECT + - col2 / col2 + - col1 / - 82 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - 56 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT ALL - 54 + - col0 FROM tab1 AS cor0
----
-118
-134
-57

query I rowsort
SELECT DISTINCT ( - col1 ) * ( col2 ) FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT - cor0.col0 * col2 + col0 * - col2 FROM tab0 AS cor0
----
-14596
-1584
-70

query I rowsort
SELECT ALL - col0 * - col0 * + col0 + col2 * col0 AS col1 FROM tab1 AS cor0
----
189
265792
519680

query I rowsort
SELECT DISTINCT + 35 * + col1 + - 68 + col2 FROM tab1 AS cor0
----
339
483
896

query I rowsort
SELECT + col2 * - col1 + + 10 * col1 FROM tab1 AS cor0
----
-1118
-1144
-470

query I rowsort
SELECT cor0.col2 + cor0.col2 + 57 FROM tab0 AS cor0
----
123
221
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3301
SELECT ALL + - 10 DIV + col2 + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL + - 10 / + col2 + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + col2 + 37 * - col0 AS col1 FROM tab2 AS cor0
----
-232
-2860
-2885

query I rowsort
SELECT + + col0 * col1 + - col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT - - ( 1 ) + + col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT ( col2 ) + + col1 * col2 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT col2 + - ( col2 ) FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3308
SELECT - ( ( col0 ) ) + CAST( + ( cor0.col2 ) AS SIGNED ) FROM tab1 AS cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-3308
SELECT - ( ( col0 ) ) + CAST ( + ( cor0.col2 ) AS INTEGER ) FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL + cor0.col0 * - 63 - cor0.col1 FROM tab2 AS cor0
----
-472
-4973
-4994

query I rowsort
SELECT - 58 * - col0 FROM tab0 AS cor0
----
1392
2030
5162

query I rowsort
SELECT ALL 23 - + cor0.col2 AS col1 FROM tab2 AS cor0
----
-15
-3
-4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3312
SELECT ALL - - CAST( NULL AS SIGNED ) * col1 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL - - CAST ( NULL AS INTEGER ) * col1 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 9 * - col2 FROM tab1 AS cor0
----
486
513
864

query I rowsort
SELECT ALL - 10 AS col1 FROM tab2 cor0
----
-10
-10
-10

query I rowsort
SELECT ALL ( cor0.col0 ) * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - cor0.col2 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - col0 * + col0 + col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT 84 * + col2 + - tab0.col2 AS col1 FROM tab0
----
2739
6806
83

query I rowsort
SELECT DISTINCT ( - ( - tab0.col1 ) ) * - col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT 50 * - col2 AS col0 FROM tab2 AS cor0
----
-1300
-1350
-1900

query I rowsort
SELECT ALL + + ( - col0 ) FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT 51 + ( - col0 ) * col2 FROM tab2 AS cor0
----
-138
-1977
-2951

query I rowsort
SELECT + - 7 AS col1 FROM tab0 AS cor0
----
-7
-7
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 col2 FROM tab2 AS cor0
----
79
79
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3325
SELECT DISTINCT + + ( col0 ) DIV + col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3325
SELECT DISTINCT + + ( col0 ) / + col0 FROM tab2 AS cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3326
SELECT - - 51 + col1 - CAST( NULL AS SIGNED ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3326
SELECT - - 51 + col1 - CAST ( NULL AS INTEGER ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT - - col2 + - col0 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT - 67 + col2 * + col2 - - cor0.col1 AS col1 FROM tab2 AS cor0
----
1394
668
693

query I rowsort
SELECT DISTINCT + - 81 * cor0.col1 * 78 FROM tab1 AS cor0
----
-164268
-63180
-82134

query I rowsort
SELECT - 66 * + col2 AS col0 FROM tab0 AS cor0
----
-2178
-5412
-66

query I rowsort
SELECT DISTINCT + + col1 + - col2 * col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL 64 * - tab1.col0 + ( - 25 ) + + col1 AS col2 FROM tab1
----
-191
-4111
-5132

query I rowsort
SELECT 59 + - 7 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT - 73 AS col0 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 2931474b870c05694e446771031a6949

query I rowsort
SELECT ALL + tab1.col2 * 21 FROM tab1
----
1134
1197
2016

onlyif mysql # use DIV operator for integer division
query I rowsort label-3338
SELECT ALL + col1 DIV + tab0.col1 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3338
SELECT ALL + col1 / + tab0.col1 AS col1 FROM tab0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3339
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + - col1 * 74 AS col1 FROM tab1 AS cor0
----
-1924
-740
-962

query I rowsort
SELECT tab0.col1 + col0 * col0 AS col1 FROM tab0
----
1322
662
8012

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1
33
82

query I rowsort
SELECT ALL + - cor0.col1 * col0 + + 38 FROM tab2 AS cor0
----
-1305
-179
-4564

query I rowsort
SELECT DISTINCT - 31 + - col1 AS col0 FROM tab2 cor0
----
-48
-62
-90

query I rowsort
SELECT DISTINCT col1 + - col0 - 50 FROM tab0 AS cor0
----
-48
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-3346
SELECT ALL col1 * col0 DIV + col1 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL col1 * col0 / + col1 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - col0 * - 46 AS col2 FROM tab1 AS cor0
----
138
2944
3680

query I rowsort
SELECT ALL 81 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT DISTINCT cor1.col0 * cor1.col1 FROM tab1, tab0 cor0, tab2 AS cor1
----
1343
217
4602

query I rowsort
SELECT - col0 * col2 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-15397
-2856
-3430

query I rowsort
SELECT DISTINCT 20 AS col2 FROM tab2, tab1 AS cor0
----
20

query I rowsort
SELECT DISTINCT + 23 * 60 - - cor0.col2 AS col1 FROM tab1 AS cor0
----
1434
1437
1476

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3353
SELECT ALL - CAST( - 37 AS SIGNED ) + col1 * + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
1571
683
874

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL - CAST ( - 37 AS INTEGER ) + col1 * + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
1571
683
874

query I rowsort
SELECT DISTINCT - col2 * - col0 + 46 * - ( col1 * ( + col0 ) ) FROM tab0 AS cor0
----
-156135
-365256
-94152

query I rowsort
SELECT ALL - col1 - - col2 * - col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT 3 * tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 643559ac626975360fee96de89aa95ee

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col1 FROM tab2 AS cor0
----
99
99
99

query I rowsort
SELECT DISTINCT + tab0.col0 FROM tab0, tab2, tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL + + 70 AS col0 FROM tab0 AS cor0
----
70
70
70

query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3361
SELECT DISTINCT col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + ( col0 ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - col0 * + 23 FROM tab2 cor0
----
-161
-1794
-1817

query I rowsort
SELECT + col2 + 37 * col1 FROM tab0 cor0
----
3215
3449
3590

query I rowsort
SELECT ALL + col2 * 54 FROM tab2 cor0
----
1404
1458
2052

query I rowsort
SELECT DISTINCT col1 * + ( col1 ) FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL 73 * - col0 FROM tab1
----
-219
-4672
-5840

query I rowsort
SELECT + + ( - 32 ) AS col1 FROM tab1 AS cor0
----
-32
-32
-32

query I rowsort
SELECT + col2 + + 13 FROM tab2 AS cor0
----
39
40
51

query I rowsort
SELECT + col2 - - 74 * cor0.col0 AS col0 FROM tab1 AS cor0
----
276
4793
6016

query I rowsort
SELECT - - 17 * + col1 + + col0 FROM tab0 AS cor0
----
1486
1636
1684

query I rowsort
SELECT - + 86 * + cor0.col0 + col1 FROM tab0 AS cor0
----
-1978
-2913
-7563

query I rowsort
SELECT DISTINCT 71 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3374
SELECT ALL tab1.col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3374
SELECT ALL tab1.col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3375
SELECT ALL + col1 DIV ( col0 ) FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL + col1 / ( col0 ) FROM tab0
----
1
2
3

query I rowsort
SELECT ALL - col0 * + col2 * col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT ALL 78 * cor0.col1 * cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c16581f3de951ecb986c0e24c1bd4583

query I rowsort
SELECT + col0 + - cor0.col0 * + col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT 24 * 81 + - cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
1304
1866
904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 * + tab1.col0 col0 FROM tab1, tab0 AS cor0
----
15
320
400

onlyif mysql # use DIV operator for integer division
query I rowsort label-3381
SELECT ALL + ( + col1 ) DIV col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL + ( + col1 ) / col1 FROM tab1
----
1
1
1

query I rowsort
SELECT + + col0 * + col2 + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL cor0.col1 + 41 * + col1 FROM tab2 AS cor0
----
1302
2478
714

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-3385
SELECT col1 - 11 DIV col1 AS col2 FROM tab1 cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-3385
SELECT col1 - 11 / col1 AS col2 FROM tab1 cor0
----
13
26
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3386
SELECT ALL + col0 DIV col1 + - ( col2 ) FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL + col0 / col1 + - ( col2 ) FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3387
SELECT cor0.col0 DIV + ( - ( col1 ) + - 29 * + col0 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3387
SELECT cor0.col0 / + ( - ( col1 ) + - 29 * + col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col0 * - ( col1 ) + - col2 AS col2 FROM tab0 cor0
----
-2097
-3396
-8181

query I rowsort
SELECT DISTINCT - - col2 + + col1 * + col1 * col1 - col0 * col0 FROM tab1 AS cor0
----
-3039
-4107
17621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * col2 col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + + col1 + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL - + col2 * col1 + + col1 * col0 AS col1 FROM tab2 AS cor0
----
-620
3068
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3393
SELECT ALL - cor0.col0 * + CAST( NULL AS DECIMAL ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL - cor0.col0 * + CAST ( NULL AS REAL ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 6 col0 FROM tab2 AS cor0
----
23
37
65

query I rowsort
SELECT ALL - col1 + 12 AS col1 FROM tab2 AS cor0
----
-19
-47
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3396
SELECT DISTINCT + cor0.col1 DIV - col1 AS col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT + cor0.col1 / - col1 AS col1 FROM tab0 cor0
----
-1

query I rowsort
SELECT DISTINCT - cor0.col0 * col0 * col1 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT + tab1.col0 * 32 * tab1.col2 FROM tab1
----
116736
245760
5184

query I rowsort
SELECT + col0 * 50 + + col1 FROM tab2 AS cor0
----
381
3959
3967

query I rowsort
SELECT col1 - ( 11 + col1 ) FROM tab1 AS cor0
----
-11
-11
-11

query I rowsort
SELECT ALL col1 * + ( - cor0.col2 ) + cor0.col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT ALL + col2 * ( - col2 ) + + col1 + - ( - 3 ) * - col0 FROM tab1
----
-2899
-3431
-9443

query I rowsort
SELECT + 20 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT ALL ( + col0 ) - col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT 96 + - ( col0 ) AS col2 FROM tab1
----
16
32
93

query I rowsort
SELECT + ( col0 ) * + cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + + 82 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT col2 + col2 * + 2 FROM tab1
----
162
171
288

query I rowsort
SELECT + - 8 * + col0 AS col1 FROM tab2 AS cor0
----
-56
-624
-632

query I rowsort
SELECT DISTINCT - 65 + - 77 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
-142

query I rowsort
SELECT ALL + 48 + + col1 + - col2 AS col1 FROM tab2 AS cor0
----
27
52
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * cor0.col1 + ( cor0.col0 ) col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL + 9 * - 65 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 02cb68f564b7cd99c799b2b237857bf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3414
SELECT - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3414
SELECT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 + - col2 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * col0 - col2 * - cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
-35361
-543447
1224

query I rowsort
SELECT DISTINCT - 22 * col1 AS col0 FROM tab2 AS cor0
----
-1298
-374
-682

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3418
SELECT ALL col1 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL col1 * + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + 22 * - 76 + - col1 FROM tab2 AS cor0
----
-11735
-130475
-132105

query I rowsort
SELECT col0 + ( + 55 ) FROM tab0 cor0
----
144
79
90

query I rowsort
SELECT DISTINCT - 84 * + col2 + col1 AS col0 FROM tab1 AS cor0
----
-4510
-4778
-8051

query I rowsort
SELECT + 77 * + col1 AS col0 FROM tab1 AS cor0
----
1001
2002
770

query I rowsort
SELECT DISTINCT + - 62 FROM tab1 AS cor0
----
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3424
SELECT + CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-3424
SELECT + CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + col1 * 64 + tab1.col0 FROM tab1
----
1667
704
912

query I rowsort
SELECT ALL - col0 + - 56 + col1 * + col1 * 40 AS col1 FROM tab1
----
26981
3880
6624

query I rowsort
SELECT ALL 84 * ( + col1 ) + - col2 AS col1 FROM tab2
----
1390
2577
4930

query I rowsort
SELECT ALL + - 39 AS col0 FROM tab1 AS cor0
----
-39
-39
-39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3429
SELECT DISTINCT CAST( + col2 AS SIGNED ) FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT CAST ( + col2 AS INTEGER ) FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - - ( col0 ) * + cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 * + col2 * + cor0.col1 col1 FROM tab2 AS cor0
----
128856
54264
70308

query I rowsort
SELECT + + col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT DISTINCT - 13 FROM tab0 cor0
----
-13

query I rowsort
SELECT DISTINCT + col2 * cor0.col0 + + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - col2 + + cor0.col1 + + 73 FROM tab2 AS cor0
----
106
52
77

query I rowsort
SELECT - 69 + - col0 * ( + ( col2 ) ) FROM tab2 AS cor0
----
-2097
-258
-3071

query I rowsort
SELECT ALL 97 FROM tab2 cor0
----
97
97
97

query I rowsort
SELECT + 88 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1144
-2288
-880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( col0 ) + col0 col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT + col0 * col0 - + col1 FROM tab0
----
1128
490
7830

query I rowsort
SELECT ALL - col1 + + col0 * col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT DISTINCT col0 + + 44 FROM tab1
----
108
124
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3444
SELECT tab1.col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3444
SELECT tab1.col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( tab0.col2 * col0 + + tab0.col2 ) FROM tab0
----
36
7380
825

query I rowsort
SELECT ALL + 25 FROM tab0, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT 33 AS col0 FROM tab1 cor0
----
33
33
33

query I rowsort
SELECT + 13 FROM tab2, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # use DIV operator for integer division
query I rowsort label-3449
SELECT ALL - ( col1 ) DIV col1 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL - ( col1 ) / col1 AS col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 13 AS col2 FROM tab1, tab0 AS cor0
----
13

query I rowsort
SELECT ALL + col0 * col1 + - 74 FROM tab0
----
1990
3321
8025

query I rowsort
SELECT DISTINCT - 34 + + col2 AS col1 FROM tab2
----
-7
-8
4

query I rowsort
SELECT + 18 AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595

onlyif mysql # use DIV operator for integer division
query I rowsort label-3454
SELECT ALL - - col1 DIV col2 - ( + col2 ) * col1 AS col2 FROM tab0 AS cor0
----
-2836
-7461
0

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL - - col1 / col2 - ( + col2 ) * col1 AS col2 FROM tab0 AS cor0
----
-2836
-7461
0

query I rowsort
SELECT + + 20 * - col2 * + col1 + col0 FROM tab2 AS cor0
----
-12841
-16733
-30602

query I rowsort
SELECT DISTINCT + - col1 * + col2 * - col1 AS col1 FROM tab2 cor0
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - 87 col1 FROM tab0 AS cor0
----
-1
10
4

query I rowsort
SELECT ALL + col1 * ( + 87 ) FROM tab1 cor0
----
1131
2262
870

query I rowsort
SELECT - col0 * col1 + 66 * - col2 FROM tab0 cor0
----
-13511
-3461
-4242

query I rowsort
SELECT DISTINCT - 19 + - tab1.col2 AS col1 FROM tab1
----
-115
-73
-76

query I rowsort
SELECT + col1 + col0 * + col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT + cor0.col2 + + col1 AS col0 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT + cor0.col1 + - 31 * + col1 AS col0 FROM tab0 AS cor0
----
-2580
-2730
-2910

query I rowsort
SELECT DISTINCT col2 * + tab2.col2 + - col2 + col0 FROM tab2
----
1485
709
728

query I rowsort
SELECT DISTINCT col0 * - 89 AS col0 FROM tab0
----
-2136
-3115
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-3466
SELECT - col2 + - col2 DIV - 21 FROM tab1 AS cor0
----
-52
-55
-92

skipif mysql # not compatible
query I rowsort label-3466
SELECT - col2 + - col2 / - 21 FROM tab1 AS cor0
----
-52
-55
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 + - col2 col2 FROM tab1 AS cor0
----
-131
-189
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3468
SELECT - + CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-3468
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 ALL col2 + cor0.col1 col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - + ( + col2 ) * + col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT col2 * - 47 AS col0 FROM tab1
----
-2538
-2679
-4512

query I rowsort
SELECT DISTINCT + - cor0.col0 - col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT + 77 + - ( col2 ) * cor0.col1 * col2 FROM tab2 AS cor0
----
-22522
-24471
-39807

onlyif mysql # use DIV operator for integer division
query I rowsort label-3474
SELECT ALL + - cor0.col0 DIV + ( col0 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL + - cor0.col0 / + ( col0 ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - - col0 + - 97 AS col0 FROM tab2 AS cor0
----
-18
-19
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3476
SELECT ALL + CAST( NULL AS SIGNED ) + - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL + CAST ( NULL AS INTEGER ) + - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 * + ( col1 ) FROM tab0 cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3478
SELECT col2 + - col2 DIV 51 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3478
SELECT col2 + - col2 / 51 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - 16 + col1 AS col1 FROM tab1 AS cor0
----
-3
-6
10

query I rowsort
SELECT + 2 * - col2 - + col0 FROM tab1 AS cor0
----
-111
-178
-272

query I rowsort
SELECT 14 FROM tab0, tab1 cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT ( + col2 + - tab1.col1 ) AS col1 FROM tab1
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3483
SELECT DISTINCT - col1 DIV col1 col0 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT - col1 / col1 col0 FROM tab0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3484
SELECT - 3 DIV col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3484
SELECT - 3 / col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - ( col0 ) * col1 AS col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT - cor0.col0 + 1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 89bd382cfcdf259bc4ba33b40867d3b6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3487
SELECT - cor0.col0 DIV + 15 col0 FROM tab0 cor0
----
-1
-2
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3487
SELECT - cor0.col0 / + 15 col0 FROM tab0 cor0
----
-1
-2
-5

query I rowsort
SELECT - 77 * - 2 FROM tab1, tab2 AS cor0
----
9 values hashing to 7cf925cdea37533e5028b2ea0c580358

onlyif mysql # use DIV operator for integer division
query I rowsort label-3489
SELECT + col0 DIV + ( col2 ) FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-3489
SELECT + col0 / + ( col2 ) FROM tab0 cor0
----
0
1
35

query I rowsort
SELECT + - 29 * col1 FROM tab0 AS cor0
----
-2494
-2639
-2813

query I rowsort
SELECT ALL + + 22 * col1 + col1 * ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-5504
-6279
-7275

query I rowsort
SELECT DISTINCT + col2 * col1 + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - + col2 * ( 42 + + col1 ) AS col1 FROM tab0 cor0
----
-10906
-139
-4224

query I rowsort
SELECT DISTINCT + col1 + - 78 * col1 FROM tab0 AS cor0
----
-6622
-7007
-7469

query I rowsort
SELECT DISTINCT - cor0.col1 * 16 - 40 FROM tab1 cor0
----
-200
-248
-456

query I rowsort
SELECT + col2 - - cor0.col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL + cor0.col1 * - col2 + cor0.col2 * - col1 FROM tab1 AS cor0
----
-1140
-2496
-2808

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3498
SELECT ALL - col2 * + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL - col2 * + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT col2 + 87 FROM tab0 AS cor0
----
120
169
88

query I rowsort
SELECT DISTINCT + col1 - + col2 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL col0 + - col2 * ( + col0 ) * col2 FROM tab1 AS cor0
----
-207872
-737200
-8745

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3502
SELECT DISTINCT - col1 * CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT - col1 * CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * - ( col0 ) col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col1 * - col1 * - col1 AS col1 FROM tab1 cor0
----
1057
17630
2293

query I rowsort
SELECT ALL - + col2 * - 3 + col0 + 33 * - col0 FROM tab2 AS cor0
----
-143
-2414
-2418

query I rowsort
SELECT col1 * 73 AS col2 FROM tab0 AS cor0
----
6278
6643
7081

query I rowsort
SELECT ALL - cor0.col2 * - col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - - cor0.col0 * col2 + col0 * col1 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT ALL col2 * 82 + col1 * 70 AS col0 FROM tab2 AS cor0
----
4306
4384
6262

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3510
SELECT - CAST( NULL AS SIGNED ) * 6 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3510
SELECT - CAST ( NULL AS INTEGER ) * 6 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + col1 + col0 * 10 AS col1 FROM tab2 AS cor0
----
74
769
813

query I rowsort
SELECT 80 * cor0.col0 FROM tab0 AS cor0
----
1920
2800
7120

query I rowsort
SELECT - col1 * + 95 AS col2 FROM tab2 AS cor0
----
-1615
-2945
-5605

query I rowsort
SELECT ALL - col2 * + col2 * ( col2 ) AS col1 FROM tab2
----
-17576
-19683
-54872

query I rowsort
SELECT ALL col0 * col1 * - col2 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT - 54 FROM tab2, tab2 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT + 98 * - ( col0 ) + + cor0.col1 FROM tab2 AS cor0
----
-655
-7585
-7725

query I rowsort
SELECT ALL + 51 * + 37 FROM tab0 AS cor0
----
1887
1887
1887

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 * col0 * - col0 col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + ( ( cor0.col2 ) ) FROM tab0 cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3521
SELECT ALL - 53 + ( + col2 ) DIV col0 AS col1 FROM tab2 AS cor0
----
-50
-53
-53

skipif mysql # not compatible
query I rowsort label-3521
SELECT ALL - 53 + ( + col2 ) / col0 AS col1 FROM tab2 AS cor0
----
-50
-53
-53

query I rowsort
SELECT 91 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-2366
-2457
-3458

query I rowsort
SELECT ALL - 62 + cor0.col2 * col1 FROM tab2 AS cor0
----
1472
584
775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 + - col2 col2 FROM tab0
----
-6
43
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-3525
SELECT col1 DIV col1 + - 48 FROM tab2 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-3525
SELECT col1 / col1 + - 48 FROM tab2 AS cor0
----
-47
-47
-47

query I rowsort
SELECT + 36 + - col0 AS col0 FROM tab1 AS cor0
----
-28
-44
33

query I rowsort
SELECT + 4 - col0 FROM tab2
----
-3
-74
-75

query I rowsort
SELECT col1 * col2 + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + + col1 * - col2 + - 69 AS col1 FROM tab2 AS cor0
----
-1603
-715
-906

query I rowsort
SELECT - + 20 + col1 * - 40 AS col1 FROM tab2 AS cor0
----
-1260
-2380
-700

onlyif mysql # use DIV operator for integer division
query I rowsort label-3531
SELECT ALL + col2 DIV - ( - col1 ) + col2 * col2 AS col0 FROM tab2
----
1446
676
729

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL + col2 / - ( - col1 ) + col2 * col2 AS col0 FROM tab2
----
1446
676
729

query I rowsort
SELECT ( - 38 ) + tab2.col0 FROM tab2
----
-31
40
41

query I rowsort
SELECT + col1 + - 9 FROM tab1
----
1
17
4

query I rowsort
SELECT ALL ( ( - cor0.col1 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT DISTINCT + + 58 * col2 FROM tab0 AS cor0
----
1914
4756
58

query I rowsort
SELECT ALL - - col0 * - cor0.col2 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3537
SELECT - - 11 DIV col2 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3537
SELECT - - 11 / col2 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + - col2 + col1 FROM tab0 AS cor0
----
131
77
98

query I rowsort
SELECT ALL + 64 * + col2 FROM tab1 AS cor0
----
3456
3648
6144

query I rowsort
SELECT DISTINCT + - col2 + col1 * col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL + 63 + - col1 FROM tab1 AS cor0
----
37
50
53

query I rowsort
SELECT - col0 + + col1 * ( 78 ) FROM tab0 cor0
----
6684
7009
7531

query I rowsort
SELECT - 76 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 42 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT ALL tab1.col1 + 75 * tab1.col2 * col1 FROM tab1
----
105326
42760
93613

query I rowsort
SELECT ALL - col1 * ( - col2 * + col2 ) - + col1 * - 21 AS col2 FROM tab1
----
120081
32700
76362

query I rowsort
SELECT DISTINCT - 25 * + 62 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
-1550

query I rowsort
SELECT DISTINCT - - col2 - 78 AS col0 FROM tab1 cor0
----
-21
-24
18

query I rowsort
SELECT - - col1 - + 22 * - col2 * col1 FROM tab2 AS cor0
----
14229
18445
33807

onlyif mysql # use DIV operator for integer division
query I rowsort label-3550
SELECT ALL col2 DIV - col0 + 30 * + col0 FROM tab0 AS cor0
----
1050
2670
719

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL col2 / - col0 + 30 * + col0 FROM tab0 AS cor0
----
1050
2670
719

query I rowsort
SELECT - col0 - + 85 AS col2 FROM tab2 AS cor0
----
-163
-164
-92

query I rowsort
SELECT col2 + - 15 + col0 FROM tab0
----
156
21
42

query I rowsort
SELECT ALL - + col0 + col0 + col1 * - ( + col2 * - col1 ) FROM tab1 cor0
----
16224
36504
5700

query I rowsort
SELECT ALL + ( 5 ) FROM tab1 AS cor0
----
5
5
5

query I rowsort
SELECT 30 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT DISTINCT + 39 FROM tab1, tab1 AS cor0
----
39

query I rowsort
SELECT ALL - 99 * col2 - - col1 * + 75 AS col1 FROM tab1 AS cor0
----
-3396
-4893
-8529

query I rowsort
SELECT + + 17 - 61 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
2030
5019
78

query I rowsort
SELECT - - 45 * cor0.col1 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to d566fb611ec8e4195e058361f98d3b78

query I rowsort
SELECT DISTINCT + + 26 * - col2 FROM tab2 AS cor0
----
-676
-702
-988

query I rowsort
SELECT - col1 + - 87 FROM tab1 cor0
----
-100
-113
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3562
SELECT DISTINCT + cor0.col0 * CAST( NULL AS SIGNED ) FROM tab1, tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3562
SELECT DISTINCT + cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab1, tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - - ( - 64 ) FROM tab0 cor0
----
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-3564
SELECT ALL col2 DIV + col1 + - col1 FROM tab1 AS cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL col2 / + col1 + - col1 FROM tab1 AS cor0
----
-24
-5
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3565
SELECT - + col1 + CAST( NULL AS SIGNED ) * 18 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3565
SELECT - + col1 + CAST ( NULL AS INTEGER ) * 18 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3566
SELECT - - col1 + CAST( 39 AS SIGNED ) + col2 FROM tab0 AS cor0
----
137
158
212

skipif mysql # not compatible
query I rowsort label-3566
SELECT - - col1 + CAST ( 39 AS INTEGER ) + col2 FROM tab0 AS cor0
----
137
158
212

query I rowsort
SELECT + + col1 * - 76 AS col1 FROM tab2 AS cor0
----
-1292
-2356
-4484

query I rowsort
SELECT + col0 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + 89 * 82 FROM tab2 AS cor0
----
7315
7329
7357

query I rowsort
SELECT + - col1 * 26 + - 89 * - col1 FROM tab1 AS cor0
----
1638
630
819

query I rowsort
SELECT + col2 * ( - 43 ) * + col1 + + 74 AS col2 FROM tab2 AS cor0
----
-27704
-35917
-65888

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3572
SELECT + CAST( col2 AS SIGNED ) * + col0 * cor0.col2 FROM tab1 AS cor0
----
207936
737280
8748

skipif mysql # not compatible
query I rowsort label-3572
SELECT + CAST ( col2 AS INTEGER ) * + col0 * cor0.col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT tab0.col2 + ( + col1 ) AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT + - cor0.col2 * + 26 + 98 FROM tab0, tab2 AS cor0
----
9 values hashing to fe64046bc555b10b1ac2eb942350a72d

onlyif mysql # use DIV operator for integer division
query I rowsort label-3575
SELECT DISTINCT col2 DIV + ( + col2 * - col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT col2 / + ( + col2 * - col0 ) FROM tab1
----
0

query I rowsort
SELECT + + col1 - col2 FROM tab2 cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3577
SELECT + col2 * col0 - CAST( 81 AS SIGNED ) FROM tab0 AS cor0
----
-46
711
7217

skipif mysql # not compatible
query I rowsort label-3577
SELECT + col2 * col0 - CAST ( 81 AS INTEGER ) FROM tab0 AS cor0
----
-46
711
7217

query I rowsort
SELECT - col2 * + col1 * - 36 - + col1 AS col1 FROM tab2 cor0
----
23239
30101
55165

query I rowsort
SELECT + 95 * col2 + 68 - - col1 * col1 FROM tab0 cor0
----
10599
16139
9572

query I rowsort
SELECT col0 + + col0 * - col2 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT ALL - + tab1.col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3582
SELECT DISTINCT + col2 + col1 + ( col2 ) DIV tab1.col2 FROM tab1
----
110
68
81

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT + col2 + col1 + ( col2 ) / tab1.col2 FROM tab1
----
110
68
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col1 col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - 92 AS col1 FROM tab2 cor0
----
-92

query I rowsort
SELECT - - 15 + - cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
-174
-2013
-2987

query I rowsort
SELECT 54 + col2 AS col1 FROM tab2
----
80
81
92

query I rowsort
SELECT ALL col1 - + tab1.col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 * tab0.col2 * + col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT ALL - 73 * 51 FROM tab1, tab1 AS cor0
----
9 values hashing to adde95f381292d1747bb90d9e546be48

query I rowsort
SELECT tab0.col0 + + ( - col1 * + col1 ) + 73 AS col2 FROM tab0
----
-7299
-8119
-9301

query I rowsort
SELECT + tab1.col2 + col1 + + tab1.col1 FROM tab1
----
106
122
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3592
SELECT + cor0.col0 - CAST( col2 * + col2 AS SIGNED ) FROM tab1 AS cor0
----
-2913
-3185
-9136

skipif mysql # not compatible
query I rowsort label-3592
SELECT + cor0.col0 - CAST ( col2 * + col2 AS INTEGER ) FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT ALL + - col0 + col2 * + 82 FROM tab1 AS cor0
----
4425
4610
7792

query I rowsort
SELECT + col0 * ( + col0 ) - - col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL + col0 + col1 * col0 * + col2 AS col0 FROM tab2
----
119730
51113
5866

query I rowsort
SELECT - col2 * 4 AS col1 FROM tab1 AS cor0
----
-216
-228
-384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - cor0.col1 + + 2 AS col1 FROM tab2, tab0 AS cor0, tab0 cor1
----
-84
-89
-95

query I rowsort
SELECT + - 45 * + col1 * 26 AS col0 FROM tab1 AS cor0
----
-11700
-15210
-30420

query I rowsort
SELECT - 74 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1776
-2590
-6586

query I rowsort
SELECT col2 + - col1 * col1 FROM tab1 AS cor0
----
-43
-622
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-3602
SELECT DISTINCT - col1 DIV col1 + + col2 col2 FROM tab0 AS cor0
----
0
32
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT - col1 / col1 + + col2 col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT DISTINCT + - ( col1 ) * + ( 11 ) + col1 AS col2 FROM tab1 AS cor0
----
-100
-130
-260

query I rowsort
SELECT - + 58 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1
-4
38

query I rowsort
SELECT ALL 55 + col2 FROM tab1 AS cor0
----
109
112
151

query I rowsort
SELECT + cor0.col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - 22 FROM tab2, tab1, tab0 AS cor0, tab2 AS cor1
----
81 values hashing to a0e2414933a8871692e3623f463e9d4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 12 col0 FROM tab0
----
74
79
85

query I rowsort
SELECT ALL col0 * + col0 * - col1 + - col0 FROM tab2
----
-106176
-1526
-359034

skipif mysql # not compatible
query I rowsort
SELECT - col2 - CAST ( col1 AS REAL ) FROM tab0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT + col2 + - ( + 23 + col1 ) FROM tab2
----
-2
-27
-56

query I rowsort
SELECT DISTINCT - tab2.col2 * + col1 + - tab2.col2 * + col2 AS col2 FROM tab2
----
-1566
-2090
-2210

query I rowsort
SELECT - - 29 * cor0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 303e9cda7d2cdcf42f2e9e664a73b112

query I rowsort
SELECT ALL - tab2.col1 + 87 AS col2 FROM tab2
----
28
56
70

query I rowsort
SELECT ALL + col1 * - col1 + col2 FROM tab2
----
-251
-3455
-934

query I rowsort
SELECT - cor0.col0 + ( + col0 ) * - 56 FROM tab0 AS cor0
----
-1368
-1995
-5073

query I rowsort
SELECT ALL - 73 * + col2 * - col0 + + ( - cor0.col1 ) FROM tab0 AS cor0
----
2458
532663
57730

query I rowsort
SELECT ALL 28 + col0 FROM tab0 AS cor0
----
117
52
63

query I rowsort
SELECT DISTINCT ( + 94 ) AS col1 FROM tab1 AS cor0
----
94

query I rowsort
SELECT 56 * col1 FROM tab0 cor0
----
4816
5096
5432

query I rowsort
SELECT ( + cor0.col0 ) * - col0 * col1 FROM tab1 AS cor0
----
-234
-40960
-83200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 29 + - col1 col1 FROM tab0 AS cor0
----
-57
-62
-68

query I rowsort
SELECT + cor0.col0 * - cor0.col2 + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL + 49 * + col2 * col1 - + col0 AS col0 FROM tab0 AS cor0
----
139038
365549
4718

query I rowsort
SELECT ALL 5 * 67 AS col2 FROM tab0 AS cor0
----
335
335
335

query I rowsort
SELECT DISTINCT - col1 + 52 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1326
510
663

query I rowsort
SELECT ALL - cor0.col0 + col2 + - col0 AS col1 FROM tab2 AS cor0
----
-120
-130
13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3628
SELECT - - CAST( NULL AS DECIMAL ) * - col2 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT - - CAST ( NULL AS REAL ) * - col2 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 42 * - col1 + 65 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1030
-419
-561

query I rowsort
SELECT ALL - 39 + tab0.col2 + + col2 * col2 AS col1 FROM tab0
----
-37
1083
6767

query I rowsort
SELECT ALL - ( + cor0.col0 ) * + col2 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT + + col1 * cor0.col2 + + col1 FROM tab0 cor0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col2 col0 FROM tab0 AS cor0
----
-164
-2
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + col0 * + col1 col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - - 67 * - col0 FROM tab2 AS cor0
----
-469
-5226
-5293

query I rowsort
SELECT - - col1 + - col0 FROM tab0 cor0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3637
SELECT + col0 * - col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3637
SELECT + col0 * - col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 * col0 * + col2 AS col1 FROM tab2 cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + + col1 - col2 AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col1 FROM tab1, tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3641
SELECT ALL - + col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL - + col0 / + col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT + cor0.col1 + + ( col1 + - col2 ) FROM tab2 AS cor0
----
-4
35
92

query I rowsort
SELECT DISTINCT + - cor0.col2 + + ( col2 ) * col1 AS col1 FROM tab2 cor0
----
1508
608
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-3644
SELECT DISTINCT - - col0 DIV 92 col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT - - col0 / 92 col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - col2 + - 92 FROM tab0 AS cor0
----
-10
-59
-91

query I rowsort
SELECT + - cor0.col2 * 20 FROM tab0 AS cor0
----
-1640
-20
-660

query I rowsort
SELECT DISTINCT + col1 - col1 * + col1 AS col1 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT ALL - col1 * col0 * cor0.col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3649
SELECT - col0 - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3649
SELECT - col0 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - cor0.col1 * - col0 + - col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT col1 * col2 + - col2 * - col2 * - 15 FROM tab2 AS cor0
----
-10098
-21014
-8606

query I rowsort
SELECT - col1 * col0 - + col1 * col1 FROM tab1 AS cor0
----
-1209
-740
-754

query I rowsort
SELECT DISTINCT - cor0.col0 + 11 * 41 * - col1 FROM tab0 AS cor0
----
-38810
-41130
-43782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * - 26 col0 FROM tab1 AS cor0
----
-1664
-2080
-78

query I rowsort
SELECT - col1 * + ( col2 ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - + col2 + + col1 * col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT DISTINCT col0 + - col2 * ( + col1 ) FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-3658
SELECT ALL tab2.col1 DIV col1 + + ( 78 * col0 ) - 82 AS col2 FROM tab2
----
465
6003
6081

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL tab2.col1 / col1 + + ( 78 * col0 ) - 82 AS col2 FROM tab2
----
465
6003
6081

onlyif mysql # use DIV operator for integer division
query I rowsort label-3659
SELECT col1 DIV col1 + col0 col1 FROM tab2
----
79
8
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3659
SELECT col1 / col1 + col0 col1 FROM tab2
----
79
8
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3660
SELECT col0 * col1 DIV + cor0.col1 - col2 FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-3660
SELECT col0 * col1 / + cor0.col1 - col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + col2 + ( + col2 ) * + cor0.col2 * col1 FROM tab1 cor0
----
119904
32547
75870

query I rowsort
SELECT + col1 + - 34 * - col1 AS col0 FROM tab0 AS cor0
----
3010
3185
3395

query I rowsort
SELECT - col0 * ( - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL - 31 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT + col1 * + col1 + + ( col2 ) FROM tab1
----
157
265
730

query I rowsort
SELECT - 67 * + 60 FROM tab2 AS cor0
----
-4020
-4020
-4020

query I rowsort
SELECT + col1 * 8 AS col2 FROM tab1 AS cor0
----
104
208
80

query I rowsort
SELECT + 73 FROM tab1, tab2 cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - ( col0 ) col1 FROM tab2
----
-41
-52
20

query I rowsort
SELECT + col1 * 80 FROM tab0
----
6880
7280
7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3671
SELECT ALL col2 * col2 + + CAST( NULL AS SIGNED ) * 51 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL col2 * col2 + + CAST ( NULL AS INTEGER ) * 51 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3672
SELECT ALL + 31 DIV col0 + + col1 * 70 FROM tab0 AS cor0
----
6021
6370
6790

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL + 31 / col0 + + col1 * 70 FROM tab0 AS cor0
----
6021
6370
6790

query I rowsort
SELECT DISTINCT - + col2 * + cor0.col2 + 45 AS col2 FROM tab0 AS cor0
----
-1044
-6679
44

query I rowsort
SELECT ALL + 2 + - col0 FROM tab1
----
-1
-62
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3675
SELECT DISTINCT + col2 * - col2 + + ( ( col0 ) ) DIV + col2 AS col1 FROM tab0
----
-1089
-6723
34

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT + col2 * - col2 + + ( ( col0 ) ) / + col2 AS col1 FROM tab0
----
-1089
-6723
34

query I rowsort
SELECT DISTINCT col2 + col1 * 23 FROM tab2
----
1383
429
740

onlyif mysql # use DIV operator for integer division
query I rowsort label-3677
SELECT ( + tab2.col2 ) DIV - 88 + col1 * - col1 AS col1 FROM tab2
----
-289
-3481
-961

skipif mysql # not compatible
query I rowsort label-3677
SELECT ( + tab2.col2 ) / - 88 + col1 * - col1 AS col1 FROM tab2
----
-289
-3481
-961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3678
SELECT - + col0 * + cor0.col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3678
SELECT - + col0 * + cor0.col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + + col1 * 55 FROM tab2 cor0
----
1736
3304
952

query I rowsort
SELECT DISTINCT 99 + + col1 * - col1 FROM tab1 AS cor0
----
-1
-577
-70

query I rowsort
SELECT ALL - col1 * col1 + + 33 AS col0 FROM tab2 AS cor0
----
-256
-3448
-928

query I rowsort
SELECT ALL - ( - col0 ) * col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT + ( col2 ) + col0 AS col2 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3684
SELECT ALL 42 - - col1 * + col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL 42 - - col1 * + col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 18 * cor0.col0 + col0 * col0 * 10 FROM tab2 AS cor0
----
364
59436
60988

query I rowsort
SELECT DISTINCT - cor0.col1 + 34 FROM tab0 AS cor0
----
-52
-57
-63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3687
SELECT DISTINCT + CAST( + 36 AS SIGNED ) * + col2 + - col1 FROM tab1 AS cor0
----
1918
2042
3443

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT + CAST ( + 36 AS INTEGER ) * + col2 + - col1 FROM tab1 AS cor0
----
1918
2042
3443

query I rowsort
SELECT 10 + - 32 AS col2 FROM tab0 AS cor0
----
-22
-22
-22

onlyif mysql # use DIV operator for integer division
query I rowsort label-3689
SELECT + + 64 DIV col1 - cor0.col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3689
SELECT + + 64 / col1 - cor0.col1 / + col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3690
SELECT + col1 DIV col0 + ( 36 ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
1120
2124
612

skipif mysql # not compatible
query I rowsort label-3690
SELECT + col1 / col0 + ( 36 ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
1120
2124
612

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3691
SELECT - 9 * col2 + CAST( - col0 AS SIGNED ) * - col2 * + col1 FROM tab2 AS cor0
----
119418
50692
5616

skipif mysql # not compatible
query I rowsort label-3691
SELECT - 9 * col2 + CAST ( - col0 AS INTEGER ) * - col2 * + col1 FROM tab2 AS cor0
----
119418
50692
5616

query I rowsort
SELECT + col1 + col2 * col0 AS col1 FROM tab0
----
132
7389
878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3693
SELECT ALL CAST( NULL AS SIGNED ) + col2 * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL CAST ( NULL AS INTEGER ) + col2 * col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - 83 + col0 AS col2 FROM tab0 AS cor0
----
-2715
-48
-6717

onlyif mysql # use DIV operator for integer division
query I rowsort label-3695
SELECT + + col1 DIV + 5 AS col0 FROM tab2 AS cor0
----
11
3
6

skipif mysql # not compatible
query I rowsort label-3695
SELECT + + col1 / + 5 AS col0 FROM tab2 AS cor0
----
11
3
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3696
SELECT ALL tab1.col0 DIV col1 AS col2 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL tab1.col0 / col1 AS col2 FROM tab1
----
0
6
6

query I rowsort
SELECT DISTINCT - col0 * 87 * 98 AS col2 FROM tab1
----
-25578
-545664
-682080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3698
SELECT DISTINCT col2 * + CAST( - col1 AS SIGNED ) * col1 AS col0 FROM tab2
----
-10982
-25947
-90506

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT col2 * + CAST ( - col1 AS INTEGER ) * col1 AS col0 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT + + col0 * 18 + col2 * - col1 - col0 AS col0 FROM tab0 AS cor0
----
-2430
-5949
498

query I rowsort
SELECT - 28 * - cor0.col1 - col2 FROM tab2 AS cor0
----
1626
438
841

query I rowsort
SELECT 94 * col2 + + col2 - + col0 AS col0 FROM tab0 cor0
----
3111
60
7701

query I rowsort
SELECT ALL col1 * 76 AS col0 FROM tab2
----
1292
2356
4484

query I rowsort
SELECT + col1 + 29 FROM tab0
----
115
120
126

onlyif mysql # use DIV operator for integer division
query I rowsort label-3704
SELECT - col1 DIV + ( + col1 * - tab2.col0 ) + col1 AS col2 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-3704
SELECT - col1 / + ( + col1 * - tab2.col0 ) + col1 AS col2 FROM tab2
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3705
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

query I rowsort
SELECT + - col1 + - 67 * - cor0.col1 FROM tab1 cor0
----
1716
660
858

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3707
SELECT CAST( 77 AS SIGNED ) AS col1 FROM tab2 cor0
----
77
77
77

skipif mysql # not compatible
query I rowsort label-3707
SELECT CAST ( 77 AS INTEGER ) AS col1 FROM tab2 cor0
----
77
77
77

query I rowsort
SELECT ALL 17 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT DISTINCT ( - col0 ) + - col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT + 94 * + col1 FROM tab0 AS cor0
----
8084
8554
9118

query I rowsort
SELECT DISTINCT 39 * + col2 FROM tab0
----
1287
3198
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 * 94 col0 FROM tab1 AS cor0
----
7050
7050
7050

query I rowsort
SELECT - col0 * - 73 + col2 AS col0 FROM tab2 AS cor0
----
538
5720
5805

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3714
SELECT DISTINCT - col1 + + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT - col1 + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 * - col2 + + col0 col0 FROM tab0
----
-1428
-3519
-9

query I rowsort
SELECT DISTINCT ( col0 ) + col2 AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT cor0.col2 + + 92 FROM tab2 cor0
----
118
119
130

query I rowsort
SELECT DISTINCT + col2 + col0 * + 18 FROM tab2 AS cor0
----
1430
1460
153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col0 * 4 col2 FROM tab0 AS cor0
----
-105
-267
-72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3720
SELECT - ( - col1 ) * - CAST( 89 AS SIGNED ) FROM tab0 AS cor0
----
-7654
-8099
-8633

skipif mysql # not compatible
query I rowsort label-3720
SELECT - ( - col1 ) * - CAST ( 89 AS INTEGER ) FROM tab0 AS cor0
----
-7654
-8099
-8633

query I rowsort
SELECT ALL - col1 * col2 + + 47 AS col1 FROM tab0 AS cor0
----
-2791
-50
-7415

query I rowsort
SELECT ALL + - 70 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 89ff5230e23ab3602a9d24024ac62c91

query I rowsort
SELECT + + col0 * - col0 * col0 AS col2 FROM tab0 AS cor0
----
-13824
-42875
-704969

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3725
SELECT DISTINCT col2 - - tab2.col0 DIV col1 AS col1 FROM tab2
----
27
42

skipif mysql # not compatible
query I rowsort label-3725
SELECT DISTINCT col2 - - tab2.col0 / col1 AS col1 FROM tab2
----
27
42

query I rowsort
SELECT ( - col2 ) * 44 FROM tab0
----
-1452
-3608
-44

query I rowsort
SELECT col2 * col0 * - col2 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT - 95 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13

query I rowsort
SELECT DISTINCT - 43 FROM tab1 cor0
----
-43

query I rowsort
SELECT ALL + col0 + + 16 FROM tab1 AS cor0
----
19
80
96

query I rowsort
SELECT + 33 * + 34 AS col0 FROM tab0 AS cor0
----
1122
1122
1122

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3732
SELECT - col1 + CAST( col0 AS SIGNED ) AS col2 FROM tab2
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-3732
SELECT - col1 + CAST ( col0 AS INTEGER ) AS col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT + - col2 * col2 + col0 FROM tab0 AS cor0
----
-1065
-6635
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3734
SELECT CAST( ( + col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3734
SELECT CAST ( ( + col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3735
SELECT - col2 * col0 - + col2 DIV - cor0.col1 FROM tab2 AS cor0
----
-189
-2028
-3000

skipif mysql # not compatible
query I rowsort label-3735
SELECT - col2 * col0 - + col2 / - cor0.col1 FROM tab2 AS cor0
----
-189
-2028
-3000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3736
SELECT ALL CAST( 25 AS SIGNED ) * col1 col2 FROM tab2 AS cor0
----
1475
425
775

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3736
SELECT ALL CAST ( 25 AS INTEGER ) * col1 col2 FROM tab2 AS cor0
----
1475
425
775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) + cor0.col2 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 * col2 + + col0 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL + 19 + - 88 AS col1 FROM tab0 AS cor0
----
-69
-69
-69

query I rowsort
SELECT + + cor0.col0 + 63 - col2 FROM tab2 AS cor0
----
104
115
43

query I rowsort
SELECT ( - col0 ) + cor0.col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - 22 * 79 AS col0 FROM tab2 AS cor0
----
-1738
-1738
-1738

query I rowsort
SELECT DISTINCT 21 + - col0 AS col2 FROM tab2 AS cor0
----
-57
-58
14

query I rowsort
SELECT DISTINCT - cor0.col0 + - 18 FROM tab1 AS cor0
----
-21
-82
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 51 ) * + col0 * ( col2 + + cor0.col1 ) col2 FROM tab0 AS cor0
----
145656
174930
785247

query I rowsort
SELECT + ( col1 ) + col2 AS col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3747
SELECT ALL + CAST( col0 AS SIGNED ) DIV + col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL + CAST ( col0 AS INTEGER ) / + col0 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * - cor0.col1 - col0 col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT ( 44 ) + - col0 FROM tab2 AS cor0
----
-34
-35
37

query I rowsort
SELECT ( col0 ) * col1 + + 78 * + ( + col1 + 16 ) * col2 FROM tab0 AS cor0
----
12209
264612
692471

query I rowsort
SELECT ( + ( + col0 ) ) * + cor0.col0 - col1 * - col0 FROM tab0 cor0
----
16020
2640
4620

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3752
SELECT + CAST( NULL AS SIGNED ) + col0 * + tab2.col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3752
SELECT + CAST ( NULL AS INTEGER ) + col0 * + tab2.col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3753
SELECT - ( col0 * col1 + CAST( col2 AS SIGNED ) ) FROM tab2
----
-1381
-244
-4628

skipif mysql # not compatible
query I rowsort label-3753
SELECT - ( col0 * col1 + CAST ( col2 AS INTEGER ) ) FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT ALL - 90 + col1 * col0 AS col1 FROM tab2 AS cor0
----
1253
127
4512

onlyif mysql # use DIV operator for integer division
query I rowsort label-3755
SELECT DISTINCT - ( + col2 ) DIV - col2 + - col1 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-3755
SELECT DISTINCT - ( + col2 ) / - col2 + - col1 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT ( + col1 ) * - col2 FROM tab0 cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + + col1 col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - 85 * col2 FROM tab0 AS cor0
----
-2805
-6970
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3759
SELECT DISTINCT + col0 + - col0 DIV cor0.col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT + col0 + - col0 / cor0.col0 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT DISTINCT + 67 * + col0 + - 2 * - col0 + col1 FROM tab2 AS cor0
----
514
5441
5468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * col1 - + col2 col0 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT - + cor0.col2 - - col1 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT 78 + - col2 FROM tab1 AS cor0
----
-18
21
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-3764
SELECT - 50 DIV - tab1.col1 AS col2 FROM tab1
----
1
3
5

skipif mysql # not compatible
query I rowsort label-3764
SELECT - 50 / - tab1.col1 AS col2 FROM tab1
----
1
3
5

query I rowsort
SELECT ALL tab2.col2 + + 92 FROM tab2
----
118
119
130

query I rowsort
SELECT + cor0.col2 - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 30 - - col2 AS col1 FROM tab1 AS cor0
----
24
27
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3768
SELECT ALL col0 DIV ( 47 ) FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL col0 / ( 47 ) FROM tab1 AS cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3769
SELECT + - col1 DIV - 6 + + col1 AS col2 FROM tab1 AS cor0
----
11
15
30

skipif mysql # not compatible
query I rowsort label-3769
SELECT + - col1 / - 6 + + col1 AS col2 FROM tab1 AS cor0
----
11
15
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-3770
SELECT + - col0 + - ( + col2 ) DIV col2 + 99 AS col0 FROM tab0 AS cor0
----
63
74
9

skipif mysql # not compatible
query I rowsort label-3770
SELECT + - col0 + - ( + col2 ) / col2 + 99 AS col0 FROM tab0 AS cor0
----
63
74
9

query I rowsort
SELECT - col0 * - ( 1 ) + - cor0.col2 * + col0 * col2 FROM tab1 AS cor0
----
-207872
-737200
-8745

query I rowsort
SELECT - col0 - + col0 AS col2 FROM tab2
----
-14
-156
-158

query I rowsort
SELECT + col0 + - 0 * - ( + col2 ) + - cor0.col2 * 19 FROM tab2 cor0
----
-416
-506
-643

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3774
SELECT col1 * CAST( - 5 AS SIGNED ) AS col2 FROM tab1 cor0
----
-130
-50
-65

skipif mysql # not compatible
query I rowsort label-3774
SELECT col1 * CAST ( - 5 AS INTEGER ) AS col2 FROM tab1 cor0
----
-130
-50
-65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3775
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) / + 46 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3775
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) / + 46 FROM tab0 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3776
SELECT DISTINCT - - col1 DIV col2 + + col1 AS col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT - - col1 / col2 + + col1 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + col0 + + col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT col2 + 28 + + col1 AS col2 FROM tab0 AS cor0
----
126
147
201

query I rowsort
SELECT ALL - col2 - 63 FROM tab2 cor0
----
-101
-89
-90

query I rowsort
SELECT - col0 * + 2 FROM tab0 cor0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT + col1 * - ( + col2 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT col2 + - 20 FROM tab2 cor0
----
18
6
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3783
SELECT - col2 + ( - col1 ) DIV col2 FROM tab0 AS cor0
----
-35
-83
-98

skipif mysql # not compatible
query I rowsort label-3783
SELECT - col2 + ( - col1 ) / col2 FROM tab0 AS cor0
----
-35
-83
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3784
SELECT DISTINCT ( + col1 ) DIV - ( ( + col0 ) ) AS col1 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT ( + col1 ) / - ( ( + col0 ) ) AS col1 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT + tab1.col0 - + 39 FROM tab1
----
-36
25
41

query I rowsort
SELECT + + col1 + cor0.col2 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - col0 + - col1 * col1 FROM tab2 cor0
----
-3559
-368
-968

query I rowsort
SELECT col2 * + ( tab1.col0 ) AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL + 89 + col1 * - cor0.col2 FROM tab1 cor0
----
-1159
-1315
-481

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - col1 col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT cor0.col1 + - ( + cor0.col1 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT col2 * col2 + cor0.col2 FROM tab0 AS cor0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-3793
SELECT ALL 85 DIV + col0 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL 85 / + col0 FROM tab0 AS cor0
----
0
2
3

query I rowsort
SELECT DISTINCT - + 40 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-40

query I rowsort
SELECT - 2 * + col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT - 11 + - col0 AS col2 FROM tab2 AS cor0
----
-18
-89
-90

query I rowsort
SELECT + col0 * col1 + + col2 AS col1 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT tab1.col1 - + col2 AS col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT + col1 * col2 + - ( col1 ) FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL tab2.col1 + - col2 * ( col1 ) FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT + - 64 * - col2 + + 74 + - col1 AS col0 FROM tab2 AS cor0
----
1679
1771
2489

query I rowsort
SELECT ALL 93 + col0 FROM tab0 AS cor0
----
117
128
182

query I rowsort
SELECT cor0.col2 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + col1 + col0 + col0 AS col2 FROM tab0 AS cor0
----
134
167
269

query I rowsort
SELECT DISTINCT + ( col2 ) * + 15 + - 63 AS col2 FROM tab1 AS cor0
----
1377
747
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3806
SELECT DISTINCT - 79 - + col1 * CAST( - 93 AS SIGNED ) FROM tab1 AS cor0
----
1130
2339
851

skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT - 79 - + col1 * CAST ( - 93 AS INTEGER ) FROM tab1 AS cor0
----
1130
2339
851

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - col0 col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + 58 * - col0 + ( + col0 ) * + cor0.col0 + - col0 FROM tab1 AS cor0
----
-168
1680
320

query I rowsort
SELECT - - 48 + - col1 * - col1 FROM tab1 cor0
----
148
217
724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 col0 FROM tab0 AS cor0
----
84
84
84

query I rowsort
SELECT ALL - col0 + - 63 AS col0 FROM tab1 AS cor0
----
-127
-143
-66

query I rowsort
SELECT ALL + col1 + + 26 FROM tab2 AS cor0
----
43
57
85

query I rowsort
SELECT DISTINCT + col0 + col1 * col2 - + col2 AS col2 FROM tab0 AS cor0
----
131
2829
7469

query I rowsort
SELECT col2 + - col2 * + col2 AS col1 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT ALL + - col1 * + cor0.col0 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT + + col2 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + col1 - + ( - col2 + - col2 ) AS col1 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT + ( + 73 ) AS col1 FROM tab0, tab1 cor0, tab1 AS cor1, tab1 cor2
----
81 values hashing to 9f0f371d979e70a792c8597c6559f0e2

query I rowsort
SELECT DISTINCT 72 FROM tab0, tab2 cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 25 - + col1 col2 FROM tab0 AS cor0
----
-111
-116
-122

query I rowsort
SELECT + + col0 * - col2 * cor0.col0 - 53 FROM tab2 AS cor0
----
-1376
-158237
-237211

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3822
SELECT CAST( - col2 + col1 AS SIGNED ) * col2 AS col1 FROM tab2
----
-798
108
858

skipif mysql # not compatible
query I rowsort label-3822
SELECT CAST ( - col2 + col1 AS INTEGER ) * col2 AS col1 FROM tab2
----
-798
108
858

query I rowsort
SELECT - 91 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # use DIV operator for integer division
query I rowsort label-3824
SELECT ALL + 22 DIV 47 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL + 22 / 47 AS col0 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3825
SELECT CAST( NULL AS SIGNED ) / - col0 - - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3825
SELECT CAST ( NULL AS INTEGER ) / - col0 - - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 13 AS col2 FROM tab1, tab2 AS cor0
----
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-3827
SELECT + col1 DIV col0 + + col1 * col1 - - col0 * col2 FROM tab0 AS cor0
----
15580
8191
9446

skipif mysql # not compatible
query I rowsort label-3827
SELECT + col1 / col0 + + col1 * col1 - - col0 * col2 FROM tab0 AS cor0
----
15580
8191
9446

query I rowsort
SELECT + - col0 + col0 * + cor0.col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT + col2 + col2 * + col1 * col0 - cor0.col0 AS col2 FROM tab0 AS cor0
----
3361
664111
68121

query I rowsort
SELECT + col2 + + col0 - + col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - + col2 * col2 * - col0 AS col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL - col0 + col1 + col2 * col2 AS col0 FROM tab1 AS cor0
----
2939
3195
9149

query I rowsort
SELECT - col2 * - tab0.col0 - - col2 AS col1 FROM tab0
----
36
7380
825

query I rowsort
SELECT col1 + - col2 - col1 AS col2 FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3835
SELECT DISTINCT col2 * col1 + - col2 DIV + col0 - col0 AS col0 FROM tab2
----
1456
567
827

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT col2 * col1 + - col2 / + col0 - col0 AS col0 FROM tab2
----
1456
567
827

query I rowsort
SELECT DISTINCT cor0.col1 + + col2 * + col0 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-3837
SELECT col2 * + col1 - - col2 DIV col2 AS col0 FROM tab0 cor0
----
2839
7463
98

skipif mysql # not compatible
query I rowsort label-3837
SELECT col2 * + col1 - - col2 / col2 AS col0 FROM tab0 cor0
----
2839
7463
98

query I rowsort
SELECT ALL + + col0 * col0 + col2 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT - col1 * col1 * + tab2.col0 + + col0 * col0 FROM tab2
----
-16590
-265434
-6678

query I rowsort
SELECT tab0.col0 + + tab0.col0 + - col2 AS col2 FROM tab0
----
15
69
96

query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0, tab1, tab1 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + tab1.col2 + col0 * - col0 + - col1 AS col0 FROM tab1
----
-4049
-6317
19

query I rowsort
SELECT ALL col0 * col2 * + col0 + tab1.col1 FROM tab1
----
233482
512
614413

query I rowsort
SELECT tab1.col0 * col1 + col2 FROM tab1
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-3845
SELECT + col0 + col2 + - tab0.col0 DIV - col2 AS col2 FROM tab0
----
172
57
71

skipif mysql # not compatible
query I rowsort label-3845
SELECT + col0 + col2 + - tab0.col0 / - col2 AS col2 FROM tab0
----
172
57
71

query I rowsort
SELECT - col0 + col1 - col1 * col2 AS col0 FROM tab0
----
-2776
-35
-7460

query I rowsort
SELECT ALL tab0.col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + + 72 AS col0 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT DISTINCT cor0.col0 + + col1 AS col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - - 88 * col2 + + col2 * col1 + col2 FROM tab2 AS cor0
----
3240
3848
4028

query I rowsort
SELECT ALL + 66 + - col1 FROM tab2 AS cor0
----
35
49
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 col0 FROM tab2
----
14
14
14

query I rowsort
SELECT + col1 * + col2 * - col2 AS col0 FROM tab0 cor0
----
-611884
-93654
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 * cor0.col2 + col2 * col1 col1 FROM tab2 AS cor0
----
-118118
-5022
-50388

query I rowsort
SELECT DISTINCT col2 + + col0 * - col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT + col2 * - 38 + col1 * tab0.col1 * + col1 FROM tab0
----
634802
750455
912635

onlyif mysql # use DIV operator for integer division
query I rowsort label-3857
SELECT ALL - 94 + + 73 DIV + col0 + + tab2.col1 AS col0 FROM tab2
----
-35
-53
-77

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL - 94 + + 73 / + col0 + + tab2.col1 AS col0 FROM tab2
----
-35
-53
-77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3858
SELECT ALL + CAST( NULL AS DECIMAL ) + + tab2.col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL + CAST ( NULL AS REAL ) + + tab2.col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3859
SELECT ALL ( 88 ) DIV - col0 + col1 FROM tab1
----
-3
12
9

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL ( 88 ) / - col0 + col1 FROM tab1
----
-3
12
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3860
SELECT DISTINCT CAST( + col0 AS SIGNED ) * - col2 + - tab1.col1 FROM tab1
----
-188
-3658
-7693

skipif mysql # not compatible
query I rowsort label-3860
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * - col2 + - tab1.col1 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT - ( + tab1.col1 ) FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT ALL tab0.col0 * - tab0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 18f45a7edd86e3eccc832dcdb6123662

query I rowsort
SELECT DISTINCT - 47 * col0 AS col2 FROM tab2 AS cor0
----
-329
-3666
-3713

query I rowsort
SELECT DISTINCT col0 * col0 * col2 AS col1 FROM tab2 cor0
----
1323
158184
237158

query I rowsort
SELECT - + 75 AS col0 FROM tab1 AS cor0
----
-75
-75
-75

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + col0 * + tab1.col0 )
----

query I rowsort
SELECT ALL col1 * col1 - + col2 * - tab1.col2 FROM tab1
----
3349
3592
9385

query I rowsort
SELECT DISTINCT - col0 * tab2.col2 FROM tab2 WHERE NULL NOT IN ( tab2.col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= - col0 * col0
----

query I rowsort
SELECT col0 + col2 + + col1 FROM tab2
----
134
163
65

query I rowsort
SELECT + col0 FROM tab2 WHERE + col0 IN ( - col1 * - col2 + - col2 + col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT tab1.col2 FROM tab1 WHERE NOT - col0 NOT IN ( + tab1.col0 * + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * col2 <= col0 + col2 * col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT + col2 * col2 + - col2 FROM tab0
----
0
1056
6642

query I rowsort
SELECT col0 FROM tab0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT col1 * col2 - tab1.col2 FROM tab1
----
1152
1350
513

query I rowsort
SELECT ALL col1 * + col1 - - col0 AS col1 FROM tab1
----
164
249
679

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT IN ( col0 )
----

query I rowsort
SELECT + tab2.col2 FROM tab2 WHERE NOT NULL NOT IN ( - tab2.col2 )
----

query I rowsort
SELECT + col0 + col2 + tab2.col2 FROM tab2
----
130
155
61

query I rowsort
SELECT ALL col0 * - col0 - col1 FROM tab2
----
-6143
-6258
-80

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE ( NULL ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab1 WHERE ( NULL ) IN ( - col1 + col0 )
----

query I rowsort
SELECT DISTINCT col2 * + col1 * tab1.col2 + - col2 * - tab1.col0 AS col2 FROM tab1
----
127488
36138
75978

query I rowsort
SELECT DISTINCT + col0 - + cor0.col1 AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + - col2 + + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col1 * cor0.col2 AS col1 FROM tab1 cor0
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + col1 + col0 col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL cor0.col1 - + cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT - + cor0.col1 * cor0.col0 - - col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + - cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + col1 * col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * + col0 + + col2 > NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 + col2 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL tab2.col1 + - col2 * col2 AS col0 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT + 87 + + col2 AS col1 FROM tab1 AS cor0
----
141
144
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 + - ( col2 ) col2 FROM tab0 cor0
----
-26
-75
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col0 ) * col1 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3900
SELECT - - 26 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3900
SELECT - - 26 / + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + 88 FROM tab0 cor0
----
88
88
88

query I rowsort
SELECT col1 + - ( - tab2.col1 ) FROM tab2
----
118
34
62

query I rowsort
SELECT DISTINCT - col1 * + 2 AS col2 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT + ( col0 ) + + 12 AS col2 FROM tab0 AS cor0
----
101
36
47

query I rowsort
SELECT ALL - col2 + + tab0.col1 * col1 * col0 FROM tab0
----
177471
329314
736927

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + + cor0.col2 col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ( tab2.col0 ) * 41 FROM tab2
----
287
3198
3239

query I rowsort
SELECT tab2.col0 * - col2 * col0 AS col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT 36 * - col2 AS col1 FROM tab1
----
-1944
-2052
-3456

query I rowsort
SELECT DISTINCT + 11 * cor1.col2 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
1056
594
627

query I rowsort
SELECT - tab2.col2 * col1 * - col1 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT col2 * + cor0.col2 + 15 * + col0 AS col2 FROM tab2 cor0
----
1846
2629
834

query I rowsort
SELECT ALL col2 + + ( - 18 ) * col0 AS col1 FROM tab1
----
-1095
-1344
0

query I rowsort
SELECT col0 * + ( - col0 ) FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT - + col2 * 76 + + col1 FROM tab0 cor0
----
-2422
-6141
21

query I rowsort
SELECT + col2 - + 87 AS col1 FROM tab0 AS cor0
----
-5
-54
-86

query I rowsort
SELECT ALL col0 * col0 + - ( + col2 ) AS col1 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT ALL cor2.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT ALL - 44 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT + 71 * + 33 AS col0 FROM tab1 AS cor0
----
2343
2343
2343

onlyif mysql # use DIV operator for integer division
query I rowsort label-3921
SELECT DISTINCT + 15 DIV - ( - col1 * col2 + col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT + 15 / - ( - col1 * col2 + col0 ) FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3922
SELECT - - CAST( - 90 AS SIGNED ) FROM tab2 AS cor0
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-3922
SELECT - - CAST ( - 90 AS INTEGER ) FROM tab2 AS cor0
----
-90
-90
-90

query I rowsort
SELECT - 2 * - 52 FROM tab1 AS cor0
----
104
104
104

query I rowsort
SELECT ALL ( 92 ) * col2 AS col2 FROM tab0 AS cor0
----
3036
7544
92

query I rowsort
SELECT DISTINCT + cor0.col2 + col0 * - col1 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT col1 + col1 * - col1 FROM tab2 cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL ( col2 ) * - col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + ( 66 ) * + col1 FROM tab1 AS cor0
----
1716
660
858

query I rowsort
SELECT ALL 19 * - col1 * ( col2 ) AS col2 FROM tab1
----
-10830
-23712
-26676

query I rowsort
SELECT ALL + tab2.col2 - - col1 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT tab1.col1 + - col0 - + col1 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + col0 * col1 + 18 AS col0 FROM tab0 AS cor0
----
2082
3413
8117

query I rowsort
SELECT + - 31 * col2 AS col1 FROM tab1 AS cor0
----
-1674
-1767
-2976

query I rowsort
SELECT DISTINCT 78 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
78

query I rowsort
SELECT ALL col1 * 28 + + 23 FROM tab0 AS cor0
----
2431
2571
2739

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * col0 col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - + col2 + + ( cor0.col1 ) FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - - col0 * - 89 + + col0 AS col1 FROM tab0 AS cor0
----
-2112
-3080
-7832

query I rowsort
SELECT DISTINCT - col2 + 67 - - cor0.col1 FROM tab2 AS cor0
----
100
46
71

skipif mysql # not compatible
query I rowsort
SELECT cor0.col2 + - CAST ( - col2 AS REAL ) FROM tab1 AS cor0
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - cor0.col2 ) col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT + col1 * - col0 + 98 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-2054
2381
2429

query I rowsort
SELECT DISTINCT - - 35 + + col2 * cor0.col1 * cor0.col0 FROM tab0 AS cor0
----
3430
664153
68147

onlyif mysql # use DIV operator for integer division
query I rowsort label-3944
SELECT ALL + 81 + - cor0.col0 DIV ( - col0 ) FROM tab0 cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-3944
SELECT ALL + 81 + - cor0.col0 / ( - col0 ) FROM tab0 cor0
----
82
82
82

query I rowsort
SELECT DISTINCT 86 * - col1 FROM tab2 AS cor0
----
-1462
-2666
-5074

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 9 col1 FROM tab1 AS cor0
----
-9
-9
-9

query I rowsort
SELECT ALL - col0 * ( - cor0.col2 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col1 + - ( 23 ) AS col1 FROM tab0 AS cor0
----
-109
-114
-120

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 - col2 + 73 FROM tab1 AS cor0
----
-23
16
19

query I rowsort
SELECT ALL - - col1 + ( col0 ) AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL ( + col1 ) * - col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + 88 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1496
-2728
-5192

query I rowsort
SELECT + tab0.col0 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + 8 * col2 AS col0 FROM tab2 cor0
----
208
216
304

query I rowsort
SELECT ALL - + col0 * + col2 * col0 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT + col0 * + col0 + + col0 + col0 FROM tab1 AS cor0
----
15
4224
6560

query I rowsort
SELECT DISTINCT + + col1 + ( col0 ) AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - cor0.col0 + + cor1.col1 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 191cb0026c65d6fd7e1ca864c3d947d1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * col0 * col1 col0 FROM tab2 AS cor0
----
1302
27612
8058

onlyif mysql # use DIV operator for integer division
query I rowsort label-3961
SELECT + 22 DIV ( col0 ) AS col2 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3961
SELECT + 22 / ( col0 ) AS col2 FROM tab2 AS cor0
----
0
0
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3962
SELECT DISTINCT + CAST( cor0.col0 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT + CAST ( cor0.col0 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT 1 * - col1 * - col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + ( tab0.col1 ) + col2 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT + + 17 AS col0 FROM tab2 AS cor0
----
17

query I rowsort
SELECT DISTINCT 99 * - col2 - col0 AS col2 FROM tab1 AS cor0
----
-5349
-5707
-9584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3967
SELECT + col1 * 57 + col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3967
SELECT + col1 * 57 + col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - tab0.col2 - col2 AS col0 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT ALL 28 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT - 26 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 + - tab1.col0 * col1 col0 FROM tab1
----
-106
-1068
-668

query I rowsort
SELECT - col2 + - cor0.col2 * cor0.col2 * col1 FROM tab0 AS cor0
----
-611966
-93687
-98

query I rowsort
SELECT DISTINCT 17 FROM tab2, tab0, tab1 AS cor0
----
17

query I rowsort
SELECT ALL - 36 * - col1 AS col1 FROM tab0
----
3096
3276
3492

query I rowsort
SELECT ALL 75 AS col1 FROM tab2
----
75
75
75

query I rowsort
SELECT DISTINCT - ( tab0.col2 ) * ( + col0 + col0 ) * + col2 FROM tab0
----
-1196872
-52272
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col0 col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - tab1.col1 + 50 FROM tab1, tab0 AS cor0
----
9 values hashing to cb4b4c472ad5a01d05e77c70e0ffff6f

query I rowsort
SELECT + + col0 * 29 AS col1 FROM tab0 AS cor0
----
1015
2581
696

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3981
SELECT ALL col0 + CAST( - col0 AS SIGNED ) col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL col0 + CAST ( - col0 AS INTEGER ) col0 FROM tab1
----
0
0
0

query I rowsort
SELECT tab2.col2 * - col1 + col0 + - col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT 80 * col2 + + cor0.col2 * + 61 FROM tab0 AS cor0
----
11562
141
4653

query I rowsort
SELECT - cor0.col2 * 87 FROM tab2 cor0
----
-2262
-2349
-3306

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3985
SELECT col1 * col2 * 9 + col0 + + CAST( - 63 AS SIGNED ) FROM tab0
----
25503
67184
845

skipif mysql # not compatible
query I rowsort label-3985
SELECT col1 * col2 * 9 + col0 + + CAST ( - 63 AS INTEGER ) FROM tab0
----
25503
67184
845

query I rowsort
SELECT DISTINCT 10 AS col0 FROM tab1, tab0 AS cor0
----
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-3987
SELECT DISTINCT col2 * 61 + col0 DIV + col2 + + col2 AS col2 FROM tab0
----
2046
5085
97

skipif mysql # not compatible
query I rowsort label-3987
SELECT DISTINCT col2 * 61 + col0 / + col2 + + col2 AS col2 FROM tab0
----
2046
5085
97

query I rowsort
SELECT ALL 12 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3989
SELECT DISTINCT - tab1.col1 + + CAST( NULL AS DECIMAL ) + tab1.col1 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3989
SELECT DISTINCT - tab1.col1 + + CAST ( NULL AS REAL ) + tab1.col1 AS col0 FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3990
SELECT DISTINCT col0 DIV 99 + - 59 AS col2 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT col0 / 99 + - 59 AS col2 FROM tab0
----
-59

query I rowsort
SELECT DISTINCT col2 + - col0 * + 51 FROM tab1
----
-3207
-3984
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-3992
SELECT + tab0.col1 DIV - 54 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3992
SELECT + tab0.col1 / - 54 FROM tab0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3993
SELECT DISTINCT 46 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3993
SELECT DISTINCT 46 / col2 FROM tab1
----
0

query I rowsort
SELECT - 12 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0

query I rowsort
SELECT ALL + col1 * + 3 AS col0 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT DISTINCT - + col1 * cor0.col2 + + col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT 75 * + cor0.col0 + col0 AS col1 FROM tab0 AS cor0
----
1824
2660
6764

query I rowsort
SELECT - 35 - - 29 * - col1 AS col2 FROM tab0 AS cor0
----
-2529
-2674
-2848

query I rowsort
SELECT ALL - - ( col1 ) + - cor0.col2 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + col1 + cor0.col0 * col0 * + col1 AS col2 FROM tab1 cor0
----
260
40970
83213

query I rowsort
SELECT DISTINCT + + 10 * col0 + + col2 * + cor0.col0 FROM tab2 AS cor0
----
259
2808
3792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 66 + - col0 col0 FROM tab1 AS cor0
----
3561
3698
6256

onlyif mysql # use DIV operator for integer division
query I rowsort label-4003
SELECT + + cor0.col0 * - 65 + col2 DIV + 96 AS col2 FROM tab0 AS cor0
----
-1560
-2275
-5785

skipif mysql # not compatible
query I rowsort label-4003
SELECT + + cor0.col0 * - 65 + col2 / + 96 AS col2 FROM tab0 AS cor0
----
-1560
-2275
-5785

query I rowsort
SELECT ALL - cor0.col2 + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT + col2 * col1 + col0 * 9 AS col1 FROM tab1 AS cor0
----
1146
1431
1968

query I rowsort
SELECT DISTINCT col1 * - 92 FROM tab0 AS cor0
----
-7912
-8372
-8924

query I rowsort
SELECT + ( tab1.col2 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # use DIV operator for integer division
query I rowsort label-4008
SELECT col1 + col2 * + 83 + - col1 DIV col2 AS col1 FROM tab1
----
4508
4741
7981

skipif mysql # not compatible
query I rowsort label-4008
SELECT col1 + col2 * + 83 + - col1 / col2 AS col1 FROM tab1
----
4508
4741
7981

query I rowsort
SELECT DISTINCT + col2 * - col1 + 8 FROM tab0
----
-2830
-7454
-89

query I rowsort
SELECT + tab1.col1 * + 42 FROM tab1
----
1092
420
546

query I rowsort
SELECT col0 * + ( - ( + col1 ) + 60 ) FROM tab0
----
-1295
-2759
-624

query I rowsort
SELECT + col2 + + 96 * col2 * col1 AS col0 FROM tab1 cor0
----
119904
134838
54777

onlyif mysql # use DIV operator for integer division
query I rowsort label-4013
SELECT + col1 DIV 73 + cor0.col0 FROM tab2 cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4013
SELECT + col1 / 73 + cor0.col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL + ( - col0 ) * - col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT cor0.col2 * cor0.col0 + col0 FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( col0 ) * - cor0.col1 * col1 + cor0.col1 + - col0 * ( + col1 ) col0 FROM tab0 AS cor0
----
175526
326017
729001

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 + 47 col2 FROM tab1 AS cor0
----
111
127
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 67 + col2 col0 FROM tab2 AS cor0
----
105
93
94

query I rowsort
SELECT - col1 + + 71 AS col0 FROM tab2 cor0
----
12
40
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4020
SELECT - col0 * - CAST( + col1 + + col2 AS SIGNED ) AS col1 FROM tab2
----
406
4345
6630

skipif mysql # not compatible
query I rowsort label-4020
SELECT - col0 * - CAST ( + col1 + + col2 AS INTEGER ) AS col1 FROM tab2
----
406
4345
6630

query I rowsort
SELECT DISTINCT col2 * + col1 + - col0 FROM tab2 cor0
----
1456
567
830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4022
SELECT CAST( NULL AS DECIMAL ) * - 55 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4022
SELECT CAST ( NULL AS REAL ) * - 55 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 - cor0.col2 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL + - col2 + - 5 * col0 FROM tab1 AS cor0
----
-377
-496
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4025
SELECT - CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4025
SELECT - CAST ( NULL AS REAL ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4026
SELECT ALL + CAST( - col2 AS SIGNED ) * col0 + ( - col0 * - col0 ) + - ( col1 ) AS col2 FROM tab2 cor0
----
-171
3222
3997

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL + CAST ( - col2 AS INTEGER ) * col0 + ( - col0 * - col0 ) + - ( col1 ) AS col2 FROM tab2 cor0
----
-171
3222
3997

query I rowsort
SELECT - cor0.col1 * cor0.col0 + - col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT col0 - + col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - cor0.col1 * + col0 + + 78 - col0 FROM tab0 AS cor0
----
-2010
-3352
-8110

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4030
SELECT col0 + col0 - CAST( - col1 + + col1 AS SIGNED ) FROM tab1 AS cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-4030
SELECT col0 + col0 - CAST ( - col1 + + col1 AS INTEGER ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT 24 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT + 79 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4033
SELECT ALL + col2 + CAST( NULL AS DECIMAL ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL + col2 + CAST ( NULL AS REAL ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + 17 * - col2 - col0 AS col0 FROM tab0 AS cor0
----
-1401
-51
-552

query I rowsort
SELECT DISTINCT + col1 * + ( - 92 ) FROM tab1 AS cor0
----
-1196
-2392
-920

query I rowsort
SELECT DISTINCT + + col2 + ( + col1 ) AS col0 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 + col0 * - col2 col2 FROM tab1 cor0
----
-15360
-324
-7296

query I rowsort
SELECT + col2 * - cor0.col2 + - col1 - cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
-18445
-5858
-6508

query I rowsort
SELECT + col2 + cor0.col2 - 29 FROM tab0 AS cor0
----
-27
135
37

query I rowsort
SELECT DISTINCT + col2 * 27 FROM tab1 AS cor0
----
1458
1539
2592

query I rowsort
SELECT - cor0.col1 * 10 FROM tab1 AS cor0
----
-100
-130
-260

query I rowsort
SELECT ALL col1 + ( + cor0.col2 ) * + col0 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT - - cor0.col0 * col1 + - col1 FROM tab1 AS cor0
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-4044
SELECT - + col2 * - col2 + - col2 - + col2 DIV + 89 AS col0 FROM tab0 AS cor0
----
0
1056
6642

skipif mysql # not compatible
query I rowsort label-4044
SELECT - + col2 * - col2 + - col2 - + col2 / + 89 AS col0 FROM tab0 AS cor0
----
0
1056
6642

onlyif mysql # use DIV operator for integer division
query I rowsort label-4045
SELECT col0 + - col2 DIV - col2 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-4045
SELECT col0 + - col2 / - col2 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT ALL - cor0.col2 + - 23 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-1968
-24
-792

query I rowsort
SELECT + + col1 + 85 FROM tab1 AS cor0
----
111
95
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4048
SELECT ALL + col2 DIV + col1 col1 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL + col2 / + col1 col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT cor0.col2 * + tab1.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to bbf44891fdcfbe372162a2e549d3eeed

query I rowsort
SELECT DISTINCT tab0.col1 - ( - 20 + col2 ) * - 61 FROM tab0
----
-1062
3873
879

query I rowsort
SELECT DISTINCT + - col2 + - ( + col2 ) FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL + col2 + - 68 AS col0 FROM tab1 AS cor0
----
-11
-14
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-4053
SELECT ALL + col2 DIV col2 + + 17 + - col2 AS col0 FROM tab1
----
-36
-39
-78

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL + col2 / col2 + + 17 + - col2 AS col0 FROM tab1
----
-36
-39
-78

query I rowsort
SELECT 77 FROM tab1, tab1 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # use DIV operator for integer division
query I rowsort label-4055
SELECT - 4 + - col0 DIV - tab2.col0 col2 FROM tab2
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4055
SELECT - 4 + - col0 / - tab2.col0 col2 FROM tab2
----
-3
-3
-3

query I rowsort
SELECT + - 94 * cor0.col0 FROM tab0 AS cor0
----
-2256
-3290
-8366

query I rowsort
SELECT ALL 86 + + col0 + col1 FROM tab1 AS cor0
----
115
160
179

query I rowsort
SELECT - 34 * + col1 AS col1 FROM tab0 AS cor0
----
-2924
-3094
-3298

query I rowsort
SELECT + ( - 89 ) FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

onlyif mysql # use DIV operator for integer division
query I rowsort label-4060
SELECT ALL - col0 * col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
80
9

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL - col0 * col2 / - col1 AS col1 FROM tab0 AS cor0
----
0
80
9

query I rowsort
SELECT + - 40 AS col1 FROM tab1 AS cor0
----
-40
-40
-40

query I rowsort
SELECT - 94 + - col0 * - col2 FROM tab0 AS cor0
----
-59
698
7204

query I rowsort
SELECT - + ( - col1 ) * + col2 + 83 AS col1 FROM tab2 AS cor0
----
1617
729
920

onlyif mysql # use DIV operator for integer division
query I rowsort label-4064
SELECT DISTINCT - col2 DIV + CAST( - col2 + - col2 AS SIGNED ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT - col2 / + CAST ( - col2 + - col2 AS INTEGER ) AS col2 FROM tab0
----
0

query I rowsort
SELECT col0 * - 1 AS col1 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT ALL - col0 * + col2 + 21 * col2 AS col2 FROM tab1 AS cor0
----
-2451
-5664
972

query I rowsort
SELECT + col1 + + ( col0 ) * + col0 FROM tab2
----
6143
6258
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4068
SELECT DISTINCT - col0 + CAST( + 7 AS SIGNED ) AS col2 FROM tab1
----
-57
-73
4

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT - col0 + CAST ( + 7 AS INTEGER ) AS col2 FROM tab1
----
-57
-73
4

query I rowsort
SELECT DISTINCT + ( - col1 ) * + col2 AS col1 FROM tab2
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4070
SELECT - + CAST( NULL AS SIGNED ) * col0 / - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4070
SELECT - + CAST ( NULL AS INTEGER ) * col0 / - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4071
SELECT DISTINCT - col0 DIV - 56 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4071
SELECT DISTINCT - col0 / - 56 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT + 47 AS col2 FROM tab2 cor0
----
47
47
47

query I rowsort
SELECT DISTINCT ( - 33 ) + - col0 FROM tab0 AS cor0
----
-122
-57
-68

query I rowsort
SELECT + ( - col0 ) * + col2 * - ( + 3 ) AS col1 FROM tab0 AS cor0
----
105
21894
2376

query I rowsort
SELECT col1 * col1 + - 75 + + ( - col0 + + col0 ) FROM tab0
----
7321
8206
9334

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + tab2.col2 col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT col0 + col2 + - col1 * 51 FROM tab1
----
-1269
-389
-487

query I rowsort
SELECT + tab2.col2 + - col1 + col1 * + col0 FROM tab2
----
1364
213
4569

query I rowsort
SELECT col2 + tab1.col2 * - tab1.col1 - + col1 AS col2 FROM tab1
----
-1165
-1376
-523

query I rowsort
SELECT DISTINCT 51 + - col2 FROM tab2
----
13
24
25

query I rowsort
SELECT ALL + cor0.col0 * - tab0.col0 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to fa8f09039d622159cb79f83c1d68bd00

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 - col1 * + col1 col0 FROM tab1 cor0
----
-36
-673
-89

query I rowsort
SELECT ALL - + 0 + + col0 + 61 FROM tab0 AS cor0
----
150
85
96

query I rowsort
SELECT - 94 - + col1 AS col0 FROM tab0 AS cor0
----
-180
-185
-191

query I rowsort
SELECT - - 28 * col1 + col1 * col0 + col2 FROM tab1 AS cor0
----
1500
860
977

query I rowsort
SELECT DISTINCT col2 + + 44 AS col2 FROM tab0 cor0
----
126
45
77

query I rowsort
SELECT ALL col2 + 60 * col2 * + col0 AS col2 FROM tab1 AS cor0
----
218937
460896
9774

query I rowsort
SELECT DISTINCT col1 * 92 + ( - col1 * col0 ) FROM tab1 AS cor0
----
156
2314
280

query I rowsort
SELECT DISTINCT + col1 + + 81 FROM tab2 AS cor0
----
112
140
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 79 col0 FROM tab0 AS cor0
----
-3
46
78

query I rowsort
SELECT ALL + col0 * ( col2 ) + col1 * col2 FROM tab0 cor0
----
132
14760
3630

onlyif mysql # use DIV operator for integer division
query I rowsort label-4092
SELECT ALL - - col0 DIV 31 - col1 AS col2 FROM tab0 AS cor0
----
-86
-89
-96

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL - - col0 / 31 - col1 AS col2 FROM tab0 AS cor0
----
-86
-89
-96

query I rowsort
SELECT DISTINCT col1 + - 81 AS col1 FROM tab2 AS cor0
----
-22
-50
-64

query I rowsort
SELECT + cor0.col0 + + 99 * col2 AS col0 FROM tab1 AS cor0
----
5349
5707
9584

onlyif mysql # use DIV operator for integer division
query I rowsort label-4095
SELECT DISTINCT + - col1 + col0 + 7 * cor0.col2 DIV cor0.col0 FROM tab0 AS cor0
----
-53
-62
4

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT + - col1 + col0 + 7 * cor0.col2 / cor0.col0 FROM tab0 AS cor0
----
-53
-62
4

query I rowsort
SELECT ALL + col0 - + 18 FROM tab2 AS cor0
----
-11
60
61

query I rowsort
SELECT - - col0 * 80 + col2 FROM tab1 AS cor0
----
294
5177
6496

query I rowsort
SELECT ALL + 43 * col0 - col2 AS col2 FROM tab2
----
274
3328
3359

query I rowsort
SELECT DISTINCT - col0 * 48 AS col1 FROM tab0 AS cor0
----
-1152
-1680
-4272

query I rowsort
SELECT DISTINCT - col1 + + 3 * + col0 FROM tab1 AS cor0
----
-17
182
227

onlyif mysql # use DIV operator for integer division
query I rowsort label-4101
SELECT col2 + + cor0.col0 DIV + 71 AS col1 FROM tab2 AS cor0
----
27
27
39

skipif mysql # not compatible
query I rowsort label-4101
SELECT col2 + + cor0.col0 / + 71 AS col1 FROM tab2 AS cor0
----
27
27
39

query I rowsort
SELECT - col2 + 6 FROM tab2 AS cor0
----
-20
-21
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + col0 col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + col0 + + 26 * col0 FROM tab1 AS cor0
----
1728
2160
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4105
SELECT ALL col0 * CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL col0 * CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + col2 * col2 * + col2 FROM tab1 AS cor0
----
157467
185257
884816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 41 col2 FROM tab1 AS cor0
----
-123
-2624
-3280

query I rowsort
SELECT - col2 + 44 * col0 FROM tab2 AS cor0
----
281
3406
3438

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4109
SELECT + col1 * col0 + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT + col1 * col0 + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + - 67 * - col2 FROM tab2 AS cor0
----
1801
1840
2563

query I rowsort
SELECT + - col0 + + 5 FROM tab2 AS cor0
----
-2
-73
-74

query I rowsort
SELECT col2 * ( - col1 * col2 + + 4 ) AS col2 FROM tab2
----
-22491
-24396
-39780

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4113
SELECT DISTINCT col1 + CAST( + col2 AS SIGNED ) * + col2 AS col1 FROM tab0
----
1175
6815
98

skipif mysql # not compatible
query I rowsort label-4113
SELECT DISTINCT col1 + CAST ( + col2 AS INTEGER ) * + col2 AS col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT ALL - col1 + ( col2 ) * col0 AS col2 FROM tab0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-4115
SELECT - ( + col1 ) DIV ( 71 ) AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4115
SELECT - ( + col1 ) / ( 71 ) AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4116
SELECT ALL + cor0.col1 DIV col2 col0 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL + cor0.col1 / col2 col0 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT ALL - + col0 * cor0.col2 + col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) * col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + col0 * + col0 * - col2 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT ALL tab0.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT + 76 AS col0 FROM tab0 AS cor0
----
76

query I rowsort
SELECT - 70 * col0 * col1 - - col2 FROM tab2 AS cor0
----
-15163
-322114
-93972

onlyif mysql # use DIV operator for integer division
query I rowsort label-4123
SELECT + 69 DIV - col1 AS col2 FROM tab1
----
-2
-5
-6

skipif mysql # not compatible
query I rowsort label-4123
SELECT + 69 / - col1 AS col2 FROM tab1
----
-2
-5
-6

query I rowsort
SELECT DISTINCT + col0 - + 51 FROM tab0
----
-16
-27
38

query I rowsort
SELECT + 87 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT DISTINCT 86 + col0 * col0 + - ( + col0 ) FROM tab1
----
4118
6406
92

query I rowsort
SELECT DISTINCT 98 + - col1 AS col1 FROM tab2 AS cor0
----
39
67
81

query I rowsort
SELECT + ( col2 ) - cor0.col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + col0 + - col1 * + ( ( - col1 ) ) * + cor0.col2 FROM tab2 cor0
----
11061
25954
90584

query I rowsort
SELECT DISTINCT col0 + col0 * 93 + + col0 AS col0 FROM tab0 cor0
----
2280
3325
8455

query I rowsort
SELECT ALL - 49 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT + cor0.col2 * 39 AS col0 FROM tab2 AS cor0
----
1014
1053
1482

query I rowsort
SELECT + col2 * - 47 - - cor0.col0 FROM tab1 AS cor0
----
-2535
-2615
-4432

query I rowsort
SELECT col2 * - col1 - + col0 * - 17 FROM tab2 AS cor0
----
-208
-718
697

query I rowsort
SELECT - + 69 * col0 AS col2 FROM tab1 cor0
----
-207
-4416
-5520

query I rowsort
SELECT - - 68 * + col1 AS col1 FROM tab0 AS cor0
----
5848
6188
6596

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4137
SELECT - CAST( + 92 AS SIGNED ) FROM tab2 AS cor0
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-4137
SELECT - CAST ( + 92 AS INTEGER ) FROM tab2 AS cor0
----
-92
-92
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( ( + col1 ) ) col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4139
SELECT + CAST( NULL AS SIGNED ) * col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4139
SELECT + CAST ( NULL AS INTEGER ) * col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 87 * col0 AS col1 FROM tab0 AS cor0
----
2088
3045
7743

query I rowsort
SELECT - col1 + - col2 * col2 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT 76 * - 11 AS col2 FROM tab2 AS cor0
----
-836
-836
-836

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 + - col1 * - col0 col0 FROM tab1 cor0
----
1089
127
689

query I rowsort
SELECT - ( + 29 ) + cor0.col2 * + col0 FROM tab0 AS cor0
----
6
7269
763

query I rowsort
SELECT ALL - + 72 FROM tab1 AS cor0
----
-72
-72
-72

query I rowsort
SELECT - - ( - cor0.col2 ) * col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT col1 + 72 FROM tab2 cor0
----
103
131
89

query I rowsort
SELECT - col1 * + col0 * col2 AS col2 FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT cor0.col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - - col1 - ( - col1 ) * 92 * col0 AS col0 FROM tab0 AS cor0
----
189974
312437
745199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 col0 FROM tab2 AS cor0
----
-97
-97
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 18 + cor0.col1 * col2 col0 FROM tab1 AS cor0
----
1266
1422
588

query I rowsort
SELECT + col1 - + col2 * 74 AS col2 FROM tab2 cor0
----
-1865
-1967
-2795

query I rowsort
SELECT DISTINCT - 35 * col0 - ( - ( col1 ) + - col0 ) AS col0 FROM tab1 AS cor0
----
-2166
-2707
-76

query I rowsort
SELECT DISTINCT - + col0 - + cor0.col2 * ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT + cor0.col1 + + 95 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
181
186
192

query I rowsort
SELECT DISTINCT + col0 * + 89 + + col0 AS col0 FROM tab1 AS cor0
----
270
5760
7200

query I rowsort
SELECT - cor0.col2 + + 2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to d7ab04ac4699ea32577db97c89c1f604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - ( col2 ) col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4160
SELECT ALL 38 * cor1.col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL 38 * cor1.col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + cor1.col2 + 9 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 62eabbed21c8d12c3a0b7b427fb027f8

query I rowsort
SELECT col2 * - col0 + - col1 FROM tab0
----
-132
-7389
-878

query I rowsort
SELECT ALL - tab2.col2 * col2 AS col0 FROM tab2
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - 11 FROM tab0, tab2 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4166
SELECT - col1 * - CAST( + col0 AS SIGNED ) + col1 * 29 AS col2 FROM tab1
----
1417
832
930

skipif mysql # not compatible
query I rowsort label-4166
SELECT - col1 * - CAST ( + col0 AS INTEGER ) + col1 * 29 AS col2 FROM tab1
----
1417
832
930

query I rowsort
SELECT ( - col0 ) - cor0.col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT 95 * + col0 FROM tab0 AS cor0
----
2280
3325
8455

query I rowsort
SELECT DISTINCT - + 76 AS col2 FROM tab2 cor0
----
-76

query I rowsort
SELECT - cor0.col1 * col0 * col2 + cor0.col2 FROM tab1 AS cor0
----
-36423
-4158
-99744

query I rowsort
SELECT - col2 * col1 + cor0.col1 * - col1 FROM tab2 AS cor0
----
-1798
-5015
-935

query I rowsort
SELECT + 9 * - col1 FROM tab1 cor0
----
-117
-234
-90

query I rowsort
SELECT - 29 * - col2 AS col2 FROM tab1
----
1566
1653
2784

query I rowsort
SELECT DISTINCT - + 89 * col1 + cor0.col0 * - col0 AS col0 FROM tab1 AS cor0
----
-2323
-4986
-7557

query I rowsort
SELECT ALL col1 - + col1 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 col0 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - 95 * - tab0.col0 + col2 * + tab0.col0 + col2 AS col0 FROM tab0
----
15835
3105
3361

query I rowsort
SELECT ALL - 86 + + 49 * + col2 AS col1 FROM tab2
----
1188
1237
1776

query I rowsort
SELECT - 24 * col0 + - col0 + col1 FROM tab2
----
-144
-1891
-1958

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4180
SELECT CAST( NULL AS SIGNED ) * - 83 col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4180
SELECT CAST ( NULL AS INTEGER ) * - 83 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + col0 * + col0 * - col1 FROM tab1 AS cor0
----
-231
-40896
-83120

query I rowsort
SELECT - col1 * + col2 + col0 + col1 * - col0 * + col2 FROM tab2
----
-121108
-51601
-6689

query I rowsort
SELECT col0 - ( 92 + col0 ) FROM tab0
----
-92
-92
-92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4184
SELECT ALL + CAST( NULL AS SIGNED ) * + cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL + CAST ( NULL AS INTEGER ) * + cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - col2 ) + + col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + + 63 * col1 * col0 FROM tab2 AS cor0
----
13671
289926
84609

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + + col1 col0 FROM tab1
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4188
SELECT - CAST( ( col1 ) AS SIGNED ) + col1 + col0 * + col1 AS col1 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-4188
SELECT - CAST ( ( col1 ) AS INTEGER ) + col1 + col0 * + col1 AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT 76 * - 37 AS col1 FROM tab2
----
-2812
-2812
-2812

query I rowsort
SELECT col1 * - tab2.col1 AS col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT ( ( col1 ) ) + - col2 FROM tab0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4192
SELECT DISTINCT ( + 87 ) DIV col2 + col2 + col0 FROM tab0
----
123
172
59

skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT ( + 87 ) / col2 + col2 + col0 FROM tab0
----
123
172
59

query I rowsort
SELECT DISTINCT - col1 + + col1 * - tab0.col1 FROM tab0
----
-7482
-8372
-9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-4194
SELECT + ( col0 ) DIV col0 col1 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4194
SELECT + ( col0 ) / col0 col1 FROM tab1
----
1
1
1

query I rowsort
SELECT ALL tab0.col1 + ( + col1 + + col0 ) FROM tab0
----
196
229
271

query I rowsort
SELECT - 67 + - ( col0 ) FROM tab2
----
-145
-146
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 + ( - col2 ) + tab2.col2 col1 FROM tab2
----
10

query I rowsort
SELECT ALL + 60 + - col0 AS col2 FROM tab1 AS cor0
----
-20
-4
57

query I rowsort
SELECT ALL + ( + col0 ) + col1 * col2 FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT ALL - 32 + col2 + col0 FROM tab2 AS cor0
----
2
72
85

query I rowsort
SELECT - cor0.col1 * + col1 + + col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NULL = col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 BETWEEN ( + col0 ) AND ( col1 )
----
7
31
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-4204
SELECT - col0 DIV col0 + col1 AS col0 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-4204
SELECT - col0 / col0 + col1 AS col0 FROM tab2
----
16
30
58

query I rowsort
SELECT DISTINCT - col0 + - col2 + - col1 FROM tab0
----
-133
-143
-262

query I rowsort
SELECT col1 * - col0 + + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT - col0 + - col1 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT - col2 + - cor0.col2 * + col0 * col0 FROM tab2 AS cor0
----
-1350
-158210
-237196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 + + col1 * - col1 col1 FROM tab0 AS cor0
----
-4558
-819
-9312

query I rowsort
SELECT - col0 * + col1 + col1 AS col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT ALL - col2 * - 91 * col0 FROM tab2 AS cor0
----
17199
184548
273182

query I rowsort
SELECT - + cor0.col0 * - 11 AS col2 FROM tab2 AS cor0
----
77
858
869

query I rowsort
SELECT - + col0 * 69 AS col1 FROM tab2 AS cor0
----
-483
-5382
-5451

query I rowsort
SELECT ALL 66 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + - 39 - + col2 * ( - col1 ) col1 FROM tab2 AS cor0
----
1417
528
791

query I rowsort
SELECT - ( + col1 ) - + col1 AS col1 FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT ALL - col1 * col0 * col1 AS col0 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT col0 * - ( col2 ) AS col0 FROM tab0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4220
SELECT + col2 DIV - col0 + + col1 DIV col0 FROM tab1
----
-1
-10
0

skipif mysql # not compatible
query I rowsort label-4220
SELECT + col2 / - col0 + + col1 / col0 FROM tab1
----
-1
-10
0

query I rowsort
SELECT ALL ( + 64 ) * - col2 FROM tab1
----
-3456
-3648
-6144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 * col1 col1 FROM tab2 cor0
----
1271
2419
697

query I rowsort
SELECT - cor0.col2 * - col2 + col1 AS col0 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-4224
SELECT + col0 DIV + col2 + + col1 + col2 DIV - col2 FROM tab0 AS cor0
----
131
85
91

skipif mysql # not compatible
query I rowsort label-4224
SELECT + col0 / + col2 + + col1 + col2 / - col2 FROM tab0 AS cor0
----
131
85
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4225
SELECT ALL col0 * col2 + + CAST( NULL AS SIGNED ) + + col0 * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL col0 * col2 + + CAST ( NULL AS INTEGER ) + + col0 * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4226
SELECT ALL - col2 + col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL - col2 + col1 / + col1 AS col0 FROM tab1 AS cor0
----
-53
-56
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 * - col2 col0 FROM tab1
----
3132
3306
5568

query I rowsort
SELECT - ( ( + col2 ) ) - 23 AS col1 FROM tab0
----
-105
-24
-56

query I rowsort
SELECT ALL - 14 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT - - ( + col2 ) + + ( - col2 ) * - col0 AS col0 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-4231
SELECT + + cor0.col1 DIV - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4231
SELECT + + cor0.col1 / - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT 54 * - col2 * col0 AS col1 FROM tab0 AS cor0
----
-1890
-394092
-42768

query I rowsort
SELECT 56 + + col2 AS col2 FROM tab0 cor0
----
138
57
89

query I rowsort
SELECT DISTINCT - 13 AS col1 FROM tab1, tab2, tab1 AS cor0
----
-13

query I rowsort
SELECT - 89 - + col2 AS col1 FROM tab1
----
-143
-146
-185

query I rowsort
SELECT 25 + col2 AS col0 FROM tab0
----
107
26
58

query I rowsort
SELECT DISTINCT - 10 * col1 * col2 + - col1 FROM tab1
----
-12493
-14066
-5710

query I rowsort
SELECT ALL - ( + col2 ) * - col2 * col0 + col1 + + col0 FROM tab1
----
208010
737373
8777

query I rowsort
SELECT DISTINCT col2 * + col1 + ( col2 ) AS col1 FROM tab2
----
1560
684
864

query I rowsort
SELECT + 91 - - col2 AS col2 FROM tab0
----
124
173
92

query I rowsort
SELECT + 69 FROM tab1 cor0
----
69
69
69

query I rowsort
SELECT ALL ( tab0.col0 ) AS col2 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col1 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT + col2 + 52 AS col1 FROM tab1 AS cor0
----
106
109
148

query I rowsort
SELECT ALL - col2 + + col1 AS col2 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT + col1 + ( col0 ) AS col1 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4247
SELECT DISTINCT - - col2 + 42 DIV col2 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4247
SELECT DISTINCT - - col2 + 42 / col2 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 + 3 col2 FROM tab0 AS cor0
----
174
39
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + cor0.col1 col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4250
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) * + col1 + cor0.col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) * + col1 + cor0.col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT cor0.col1 * 51 FROM tab0 AS cor0
----
4386
4641
4947

query I rowsort
SELECT DISTINCT 99 + - col1 AS col0 FROM tab0
----
13
2
8

query I rowsort
SELECT ALL - col1 + - ( col1 ) AS col0 FROM tab2 cor0
----
-118
-34
-62

query I rowsort
SELECT ALL cor0.col2 * - col0 + - 63 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-13031
-6146
-6210

query I rowsort
SELECT + col0 * 26 + + 86 FROM tab0 cor0
----
2400
710
996

query I rowsort
SELECT ALL - col0 + - ( cor0.col0 ) FROM tab2 cor0
----
-14
-156
-158

query I rowsort
SELECT DISTINCT col2 * col1 * col0 + ( - 48 ) AS col0 FROM tab1
----
36432
4164
99792

query I rowsort
SELECT + cor0.col2 * - col0 + cor0.col2 AS col0 FROM tab0 cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT - 88 + + col0 FROM tab2 cor0
----
-10
-81
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( - col0 ) * + 4 + col0 col1 FROM tab1 AS cor0
----
2624
315
4240

query I rowsort
SELECT ALL + + 79 AS col0 FROM tab1 cor0
----
79
79
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4262
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 30 * - col2 * col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 30 * - col2 * col1 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col1 - col0 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT - - col0 * + col1 + col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL - - ( ( col1 ) ) + 73 FROM tab1 AS cor0
----
83
86
99

query I rowsort
SELECT ALL col1 * + 51 FROM tab2 AS cor0
----
1581
3009
867

query I rowsort
SELECT ALL + ( col1 ) * + col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4268
SELECT - cor0.col2 + col1 * col0 DIV ( col1 ) - - col2 AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4268
SELECT - cor0.col2 + col1 * col0 / ( col1 ) - - col2 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - - 38 * + col2 FROM tab2 AS cor0
----
1026
1444
988

query I rowsort
SELECT DISTINCT - 90 + col2 FROM tab1 AS cor0
----
-33
-36
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4271
SELECT ALL ( col1 ) / - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL ( col1 ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4272
SELECT ALL 28 DIV - col1 col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL 28 / - col1 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 70 + 63 - - col2 AS col1 FROM tab1 AS cor0
----
187
190
229

query I rowsort
SELECT + 92 + 8 AS col1 FROM tab2 AS cor0
----
100
100
100

query I rowsort
SELECT DISTINCT + ( 72 ) FROM tab2 cor0
----
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4276
SELECT CAST( col1 AS SIGNED ) * + col1 FROM tab0 AS cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-4276
SELECT CAST ( col1 AS INTEGER ) * + col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4277
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 93 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 93 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 52 * col2 + col1 AS col0 FROM tab2 AS cor0
----
1411
1435
1993

query I rowsort
SELECT DISTINCT + col1 * 99 - col2 * col0 FROM tab2 AS cor0
----
-1319
2880
3813

query I rowsort
SELECT + col0 * 67 AS col0 FROM tab0 AS cor0
----
1608
2345
5963

query I rowsort
SELECT - - ( + 8 ) * + col2 FROM tab2 AS cor0
----
208
216
304

query I rowsort
SELECT ALL - + ( 69 ) * col1 FROM tab1 AS cor0
----
-1794
-690
-897

query I rowsort
SELECT - - 92 * - 7 * + col0 FROM tab2 AS cor0
----
-4508
-50232
-50876

query I rowsort
SELECT DISTINCT - 92 + col2 AS col2 FROM tab0 AS cor0
----
-10
-59
-91

query I rowsort
SELECT ALL 8 * - col2 AS col0 FROM tab2 cor0
----
-208
-216
-304

query I rowsort
SELECT ALL + 96 * 15 FROM tab2 AS cor0
----
1440
1440
1440

query I rowsort
SELECT DISTINCT - + 29 + - col2 * cor0.col0 FROM tab0 AS cor0
----
-64
-7327
-821

query I rowsort
SELECT DISTINCT - + 15 * col2 + col1 FROM tab1 AS cor0
----
-1427
-784
-845

query I rowsort
SELECT ALL - 93 - col2 AS col1 FROM tab2 AS cor0
----
-119
-120
-131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 42 - - col1 col0 FROM tab0 AS cor0
----
128
133
139

query I rowsort
SELECT DISTINCT + col0 + 52 FROM tab2
----
130
131
59

query I rowsort
SELECT + 97 + - col0 * + col2 FROM tab2
----
-1931
-2905
-92

query I rowsort
SELECT - + col1 * + ( col1 ) FROM tab1 cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4294
SELECT ALL cor0.col0 + col0 DIV - col1 col2 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL cor0.col0 + col0 / - col1 col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT col1 * + 96 FROM tab2 AS cor0
----
1632
2976
5664

skipif mysql # not compatible
query I rowsort
SELECT col0 * CAST ( + col0 AS REAL ) FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT col0 - + tab2.col1 AS col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT - col0 * + 93 AS col0 FROM tab1 AS cor0
----
-279
-5952
-7440

query I rowsort
SELECT col0 * - ( 91 ) + + col0 AS col2 FROM tab2
----
-630
-7020
-7110

query I rowsort
SELECT ALL col0 * - 72 FROM tab1
----
-216
-4608
-5760

query I rowsort
SELECT tab1.col2 + 75 * - col2 FROM tab1
----
-3996
-4218
-7104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 22 col2 FROM tab0 AS cor0
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT - ( cor0.col1 ) + + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col1 col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL - 79 FROM tab0, tab1 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 col0 FROM tab2
----
70

query I rowsort
SELECT - 35 FROM tab0, tab2 cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT + 10 * cor1.col2 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 57bcd49bd4927c14a1b23608f687fe5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col2 FROM tab1
----
-19
-19
-19

query I rowsort
SELECT ( ( + col0 ) ) FROM tab1
----
3
64
80

query I rowsort
SELECT - cor1.col1 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT - + col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT col2 + + col0 * - col0 - + ( - col1 * + col2 ) AS col0 FROM tab0 AS cor0
----
-1127
-377
2295

query I rowsort
SELECT + + col0 - col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - col1 * cor0.col2 + col1 + - 55 AS col1 FROM tab1 AS cor0
----
-1290
-1433
-615

onlyif mysql # use DIV operator for integer division
query I rowsort label-4318
SELECT DISTINCT - col1 * + CAST( + col2 AS SIGNED ) + - col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-2839
-7463
-98

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT - col1 * + CAST ( + col2 AS INTEGER ) + - col2 / col2 AS col1 FROM tab0 AS cor0
----
-2839
-7463
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4319
SELECT ALL - col0 DIV ( col0 + + col2 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL - col0 / ( col0 + + col2 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * + 2 + + 69 * col1 AS col0 FROM tab2 AS cor0
----
1249
2193
4123

query I rowsort
SELECT ALL - col0 * - col1 + col0 * col1 FROM tab1 AS cor0
----
1280
156
2080

query I rowsort
SELECT cor0.col1 + 22 * 40 FROM tab2 cor0
----
897
911
939

onlyif mysql # use DIV operator for integer division
query I rowsort label-4323
SELECT ALL cor0.col1 DIV cor0.col2 + + cor0.col1 FROM tab0 AS cor0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL cor0.col1 / cor0.col2 + + cor0.col1 FROM tab0 AS cor0
----
194
88
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4324
SELECT - col2 + + CAST( NULL AS DECIMAL ) / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT - col2 + + CAST ( NULL AS REAL ) / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * col1 + + 50 AS col1 FROM tab2 AS cor0
----
1584
696
887

query I rowsort
SELECT + - cor0.col1 + 35 AS col2 FROM tab1 AS cor0
----
22
25
9

query I rowsort
SELECT + - col1 + - 23 AS col1 FROM tab0 AS cor0
----
-109
-114
-120

query I rowsort
SELECT DISTINCT ( col1 + + 99 * tab1.col2 ) AS col0 FROM tab1
----
5372
5653
9517

query I rowsort
SELECT 82 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 * cor0.col2 + - col1 + - col1 col2 FROM tab2 AS cor0
----
1988
2125
3044

query I rowsort
SELECT DISTINCT - col2 + col2 * 86 FROM tab1 AS cor0
----
4590
4845
8160

query I rowsort
SELECT col1 * col1 + - col0 AS col0 FROM tab2
----
210
3403
954

query I rowsort
SELECT ALL + + col1 + ( + col1 ) FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL + col1 * 52 + 92 AS col1 FROM tab0 AS cor0
----
4564
4824
5136

query I rowsort
SELECT - + col1 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL - + col1 - + 37 FROM tab1 AS cor0
----
-47
-50
-63

query I rowsort
SELECT DISTINCT + tab1.col2 * + tab1.col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL - - col1 * - col1 * + col1 + - col0 * 51 FROM tab2 AS cor0
----
-209357
-30148
-8942

query I rowsort
SELECT + - col1 * 87 AS col2 FROM tab0 AS cor0
----
-7482
-7917
-8439

query I rowsort
SELECT DISTINCT + col1 * - ( + col1 * cor0.col2 ) + col1 AS col2 FROM tab0 AS cor0
----
-243982
-678951
-9312

query I rowsort
SELECT ALL + 20 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

query I rowsort
SELECT ( + col2 * 94 ) + 99 AS col1 FROM tab0
----
193
3201
7807

query I rowsort
SELECT DISTINCT - col1 * col2 * - col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT - col2 * + col2 * col0 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT col2 * col2 * col0 AS col0 FROM tab1
----
207936
737280
8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-4346
SELECT col2 DIV tab2.col1 + + col1 FROM tab2
----
19
31
59

skipif mysql # not compatible
query I rowsort label-4346
SELECT col2 / tab2.col1 + + col1 FROM tab2
----
19
31
59

query I rowsort
SELECT ALL col0 * - tab0.col0 * col1 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT col0 * - col1 + - col1 * col2 * - tab2.col0 AS col1 FROM tab2
----
115050
49691
5642

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT NULL BETWEEN ( col1 * col0 + col0 ) AND ( col1 )
----

query I rowsort
SELECT tab0.col0 + - col2 + - col1 FROM tab0
----
-63
-84
-95

query I rowsort
SELECT DISTINCT - col1 + col2 * col1 + col1 * + col0 * col0 AS col0 FROM tab1 WHERE NOT - col2 NOT IN ( col0 * col0 * col2 )
----

query I rowsort
SELECT ALL + col2 - + col1 AS col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - col0 + - col1 FROM tab0 WHERE NOT tab0.col1 * - col1 > NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NULL >= col2
----

query I rowsort
SELECT ALL tab2.col1 * + col0 AS col2 FROM tab2
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * - col2 + tab0.col1 col1 FROM tab0
----
-3298
-664027
-68026

query I rowsort
SELECT - col2 * - col1 FROM tab2 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT tab2.col0 * - col2 + + col2 AS col1 FROM tab2
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-4359
SELECT DISTINCT + col0 * + col2 * + col0 + + col0 DIV col1 - + col0 * - tab0.col2 AS col1 FROM tab0
----
1260
19800
656820

skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT + col0 * + col2 * + col0 + + col0 / col1 - + col0 * - tab0.col2 AS col1 FROM tab0
----
1260
19800
656820

query I rowsort
SELECT DISTINCT + tab0.col0 AS col1 FROM tab0 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT - col0 * + col2 + tab2.col2 * col1 + + col2 * + tab2.col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL - col1 * - col2 * + tab1.col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT col1 + cor0.col1 + + col1 AS col1 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT + col2 * - col0 + + 45 + - col2 FROM tab0 AS cor0
----
-7335
-780
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 + - col0 col0 FROM tab0 cor0
----
2040
3360
8010

query I rowsort
SELECT ALL - col1 * - col2 + + col0 * - 41 AS col2 FROM tab1 AS cor0
----
-2032
-2054
1281

query I rowsort
SELECT col1 * col2 + + col2 * + col0 AS col1 FROM tab0
----
132
14760
3630

query I rowsort
SELECT col0 + 52 + + col2 AS col2 FROM tab0
----
109
223
88

query I rowsort
SELECT + col1 * col2 * - tab0.col0 AS col1 FROM tab0
----
-3395
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4370
SELECT DISTINCT + cor1.col1 * - CAST( + 84 AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-1092
-2184
-840

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT + cor1.col1 * - CAST ( + 84 AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-1092
-2184
-840

query I rowsort
SELECT DISTINCT - col2 + 29 FROM tab1
----
-25
-28
-67

query I rowsort
SELECT ALL tab1.col2 + 90 AS col1 FROM tab1
----
144
147
186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 col0 FROM tab2
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 col1 FROM tab1
----
24
24
24

query I rowsort
SELECT - + col2 * cor0.col2 + + col2 + 30 AS col0 FROM tab1 cor0
----
-2832
-3162
-9090

query I rowsort
SELECT DISTINCT + tab2.col1 + + tab2.col1 * + tab2.col0 + + col1 FROM tab2
----
1377
279
4720

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( 2 AS REAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT ALL - 47 + col0 + cor0.col1 FROM tab1 AS cor0
----
-18
27
46

query I rowsort
SELECT + - col2 * + cor0.col2 + - 50 AS col0 FROM tab0 cor0
----
-1139
-51
-6774

query I rowsort
SELECT DISTINCT - col0 * col0 + col2 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-4103
-6384
42

query I rowsort
SELECT DISTINCT 80 * col1 AS col2 FROM tab2 AS cor0
----
1360
2480
4720

query I rowsort
SELECT - + col0 * - col1 + 48 * ( - col1 ) + 60 * col1 * col0 FROM tab1 AS cor0
----
3510
38560
62816

query I rowsort
SELECT DISTINCT + 52 + col0 * - ( - 45 ) AS col2 FROM tab1 AS cor0
----
187
2932
3652

query I rowsort
SELECT - - 4 + col1 AS col1 FROM tab1 AS cor0
----
14
17
30

query I rowsort
SELECT DISTINCT + col1 + + col1 + col0 AS col0 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT ALL + cor0.col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 3 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4388
SELECT col0 + CAST( 54 AS SIGNED ) FROM tab0 AS cor0
----
143
78
89

skipif mysql # not compatible
query I rowsort label-4388
SELECT col0 + CAST ( 54 AS INTEGER ) FROM tab0 AS cor0
----
143
78
89

query I rowsort
SELECT ALL - col2 * - 43 + + col1 * - col2 + col1 AS col2 FROM tab0 AS cor0
----
-1333
-3845
43

query I rowsort
SELECT + - col1 + 58 * col0 FROM tab1 AS cor0
----
148
3702
4627

query I rowsort
SELECT ALL + - col2 + + 55 * + col0 FROM tab0 AS cor0
----
1287
1924
4813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4392
SELECT - CAST( col1 AS SIGNED ) * + col2 - + 53 FROM tab2 AS cor0
----
-1587
-699
-890

skipif mysql # not compatible
query I rowsort label-4392
SELECT - CAST ( col1 AS INTEGER ) * + col2 - + 53 FROM tab2 AS cor0
----
-1587
-699
-890

query I rowsort
SELECT ALL ( + col2 ) + tab0.col2 FROM tab0
----
164
2
66

query I rowsort
SELECT + 5 + - 29 * cor0.col1 FROM tab2 cor0
----
-1706
-488
-894

query I rowsort
SELECT ALL - - ( - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - cor0.col1 - 94 AS col2 FROM tab0 AS cor0
----
-180
-185
-191

query I rowsort
SELECT DISTINCT + 22 AS col2 FROM tab1, tab2 AS cor0
----
22

query I rowsort
SELECT DISTINCT + 20 - - col0 * - col0 FROM tab1 AS cor0
----
-4076
-6380
11

query I rowsort
SELECT DISTINCT - - col2 + - col0 * + col0 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT ( - col0 ) * - col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 * ( col0 ) col1 FROM tab0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-4402
SELECT ALL - tab2.col2 DIV col1 AS col0 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL - tab2.col2 / col1 AS col0 FROM tab2
----
-2
0
0

query I rowsort
SELECT + cor0.col1 * + col1 * col0 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT + - 44 * - cor0.col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 9cb418b20be0d8db3c577aa2fd328a62

query I rowsort
SELECT + + cor0.col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT + col0 * - 47 FROM tab2 AS cor0
----
-329
-3666
-3713

query I rowsort
SELECT + col0 + ( col1 ) * - col1 FROM tab1 AS cor0
----
-36
-673
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4408
SELECT ALL - - col2 DIV + cor0.col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-4408
SELECT ALL - - col2 / + cor0.col0 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT ALL col0 * + 37 + col1 * + col2 FROM tab2 AS cor0
----
1096
3569
4420

query I rowsort
SELECT DISTINCT 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-4411
SELECT CAST( NULL AS SIGNED ) + + tab2.col1 + col0 * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4411
SELECT CAST ( NULL AS INTEGER ) + + tab2.col1 + col0 * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 20 * + col0 ) FROM tab2
----
140
1560
1580

query I rowsort
SELECT + 71 * + col2 FROM tab1
----
3834
4047
6816

query I rowsort
SELECT ALL + 74 FROM tab0, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # use DIV operator for integer division
query I rowsort label-4415
SELECT ALL + ( + col2 ) DIV - col0 + ( + 88 ) AS col0 FROM tab0 AS cor0
----
87
88
88

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL + ( + col2 ) / - col0 + ( + 88 ) AS col0 FROM tab0 AS cor0
----
87
88
88

query I rowsort
SELECT DISTINCT + + cor0.col1 + - 19 * + col1 - + col1 AS col1 FROM tab0 AS cor0
----
-1634
-1729
-1843

query I rowsort
SELECT ( 32 ) * col0 + - col0 FROM tab0 AS cor0
----
1085
2759
744

query I rowsort
SELECT DISTINCT + + 18 + col0 FROM tab1 AS cor0
----
21
82
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4419
SELECT DISTINCT col0 + + 17 * cor0.col1 DIV + ( cor0.col1 ) FROM tab1 AS cor0
----
20
81
97

skipif mysql # not compatible
query I rowsort label-4419
SELECT DISTINCT col0 + + 17 * cor0.col1 / + ( cor0.col1 ) FROM tab1 AS cor0
----
20
81
97

query I rowsort
SELECT ALL 16 * + 40 + col2 AS col0 FROM tab1 AS cor0
----
694
697
736

query I rowsort
SELECT ALL ( + cor0.col1 ) + col2 - + col2 * 5 FROM tab1 cor0
----
-190
-218
-371

query I rowsort
SELECT + - col1 + 75 * cor0.col0 AS col2 FROM tab1 AS cor0
----
199
4790
5987

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4423
SELECT ALL + CAST( NULL AS SIGNED ) * ( cor0.col1 ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL + CAST ( NULL AS INTEGER ) * ( cor0.col1 ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + col1 * + cor0.col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT + + col2 - col2 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - - 8 * + 80 AS col0 FROM tab1 AS cor0
----
640

query I rowsort
SELECT ALL + 57 * + col1 * col0 FROM tab0 AS cor0
----
117648
193515
461643

query I rowsort
SELECT + + col1 * - cor0.col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + col1 * col2 * - col1 AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT 13 * col0 * - col1 FROM tab1 AS cor0
----
-1014
-13520
-8320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4431
SELECT ALL CAST( 88 AS SIGNED ) + col0 FROM tab0
----
112
123
177

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL CAST ( 88 AS INTEGER ) + col0 FROM tab0
----
112
123
177

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4432
SELECT ALL CAST( 37 AS SIGNED ) + col1 AS col1 FROM tab2
----
54
68
96

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL CAST ( 37 AS INTEGER ) + col1 AS col1 FROM tab2
----
54
68
96

query I rowsort
SELECT 14 * + col2 + col2 AS col1 FROM tab2 AS cor0
----
390
405
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4434
SELECT - col0 * - col0 + col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
49
6083
6237

skipif mysql # not compatible
query I rowsort label-4434
SELECT - col0 * - col0 + col0 / - col1 AS col1 FROM tab2 AS cor0
----
49
6083
6237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + col0 * - 5 col1 FROM tab0 AS cor0
----
-144
-210
-534

query I rowsort
SELECT + + 46 FROM tab0 cor0
----
46
46
46

query I rowsort
SELECT - col2 * col2 + col1 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT + 54 * cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3456
4320

query I rowsort
SELECT + col1 + - col0 * 33 FROM tab0 AS cor0
----
-1058
-2846
-706

query I rowsort
SELECT 65 * col1 AS col2 FROM tab0
----
5590
5915
6305

query I rowsort
SELECT DISTINCT - cor0.col0 * - 96 FROM tab1, tab0 AS cor0
----
2304
3360
8544

query I rowsort
SELECT 70 + ( cor0.col2 ) * + col2 FROM tab2 AS cor0
----
1514
746
799

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4443
SELECT CAST( + col1 AS SIGNED ) * + col0 - col0 * + col2 * - cor0.col1 FROM tab2 AS cor0
----
124254
52377
6076

skipif mysql # not compatible
query I rowsort label-4443
SELECT CAST ( + col1 AS INTEGER ) * + col0 - col0 * + col2 * - cor0.col1 FROM tab2 AS cor0
----
124254
52377
6076

query I rowsort
SELECT + ( cor0.col2 ) * col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - + cor0.col1 FROM tab2, tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT 79 * - col2 AS col1 FROM tab0 cor0
----
-2607
-6478
-79

query I rowsort
SELECT 18 + - col0 - - col2 AS col0 FROM tab2 cor0
----
-23
-34
38

query I rowsort
SELECT + col2 * + 36 + + col0 FROM tab1 AS cor0
----
1947
2116
3536

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 cor1, tab1, tab1 AS cor2
----
3645 values hashing to bce5cbf48f4a41569415c085ae91ae7c

query I rowsort
SELECT DISTINCT - - col1 + 55 AS col1 FROM tab1 cor0
----
65
68
81

query I rowsort
SELECT DISTINCT + col0 + 72 * col1 * + col2 FROM tab0 AS cor0
----
204360
537353
7019

query I rowsort
SELECT + col0 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT + ( col0 ) * cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + ( cor0.col2 ) + cor0.col2 * - col1 FROM tab1 AS cor0
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 64 col1 FROM tab2 cor0
----
-64
-64
-64

query I rowsort
SELECT ALL - col1 - - col0 AS col2 FROM tab0
----
-2
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4457
SELECT ALL - 68 - + tab0.col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL - 68 - + tab0.col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * col2 AS col0 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT col1 + - col0 * + col1 FROM tab2 cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 + col2 col2 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4461
SELECT col1 DIV - col1 + col2 * col0 AS col0 FROM tab1 AS cor0
----
161
3647
7679

skipif mysql # not compatible
query I rowsort label-4461
SELECT col1 / - col1 + col2 * col0 AS col0 FROM tab1 AS cor0
----
161
3647
7679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col1 + - col0 col2 FROM tab1 cor0
----
-118
-147
20

query I rowsort
SELECT ALL - col2 * 28 + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-10217
-1253
-1500

query I rowsort
SELECT - col1 + + 8 * col2 FROM tab1 AS cor0
----
406
446
755

onlyif mysql # use DIV operator for integer division
query I rowsort label-4465
SELECT - col1 * 40 + - col0 * + cor0.col1 + 79 DIV ( - cor0.col2 ) FROM tab0 AS cor0
----
-11739
-5506
-7354

skipif mysql # not compatible
query I rowsort label-4465
SELECT - col1 * 40 + - col0 * + cor0.col1 + 79 / ( - cor0.col2 ) FROM tab0 AS cor0
----
-11739
-5506
-7354

query I rowsort
SELECT - col2 + - col2 + + cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 * + CAST ( cor0.col0 AS REAL ) + - col2 FROM tab1 cor0
----
-216
-3705
-7776

query I rowsort
SELECT - col2 * + ( + 83 ) * + cor0.col1 + + col0 FROM tab0 AS cor0
----
-235530
-619257
-8016

query I rowsort
SELECT + 79 * 1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT ALL ( + 52 ) AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT ALL cor0.col0 * 88 + + 64 FROM tab1 cor0
----
328
5696
7104

query I rowsort
SELECT DISTINCT + col0 - + 11 * 83 AS col2 FROM tab1 AS cor0
----
-833
-849
-910

query I rowsort
SELECT ALL + - col0 - col2 FROM tab1 cor0
----
-121
-176
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4474
SELECT DISTINCT + - col2 * CAST( - 58 * - cor0.col1 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-37547
-48553
-89050

skipif mysql # not compatible
query I rowsort label-4474
SELECT DISTINCT + - col2 * CAST ( - 58 * - cor0.col1 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-37547
-48553
-89050

onlyif mysql # use DIV operator for integer division
query I rowsort label-4475
SELECT ALL - col1 + col2 DIV 66 - cor0.col0 col1 FROM tab0 AS cor0
----
-110
-132
-179

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL - col1 + col2 / 66 - cor0.col0 col1 FROM tab0 AS cor0
----
-110
-132
-179

query I rowsort
SELECT - col0 * + 56 + + col0 FROM tab2 AS cor0
----
-385
-4290
-4345

onlyif mysql # use DIV operator for integer division
query I rowsort label-4477
SELECT ALL col0 DIV - col0 col0 FROM tab1 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL col0 / - col0 col0 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4478
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) + col2 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) + col2 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col0 * col2 - col2 * - col0 FROM tab2 AS cor0
----
378
4056
6004

query I rowsort
SELECT ALL - col0 * + col1 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + col1 - col1 * cor0.col1 * + col2 AS col2 FROM tab0 AS cor0
----
-243982
-678951
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-4482
SELECT - col2 * + ( - ( - col2 ) ) - col1 DIV + 37 FROM tab2
----
-1444
-677
-729

skipif mysql # not compatible
query I rowsort label-4482
SELECT - col2 * + ( - ( - col2 ) ) - col1 / + 37 FROM tab2
----
-1444
-677
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-4483
SELECT ALL + 53 + col2 DIV col0 col2 FROM tab0 AS cor0
----
53
53
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4483
SELECT ALL + 53 + col2 / col0 col2 FROM tab0 AS cor0
----
53
53
54

query I rowsort
SELECT DISTINCT + + 71 * - ( col1 * col0 ) + - cor0.col1 FROM tab0 AS cor0
----
-146630
-241142
-575120

query I rowsort
SELECT col0 * + col1 + + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + + col1 + - 22 AS col1 FROM tab0 AS cor0
----
64
69
75

query I rowsort
SELECT + + col2 - + ( col2 ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * 25 * 33 AS col1 FROM tab0
----
70950
75075
80025

query I rowsort
SELECT col2 * - tab2.col1 AS col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT ALL + col2 + - tab0.col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 + col0 * 52 FROM tab0
----
1281
1821
4710

query I rowsort
SELECT + - col0 + col0 * - ( - cor0.col0 ) FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT ALL + ( + 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-4494
SELECT - 72 * - col0 / CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4494
SELECT - 72 * - col0 / CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * col1 * - 1 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + col0 + - col1 * - cor0.col1 AS col0 FROM tab2 cor0
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-4497
SELECT DISTINCT 23 DIV - col1 AS col1 FROM tab1
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT 23 / - col1 AS col1 FROM tab1
----
-1
-2
0

query I rowsort
SELECT tab0.col0 * 13 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 3173f4c955714cd55e41fb27274aa6bb

query I rowsort
SELECT DISTINCT + - 78 AS col1 FROM tab0 AS cor0
----
-78

query I rowsort
SELECT DISTINCT cor0.col1 + + col2 * - cor0.col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL - + col1 + col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT 86 + + col0 * + col0 * 95 + + cor0.col2 * - col2 FROM tab1 AS cor0
----
-1975
385957
598870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 + cor0.col2 col0 FROM tab0 cor0
----
102
151
70

query I rowsort
SELECT DISTINCT + col1 * col2 * col0 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - 38 + col0 * col1 FROM tab1 cor0
----
1002
40
602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 col2 FROM tab2 AS cor0
----
31
31
31

query I rowsort
SELECT + 1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT 80 AS col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

query I rowsort
SELECT DISTINCT - tab0.col0 * tab0.col1 AS col1 FROM tab0, tab1, tab1 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col0 * + col2 + tab2.col1 + col2 AS col1 FROM tab2
----
-131
-1943
-2947

query I rowsort
SELECT DISTINCT + col1 + + col1 + + col2 * col1 FROM tab0
----
291
3010
7644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + tab1.col2 col1 FROM tab1
----
108
114
192

query I rowsort
SELECT - tab1.col0 * ( 47 ) * - col0 FROM tab1
----
192512
300800
423

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + - col0 * + col0 col0 FROM tab1
----
-448
1280
153

query I rowsort
SELECT DISTINCT - col2 * ( col2 + 16 ) * col1 FROM tab1
----
-139776
-41610
-98280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 46 col2 FROM tab1
----
138
2944
3680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4517
SELECT - 10 * 48 + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4517
SELECT - 10 * 48 + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 47 AS col0 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT ALL - - 99 * col2 AS col1 FROM tab2 AS cor0
----
2574
2673
3762

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 60 ) col0 FROM tab2 AS cor0
----
-60

query I rowsort
SELECT - - col1 + col1 * + col1 AS col1 FROM tab1 cor0
----
110
182
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-4522
SELECT - tab2.col0 * + col0 DIV col0 - + col2 FROM tab2
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-4522
SELECT - tab2.col0 * + col0 / col0 - + col2 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - 89 * + 63 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-5607

query I rowsort
SELECT + + tab2.col0 AS col0 FROM tab2, tab2 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT DISTINCT - col2 * - col1 * ( col2 ) + col1 AS col1 FROM tab2 AS cor0
----
22630
24565
39943

query I rowsort
SELECT DISTINCT + - col1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4527
SELECT ALL col0 DIV col1 + col1 AS col1 FROM tab2 AS cor0
----
21
31
60

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL col0 / col1 + col1 AS col1 FROM tab2 AS cor0
----
21
31
60

query I rowsort
SELECT ALL ( - col2 ) * + 55 * col2 + col0 AS col1 FROM tab1
----
-160377
-178631
-506800

query I rowsort
SELECT - col0 * ( col1 ) + col0 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT ALL 33 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT 52 + + 3 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL - col2 * col2 + + 13 FROM tab2 AS cor0
----
-1431
-663
-716

query I rowsort
SELECT + col2 + + col0 * - ( cor0.col2 ) FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT col0 * + ( + ( + cor0.col1 ) ) FROM tab1 AS cor0
----
1040
640
78

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 2270901c73a658a63f841c68db8155ba

query I rowsort
SELECT DISTINCT + + col2 + - 74 AS col0 FROM tab1 cor0
----
-17
-20
22

query I rowsort
SELECT ALL + - col0 * 33 FROM tab1 AS cor0
----
-2112
-2640
-99

query I rowsort
SELECT - - col2 * col2 + ( + col1 + + col1 * + ( col1 ) ) FROM tab0 cor0
----
15096
8571
9507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 86 col0 FROM tab0
----
-7396
-7826
-8342

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4540
SELECT ALL - CAST( 53 AS SIGNED ) col2 FROM tab0, tab2 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL - CAST ( 53 AS INTEGER ) col2 FROM tab0, tab2 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT + - col2 + ( col0 ) FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + + col2 + - col2 + 39 FROM tab1 AS cor0
----
39
39
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4543
SELECT col0 + CAST( 31 AS SIGNED ) FROM tab1 AS cor0
----
111
34
95

skipif mysql # not compatible
query I rowsort label-4543
SELECT col0 + CAST ( 31 AS INTEGER ) FROM tab1 AS cor0
----
111
34
95

query I rowsort
SELECT ALL - col1 + col2 + col1 * col2 FROM tab1 AS cor0
----
1331
1432
617

query I rowsort
SELECT DISTINCT - + col2 * col1 - - col0 FROM tab2 AS cor0
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-4546
SELECT + col1 DIV col2 - - col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4546
SELECT + col1 / col2 - - col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + - col0 + + col2 + + cor0.col1 FROM tab1 cor0
----
29
3
77

query I rowsort
SELECT - 57 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-83
-84
-95

query I rowsort
SELECT - + 7 * - col1 FROM tab2 AS cor0
----
119
217
413

query I rowsort
SELECT DISTINCT + col1 * + col0 + - col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT + 87 FROM tab2 cor0
----
87
87
87

query I rowsort
SELECT - 32 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 54c3a9a1fd8612641b43985c0c2f59cd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + col0 * 91 col0 FROM tab2 AS cor0
----
644
7176
7268

query I rowsort
SELECT ALL - 95 + - col2 * + col0 FROM tab0
----
-130
-7393
-887

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4555
SELECT + col1 + CAST( NULL AS SIGNED ) * + col0 / - col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4555
SELECT + col1 + CAST ( NULL AS INTEGER ) * + col0 / - col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * col1 - - col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT col0 + + 96 AS col2 FROM tab2 AS cor0
----
103
174
175

query I rowsort
SELECT ALL 89 * col1 * - col2 FROM tab2
----
-136526
-57494
-74493

query I rowsort
SELECT + col0 * + cor0.col0 - cor0.col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT ALL + col1 + + col0 * + col0 AS col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT col2 * + col0 * + ( col2 ) AS col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT ( col0 ) - - col0 * - 14 FROM tab2
----
-1014
-1027
-91

query I rowsort
SELECT DISTINCT ( - col1 ) - - col0 AS col1 FROM tab0
----
-2
-62

query I rowsort
SELECT col2 * - ( - col1 * + tab1.col2 ) AS col1 FROM tab1
----
119808
32490
75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-4565
SELECT col1 + col0 DIV 80 - col0 FROM tab2
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-4565
SELECT col1 + col0 / 80 - col0 FROM tab2
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4566
SELECT - col0 * + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4566
SELECT - col0 * + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + tab1.col1 * - ( 92 + col2 ) col0 FROM tab1
----
-1433
-2348
-3742

query I rowsort
SELECT DISTINCT + 99 * col0 * + 29 + col0 * + col2 * col2 FROM tab1
----
17361
391680
966960

query I rowsort
SELECT - 60 * col2 FROM tab2
----
-1560
-1620
-2280

query I rowsort
SELECT + ( col2 ) * + tab2.col2 AS col0 FROM tab2
----
1444
676
729

query I rowsort
SELECT - col0 - - col2 AS col0 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT - 10 + - cor0.col0 * col0 FROM tab2 cor0
----
-59
-6094
-6251

query I rowsort
SELECT + col2 * ( col0 ) - col2 * - col2 AS col2 FROM tab2
----
2704
4446
918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4574
SELECT ALL + + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT col0 * 99 AS col1 FROM tab1 cor0
----
297
6336
7920

query I rowsort
SELECT + col0 * + col2 * + col2 AS col0 FROM tab1 AS cor0
----
207936
737280
8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-4577
SELECT + col2 DIV ( - col0 ) AS col2 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-4577
SELECT + col2 / ( - col0 ) AS col2 FROM tab1 AS cor0
----
-1
-18
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4578
SELECT + + col2 DIV col2 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4578
SELECT + + col2 / col2 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) + + col1 col1 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4580
SELECT ALL - + col0 DIV col2 + col2 - + col1 AS col2 FROM tab1 cor0
----
28
46
83

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL - + col0 / col2 + col2 - + col1 AS col2 FROM tab1 cor0
----
28
46
83

query I rowsort
SELECT ALL - col1 + - 37 AS col0 FROM tab2 AS cor0
----
-54
-68
-96

query I rowsort
SELECT - ( - 48 ) FROM tab1 AS cor0
----
48
48
48

query I rowsort
SELECT ALL + cor0.col1 * + cor0.col0 + + col1 * - col1 FROM tab0 AS cor0
----
-182
-5332
-6014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 53 col0 FROM tab2 AS cor0
----
-6
22
36

query I rowsort
SELECT ( 34 ) AS col0 FROM tab1 AS cor0
----
34
34
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + 3 col2 FROM tab2 AS cor0
----
-23
-24
-35

query I rowsort
SELECT DISTINCT - - ( 78 ) * - col2 FROM tab0 AS cor0
----
-2574
-6396
-78

query I rowsort
SELECT ALL + - cor0.col2 * 0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + 41 col0 FROM tab2 AS cor0
----
67
68
79

query I rowsort
SELECT ALL + cor0.col1 + - cor0.col1 * 26 * 32 FROM tab2 cor0
----
-14127
-25761
-49029

query I rowsort
SELECT ALL + 89 + - col0 AS col2 FROM tab0 AS cor0
----
0
54
65

query I rowsort
SELECT DISTINCT col0 * - col0 * cor0.col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

query I rowsort
SELECT ALL + cor0.col1 + col1 AS col2 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT + + col1 + - cor0.col2 + - col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL - col2 * + col1 * + cor0.col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 * col0 + - 57 col1 FROM tab1 AS cor0
----
-240
-3961
-4937

onlyif mysql # use DIV operator for integer division
query I rowsort label-4597
SELECT DISTINCT + ( + col1 ) DIV col1 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4597
SELECT DISTINCT + ( + col1 ) / col1 AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4598
SELECT ALL + + col1 DIV cor0.col0 + + CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-4598
SELECT ALL + + col1 / cor0.col0 + + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3
36
83

query I rowsort
SELECT DISTINCT - 55 * cor0.col0 * col0 + col0 * + col0 AS col2 FROM tab0 AS cor0
----
-31104
-427734
-66150

query I rowsort
SELECT DISTINCT + 94 - col2 FROM tab0 AS cor0
----
12
61
93

query I rowsort
SELECT - + 45 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1170
-450
-585

query I rowsort
SELECT - - col2 * - 89 + col1 * cor0.col0 FROM tab0 AS cor0
----
-873
3306
801

query I rowsort
SELECT - cor0.col0 + - 2 AS col0 FROM tab0 cor0
----
-26
-37
-91

query I rowsort
SELECT cor0.col0 * + cor0.col0 + 58 AS col1 FROM tab2 AS cor0
----
107
6142
6299

onlyif mysql # use DIV operator for integer division
query I rowsort label-4605
SELECT - col0 DIV - col2 + cor0.col1 * - col2 + 88 * - 68 * + col1 AS col0 FROM tab0 cor0
----
-517462
-552005
-580510

skipif mysql # not compatible
query I rowsort label-4605
SELECT - col0 / - col2 + cor0.col1 * - col2 + 88 * - 68 * + col1 AS col0 FROM tab0 cor0
----
-517462
-552005
-580510

query I rowsort
SELECT ALL - col0 * 53 FROM tab2 AS cor0
----
-371
-4134
-4187

query I rowsort
SELECT ALL + col0 + col2 * + 38 * col0 - - col0 * + col0 FROM tab0 AS cor0
----
2590
285334
30696

query I rowsort
SELECT DISTINCT + col0 + ( + col0 * + col1 ) AS col0 FROM tab0 AS cor0
----
2088
3430
8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 * - col1 col0 FROM tab2
----
-1156
-2108
-4012

query I rowsort
SELECT DISTINCT col2 * - 95 AS col1 FROM tab0 AS cor0
----
-3135
-7790
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4611
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( - col1 ) + col0 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL - col0 + cor0.col0 * + col1 AS col0 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4614
SELECT DISTINCT + CAST( NULL AS SIGNED ) * cor0.col0 / + col2 + + cor0.col2 * col2 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * cor0.col0 / + col2 + + cor0.col2 * col2 AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + 34 * - col2 + col2 AS col0 FROM tab2 cor0
----
-1254
-858
-891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to c04c36412775e8805d6b3befa2f52917

query I rowsort
SELECT - 23 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT DISTINCT col1 * ( col2 ) + + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL + col1 + - 98 AS col2 FROM tab0 AS cor0
----
-1
-12
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4621
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-4621
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT + col1 - col0 * - col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + col0 - + ( col0 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4624
SELECT + - CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4624
SELECT + - CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 54 * - ( + col0 ) FROM tab2 AS cor0
----
-378
-4212
-4266

query I rowsort
SELECT + - col1 + ( col0 ) * col1 + - 77 * - col0 FROM tab1 AS cor0
----
283
5558
7187

onlyif mysql # use DIV operator for integer division
query I rowsort label-4627
SELECT + + col0 DIV col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4627
SELECT + + col0 / col0 FROM tab2 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4628
SELECT + col2 + col2 * col2 DIV col1 FROM tab2 AS cor0
----
122
37
50

skipif mysql # not compatible
query I rowsort label-4628
SELECT + col2 + col2 * col2 / col1 FROM tab2 AS cor0
----
122
37
50

query I rowsort
SELECT col1 + - col2 + + cor0.col1 * 18 FROM tab1 AS cor0
----
133
151
440

query I rowsort
SELECT + col1 * - ( - col2 ) * - tab1.col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT col0 * col2 + - 57 FROM tab2
----
132
1971
2945

onlyif mysql # use DIV operator for integer division
query I rowsort label-4632
SELECT - tab2.col1 DIV + 36 + col2 FROM tab2
----
25
27
38

skipif mysql # not compatible
query I rowsort label-4632
SELECT - tab2.col1 / + 36 + col2 FROM tab2
----
25
27
38

query I rowsort
SELECT col0 * 94 AS col1 FROM tab1
----
282
6016
7520

query I rowsort
SELECT col1 * cor0.col2 + - ( - col0 ) AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL - 14 + + col2 AS col0 FROM tab0 AS cor0
----
-13
19
68

query I rowsort
SELECT DISTINCT col2 * col2 + - 51 * col1 FROM tab0 AS cor0
----
-3297
-4946
2083

query I rowsort
SELECT ALL + - col0 - - col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + - 68 * col2 AS col0 FROM tab0 AS cor0
----
-2244
-5576
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * col1 col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - - 85 + col2 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
113
132
168

query I rowsort
SELECT DISTINCT - - 35 * col2 FROM tab0 cor0
----
1155
2870
35

query I rowsort
SELECT - col2 + + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT ALL - col1 * - col2 + col2 * - col1 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4644
SELECT DISTINCT - - cor0.col0 + CAST( NULL AS SIGNED ) * 1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4644
SELECT DISTINCT - - cor0.col0 + CAST ( NULL AS INTEGER ) * 1 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 * - 86 FROM tab1 AS cor0
----
-1118
-2236
-860

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT col2 + 90 + col1 FROM tab0
----
188
209
263

query I rowsort
SELECT DISTINCT + 39 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
39

query I rowsort
SELECT + + cor0.col2 + cor0.col0 - + col1 * - col0 FROM tab1 cor0
----
1216
135
761

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4650
SELECT col1 * - CAST( - col2 AS SIGNED ) + - cor0.col0 + 87 FROM tab0 AS cor0
----
149
2901
7460

skipif mysql # not compatible
query I rowsort label-4650
SELECT col1 * - CAST ( - col2 AS INTEGER ) + - cor0.col0 + 87 FROM tab0 AS cor0
----
149
2901
7460

onlyif mysql # use DIV operator for integer division
query I rowsort label-4651
SELECT - - cor0.col2 DIV col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4651
SELECT - - cor0.col2 / col1 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT cor0.col2 + col2 AS col0 FROM tab2 cor0
----
52
54
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4653
SELECT + col0 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT + col0 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4654
SELECT DISTINCT 59 DIV - col0 FROM tab1
----
-19
0

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT 59 / - col0 FROM tab1
----
-19
0

query I rowsort
SELECT DISTINCT - col1 - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT - - col1 * + cor0.col1 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
205379
29791
4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-4657
SELECT - + ( - col1 ) DIV - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-4657
SELECT - + ( - col1 ) / - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT col2 - + tab2.col0 AS col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT + col1 + - col0 * col0 AS col2 FROM tab0
----
-1128
-490
-7830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + tab2.col1 * + col1 col2 FROM tab2
----
306
3540
992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 * 5 col0 FROM tab2 AS cor0
----
-1445
-17405
-4805

query I rowsort
SELECT col2 + col1 + - col0 AS col0 FROM tab1
----
29
3
77

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) < col0 - + col1
----

query I rowsort
SELECT + col0 + + col2 * - col1 * - col1 FROM tab2
----
11061
25954
90584

onlyif mysql # use DIV operator for integer division
query I rowsort label-4665
SELECT DISTINCT - col0 - col2 DIV col1 AS col2 FROM tab1
----
-5
-69
-87

skipif mysql # not compatible
query I rowsort label-4665
SELECT DISTINCT - col0 - col2 / col1 AS col2 FROM tab1
----
-5
-69
-87

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN - col2 / tab2.col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4668
SELECT DISTINCT - col2 * + col2 * col2 + + col1 * - col0 + + col0 DIV col1 AS col2 FROM tab2
----
-19900
-22177
-56211

skipif mysql # not compatible
query I rowsort label-4668
SELECT DISTINCT - col2 * + col2 * col2 + + col1 * - col0 + + col0 / col1 AS col2 FROM tab2
----
-19900
-22177
-56211

query I rowsort
SELECT - col2 * - col2 + col0 + - col1 FROM tab0
----
-61
1027
6722

query I rowsort
SELECT DISTINCT - col1 * col0 * col1 + col1 FROM tab1 WHERE col0 > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( col0 + - cor0.col0 / col1 + - col0 )
----

query I rowsort
SELECT DISTINCT cor0.col1 * col1 + - col0 AS col0 FROM tab0 AS cor0
----
7372
8192
9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-4673
SELECT ALL col2 * - col0 + + cor0.col2 DIV col0 FROM tab2 AS cor0
----
-186
-2028
-3002

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL col2 * - col0 + + cor0.col2 / col0 FROM tab2 AS cor0
----
-186
-2028
-3002

query I rowsort
SELECT + col1 * - col0 * tab1.col1 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT tab2.col1 * col2 * - col0 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-4676
SELECT - col1 DIV + tab1.col0 AS col0 FROM tab1 WHERE col1 <> col1 * col2
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4676
SELECT - col1 / + tab1.col0 AS col0 FROM tab1 WHERE col1 <> col1 * col2
----
-8
0
0

query I rowsort
SELECT ALL col1 + + col2 * - col1 AS col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 + col1 col1 FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NULL IN ( tab0.col2 * col2 + tab0.col1 * - col1 )
----

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( + col1 / col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * tab2.col2 * - col1 col0 FROM tab2 WHERE NOT NULL BETWEEN col1 - - col2 AND ( NULL )
----

query I rowsort
SELECT col1 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT cor0.col0 + col1 FROM tab0 AS cor0 WHERE NOT NULL <= + col1 * col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4685
SELECT + col1 + + col2 + - tab2.col0 DIV + col1 FROM tab2
----
51
58
84

skipif mysql # not compatible
query I rowsort label-4685
SELECT + col1 + + col2 + - tab2.col0 / + col1 FROM tab2
----
51
58
84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * tab2.col1 NOT BETWEEN col2 * col2 + - col0 AND + col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT + - 63 AS col2 FROM tab1 AS cor0
----
-63
-63
-63

query I rowsort
SELECT + col2 * 67 FROM tab2
----
1742
1809
2546

query I rowsort
SELECT col2 * ( col1 ) * + col0 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ( 49 ) AS col1 FROM tab2
----
49
49
49

query I rowsort
SELECT DISTINCT - + 26 FROM tab1 cor0
----
-26

query I rowsort
SELECT ALL + col0 + + col0 AS col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT + col1 * - ( col0 * cor0.col0 ) FROM tab2 AS cor0
----
-106097
-1519
-358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-4694
SELECT ALL - 20 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL - 20 / col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4695
SELECT + col2 + - col0 + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4695
SELECT + col2 + - col0 + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4696
SELECT ALL + - ( - col2 ) - - col0 DIV 85 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4696
SELECT ALL + - ( - col2 ) - - col0 / 85 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - - 27 - - col2 AS col0 FROM tab2 AS cor0
----
53
54
65

query I rowsort
SELECT ALL + 27 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

skipif mysql # not compatible
query I rowsort
SELECT ( + tab2.col2 ) * CAST ( 97 + col2 AS REAL ) * CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
103788
188682
87210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * + col0 - col2 * col1 col2 FROM tab2 AS cor0
----
-620
3068
697

query I rowsort
SELECT DISTINCT - + col0 + - col0 AS col2 FROM tab1 cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT + + 91 - + col1 AS col1 FROM tab1 AS cor0
----
65
78
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4703
SELECT - - col0 DIV col0 + ( 21 ) AS col1 FROM tab2 AS cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-4703
SELECT - - col0 / col0 + ( 21 ) AS col1 FROM tab2 AS cor0
----
22
22
22

query I rowsort
SELECT ALL + + cor0.col0 + col2 * cor0.col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT col0 * - 19 FROM tab2 cor0
----
-133
-1482
-1501

query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col1 AS col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT cor0.col0 * ( col1 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + + col2 + 45 FROM tab2 AS cor0
----
71
72
83

query I rowsort
SELECT DISTINCT + cor0.col2 * 57 + - cor0.col0 FROM tab2 AS cor0
----
1404
1532
2087

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4710
SELECT ALL cor0.col2 * + col2 * - col1 + col1 * CAST( cor0.col2 + + col0 AS SIGNED ) FROM tab2 AS cor0
----
-21545
-22559
-33748

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL cor0.col2 * + col2 * - col1 + col1 * CAST ( cor0.col2 + + col0 AS INTEGER ) FROM tab2 AS cor0
----
-21545
-22559
-33748

onlyif mysql # use DIV operator for integer division
query I rowsort label-4711
SELECT - cor0.col0 * 9 + col2 DIV col0 + col2 AS col0 FROM tab1 AS cor0
----
-519
-623
45

skipif mysql # not compatible
query I rowsort label-4711
SELECT - cor0.col0 * 9 + col2 / col0 + col2 AS col0 FROM tab1 AS cor0
----
-519
-623
45

query I rowsort
SELECT col1 * - cor0.col0 + col0 FROM tab2 cor0
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-4713
SELECT ALL + ( + col0 ) DIV + col2 + 37 * + tab0.col1 AS col0 FROM tab0
----
3182
3368
3624

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL + ( + col0 ) / + col2 + 37 * + tab0.col1 AS col0 FROM tab0
----
3182
3368
3624

query I rowsort
SELECT - + col1 + - col0 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT ALL col2 * 34 * + col1 FROM tab2 AS cor0
----
21964
28458
52156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + + col2 col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 9 col0 FROM tab2 AS cor0
----
35
36
47

query I rowsort
SELECT DISTINCT + col2 + tab1.col0 AS col0 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4719
SELECT ALL - 73 DIV col2 + + col2 FROM tab1
----
53
56
96

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL - 73 / col2 + + col2 FROM tab1
----
53
56
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4720
SELECT DISTINCT tab0.col1 DIV tab0.col1 + + col2 * - col0 FROM tab0
----
-34
-7297
-791

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT tab0.col1 / tab0.col1 + + col2 * - col0 FROM tab0
----
-34
-7297
-791

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4721
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0, tab2, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0, tab2, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col1 + + 91 FROM tab1 AS cor0
----
101
104
117

query I rowsort
SELECT DISTINCT 56 FROM tab0, tab2 AS cor0
----
56

query I rowsort
SELECT + + col2 * col2 + + col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4725
SELECT DISTINCT + CAST( + col2 AS SIGNED ) + col1 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-4725
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) + col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + cor0.col2 + - col2 AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT - - cor0.col1 * - col1 - + ( col0 ) * col0 FROM tab2 AS cor0
----
-1010
-6530
-9565

onlyif mysql # use DIV operator for integer division
query I rowsort label-4728
SELECT DISTINCT + - ( + col0 ) DIV - col2 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4728
SELECT DISTINCT + - ( + col0 ) / - col2 AS col0 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL + - 67 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1742
-1809
-2546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) * + ( 28 ) + col1 col1 FROM tab0 AS cor0
----
-2205
-838
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4731
SELECT col1 + col0 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4731
SELECT col1 + col0 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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-4733
SELECT col1 DIV - cor0.col1 + - col0 * 94 AS col0 FROM tab2 cor0
----
-659
-7333
-7427

skipif mysql # not compatible
query I rowsort label-4733
SELECT col1 / - cor0.col1 + - col0 * 94 AS col0 FROM tab2 cor0
----
-659
-7333
-7427

query I rowsort
SELECT - 81 + 84 FROM tab2
----
3
3
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4735
SELECT - col1 DIV 55 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4735
SELECT - col1 / 55 FROM tab2
----
-1
0
0

query I rowsort
SELECT col1 * 31 AS col2 FROM tab1
----
310
403
806

query I rowsort
SELECT + 49 * - col0 + col0 * + 16 FROM tab1 AS cor0
----
-2112
-2640
-99

query I rowsort
SELECT - - cor0.col0 + + ( 29 ) AS col1 FROM tab0 cor0
----
118
53
64

query I rowsort
SELECT ALL - col0 * col2 + + col2 AS col2 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT + col0 * - ( - col2 ) + - col0 FROM tab0 AS cor0
----
0
7209
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - 34 col1 FROM tab1 AS cor0
----
-21
-24
-8

query I rowsort
SELECT col0 * - ( col2 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 - - col2 col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL col0 + 76 FROM tab0 AS cor0
----
100
111
165

query I rowsort
SELECT ALL cor0.col1 * + col2 + + cor0.col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - col1 * ( + 10 ) + - col1 AS col2 FROM tab1 cor0
----
-110
-143
-286

query I rowsort
SELECT DISTINCT - col0 * 28 + - col2 FROM tab0 AS cor0
----
-2574
-705
-981

query I rowsort
SELECT ALL + + col1 - + col2 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - + cor0.col0 * col2 + + col1 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT - 10 FROM tab0, tab1 cor0, tab1, tab0 AS cor1
----
81 values hashing to d02dd3860bad8257b8dc483efe370af0

query I rowsort
SELECT - - 50 FROM tab0 cor0
----
50
50
50

query I rowsort
SELECT ALL - tab0.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL tab2.col1 * - col1 * col1 AS col1 FROM tab2
----
-205379
-29791
-4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-4754
SELECT DISTINCT - col0 * + col0 DIV - tab0.col0 col2 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT - col0 * + col0 / - tab0.col0 col2 FROM tab0
----
24
35
89

query I rowsort
SELECT + col2 * + 83 AS col0 FROM tab2 cor0
----
2158
2241
3154

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4756
SELECT CAST( - 12 AS SIGNED ) * col0 col1 FROM tab0 AS cor0
----
-1068
-288
-420

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4756
SELECT CAST ( - 12 AS INTEGER ) * col0 col1 FROM tab0 AS cor0
----
-1068
-288
-420

query I rowsort
SELECT - - cor0.col2 * 97 AS col2 FROM tab0 AS cor0
----
3201
7954
97

query I rowsort
SELECT DISTINCT 61 * col2 * + col2 AS col2 FROM tab0 AS cor0
----
410164
61
66429

query I rowsort
SELECT - - cor1.col1 * + cor0.col2 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6b6947fcb54b3e9529d0c75cfb5b2d32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * col0 + - col1 * col2 col2 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT DISTINCT - - col0 * col2 + 56 * col2 FROM tab1 cor0
----
13056
3186
6840

query I rowsort
SELECT - 87 AS col0 FROM tab0
----
-87
-87
-87

query I rowsort
SELECT - + col0 * - cor0.col1 + - cor0.col1 * col2 * + 99 FROM tab0 AS cor0
----
-278898
-6208
-730639

query I rowsort
SELECT - col2 * + col1 * - col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT DISTINCT col1 * col1 * tab1.col1 AS col2 FROM tab1
----
1000
17576
2197

query I rowsort
SELECT + - tab2.col0 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col2 col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT + + col2 + + ( cor0.col1 ) + col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
4163
6509
89

query I rowsort
SELECT - cor0.col2 * + ( - col1 * col0 ) AS col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - - 12 * col2 AS col1 FROM tab1 AS cor0
----
1152
648
684

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4771
SELECT ALL + col1 * + cor0.col2 + CAST( + col1 AS SIGNED ) + col2 FROM tab1 AS cor0
----
1357
1484
637

skipif mysql # not compatible
query I rowsort label-4771
SELECT ALL + col1 * + cor0.col2 + CAST ( + col1 AS INTEGER ) + col2 FROM tab1 AS cor0
----
1357
1484
637

query I rowsort
SELECT DISTINCT - col2 * + ( - 38 + col2 ) FROM tab0 AS cor0
----
-3608
165
37

query I rowsort
SELECT col0 + - 96 FROM tab2 AS cor0
----
-17
-18
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * - ( col1 ) col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT col0 + col1 + col0 FROM tab1 AS cor0
----
138
173
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + ( 78 ) col0 FROM tab1 AS cor0
----
-234
-4992
-6240

query I rowsort
SELECT + - col1 + - 2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-124
-134
-205

query I rowsort
SELECT ALL 95 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT DISTINCT - col1 * + col1 + 6 * + col2 AS col1 FROM tab1 AS cor0
----
-352
242
407

query I rowsort
SELECT + cor0.col1 + 15 FROM tab1, tab0 AS cor0
----
9 values hashing to e32ebabf2f91edf3c2fba79dd8030322

query I rowsort
SELECT ALL - cor1.col1 FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab1 cor1, tab1, tab2 cor2
----
3645 values hashing to b6efe6f7ec1a3daa3cc6ea9dd7d13455

onlyif mysql # use DIV operator for integer division
query I rowsort label-4783
SELECT DISTINCT - 37 DIV + col2 + + col2 AS col2 FROM tab0 AS cor0
----
-36
32
82

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT - 37 / + col2 + + col2 AS col2 FROM tab0 AS cor0
----
-36
32
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 * + col0 col2 FROM tab1 AS cor0
----
279
5952
7440

query I rowsort
SELECT ALL - - col1 + + col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - 42 + + col2 FROM tab1 cor0
----
12
15
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 + - col1 * + col0 col0 FROM tab0 AS cor0
----
-1976
-3307
-8011

query I rowsort
SELECT ( - col2 + col2 ) * + 76 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + col1 + ( col0 ) AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT ( - tab1.col2 ) + col1 FROM tab1
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4791
SELECT ALL - col1 DIV cor0.col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL - col1 / cor0.col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT ALL - col0 - col1 * - col2 AS col1 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT col2 * col0 * col2 FROM tab2 cor0
----
114076
5103
52728

query I rowsort
SELECT ALL - col2 + - col2 * + col1 AS col1 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT - ( - 95 * col2 ) + - ( col1 ) FROM tab1
----
5104
5405
9107

query I rowsort
SELECT col2 * col1 * 29 FROM tab1
----
16530
36192
40716

query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab0, tab2, tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT 47 + col1 * 51 FROM tab0
----
4433
4688
4994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 88 col2 FROM tab2 AS cor0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT + ( col1 ) * - 89 AS col0 FROM tab0 AS cor0
----
-7654
-8099
-8633

query I rowsort
SELECT + col1 + col2 * col0 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL - ( + col0 + + ( col1 ) ) * - col0 FROM tab2
----
10686
266
7584

query I rowsort
SELECT ( cor0.col2 ) FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL - 79 AS col1 FROM tab0 AS cor0
----
-79
-79
-79

query I rowsort
SELECT col1 + - 8 FROM tab1
----
18
2
5

query I rowsort
SELECT 99 FROM tab0, tab0 cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT DISTINCT - + col0 + + col1 AS col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT - - col2 * col1 * - col2 - - col2 FROM tab1 AS cor0
----
-119712
-32433
-75762

query I rowsort
SELECT DISTINCT - col0 * col0 * + col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-4810
SELECT ALL + - ( col0 ) + - col0 DIV 14 AS col1 FROM tab1 AS cor0
----
-3
-68
-85

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL + - ( col0 ) + - col0 / 14 AS col1 FROM tab1 AS cor0
----
-3
-68
-85

query I rowsort
SELECT + - 61 - - col2 * - col1 FROM tab2 cor0
----
-1595
-707
-898

query I rowsort
SELECT ALL col0 * - tab2.col0 + col0 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT ALL - col1 * col1 * + cor0.col1 AS col0 FROM tab0 cor0
----
-636056
-753571
-912673

query I rowsort
SELECT + 71 * + col1 AS col2 FROM tab2 cor0
----
1207
2201
4189

query I rowsort
SELECT DISTINCT col0 * + col1 + + col2 * cor0.col2 FROM tab0 AS cor0
----
14823
3153
3396

query I rowsort
SELECT DISTINCT col1 * cor0.col1 AS col0 FROM tab1 cor0
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4817
SELECT ALL + CAST( NULL AS SIGNED ) + 10 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL + CAST ( NULL AS INTEGER ) + 10 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - 56 ) AS col1 FROM tab2 AS cor0
----
-56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4819
SELECT - CAST( + 42 AS SIGNED ) - - col0 AS col2 FROM tab2 AS cor0
----
-35
36
37

skipif mysql # not compatible
query I rowsort label-4819
SELECT - CAST ( + 42 AS INTEGER ) - - col0 AS col2 FROM tab2 AS cor0
----
-35
36
37

query I rowsort
SELECT 55 FROM tab2 cor0
----
55
55
55

query I rowsort
SELECT ALL - col2 * 88 + col2 AS col1 FROM tab2 AS cor0
----
-2262
-2349
-3306

query I rowsort
SELECT - ( col1 ) * col1 + - col1 * - ( + col2 ) AS col1 FROM tab1 AS cor0
----
1079
470
728

query I rowsort
SELECT + + 87 * col2 * - cor0.col2 + + 77 * + col0 AS col0 FROM tab2 AS cor0
----
-119545
-52806
-62884

onlyif mysql # use DIV operator for integer division
query I rowsort label-4824
SELECT 94 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4824
SELECT 94 / + col1 AS col0 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT ALL col0 * + 99 + col0 AS col2 FROM tab2 AS cor0
----
700
7800
7900

onlyif mysql # use DIV operator for integer division
query I rowsort label-4826
SELECT + cor0.col0 DIV + 90 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4826
SELECT + cor0.col0 / + 90 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 39 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col0 col0 FROM tab0, tab1, tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL 49 - + 47 FROM tab0, tab1 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL tab2.col1 * - col2 * col2 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT DISTINCT col2 * + 83 AS col1 FROM tab0
----
2739
6806
83

query I rowsort
SELECT ALL cor1.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT + 13 + + 87 FROM tab0
----
100
100
100

query I rowsort
SELECT ALL - cor0.col1 * 1 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + ( + col2 ) * col0 + + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - col0 + col0 + + 90 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT + + 77 * col1 * - col2 FROM tab2 AS cor0
----
-118118
-49742
-64449

query I rowsort
SELECT + col0 * col0 + - col1 FROM tab2 AS cor0
----
18
6025
6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-4839
SELECT + - 38 DIV col1 AS col1 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4839
SELECT + - 38 / col1 AS col1 FROM tab1 AS cor0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4840
SELECT + cor0.col2 + col0 DIV col0 + - col0 * col0 * col0 FROM tab1 AS cor0
----
-262086
-511903
28

skipif mysql # not compatible
query I rowsort label-4840
SELECT + cor0.col2 + col0 / col0 + - col0 * col0 * col0 FROM tab1 AS cor0
----
-262086
-511903
28

query I rowsort
SELECT col0 * col0 * col1 + col1 + col0 * col1 FROM tab0 AS cor0
----
122317
51686
729001

onlyif mysql # use DIV operator for integer division
query I rowsort label-4842
SELECT + col1 DIV + col1 + col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-4842
SELECT + col1 / + col1 + col0 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT 69 + col1 AS col1 FROM tab1 AS cor0
----
79
82
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4844
SELECT ALL - + col2 * CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL - + col2 * CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * 42 FROM tab0 cor0
----
-1008
-1470
-3738

query I rowsort
SELECT - col1 * - ( + col1 ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - cor0.col0 * + ( cor0.col2 ) + cor0.col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
6604
9374
983

query I rowsort
SELECT - - 44 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4849
SELECT + col1 + + 69 DIV col0 FROM tab2 AS cor0
----
17
40
59

skipif mysql # not compatible
query I rowsort label-4849
SELECT + col1 + + 69 / col0 FROM tab2 AS cor0
----
17
40
59

query I rowsort
SELECT ALL + col2 * 13 + col2 FROM tab2 AS cor0
----
364
378
532

query I rowsort
SELECT - + col2 + cor0.col2 + - col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL col0 * + cor0.col1 + + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT + + 73 + 98 FROM tab1 AS cor0
----
171
171
171

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4854
SELECT CAST( - col2 AS SIGNED ) + + col0 * col2 - 96 AS col2 FROM tab1
----
12
3495
7488

skipif mysql # not compatible
query I rowsort label-4854
SELECT CAST ( - col2 AS INTEGER ) + + col0 * col2 - 96 AS col2 FROM tab1
----
12
3495
7488

query I rowsort
SELECT - col2 * cor0.col0 + col0 * + cor0.col0 FROM tab2 AS cor0
----
-140
3239
4056

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4856
SELECT + CAST( - cor0.col1 AS DECIMAL ) * - col1 + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4856
SELECT + CAST ( - cor0.col1 AS REAL ) * - col1 + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col1 - - col1 * + col0 * 32 AS col2 FROM tab1 AS cor0
----
20490
2522
33293

onlyif mysql # use DIV operator for integer division
query I rowsort label-4858
SELECT - + col2 * col0 + - col2 DIV - col0 FROM tab2 AS cor0
----
-186
-2028
-3002

skipif mysql # not compatible
query I rowsort label-4858
SELECT - + col2 * col0 + - col2 / - col0 FROM tab2 AS cor0
----
-186
-2028
-3002

query I rowsort
SELECT DISTINCT + 78 - col0 AS col1 FROM tab0
----
-11
43
54

query I rowsort
SELECT DISTINCT + col0 * - col2 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT - col2 + ( - col0 ) AS col1 FROM tab0
----
-171
-36
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * - ( + col1 ) + col0 col0 FROM tab1 AS cor0
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 71 * - 27 col0 FROM tab0 AS cor0
----
1917
1917
1917

query I rowsort
SELECT ALL - - 22 * 95 FROM tab0 AS cor0
----
2090
2090
2090

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4865
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 * - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 * - col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4866
SELECT + - CAST( 45 AS SIGNED ) * col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1144
-440
-572

skipif mysql # not compatible
query I rowsort label-4866
SELECT + - CAST ( 45 AS INTEGER ) * col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1144
-440
-572

query I rowsort
SELECT - ( 31 ) + - cor0.col0 + col2 AS col2 FROM tab0 AS cor0
----
-22
-38
-65

query I rowsort
SELECT ALL - col2 * cor0.col0 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT cor0.col0 + 32 + + cor0.col0 FROM tab2 cor0
----
188
190
46

query I rowsort
SELECT - col0 + + tab1.col0 + - col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - tab2.col2 * + tab2.col1 + col0 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT ALL col2 * - tab0.col1 + - 61 + col0 AS col1 FROM tab0
----
-123
-2875
-7434

query I rowsort
SELECT DISTINCT - col2 * 18 + + 39 FROM tab1
----
-1689
-933
-987

query I rowsort
SELECT DISTINCT col2 * col1 * + col0 + + tab2.col1 FROM tab2
----
119711
51051
5890

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4875
SELECT CAST( NULL AS DECIMAL ) * col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT CAST ( NULL AS REAL ) * col0 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4876
SELECT - + CAST( NULL AS SIGNED ) + + 42 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT - + CAST ( NULL AS INTEGER ) + + 42 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ( - 67 ) + cor0.col2 * col0 FROM tab0 AS cor0
----
-32
7231
725

query I rowsort
SELECT - cor0.col0 + col2 * + cor0.col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT - 17 * cor0.col1 FROM tab2 AS cor0
----
-1003
-289
-527

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4881
SELECT + CAST( NULL AS SIGNED ) * 61 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4881
SELECT + CAST ( NULL AS INTEGER ) * 61 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 98 + ( - col0 ) AS col2 FROM tab0 AS cor0
----
63
74
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4883
SELECT DISTINCT - - col2 DIV col0 col1 FROM tab1 AS cor0
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT - - col2 / col0 col1 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT col1 + + 4 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
100
141
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4885
SELECT ALL - CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL - CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4886
SELECT tab0.col0 * + col1 DIV + tab0.col1 + - 60 + + tab0.col1 * 84 * - col0 FROM tab0
----
-173412
-285205
-680287

skipif mysql # not compatible
query I rowsort label-4886
SELECT tab0.col0 * + col1 / + tab0.col1 + - 60 + + tab0.col1 * 84 * - col0 FROM tab0
----
-173412
-285205
-680287

query I rowsort
SELECT DISTINCT tab1.col1 + col2 * 95 - - ( - col1 ) * col0 FROM tab1
----
4785
5078
8093

onlyif mysql # use DIV operator for integer division
query I rowsort label-4888
SELECT - col0 + col2 DIV col1 - 53 FROM tab0
----
-142
-77
-88

skipif mysql # not compatible
query I rowsort label-4888
SELECT - col0 + col2 / col1 - 53 FROM tab0
----
-142
-77
-88

query I rowsort
SELECT 46 * + col1 AS col0 FROM tab2
----
1426
2714
782

query I rowsort
SELECT DISTINCT ( + col2 ) - + col1 * 47 * - col2 FROM tab1
----
26847
58752
66042

query I rowsort
SELECT + 90 + col2 AS col2 FROM tab2 cor0
----
116
117
128

query I rowsort
SELECT ALL - 77 + - col2 AS col2 FROM tab0 AS cor0
----
-110
-159
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 col0 FROM tab2
----
2
2
2

query I rowsort
SELECT col0 + - 45 FROM tab1 cor0
----
-42
19
35

query I rowsort
SELECT - col2 * 36 - cor0.col1 FROM tab1 cor0
----
-1970
-2062
-3469

query I rowsort
SELECT col1 + + col2 + tab0.col0 FROM tab0
----
133
143
262

query I rowsort
SELECT ALL ( cor2.col1 ) AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4898
SELECT ALL + + col0 + CAST( + 25 AS SIGNED ) + - col0 * col2 FROM tab0 AS cor0
----
-7184
-743
25

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL + + col0 + CAST ( + 25 AS INTEGER ) + - col0 * col2 FROM tab0 AS cor0
----
-7184
-743
25

query I rowsort
SELECT ALL col0 * 47 * + col2 AS col1 FROM tab2 AS cor0
----
141094
8883
95316

onlyif mysql # use DIV operator for integer division
query I rowsort label-4900
SELECT ALL + col1 + - col0 DIV 10 AS col0 FROM tab1 AS cor0
----
26
4
5

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL + col1 + - col0 / 10 AS col0 FROM tab1 AS cor0
----
26
4
5

query I rowsort
SELECT DISTINCT + col0 + col1 * - col0 FROM tab2 AS cor0
----
-1264
-210
-4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 23 col0 FROM tab2 AS cor0
----
1357
391
713

query I rowsort
SELECT ALL 57 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * 96 * 3 col0 FROM tab1 AS cor0
----
-2880
-3744
-7488

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4905
SELECT DISTINCT - + col0 * + col0 + col1 * col1 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT - + col0 * + col0 + col1 * col1 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4906
SELECT DISTINCT col2 DIV CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-4906
SELECT DISTINCT col2 / CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT DISTINCT + + col0 + 83 AS col2 FROM tab2 cor0
----
161
162
90

query I rowsort
SELECT ALL + col2 - - col1 * - col1 * + col1 FROM tab2 AS cor0
----
-205353
-29764
-4875

query I rowsort
SELECT + col1 * + 56 AS col2 FROM tab2 AS cor0
----
1736
3304
952

query I rowsort
SELECT cor0.col2 - - cor0.col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + cor0.col1 - 27 * + cor0.col1 FROM tab2 AS cor0
----
-1534
-442
-806

query I rowsort
SELECT DISTINCT - - col2 + 70 AS col1 FROM tab1 AS cor0
----
124
127
166

query I rowsort
SELECT DISTINCT + col1 * col0 + 91 * col2 AS col2 FROM tab0 cor0
----
15561
3486
5067

onlyif mysql # use DIV operator for integer division
query I rowsort label-4914
SELECT ALL - + col2 DIV - ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL - + col2 / - ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT DISTINCT - - col1 + + col2 * col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - ( + 26 ) - + col2 * 66 * + col2 AS col1 FROM tab2 AS cor0
----
-44642
-48140
-95330

query I rowsort
SELECT DISTINCT + - 35 - + col0 * col0 FROM tab2 cor0
----
-6119
-6276
-84

query I rowsort
SELECT - ( cor0.col0 ) - col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT - col2 * - col1 * + col0 AS col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT ALL + 28 FROM tab2, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL 79 - + cor0.col2 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7fe30d284d1ce5a1b0360f52e99ff2de

query I rowsort
SELECT ALL 8 + - col2 FROM tab2 AS cor0
----
-18
-19
-30

query I rowsort
SELECT DISTINCT - + 35 * - cor0.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
1225
3115
840

query I rowsort
SELECT ALL - 49 * col2 AS col1 FROM tab0 AS cor0
----
-1617
-4018
-49

query I rowsort
SELECT ALL 74 * ( tab1.col0 ) + 91 AS col0 FROM tab1
----
313
4827
6011

query I rowsort
SELECT ALL - 17 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-14
47
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-4927
SELECT DISTINCT - col2 DIV col1 - + col0 * col1 FROM tab1 AS cor0
----
-1047
-645
-80

skipif mysql # not compatible
query I rowsort label-4927
SELECT DISTINCT - col2 / col1 - + col0 * col1 FROM tab1 AS cor0
----
-1047
-645
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 + cor0.col0 col2 FROM tab0 cor0
----
0

query I rowsort
SELECT + - 70 + cor0.col1 FROM tab1 cor0
----
-44
-57
-60

query I rowsort
SELECT ( + col2 ) + col1 * col0 FROM tab1
----
1136
132
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4931
SELECT - col0 * CAST( - col0 + col0 * + 26 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1225
-152100
-156025

skipif mysql # not compatible
query I rowsort label-4931
SELECT - col0 * CAST ( - col0 + col0 * + 26 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1225
-152100
-156025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 * col2 col2 FROM tab2
----
2184
2268
3192

query I rowsort
SELECT + col0 * ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL 72 * - col0 FROM tab2 cor0
----
-504
-5616
-5688

query I rowsort
SELECT - 69 FROM tab1 cor0
----
-69
-69
-69

query I rowsort
SELECT DISTINCT + 99 FROM tab0, tab2 AS cor0
----
99

query I rowsort
SELECT col1 * - 8 FROM tab0
----
-688
-728
-776

query I rowsort
SELECT ALL + 83 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT 56 + + col2 FROM tab0 AS cor0
----
138
57
89

query I rowsort
SELECT ALL - ( 94 ) AS col2 FROM tab0
----
-94
-94
-94

query I rowsort
SELECT 24 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT col1 * 53 AS col1 FROM tab0
----
4558
4823
5141

query I rowsort
SELECT DISTINCT col2 * - tab1.col2 + tab1.col1 AS col2 FROM tab1
----
-2890
-3239
-9203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4945
SELECT col2 * - CAST( NULL AS DECIMAL ) - ( + col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT col2 * - CAST ( NULL AS REAL ) - ( + col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + col1 + - col0 * col0 * col1 FROM tab0 AS cor0
----
-128234
-56932
-729092

skipif mysql # not compatible
query I rowsort
SELECT + cor0.col0 + + CAST ( - col0 AS REAL ) / cor0.col0 - cor0.col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4948
SELECT - col1 DIV 65 - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-4948
SELECT - col1 / 65 - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - col2 * + 12 AS col0 FROM tab2 AS cor0
----
-312
-324
-456

query I rowsort
SELECT col0 * col1 + - 41 + tab1.col2 FROM tab1
----
1095
656
91

query I rowsort
SELECT DISTINCT + 35 * tab1.col1 + col2 + 35 AS col0 FROM tab1
----
442
586
999

query I rowsort
SELECT DISTINCT 85 + col2 + col0 FROM tab1
----
142
206
261

onlyif mysql # use DIV operator for integer division
query I rowsort label-4953
SELECT DISTINCT - col1 + - col0 DIV + ( col1 ) FROM tab2
----
-21
-31
-60

skipif mysql # not compatible
query I rowsort label-4953
SELECT DISTINCT - col1 + - col0 / + ( col1 ) FROM tab2
----
-21
-31
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-4954
SELECT - col1 DIV - col2 + col0 * col0 AS col1 FROM tab0
----
1322
578
7922

skipif mysql # not compatible
query I rowsort label-4954
SELECT - col1 / - col2 + col0 * col0 AS col1 FROM tab0
----
1322
578
7922

query I rowsort
SELECT ALL - 80 + col2 AS col0 FROM tab1
----
-23
-26
16

query I rowsort
SELECT + 51 + - col0 FROM tab0
----
-38
16
27

query I rowsort
SELECT DISTINCT col2 * + ( - col1 * col0 ) AS col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT col2 * + 16 FROM tab0 AS cor0
----
1312
16
528

query I rowsort
SELECT ALL - col2 * - 44 + + 50 FROM tab0 AS cor0
----
1502
3658
94

query I rowsort
SELECT - col2 * - 20 * + col1 + + col2 - col0 AS col0 FROM tab2 AS cor0
----
12879
16760
30628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4961
SELECT + + col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4961
SELECT + + col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4962
SELECT ALL - col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL - col1 / - col0 AS col0 FROM tab2 AS cor0
----
0
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4963
SELECT + - col1 - col1 DIV col1 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-4963
SELECT + - col1 - col1 / col1 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT DISTINCT tab2.col2 - col1 AS col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL col2 - - tab2.col1 * - col2 AS col1 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL col1 + + col0 * col0 * col0 FROM tab0
----
13910
42972
705060

query I rowsort
SELECT ALL - col1 + col2 * + col2 FROM tab0
----
-96
1003
6633

query I rowsort
SELECT - col2 * - col2 * col2 AS col0 FROM tab1 AS cor0
----
157464
185193
884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-4969
SELECT + col1 * + col0 + - col2 * - cor0.col0 + col1 DIV + col2 FROM tab0 AS cor0
----
15398
2858
3527

skipif mysql # not compatible
query I rowsort label-4969
SELECT + col1 * + col0 + - col2 * - cor0.col0 + col1 / + col2 FROM tab0 AS cor0
----
15398
2858
3527

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + cor0.col0 col0 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-4971
SELECT col2 * col0 + col2 + - col0 * cor0.col2 DIV + cor0.col2 FROM tab0 AS cor0
----
1
7291
801

skipif mysql # not compatible
query I rowsort label-4971
SELECT col2 * col0 + col2 + - col0 * cor0.col2 / + cor0.col2 FROM tab0 AS cor0
----
1
7291
801

onlyif mysql # use DIV operator for integer division
query I rowsort label-4972
SELECT col1 DIV - col0 FROM tab1 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-4972
SELECT col1 / - col0 FROM tab1 cor0
----
-8
0
0

query I rowsort
SELECT + + 24 * col0 AS col1 FROM tab2 AS cor0
----
168
1872
1896

query I rowsort
SELECT - - col1 + col1 - + col1 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 - + col0 col2 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT 65 + - col0 AS col0 FROM tab2
----
-13
-14
58

query I rowsort
SELECT - col1 * + col1 - 12 * col1 FROM tab1 AS cor0
----
-220
-325
-988

onlyif mysql # use DIV operator for integer division
query I rowsort label-4978
SELECT 60 * col2 + + 28 DIV col2 FROM tab0 AS cor0
----
1980
4920
88

skipif mysql # not compatible
query I rowsort label-4978
SELECT 60 * col2 + + 28 / col2 FROM tab0 AS cor0
----
1980
4920
88

query I rowsort
SELECT DISTINCT col0 * col0 - col2 AS col0 FROM tab1 cor0
----
-45
4039
6304

query I rowsort
SELECT DISTINCT + 12 + cor0.col2 FROM tab2 AS cor0
----
38
39
50

query I rowsort
SELECT 7 + col2 FROM tab1 AS cor0
----
103
61
64

query I rowsort
SELECT cor0.col0 + + col1 AS col2 FROM tab1 cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4983
SELECT DISTINCT + ( cor0.col1 ) * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT + ( cor0.col1 ) * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + + col0 - 57 FROM tab2 AS cor0
----
-43
101
99

query I rowsort
SELECT ( 58 ) AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4986
SELECT DISTINCT + 50 * 77 + + tab0.col1 * + CAST( NULL AS SIGNED ) - - col2 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4986
SELECT DISTINCT + 50 * 77 + + tab0.col1 * + CAST ( NULL AS INTEGER ) - - col2 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL 58 * col2 FROM tab1 AS cor0
----
3132
3306
5568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + cor0.col2 col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - 26 + - col0 * ( - 95 ) AS col0 FROM tab1
----
259
6054
7574

query I rowsort
SELECT 46 * + col1 FROM tab0 AS cor0
----
3956
4186
4462

onlyif mysql # use DIV operator for integer division
query I rowsort label-4991
SELECT - - col2 - col2 DIV ( ( - col2 ) ) FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4991
SELECT - - col2 - col2 / ( ( - col2 ) ) FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT DISTINCT - - col0 * cor0.col1 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4993
SELECT ALL tab0.col0 DIV ( 94 ) AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL tab0.col0 / ( 94 ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * + col0 + - col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL 77 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col2 FROM tab0
----
29
29
29

query I rowsort
SELECT - + col1 * + 31 AS col0 FROM tab0 AS cor0
----
-2666
-2821
-3007

onlyif mysql # use DIV operator for integer division
query I rowsort label-4998
SELECT DISTINCT - 97 DIV 20 + tab0.col2 AS col0 FROM tab0, tab1, tab0 AS cor0
----
-3
29
78

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT - 97 / 20 + tab0.col2 AS col0 FROM tab0, tab1, tab0 AS cor0
----
-3
29
78

query I rowsort
SELECT ALL + col1 * tab0.col1 AS col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT ALL + 13 * - 12 FROM tab2
----
-156
-156
-156

query I rowsort
SELECT ALL - 23 AS col1 FROM tab1
----
-23
-23
-23

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab0 cor1, tab2, tab0 AS cor2
----
3645 values hashing to 283f1c907a0999dbd972d3bd45746c06

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5003
SELECT + CAST( + 62 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
434
4836
4898

skipif mysql # not compatible
query I rowsort label-5003
SELECT + CAST ( + 62 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
434
4836
4898

query I rowsort
SELECT DISTINCT - + col2 + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT ALL + cor0.col0 * ( - col2 ) * col2 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT + ( + col2 ) * + cor0.col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-5007
SELECT - 19 + col0 DIV - col2 AS col0 FROM tab0
----
-19
-20
-54

skipif mysql # not compatible
query I rowsort label-5007
SELECT - 19 + col0 / - col2 AS col0 FROM tab0
----
-19
-20
-54

query I rowsort
SELECT ( + col2 ) - tab2.col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL + 82 + col0 AS col2 FROM tab2 AS cor0
----
160
161
89

query I rowsort
SELECT ALL - col2 * - ( - col1 ) + 49 * - col1 FROM tab1 AS cor0
----
-1060
-1885
-2678

query I rowsort
SELECT DISTINCT - col2 + - ( + col0 ) AS col2 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT + + 54 - - col0 AS col2 FROM tab2 AS cor0
----
132
133
61

query I rowsort
SELECT - 67 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT DISTINCT + - 81 * col0 AS col0 FROM tab2 AS cor0
----
-567
-6318
-6399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col2 * - col2 col0 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT DISTINCT + ( col0 + 61 ) AS col1 FROM tab1
----
125
141
64

query I rowsort
SELECT - + 99 AS col2 FROM tab2 AS cor0
----
-99
-99
-99

query I rowsort
SELECT ALL 44 AS col0 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT ALL - - 96 AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT DISTINCT - - 18 * cor0.col1 AS col1 FROM tab1 cor0
----
180
234
468

query I rowsort
SELECT ( 8 ) FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 col1 FROM tab2 cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5023
SELECT ALL - cor0.col1 * + col1 DIV - col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL - cor0.col1 * + col1 / - col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT cor0.col0 + 17 FROM tab0 AS cor0
----
106
41
52

query I rowsort
SELECT ALL - col0 * - col1 AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col0 * 49 AS col0 FROM tab1
----
147
3136
3920

query I rowsort
SELECT DISTINCT - + col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5028
SELECT ALL - col1 + col0 * 5 DIV col0 col2 FROM tab2 AS cor0
----
-12
-26
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL - col1 + col0 * 5 / col0 col2 FROM tab2 AS cor0
----
-12
-26
-54

query I rowsort
SELECT + - col2 + col1 * + cor0.col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT + col2 * 14 * col1 FROM tab1 AS cor0
----
17472
19656
7980

query I rowsort
SELECT DISTINCT col1 * col2 + - col2 FROM tab1 cor0
----
1152
1350
513

query I rowsort
SELECT + 46 * 59 AS col2 FROM tab1 AS cor0
----
2714
2714
2714

query I rowsort
SELECT DISTINCT - col0 + tab0.col1 * col0 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT + 3 * - cor0.col2 + - col1 FROM tab1 AS cor0
----
-181
-188
-301

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5035
SELECT ALL + + CAST( NULL AS SIGNED ) + + col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5035
SELECT ALL + + CAST ( NULL AS INTEGER ) + + col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5036
SELECT DISTINCT + CAST( - col2 AS SIGNED ) - - col2 * - col1 DIV col1 FROM tab2 AS cor0
----
-52
-54
-76

skipif mysql # not compatible
query I rowsort label-5036
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) - - col2 * - col1 / col1 FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5037
SELECT ALL - CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + cor0.col1 * col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT col0 * - col1 - col1 AS col2 FROM tab0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT + tab1.col2 + col0 AS col0 FROM tab1
----
121
176
57

query I rowsort
SELECT - 76 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 91 * tab2.col0 + + col1 col1 FROM tab2
----
-17168
-184489
-273165

onlyif mysql # use DIV operator for integer division
query I rowsort label-5043
SELECT - col1 DIV CAST( col1 AS SIGNED ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5043
SELECT - col1 / CAST ( col1 AS INTEGER ) FROM tab1
----
-1
-1
-1

query I rowsort
SELECT + cor0.col2 * - 37 + col1 AS col1 FROM tab0 AS cor0
----
-1135
-2943
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-5045
SELECT col0 DIV - col2 + 44 AS col1 FROM tab1 AS cor0
----
43
44
44

skipif mysql # not compatible
query I rowsort label-5045
SELECT col0 / - col2 + 44 AS col1 FROM tab1 AS cor0
----
43
44
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-5046
SELECT DISTINCT col2 DIV + ( col2 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT col2 / + ( col2 ) FROM tab1
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5047
SELECT - col2 * + CAST( NULL AS DECIMAL ) + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT - col2 * + CAST ( NULL AS REAL ) + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5048
SELECT col0 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5048
SELECT col0 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor1.col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT col2 - ( tab0.col0 + tab0.col1 ) FROM tab0
----
-131
-77
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5051
SELECT - 18 DIV + 47 + col2 + col1 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-5051
SELECT - 18 / + 47 + col2 + col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + col2 * + 30 AS col1 FROM tab0 AS cor0
----
2460
30
990

query I rowsort
SELECT ALL + col1 * + col1 AS col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT ALL - 67 * col1 + - 58 FROM tab2 cor0
----
-1197
-2135
-4011

query I rowsort
SELECT ALL - 75 * - col0 FROM tab0
----
1800
2625
6675

query I rowsort
SELECT DISTINCT 68 * - 91 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-6188

query I rowsort
SELECT - tab0.col0 * col2 + + 55 + col2 AS col2 FROM tab0
----
-704
-7161
21

query I rowsort
SELECT col0 - 43 FROM tab2 AS cor0
----
-36
35
36

query I rowsort
SELECT - - col1 - - 25 FROM tab0 cor0
----
111
116
122

onlyif mysql # use DIV operator for integer division
query I rowsort label-5060
SELECT + col2 DIV - col1 AS col0 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5060
SELECT + col2 / - col1 AS col0 FROM tab2
----
-2
0
0

query I rowsort
SELECT + 92 * - cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cbb5d28133da4d9c70e018a6f6f668b0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5062
SELECT ALL + + col1 + - CAST( - col2 + + col0 AS SIGNED ) FROM tab0 AS cor0
----
63
84
95

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL + + col1 + - CAST ( - col2 + + col0 AS INTEGER ) FROM tab0 AS cor0
----
63
84
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * col2 + 17 * col1 col1 FROM tab0 AS cor0
----
1650
2551
8271

query I rowsort
SELECT DISTINCT - col0 * col2 - 38 FROM tab1 AS cor0
----
-200
-3686
-7718

query I rowsort
SELECT col2 * + 33 FROM tab2 AS cor0
----
1254
858
891

query I rowsort
SELECT - - col2 * col1 + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL - - col1 + 93 AS col2 FROM tab2 cor0
----
110
124
152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 + - col2 col2 FROM tab2 AS cor0
----
-52
-54
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5069
SELECT + col2 DIV 95 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5069
SELECT + col2 / 95 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * col0 + col0 * + col0 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
19584
2450
657443

query I rowsort
SELECT ALL - ( - col2 ) + col1 * col2 * - col0 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5072
SELECT + col1 DIV + ( + col0 ) AS col1 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5072
SELECT + col1 / + ( + col0 ) AS col1 FROM tab2
----
0
0
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5073
SELECT col1 + CAST( NULL AS SIGNED ) + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5073
SELECT col1 + CAST ( NULL AS INTEGER ) + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * - col0 * - col0 - col0 FROM tab2
----
1316
158106
237079

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5075
SELECT ALL + col0 - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL + col0 - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col1 * ( cor0.col2 ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + col0 * 23 AS col0 FROM tab1 AS cor0
----
1472
1840
69

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 - CAST ( - 84 AS REAL ) FROM tab2
----
162
163
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col2 FROM tab0
----
83
83
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5080
SELECT cor0.col0 * - col0 + - CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80

skipif mysql # not compatible
query I rowsort label-5080
SELECT cor0.col0 * - col0 + - CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT + + col2 * col1 + + 35 + - col1 * col2 AS col0 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT 20 * col2 * col2 FROM tab0
----
134480
20
21780

query I rowsort
SELECT DISTINCT + col0 * col1 + - col2 * - col1 + col1 * col2 FROM tab2
----
1891
2635
7670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 col0 FROM tab1, tab2 AS cor0
----
46

query I rowsort
SELECT ALL 9 * + col0 FROM tab0
----
216
315
801

query I rowsort
SELECT + - 45 * col1 FROM tab0 AS cor0
----
-3870
-4095
-4365

query I rowsort
SELECT ALL - - 10 * col0 FROM tab2 cor0
----
70
780
790

query I rowsort
SELECT ALL ( col1 ) * col1 + cor0.col2 + - col0 AS col1 FROM tab1 AS cor0
----
185
727
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-5089
SELECT DISTINCT + 6 * col2 + + col2 * col2 DIV col0 col0 FROM tab0 AS cor0
----
243
567
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5089
SELECT DISTINCT + 6 * col2 + + col2 * col2 / col0 col0 FROM tab0 AS cor0
----
243
567
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5090
SELECT ALL + 55 DIV cor0.col0 + + col2 AS col0 FROM tab0 AS cor0
----
2
35
82

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL + 55 / cor0.col0 + + col2 AS col0 FROM tab0 AS cor0
----
2
35
82

query I rowsort
SELECT ALL - - col0 + - 46 * - col2 * col1 AS col1 FROM tab1 AS cor0
----
26284
57488
64587

query I rowsort
SELECT DISTINCT + + cor0.col1 * + 29 FROM tab0 AS cor0
----
2494
2639
2813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5093
SELECT DISTINCT + CAST( col0 AS SIGNED ) FROM tab2 cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT + CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL + - 24 FROM tab0 AS cor0
----
-24
-24
-24

query I rowsort
SELECT + col1 * col1 * + col0 - ( + col0 ) FROM tab1 AS cor0
----
13440
2025
6336

query I rowsort
SELECT - - col1 * - col2 + + col2 * col2 AS col2 FROM tab0 AS cor0
----
-1749
-738
-96

query I rowsort
SELECT - + 91 + col0 * - col2 * + col1 FROM tab0 AS cor0
----
-3486
-664209
-68203

query I rowsort
SELECT DISTINCT - + 17 + col0 * 70 AS col1 FROM tab1 cor0
----
193
4463
5583

query I rowsort
SELECT + col1 * cor0.col2 - - col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT 33 * col1 - col2 AS col2 FROM tab0 AS cor0
----
2805
2921
3200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) * + 62 + cor0.col0 * + col0 col1 FROM tab0 AS cor0
----
13563
5908
7239

onlyif mysql # use DIV operator for integer division
query I rowsort label-5102
SELECT ( + cor0.col1 ) + + cor0.col0 DIV - col1 FROM tab1 AS cor0
----
26
4
7

skipif mysql # not compatible
query I rowsort label-5102
SELECT ( + cor0.col1 ) + + cor0.col0 / - col1 FROM tab1 AS cor0
----
26
4
7

query I rowsort
SELECT ALL - + cor0.col0 * col0 * + col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-5104
SELECT ALL 28 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL 28 / - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 + 28 col2 FROM tab2, tab1, tab0 AS cor0
----
31

query I rowsort
SELECT ( + col1 ) + - ( col0 ) * col0 AS col2 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT col1 + + 39 * - col0 FROM tab1
----
-2486
-3107
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5108
SELECT ALL + CAST( NULL AS SIGNED ) * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * - 43 FROM tab2 AS cor0
----
-1333
-2537
-731

query I rowsort
SELECT - - col0 * + col0 AS col1 FROM tab0 cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-5111
SELECT col1 + + cor0.col1 DIV ( cor0.col1 ) FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-5111
SELECT col1 + + cor0.col1 / ( cor0.col1 ) FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT DISTINCT + cor0.col2 * ( - col1 ) + + col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - + col0 * + col2 + ( + col2 ) FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-5114
SELECT ALL col0 DIV + 36 AS col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL col0 / + 36 AS col0 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT cor0.col2 * - ( 79 ) + - col0 AS col2 FROM tab2 AS cor0
----
-2132
-2140
-3081

query I rowsort
SELECT + cor0.col1 * - ( + cor0.col1 * col2 ) FROM tab0 cor0
----
-244068
-679042
-9409

query I rowsort
SELECT col2 * + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5118
SELECT DISTINCT + - col0 + CAST( + col1 AS SIGNED ) * - col0 * 93 AS col0 FROM tab1 AS cor0
----
-59584
-7257
-96800

skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT + - col0 + CAST ( + col1 AS INTEGER ) * - col0 * 93 AS col0 FROM tab1 AS cor0
----
-59584
-7257
-96800

onlyif mysql # use DIV operator for integer division
query I rowsort label-5119
SELECT DISTINCT - - col0 * col1 DIV - col0 + col2 * ( - col1 ) * + col2 FROM tab2 cor0
----
-22630
-24565
-39943

skipif mysql # not compatible
query I rowsort label-5119
SELECT DISTINCT - - col0 * col1 / - col0 + col2 * ( - col1 ) * + col2 FROM tab2 cor0
----
-22630
-24565
-39943

query I rowsort
SELECT ALL col1 + col2 * 27 AS col2 FROM tab2 AS cor0
----
1043
760
761

query I rowsort
SELECT DISTINCT + col1 * + ( col1 + - col1 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 * ( col2 ) + - cor0.col1 + 22 AS col0 FROM tab1 AS cor0
----
1257
1400
582

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5123
SELECT + col2 * CAST( - col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5123
SELECT + col2 * CAST ( - col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL col2 - col1 * col2 AS col0 FROM tab2 cor0
----
-1508
-608
-810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5125
SELECT DISTINCT col0 + - ( + col2 ) * CAST( + col1 AS SIGNED ) + + col2 * - cor0.col2 FROM tab0 AS cor0
----
-14097
-3903
-63

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT col0 + - ( + col2 ) * CAST ( + col1 AS INTEGER ) + + col2 * - cor0.col2 FROM tab0 AS cor0
----
-14097
-3903
-63

query I rowsort
SELECT DISTINCT ( + col0 ) * col0 - col1 * col1 AS col0 FROM tab2 cor0
----
-912
2603
5952

query I rowsort
SELECT DISTINCT cor1.col2 * - 89 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 cor1
----
-4806
-5073
-8544

query I rowsort
SELECT - col2 + 36 AS col1 FROM tab2
----
-2
10
9

query I rowsort
SELECT col1 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT col0 * + 95 + - col1 AS col1 FROM tab0 cor0
----
2194
3228
8364

query I rowsort
SELECT - + col0 + 66 FROM tab0 AS cor0
----
-23
31
42

query I rowsort
SELECT + - col2 + 63 * col2 AS col2 FROM tab1 AS cor0
----
3348
3534
5952

query I rowsort
SELECT col1 + - 3 FROM tab2
----
14
28
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-5134
SELECT - col1 - - col0 DIV - 58 FROM tab2
----
-18
-31
-60

skipif mysql # not compatible
query I rowsort label-5134
SELECT - col1 - - col0 / - 58 FROM tab2
----
-18
-31
-60

query I rowsort
SELECT DISTINCT + col2 * - col0 + col0 * col0 FROM tab0 AS cor0
----
-216
1190
623

query I rowsort
SELECT DISTINCT - - col2 * 24 FROM tab0 AS cor0
----
1968
24
792

query I rowsort
SELECT - + ( - col2 ) + + col2 * - 8 + - col0 AS col2 FROM tab2 AS cor0
----
-196
-260
-345

query I rowsort
SELECT DISTINCT 30 + col2 FROM tab2 cor0
----
56
57
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col2 FROM tab1 AS cor0
----
-99
-99
-99

query I rowsort
SELECT ALL - col1 - col2 * + col2 FROM tab2 AS cor0
----
-1461
-735
-760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT DISTINCT - tab2.col1 + + col1 + + 45 FROM tab2
----
45

query I rowsort
SELECT DISTINCT + + cor0.col1 * col2 * col0 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5144
SELECT DISTINCT col0 DIV col1 col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT col0 / col1 col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 68 * - col1 + 54 + col1 * col2 FROM tab2
----
-1217
-2424
-456

onlyif mysql # use DIV operator for integer division
query I rowsort label-5146
SELECT ALL col0 DIV CAST( col0 AS SIGNED ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5146
SELECT ALL col0 / CAST ( col0 AS INTEGER ) FROM tab2
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5147
SELECT DISTINCT + cor0.col1 DIV ( col2 + + col0 * 15 ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT + cor0.col1 / ( col2 + + col0 * 15 ) AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT + col1 * 61 AS col1 FROM tab1 AS cor0
----
1586
610
793

query I rowsort
SELECT + + col1 * 56 AS col0 FROM tab2 AS cor0
----
1736
3304
952

query I rowsort
SELECT DISTINCT - 93 AS col2 FROM tab2, tab1 AS cor0
----
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5151
SELECT DISTINCT - ( + 60 ) * + col0 + CAST( NULL AS SIGNED ) * - col2 + col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT - ( + 60 ) * + col0 + CAST ( NULL AS INTEGER ) * - col2 + col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - + 90 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to c0d96679aba507520916e8654e5a6618

onlyif mysql # use DIV operator for integer division
query I rowsort label-5153
SELECT + 43 DIV + cor0.col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5153
SELECT + 43 / + cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + 33 + - col1 - - col0 AS col0 FROM tab1 cor0
----
10
100
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5155
SELECT + col0 * + col1 + + 27 / col0 - cor0.col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5155
SELECT + col0 * + col1 + + 27 / col0 - cor0.col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5156
SELECT col1 - col1 * CAST( + 93 AS SIGNED ) * cor0.col0 FROM tab1 AS cor0
----
-59510
-7228
-96707

skipif mysql # not compatible
query I rowsort label-5156
SELECT col1 - col1 * CAST ( + 93 AS INTEGER ) * cor0.col0 FROM tab1 AS cor0
----
-59510
-7228
-96707

query I rowsort
SELECT DISTINCT 14 AS col2 FROM tab1, tab0 AS cor0
----
14

query I rowsort
SELECT ALL - 32 FROM tab0, tab2 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT 1 - + cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 25e33539c6fe133310ff54924d043e9b

query I rowsort
SELECT ALL + ( tab2.col1 ) AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5161
SELECT col0 + - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-5161
SELECT col0 + - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + col1 * 48 AS col2 FROM tab2 AS cor0
----
1488
2832
816

query I rowsort
SELECT + - col1 * + 21 AS col1 FROM tab0 AS cor0
----
-1806
-1911
-2037

query I rowsort
SELECT + col1 + + col0 * col0 AS col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ( 74 ) * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-2442
-6068
-74

query I rowsort
SELECT + col1 + - ( col2 ) * col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5167
SELECT - CAST( NULL AS SIGNED ) * col2 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT - CAST ( NULL AS INTEGER ) * col2 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( col1 ) * + col0 * 93 FROM tab1
----
59520
7254
96720

query I rowsort
SELECT - 7 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 180f983bbf84f38a53d5012e5c10c628

query I rowsort
SELECT ALL + 22 * - 86 + col2 FROM tab2 cor0
----
-1854
-1865
-1866

query I rowsort
SELECT DISTINCT - col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - 47 + - ( + col0 ) AS col1 FROM tab2 AS cor0
----
-125
-126
-54

query I rowsort
SELECT ALL + col1 + - 81 + col1 FROM tab1 AS cor0
----
-29
-55
-61

query I rowsort
SELECT ALL - + 17 - + col0 FROM tab0 AS cor0
----
-106
-41
-52

query I rowsort
SELECT ALL - col2 + - 65 * - col0 FROM tab2 cor0
----
428
5044
5097

query I rowsort
SELECT - ( + 4 ) FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT ALL - 42 AS col2 FROM tab1 cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT + col2 + col1 * + 50 AS col0 FROM tab0 AS cor0
----
4333
4632
4851

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 * col0 col1 FROM tab2 cor0
----
567
6318
6399

query I rowsort
SELECT ALL 46 + + col1 FROM tab1 AS cor0
----
56
59
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-5181
SELECT ALL ( - cor0.col1 ) * + ( + 21 ) + - col2 DIV col0 FROM tab0 AS cor0
----
-1807
-1911
-2037

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL ( - cor0.col1 ) * + ( + 21 ) + - col2 / col0 FROM tab0 AS cor0
----
-1807
-1911
-2037

query I rowsort
SELECT DISTINCT - - col2 - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL col1 * - col0 + 5 AS col0 FROM tab0 cor0
----
-2059
-3390
-8094

onlyif mysql # use DIV operator for integer division
query I rowsort label-5184
SELECT + cor0.col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5184
SELECT + cor0.col0 / - col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ( col2 + col0 ) AS col0 FROM tab2
----
104
117
34

query I rowsort
SELECT 9 AS col0 FROM tab1, tab2, tab0 cor0, tab0 AS cor1
----
81 values hashing to b7e6b25481699c3a4ee7381c7eae0817

onlyif mysql # use DIV operator for integer division
query I rowsort label-5187
SELECT - ( - 36 ) DIV cor0.col2 AS col1 FROM tab2, tab1, tab0 cor0
----
27 values hashing to cee0207f5cbdde4d8f4d77c057159718

skipif mysql # not compatible
query I rowsort label-5187
SELECT - ( - 36 ) / cor0.col2 AS col1 FROM tab2, tab1, tab0 cor0
----
27 values hashing to cee0207f5cbdde4d8f4d77c057159718

query I rowsort
SELECT + ( ( + col1 ) ) AS col2 FROM tab2
----
17
31
59

query I rowsort
SELECT 50 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT col1 + 85 FROM tab2 AS cor0
----
102
116
144

query I rowsort
SELECT + col2 * ( col0 ) * - col2 + 58 FROM tab1 cor0
----
-207878
-737222
-8690

query I rowsort
SELECT DISTINCT col1 + 0 * col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + col1 * - ( + col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - + col1 * 54 + + ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-4558
-4823
-5141

query I rowsort
SELECT cor0.col2 + ( 12 ) AS col1 FROM tab1 AS cor0
----
108
66
69

query I rowsort
SELECT - col1 * + 65 + col1 FROM tab0 AS cor0
----
-5504
-5824
-6208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + tab1.col2 col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL + col1 * ( - col0 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - col0 + cor0.col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 90 - - tab2.col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 690e7267583cd7f37a3d9d98caebcc0d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 col1 FROM tab1
----
100
169
676

query I rowsort
SELECT DISTINCT - col1 * col2 * col1 FROM tab2
----
-10982
-25947
-90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5203
SELECT ALL - tab0.col0 * CAST( NULL AS DECIMAL ) + + 8 / col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL - tab0.col0 * CAST ( NULL AS REAL ) + + 8 / col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5204
SELECT DISTINCT 71 DIV 79 AS col1 FROM tab1, tab0 AS cor0, tab1 cor1
----
0

skipif mysql # not compatible
query I rowsort label-5204
SELECT DISTINCT 71 / 79 AS col1 FROM tab1, tab0 AS cor0, tab1 cor1
----
0

query I rowsort
SELECT DISTINCT + ( tab2.col1 + + 62 ) * tab2.col0 FROM tab2
----
6241
651
9438

query I rowsort
SELECT + col2 + - col1 * + ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT + - col2 + col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT DISTINCT - col1 * col2 * col2 AS col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT - - col0 * + ( col1 ) FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5210
SELECT ALL col2 * CAST( col2 AS SIGNED ) FROM tab2 cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL col2 * CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
1
33
82

query I rowsort
SELECT + col0 + col2 * - ( col1 ) FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT - cor0.col0 + + col0 * + col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT ALL - col1 * + 71 * ( + col1 ) AS col0 FROM tab0 AS cor0
----
-525116
-587951
-668039

query I rowsort
SELECT + col1 * col2 * col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT cor0.col0 + - 59 FROM tab0 AS cor0
----
-24
-35
30

query I rowsort
SELECT ALL + + cor0.col2 * ( - col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + ( + 30 ) + cor0.col0 * - col2 + col2 AS col1 FROM tab2 AS cor0
----
-132
-1972
-2934

query I rowsort
SELECT tab0.col0 * + 24 * col0 FROM tab0
----
13824
190104
29400

query I rowsort
SELECT - 38 + 93 * + col1 FROM tab0 cor0
----
7960
8425
8983

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * col1 + - col1 + + col1 * - col2 col2 FROM tab2 cor0
----
-1829
-5074
-952

query I rowsort
SELECT - + ( - 81 ) + cor0.col2 AS col1 FROM tab2 AS cor0
----
107
108
119

query I rowsort
SELECT + - col0 * col1 * col2 - ( + 87 ) * cor0.col0 FROM tab2 AS cor0
----
-126438
-57907
-6468

query I rowsort
SELECT DISTINCT - - 18 + 36 * col1 * col1 + col1 FROM tab0 AS cor0
----
266360
298225
338839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 28 * + col1 + col1 col1 FROM tab2 AS cor0
----
1711
493
899

query I rowsort
SELECT ALL - - ( + col1 ) - + col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ( cor0.col0 ) + col0 AS col2 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT - 57 + - 91 * + col0 AS col1 FROM tab2 AS cor0
----
-694
-7155
-7246

query I rowsort
SELECT ALL col2 * col1 + - col2 + + col2 AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT 2 + 65 * col0 AS col1 FROM tab2 cor0
----
457
5072
5137

query I rowsort
SELECT DISTINCT 95 * - col2 + + col0 FROM tab0 AS cor0
----
-3111
-60
-7701

query I rowsort
SELECT + ( + cor0.col1 ) + - 49 FROM tab0 AS cor0
----
37
42
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT col0 * - col2 + + cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL + + 95 + + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7491
8376
9504

query I rowsort
SELECT 43 * tab0.col2 FROM tab0
----
1419
3526
43

query I rowsort
SELECT + col1 * col2 * - tab2.col2 - + ( col0 + - col0 * + 8 ) AS col0 FROM tab2
----
-22550
-23995
-39338

onlyif mysql # use DIV operator for integer division
query I rowsort label-5238
SELECT col1 DIV col1 + + cor0.col1 * + ( col2 * + col1 ) FROM tab1 AS cor0
----
16225
36505
5701

skipif mysql # not compatible
query I rowsort label-5238
SELECT col1 / col1 + + cor0.col1 * + ( col2 * + col1 ) FROM tab1 AS cor0
----
16225
36505
5701

onlyif mysql # use DIV operator for integer division
query I rowsort label-5239
SELECT DISTINCT - + col1 + col2 DIV col1 AS col0 FROM tab2 cor0
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT - + col1 + col2 / col1 AS col0 FROM tab2 cor0
----
-15
-31
-59

query I rowsort
SELECT - 24 + + col0 * 77 FROM tab2 AS cor0
----
515
5982
6059

query I rowsort
SELECT cor0.col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + 52 + col1 AS col1 FROM tab0 AS cor0
----
138
143
149

query I rowsort
SELECT DISTINCT col1 - - col2 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT 24 * + col1 FROM tab2 AS cor0
----
1416
408
744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 + cor0.col2 col1 FROM tab1 cor0
----
-43
-622
-73

query I rowsort
SELECT ALL + ( - 85 ) + + col2 FROM tab2
----
-47
-58
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 + - col1 * col0 col0 FROM tab0
----
-2039
-3370
-8074

onlyif mysql # use DIV operator for integer division
query I rowsort label-5248
SELECT + col2 DIV cor0.col1 + col0 * + col1 col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5248
SELECT + col2 / cor0.col1 + col0 * + col1 col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT 21 AS col0 FROM tab2
----
21

query I rowsort
SELECT - 40 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT DISTINCT - - 68 + - col1 * - col0 AS col1 FROM tab2 AS cor0
----
1411
285
4670

query I rowsort
SELECT + + 75 * 76 FROM tab1 AS cor0
----
5700
5700
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-5253
SELECT ALL - col1 * col2 DIV col2 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL - col1 * col2 / col2 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - 97 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 cor1
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 94 col1 FROM tab1
----
-37
-40
2

query I rowsort
SELECT ALL + 48 AS col1 FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT + col1 + - ( - tab1.col1 ) AS col2 FROM tab1
----
20
26
52

query I rowsort
SELECT 13 + - col1 AS col0 FROM tab0
----
-73
-78
-84

query I rowsort
SELECT col2 * + ( - tab1.col2 ) FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT ( + col2 ) * col0 + - 46 FROM tab2
----
143
1982
2956

query I rowsort
SELECT 50 + tab1.col2 * col1 + ( col2 ) FROM tab1
----
1394
1508
677

query I rowsort
SELECT + col1 * 95 AS col1 FROM tab2
----
1615
2945
5605

query I rowsort
SELECT col2 + - ( - col0 ) + - col2 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL + 31 + - col2 AS col2 FROM tab1
----
-23
-26
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-5265
SELECT col1 DIV - tab2.col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5265
SELECT col1 / - tab2.col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ( tab1.col0 ) * - col1 AS col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + col2 * col0 + col2 AS col0 FROM tab1
----
216
3705
7776

query I rowsort
SELECT 2 + 73 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

query I rowsort
SELECT DISTINCT + col2 + - 70 * col1 AS col1 FROM tab1 AS cor0
----
-1766
-643
-814

onlyif mysql # use DIV operator for integer division
query I rowsort label-5270
SELECT ( + 79 ) * col0 + col2 - col2 DIV + col1 AS col0 FROM tab1 AS cor0
----
289
5108
6409

skipif mysql # not compatible
query I rowsort label-5270
SELECT ( + 79 ) * col0 + col2 - col2 / + col1 AS col0 FROM tab1 AS cor0
----
289
5108
6409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5271
SELECT 92 DIV col1 AS col2 FROM tab1
----
3
7
9

skipif mysql # not compatible
query I rowsort label-5271
SELECT 92 / col1 AS col2 FROM tab1
----
3
7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5272
SELECT DISTINCT - col2 DIV - 49 + + col1 FROM tab0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-5272
SELECT DISTINCT - col2 / - 49 + + col1 FROM tab0
----
86
92
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5273
SELECT ALL - ( col1 ) * - col2 + + col0 DIV - col1 - + col0 FROM tab1 AS cor0
----
1162
1401
500

skipif mysql # not compatible
query I rowsort label-5273
SELECT ALL - ( col1 ) * - col2 + + col0 / - col1 - + col0 FROM tab1 AS cor0
----
1162
1401
500

query I rowsort
SELECT + cor0.col1 * + ( col1 ) FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT - col1 + 89 FROM tab2 cor0
----
30
58
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5276
SELECT - + col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT - + col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * 75 * col1 col2 FROM tab1 AS cor0
----
-12675
-50700
-7500

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( NULL NOT IN ( + col1 / + col1 + col1 ) AND NULL IN ( col2 * col1 * + col1 ) ) AND NOT NULL BETWEEN NULL AND col0 ) AND NOT col0 + col2 * + col1 + col1 BETWEEN NULL AND col2 * col2
----

query I rowsort
SELECT ALL + col0 + + col2 + - 82 AS col1 FROM tab2 AS cor0
----
-48
22
35

query I rowsort
SELECT DISTINCT + cor0.col2 + + col0 * + 62 FROM tab1 AS cor0
----
240
4025
5056

query I rowsort
SELECT DISTINCT - col2 * ( col2 ) - col0 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT DISTINCT - + ( col2 ) * - col2 AS col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT - col0 + + cor0.col0 * - col0 AS col1 FROM tab1 AS cor0
----
-12
-4160
-6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-5284
SELECT + 64 DIV tab2.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 245313dc4e9fc19df7ee93651efe9bf2

skipif mysql # not compatible
query I rowsort label-5284
SELECT + 64 / tab2.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 245313dc4e9fc19df7ee93651efe9bf2

query I rowsort
SELECT col1 + col2 * col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT + cor0.col2 * - 77 FROM tab0, tab0 cor0, tab0 AS cor1
----
-2541
-6314
-77

query I rowsort
SELECT + tab2.col2 * - col0 AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT 9 * - col1 FROM tab0 AS cor0
----
-774
-819
-873

onlyif mysql # use DIV operator for integer division
query I rowsort label-5289
SELECT DISTINCT col1 DIV - col2 + tab1.col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5289
SELECT DISTINCT col1 / - col2 + tab1.col1 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT + col2 + + tab2.col2 + col2 * - col2 FROM tab2
----
-1368
-624
-675

query I rowsort
SELECT - cor0.col1 * cor0.col0 + col2 + - col0 AS col2 FROM tab1 AS cor0
----
-1024
-27
-647

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 * tab1.col0 * - col1 col2 FROM tab1
----
-57600
-7020
-93600

query I rowsort
SELECT ALL col0 * - col1 + - col1 * - col1 + col1 * col1 FROM tab1
----
-440
-702
1274

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * col0 col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + cor0.col2 + col1 * + col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL cor0.col1 * col0 AS col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL + col1 + - cor0.col1 * cor0.col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL 98 - + col1 FROM tab0
----
1
12
7

query I rowsort
SELECT + - col1 * col0 * col0 - + col0 FROM tab2 AS cor0
----
-106176
-1526
-359034

query I rowsort
SELECT ALL 10 FROM tab1, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5301
SELECT ALL - CAST( - col2 AS SIGNED ) - col1 * tab0.col0 FROM tab0
----
-2031
-3394
-8017

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL - CAST ( - col2 AS INTEGER ) - col1 * tab0.col0 FROM tab0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-5302
SELECT ALL col2 - - col1 DIV col0 AS col1 FROM tab0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL col2 - - col1 / col0 AS col1 FROM tab0
----
3
36
83

query I rowsort
SELECT ALL - 88 * - col0 + + cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
1453
7598
8398

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + col2 + 64 * + col1 AS col1 FROM tab2 AS cor0
----
1126
2011
3802

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5307
SELECT + + ( + cor0.col1 ) DIV + col1 + - col2 * col0 AS col0 FROM tab2 AS cor0
----
-188
-2027
-3001

skipif mysql # not compatible
query I rowsort label-5307
SELECT + + ( + cor0.col1 ) / + col1 + - col2 * col0 AS col0 FROM tab2 AS cor0
----
-188
-2027
-3001

query I rowsort
SELECT + - 17 * col1 * col0 - + col2 FROM tab1 AS cor0
----
-10937
-1380
-17776

query I rowsort
SELECT + col1 * - col1 * col0 + col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-12272
-5830
-624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * cor0.col0 * + col2 - + col2 col1 FROM tab1 AS cor0
----
-36537
-4266
-99936

onlyif mysql # use DIV operator for integer division
query I rowsort label-5311
SELECT - cor0.col0 DIV - col0 + col2 * col2 * - col2 FROM tab0 AS cor0
----
-35936
-551367
0

skipif mysql # not compatible
query I rowsort label-5311
SELECT - cor0.col0 / - col0 + col2 * col2 * - col2 FROM tab0 AS cor0
----
-35936
-551367
0

query I rowsort
SELECT ALL + + ( - col0 ) * - col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - + cor0.col1 * + col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + col0 * - col2 - col0 * + col2 * col0 AS col2 FROM tab0 AS cor0
----
-1260
-19800
-656820

query I rowsort
SELECT ( cor0.col2 ) * - cor0.col2 + cor0.col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) + - col0 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT 85 + - cor0.col2 FROM tab0 AS cor0
----
3
52
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-5318
SELECT 47 - col2 DIV + col2 FROM tab1 cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-5318
SELECT 47 - col2 / + col2 FROM tab1 cor0
----
46
46
46

query I rowsort
SELECT ALL + col0 * cor0.col0 * - col1 AS col2 FROM tab0 AS cor0
----
-118825
-49536
-720811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5320
SELECT CAST( NULL AS SIGNED ) / + 52 col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5320
SELECT CAST ( NULL AS INTEGER ) / + 52 col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * col1 + + col0 col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT 35 AS col1 FROM tab0
----
35

query I rowsort
SELECT ALL 58 FROM tab0, tab2 cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # use DIV operator for integer division
query I rowsort label-5324
SELECT DISTINCT cor0.col1 + + ( - col2 ) DIV 25 AS col2 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT cor0.col1 + + ( - col2 ) / 25 AS col2 FROM tab2 AS cor0
----
16
30
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5325
SELECT CAST( NULL AS SIGNED ) * col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5325
SELECT CAST ( NULL AS INTEGER ) * col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 - + col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT ALL - col2 + col2 + + col1 * col1 * + ( col1 * col0 ) FROM tab0 AS cor0
----
15265344
31943555
67067819

query I rowsort
SELECT + + 47 + - cor0.col2 * - col0 AS col0 FROM tab2 AS cor0
----
2075
236
3049

query I rowsort
SELECT ALL col1 + ( + col2 ) AS col0 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 col0 FROM tab1, tab2 cor0
----
21

query I rowsort
SELECT DISTINCT + + col0 * 68 AS col0 FROM tab2 AS cor0
----
476
5304
5372

query I rowsort
SELECT DISTINCT - ( - tab2.col1 + - col2 ) FROM tab2
----
55
58
85

query I rowsort
SELECT ALL 81 * - tab1.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 6727effa3d309893d9bc39667fc04d74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + tab0.col0 col2 FROM tab0
----
178
48
70

query I rowsort
SELECT + col0 * ( col0 * + tab0.col0 ) + col1 AS col2 FROM tab0
----
13910
42972
705060

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 * tab1.col0 - 77 col2 FROM tab1
----
1
563
963

query I rowsort
SELECT DISTINCT tab1.col1 + - col2 * + tab1.col0 - col0 AS col1 FROM tab1
----
-139
-3702
-7747

onlyif mysql # use DIV operator for integer division
query I rowsort label-5338
SELECT col2 DIV col0 + col0 * col2 * - col0 FROM tab0
----
-1225
-19007
-649522

skipif mysql # not compatible
query I rowsort label-5338
SELECT col2 / col0 + col0 * col2 * - col0 FROM tab0
----
-1225
-19007
-649522

query I rowsort
SELECT col1 * - 92 + - col1 FROM tab2 cor0
----
-1581
-2883
-5487

query I rowsort
SELECT - col1 + col2 * cor0.col2 - col2 FROM tab2 cor0
----
1389
591
671

query I rowsort
SELECT DISTINCT cor0.col0 * - 78 AS col1 FROM tab2 AS cor0
----
-546
-6084
-6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 93 * + col0 col2 FROM tab1 AS cor0
----
253
5942
7427

query I rowsort
SELECT col0 + + col2 - - col0 AS col1 FROM tab2
----
182
196
41

query I rowsort
SELECT DISTINCT + ( + col0 ) - - ( tab0.col2 + col2 ) * col0 FROM tab0
----
105
14685
1608

query I rowsort
SELECT DISTINCT col1 + - cor0.col1 - 51 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-357
-3978
-4029

query I rowsort
SELECT cor0.col0 + + col1 * - col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL col2 * ( + col0 ) + - col1 FROM tab2 cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT + col1 + 0 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - ( + col2 ) col1 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT + col0 * - 47 FROM tab1 cor0
----
-141
-3008
-3760

query I rowsort
SELECT - cor0.col0 * col1 + col1 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT + + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + - col2 * - 65 FROM tab2 AS cor0
----
1690
1755
2470

skipif mysql # not compatible
query I rowsort
SELECT ALL + - col2 * CAST ( + col0 AS REAL ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - + col1 * - col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT ALL - col0 * + ( col1 ) * col2 - col1 * - col2 AS col2 FROM tab2 AS cor0
----
-118118
-5022
-50388

query I rowsort
SELECT - + col1 + - col0 * ( col1 ) * 71 FROM tab0 AS cor0
----
-146630
-241142
-575120

query I rowsort
SELECT DISTINCT col1 * + ( - ( cor0.col1 ) ) + col1 * - col0 FROM tab0 AS cor0
----
-12804
-16380
-9460

query I rowsort
SELECT ALL - cor0.col1 * 57 + - 45 * + col0 - ( + cor0.col2 ) FROM tab0 AS cor0
----
-6015
-7105
-9274

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5360
SELECT + cor0.col2 * 66 - + col1 * + col2 * CAST( - 35 AS SIGNED ) col1 FROM tab0 cor0
----
101508
266582
3461

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5360
SELECT + cor0.col2 * 66 - + col1 * + col2 * CAST ( - 35 AS INTEGER ) col1 FROM tab0 cor0
----
101508
266582
3461

query I rowsort
SELECT DISTINCT + cor0.col2 + ( col0 ) FROM tab1 cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 56 col1 FROM tab2
----
18
29
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-5363
SELECT - col1 DIV ( 69 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5363
SELECT - col1 / ( 69 ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + - tab0.col1 + ( tab0.col1 * col1 ) FROM tab0
----
7343
8272
9313

query I rowsort
SELECT ALL - col0 + tab0.col0 AS col0 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5366
SELECT DISTINCT col2 + ( - tab2.col1 ) * col2 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT col2 + ( - tab2.col1 ) * col2 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT col1 + - 46 * - cor0.col2 FROM tab0 cor0
----
143
1604
3863

query I rowsort
SELECT ALL - cor0.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

onlyif mysql # use DIV operator for integer division
query I rowsort label-5369
SELECT DISTINCT tab2.col0 * col2 DIV col0 AS col1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-5369
SELECT DISTINCT tab2.col0 * col2 / col0 AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT 75 * cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 76e82b1bb8eca2265484ce55d39dac81

query I rowsort
SELECT - ( + col0 ) + + col0 * 42 AS col2 FROM tab1 AS cor0
----
123
2624
3280

query I rowsort
SELECT - - 0 + + col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT ( + tab2.col0 ) * - col0 FROM tab2
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5374
SELECT CAST( NULL AS SIGNED ) * + 90 - col1 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-5374
SELECT CAST ( NULL AS INTEGER ) * + 90 - col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - ( col0 ) + + col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + cor0.col0 * + 33 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-1617
-200772
-205953

query I rowsort
SELECT + - col2 + ( - cor0.col0 ) * + ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-1136
-132
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-5378
SELECT ALL + cor0.col0 DIV 60 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL + cor0.col0 / 60 AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - col2 * - col1 + col2 * col2 FROM tab2 cor0
----
1566
2090
2210

query I rowsort
SELECT + cor0.col1 * - 11 + col1 FROM tab1 cor0
----
-100
-130
-260

onlyif mysql # use DIV operator for integer division
query I rowsort label-5381
SELECT - - col1 DIV + cor0.col1 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5381
SELECT - - col1 / + cor0.col1 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + + 55 * col2 - + ( + col1 ) FROM tab1 AS cor0
----
2944
3125
5267

query I rowsort
SELECT ALL - + col1 + cor0.col2 * + cor0.col2 * - col2 FROM tab2 AS cor0
----
-17635
-19714
-54889

query I rowsort
SELECT + ( col1 ) * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col1 FROM tab2
----
94
94
94

query I rowsort
SELECT 12 + col1 * + col0 * + col2 FROM tab0 AS cor0
----
3407
664130
68124

query I rowsort
SELECT ALL 62 + + col0 FROM tab2 cor0
----
140
141
69

query I rowsort
SELECT - tab0.col2 + - cor0.col2 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 2900475a612c34919b985c1e9d1b6eec

query I rowsort
SELECT - - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT - + 61 * col1 + col2 FROM tab2 AS cor0
----
-1864
-3573
-999

query I rowsort
SELECT + 56 * + col2 + 9 AS col2 FROM tab0 AS cor0
----
1857
4601
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 col0 FROM tab0 AS cor0
----
-97
-97
-97

query I rowsort
SELECT + ( 23 ) FROM tab0, tab1 cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab1 cor1, tab2, tab0 AS cor2
----
3645 values hashing to fb1fb273a543ea33958edfcaa2e7ed26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5395
SELECT ALL col1 + 51 DIV col1 AS col1 FROM tab2
----
20
32
59

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL col1 + 51 / col1 AS col1 FROM tab2
----
20
32
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5396
SELECT 85 DIV cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

skipif mysql # not compatible
query I rowsort label-5396
SELECT 85 / cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

query I rowsort
SELECT 14 * - col2 AS col1 FROM tab2
----
-364
-378
-532

query I rowsort
SELECT - 68 * - col0 AS col1 FROM tab0
----
1632
2380
6052

onlyif mysql # use DIV operator for integer division
query I rowsort label-5399
SELECT col2 DIV col1 + col2 AS col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5399
SELECT col2 / col1 + col2 AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT + col0 * + col2 - col1 AS col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT - + col0 * - col1 - - col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + 7 + 13 AS col0 FROM tab2 AS cor0
----
20
20
20

query I rowsort
SELECT DISTINCT 97 FROM tab1 cor0
----
97

query I rowsort
SELECT + col0 * + col2 + col1 * + col2 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT ALL col2 * - col0 * + ( col2 ) AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-5406
SELECT ALL + col0 + col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL + col0 + col0 / + col1 AS col2 FROM tab1 AS cor0
----
3
70
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-5407
SELECT ALL - - col0 DIV - col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL - - col0 / - col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 17 + + col1 * 23 AS col1 FROM tab2 AS cor0
----
1374
408
730

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5409
SELECT CAST( 92 AS SIGNED ) * tab1.col0 FROM tab1
----
276
5888
7360

skipif mysql # not compatible
query I rowsort label-5409
SELECT CAST ( 92 AS INTEGER ) * tab1.col0 FROM tab1
----
276
5888
7360

query I rowsort
SELECT ALL + col2 + col0 * ( - 27 ) FROM tab2
----
-162
-2080
-2095

query I rowsort
SELECT ALL ( col0 ) + ( col1 + col2 ) * col1 AS col0 FROM tab0
----
10258
15832
9541

query I rowsort
SELECT + - cor0.col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT - 25 - - col0 AS col2 FROM tab1 AS cor0
----
-22
39
55

query I rowsort
SELECT 80 * col1 AS col2 FROM tab2 AS cor0
----
1360
2480
4720

query I rowsort
SELECT - col2 * + col2 + - ( - col2 * - col1 ) FROM tab0
----
-14186
-3927
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 36 ) col1 FROM tab1, tab1 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT + col0 + 48 AS col0 FROM tab1
----
112
128
51

query I rowsort
SELECT DISTINCT col2 * - ( - col1 ) AS col0 FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5419
SELECT ALL + col2 DIV - col1 AS col2 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL + col2 / - col1 AS col2 FROM tab2
----
-2
0
0

query I rowsort
SELECT ALL col0 * 91 AS col0 FROM tab0
----
2184
3185
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5421
SELECT + col1 * CAST( + cor0.col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-5421
SELECT + col1 * CAST ( + cor0.col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - col1 * 45 FROM tab0 AS cor0
----
-3870
-4095
-4365

query I rowsort
SELECT ( + col2 ) + col2 * - col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT - - col2 + 15 AS col2 FROM tab2 AS cor0
----
41
42
53

query I rowsort
SELECT DISTINCT 43 AS col2 FROM tab0 AS cor0
----
43

query I rowsort
SELECT ALL 57 * + cor0.col2 FROM tab2 AS cor0
----
1482
1539
2166

query I rowsort
SELECT ALL - cor0.col1 + - cor0.col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT - - ( - col0 ) + - col0 * + ( col2 * + col0 ) FROM tab1 AS cor0
----
-233536
-489
-614480

query I rowsort
SELECT ALL ( - col0 ) + cor0.col1 * ( + col1 ) FROM tab0 AS cor0
----
7372
8192
9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 * col0 col2 FROM tab0 AS cor0
----
1728
2520
6408

query I rowsort
SELECT DISTINCT col1 - col1 * col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT col0 * + col0 - col1 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT ALL + col1 + col2 * - cor0.col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 NOT IN ( col2 * col1 + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 * + col1 + col0 col2 FROM tab0
----
3430
664207
68136

query I rowsort
SELECT DISTINCT + col1 * col2 * + col2 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT ALL + col0 - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * + col1 - - col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 * + col2 + + col1 FROM tab1 AS cor0
----
-119795
-32480
-75790

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( - col2 )
----

query I rowsort
SELECT - col0 + + col0 + - col0 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT col0 * + col2 * col0 AS col0 FROM tab0
----
1225
19008
649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 * col1 - col2 / tab0.col2 col0 FROM tab0 WHERE NOT NULL NOT IN ( col0 / - col2 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col2 * col0 col2 FROM tab1
----
36480
4212
99840

query III rowsort
SELECT * FROM tab2 WHERE NULL <= ( + col2 + - col0 )
----

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT col0 + + col1 + col2 > NULL
----

query I rowsort
SELECT col1 * - col0 + col0 * + col0 - + col1 AS col2 FROM tab1
----
-95
3446
5347

query I rowsort
SELECT - col0 + col0 * tab0.col0 FROM tab0
----
1190
552
7832

query I rowsort
SELECT - col0 * col2 + col0 - col1 * col1 FROM tab0
----
-15490
-8164
-9409

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 + + col2 ) NOT IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT tab1.col2 + - tab1.col0 + col2 AS col1 FROM tab1
----
105
112
50

query I rowsort
SELECT + col0 * + tab0.col0 * + tab0.col1 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT ALL + - col2 + + col0 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT - - col1 + + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5455
SELECT DISTINCT col1 + + col0 DIV col1 AS col2 FROM tab1 cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-5455
SELECT DISTINCT col1 + + col0 / col1 AS col2 FROM tab1 cor0
----
16
19
26

query I rowsort
SELECT DISTINCT + tab1.col0 * - tab1.col2 AS col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + tab0.col2 * col1 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT col1 * tab2.col2 - tab2.col2 AS col0 FROM tab2
----
1508
608
810

query I rowsort
SELECT + col2 * col2 - col0 * tab2.col1 * - col2 AS col0 FROM tab2
----
120328
52478
6588

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + col2 - col2 * col0 )
----

query I rowsort
SELECT tab0.col0 + - col0 * col0 AS col0 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT - col2 * + col2 - col1 AS col0 FROM tab0
----
-1175
-6815
-98

query I rowsort
SELECT DISTINCT - col1 * col0 - col2 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL - col0 - - col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT NULL BETWEEN col1 AND ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 col1 FROM tab2 cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5467
SELECT ALL tab1.col0 DIV - col0 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL tab1.col0 / - col0 AS col0 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 * + col0 col1 FROM tab2 AS cor0
----
114076
5103
52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-5469
SELECT + col2 DIV 32 FROM tab1 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-5469
SELECT + col2 / 32 FROM tab1 AS cor0
----
1
1
3

query I rowsort
SELECT ALL + tab2.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL 64 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT - col1 * 87 AS col1 FROM tab2 AS cor0
----
-1479
-2697
-5133

onlyif mysql # use DIV operator for integer division
query I rowsort label-5473
SELECT col1 DIV 69 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5473
SELECT col1 / 69 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * ( col1 ) + - col2 * - col0 AS col1 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT tab2.col1 + + col1 * + col0 AS col0 FROM tab2
----
1360
248
4661

query I rowsort
SELECT col1 * + col1 + - col2 FROM tab2
----
251
3455
934

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 NOT IN ( + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT - col0 * col1 + - col1 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT col2 * + col1 * + col0 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5480
SELECT + CAST( NULL AS SIGNED ) col0 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5480
SELECT + CAST ( NULL AS INTEGER ) col0 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 col0 FROM tab1 cor0
----
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-5482
SELECT + cor0.col0 * cor0.col1 DIV ( cor0.col2 + + col2 ) FROM tab0 cor0
----
1697
31
49

skipif mysql # not compatible
query I rowsort label-5482
SELECT + cor0.col0 * cor0.col1 / ( cor0.col2 + + col2 ) FROM tab0 cor0
----
1697
31
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5483
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5483
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5485
SELECT col1 + col2 DIV col0 AS col0 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-5485
SELECT col1 + col2 / col0 AS col0 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT + col2 / col0 <= NULL
----

query I rowsort
SELECT tab1.col0 * - col2 + tab1.col2 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT - col0 * 66 FROM tab1
----
-198
-4224
-5280

onlyif mysql # use DIV operator for integer division
query I rowsort label-5489
SELECT ALL col0 DIV - 87 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL col0 / - 87 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + col1 * 37 FROM tab0
----
3182
3367
3589

query I rowsort
SELECT - 23 * 76 * col0 + + col0 AS col1 FROM tab0 AS cor0
----
-155483
-41928
-61145

onlyif mysql # use DIV operator for integer division
query I rowsort label-5492
SELECT ALL col2 DIV - 56 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL col2 / - 56 FROM tab2
----
0
0
0

query I rowsort
SELECT - col0 * + ( - tab2.col2 * col2 ) AS col0 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT ALL + col0 - + col0 * + col0 AS col2 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT ALL col2 - 3 FROM tab1
----
51
54
93

query I rowsort
SELECT DISTINCT + col0 * 12 AS col1 FROM tab1
----
36
768
960

query I rowsort
SELECT - col1 * + ( - col0 ) AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL col2 * col2 - 96 FROM tab1
----
2820
3153
9120

query I rowsort
SELECT - tab1.col1 AS col1 FROM tab0, tab2, tab2 cor0, tab1
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

query I rowsort
SELECT + col2 - + 32 FROM tab1
----
22
25
64

query I rowsort
SELECT DISTINCT ( + col1 ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - + col2 + col1 * col0 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT - col2 + - ( - col2 ) * ( + 34 ) * cor0.col0 AS col1 FROM tab2 AS cor0
----
102030
6399
68926

query I rowsort
SELECT DISTINCT col1 * - ( col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - 73 * col0 + + col0 AS col1 FROM tab2 cor0
----
-504
-5616
-5688

query I rowsort
SELECT col2 * + col1 + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - - col0 + - cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT - + col1 + col0 * col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT col0 * + col1 * + col0 AS col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT - col2 * col1 + cor0.col0 - + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-1239
3142
6512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + cor0.col1 col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - col0 * - col0 + + col1 - + cor0.col2 FROM tab1 AS cor0
----
-19
4049
6317

onlyif mysql # use DIV operator for integer division
query I rowsort label-5513
SELECT ALL - col1 DIV + ( cor0.col2 * col1 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL - col1 / + ( cor0.col2 * col1 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5514
SELECT + col2 + + CAST( - ( col2 ) AS SIGNED ) * - cor0.col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312

skipif mysql # not compatible
query I rowsort label-5514
SELECT + col2 + + CAST ( - ( col2 ) AS INTEGER ) * - cor0.col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL col0 * 50 - ( col1 ) AS col1 FROM tab0 AS cor0
----
1114
1653
4359

query I rowsort
SELECT + col0 * col1 * col2 FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT + col0 + 38 FROM tab2 AS cor0
----
116
117
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5518
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) + - col0 * + col1 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) + - col0 * + col1 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col0 + - 9 FROM tab2 AS cor0
----
-2
69
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 * + ( col2 ) col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL 97 * + col2 + col1 FROM tab2 AS cor0
----
2581
2650
3703

query I rowsort
SELECT DISTINCT col1 + 39 FROM tab0 AS cor0
----
125
130
136

query I rowsort
SELECT DISTINCT + 43 * + col0 FROM tab0 AS cor0
----
1032
1505
3827

query I rowsort
SELECT DISTINCT ( 19 ) * - cor0.col2 + - ( + col1 ) AS col0 FROM tab1 AS cor0
----
-1052
-1093
-1837

query I rowsort
SELECT DISTINCT - col1 + 61 * + col2 AS col2 FROM tab0 AS cor0
----
-36
1927
4911

query I rowsort
SELECT - 28 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc

query I rowsort
SELECT + ( - cor0.col1 ) * + col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + + 95 FROM tab0 cor0
----
95

query I rowsort
SELECT ALL col0 * + cor0.col2 + 86 * cor0.col0 FROM tab0 AS cor0
----
14952
2856
3045

query I rowsort
SELECT ALL ( col2 ) * + 1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5531
SELECT DISTINCT col1 DIV + col0 + + col2 col1 FROM tab1 AS cor0
----
57
62
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT col1 / + col0 + + col2 col1 FROM tab1 AS cor0
----
57
62
96

query I rowsort
SELECT + 3 + col1 * ( col1 ) FROM tab2 cor0
----
292
3484
964

query I rowsort
SELECT + 58 FROM tab0, tab1 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 40 * col1 + col1 col0 FROM tab0 AS cor0
----
3526
3731
3977

query I rowsort
SELECT + 16 * - ( - col2 * - ( col0 ) ) FROM tab0
----
-116768
-12672
-560

query I rowsort
SELECT DISTINCT tab1.col1 FROM tab1, tab2, tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5537
SELECT + col0 DIV + col1 + - ( 64 ) FROM tab0
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-5537
SELECT + col0 / + col1 + - ( 64 ) FROM tab0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT ( tab2.col2 ) * 33 * + 53 AS col1 FROM tab2
----
45474
47223
66462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 + - ( + 84 ) * - col1 col0 FROM tab1
----
-3256
-5308
2175

query I rowsort
SELECT - 14 + col1 FROM tab1
----
-1
-4
12

query I rowsort
SELECT ALL - col1 * + 77 AS col2 FROM tab2 AS cor0
----
-1309
-2387
-4543

query I rowsort
SELECT ALL col2 * col2 + - col1 FROM tab1 AS cor0
----
2890
3239
9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-5543
SELECT ALL - + col0 DIV - col1 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL - + col0 / - col1 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - col2 * + cor0.col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5545
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / - 92 col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT + CAST ( NULL AS REAL ) / - 92 col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL - col0 * + col1 + 89 AS col0 FROM tab2 AS cor0
----
-1254
-128
-4513

query I rowsort
SELECT ALL - + cor0.col1 + - col0 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5548
SELECT + cor0.col0 DIV col2 + col0 FROM tab1 cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-5548
SELECT + cor0.col0 / col2 + col0 FROM tab1 cor0
----
3
65
80

query I rowsort
SELECT DISTINCT - - col1 * + 67 + col0 - + col1 AS col1 FROM tab1 AS cor0
----
1719
724
938

query I rowsort
SELECT col1 + cor0.col1 * 43 FROM tab2 AS cor0
----
1364
2596
748

onlyif mysql # use DIV operator for integer division
query I rowsort label-5551
SELECT DISTINCT + col1 DIV + cor0.col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5551
SELECT DISTINCT + col1 / + cor0.col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT cor0.col0 AS col2 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + + col0 * 62 AS col1 FROM tab2 AS cor0
----
434
4836
4898

query I rowsort
SELECT + ( 35 ) + - col1 FROM tab2 AS cor0
----
-24
18
4

query I rowsort
SELECT + col1 * + 45 + - col2 FROM tab0 AS cor0
----
3837
4013
4364

query I rowsort
SELECT 1 * col1 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - - 36 * + col0 FROM tab2 AS cor0
----
252
2808
2844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5558
SELECT ALL - 50 + col1 * - col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL - 50 + col1 * - col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5559
SELECT ALL ( + 31 ) DIV - col2 + col1 col2 FROM tab0 AS cor0
----
66
86
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL ( + 31 ) / - col2 + col1 col2 FROM tab0 AS cor0
----
66
86
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-5560
SELECT + 54 DIV cor0.col1 FROM tab2 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5560
SELECT + 54 / cor0.col1 FROM tab2 AS cor0
----
0
1
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5561
SELECT + col1 + CAST( - 60 AS SIGNED ) DIV col0 AS col2 FROM tab2
----
17
23
59

skipif mysql # not compatible
query I rowsort label-5561
SELECT + col1 + CAST ( - 60 AS INTEGER ) / col0 AS col2 FROM tab2
----
17
23
59

query I rowsort
SELECT + 92 + col2 AS col1 FROM tab1 cor0
----
146
149
188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + - ( - col0 ) * col0 + + col1 AS col0 FROM tab1 cor0
----
35
4106
6413

query I rowsort
SELECT + col1 * - ( + col0 ) + + cor0.col2 FROM tab1 AS cor0
----
-24
-583
-944

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5567
SELECT ALL CAST( col0 AS SIGNED ) col1 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL CAST ( col0 AS INTEGER ) col1 FROM tab2
----
7
78
79

query I rowsort
SELECT - tab0.col0 * ( col0 ) AS col2 FROM tab0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-5569
SELECT ALL 57 DIV + 3 FROM tab1
----
19
19
19

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL 57 / + 3 FROM tab1
----
19
19
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 col0 FROM tab1
----
97
97
97

query I rowsort
SELECT + - col0 * + 79 AS col1 FROM tab1 AS cor0
----
-237
-5056
-6320

query I rowsort
SELECT ALL 63 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5573
SELECT col1 + col0 DIV - 36 FROM tab2 AS cor0
----
15
31
57

skipif mysql # not compatible
query I rowsort label-5573
SELECT col1 + col0 / - 36 FROM tab2 AS cor0
----
15
31
57

query I rowsort
SELECT DISTINCT 64 + col0 FROM tab1
----
128
144
67

query I rowsort
SELECT DISTINCT 76 * tab0.col1 + ( + 53 ) * col2 * col2 FROM tab0
----
363288
64253
7425

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5576
SELECT col2 + col2 + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5576
SELECT col2 + col2 + + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5577
SELECT col1 DIV + tab2.col1 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5577
SELECT col1 / + tab2.col1 AS col1 FROM tab2
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5578
SELECT - ( - col2 ) + - col2 + - col1 * + col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5578
SELECT - ( - col2 ) + - col2 + - col1 * + col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 27 AS col1 FROM tab2, tab0 cor0, tab1 AS cor1
----
27

query I rowsort
SELECT ALL - 54 + - col0 * ( col0 ) FROM tab1
----
-4150
-63
-6454

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - tab0.col0 col2 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT 38 FROM tab1, tab2 AS cor0
----
38

query I rowsort
SELECT DISTINCT col0 * 54 FROM tab1 AS cor0
----
162
3456
4320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + 92 * + 78 col0 FROM tab0 AS cor0
----
7079
7085
7090

query I rowsort
SELECT - col1 - ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT + col0 + ( col0 ) * cor0.col2 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5587
SELECT DISTINCT col2 + col2 DIV - ( + cor0.col0 ) FROM tab1 AS cor0
----
36
57
95

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT col2 + col2 / - ( + cor0.col0 ) FROM tab1 AS cor0
----
36
57
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-5588
SELECT ALL + col1 DIV col1 - col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL + col1 / col1 - col1 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT DISTINCT col2 * - ( col1 ) + col1 FROM tab0 AS cor0
----
-2752
-7371
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - cor0.col1 col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL col1 + + 3 * - ( - col0 ) * 15 FROM tab1 AS cor0
----
161
2890
3613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + 4 FROM tab2, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT DISTINCT - col2 - + tab1.col1 AS col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT ALL - + ( - cor1.col0 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5596
SELECT DISTINCT tab1.col1 DIV + col0 - - col1 * - tab1.col0 AS col1 FROM tab1
----
-1040
-640
-70

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT tab1.col1 / + col0 - - col1 * - tab1.col0 AS col1 FROM tab1
----
-1040
-640
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5597
SELECT + ( + col0 ) * tab2.col1 DIV col0 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5597
SELECT + ( + col0 ) * tab2.col1 / col0 FROM tab2
----
17
31
59

query I rowsort
SELECT - tab0.col0 + 52 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 76fcb6ea00f1121a191dc2764806c378

query I rowsort
SELECT col1 * col1 - + col2 * ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
6604
9374
983

query I rowsort
SELECT col2 * col2 - ( col2 ) * + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col1 + + ( col1 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort
SELECT col0 + CAST ( + col1 AS REAL ) AS col0 FROM tab2 cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 col0 FROM tab0, tab1 cor0
----
98

query I rowsort
SELECT + 59 FROM tab0, tab0 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT + 91 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab1 cor1
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e

query I rowsort
SELECT - ( col1 ) + col2 AS col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ALL ( - 43 ) FROM tab1
----
-43
-43
-43

query I rowsort
SELECT ALL - 44 + col0 * + col2 FROM tab1 AS cor0
----
118
3604
7636

onlyif mysql # use DIV operator for integer division
query I rowsort label-5611
SELECT + col1 * col2 DIV col0 + col2 FROM tab0 cor0
----
151
165
3

skipif mysql # not compatible
query I rowsort label-5611
SELECT + col1 * col2 / col0 + col2 FROM tab0 cor0
----
151
165
3

query I rowsort
SELECT DISTINCT - 39 + + ( col2 ) FROM tab1 AS cor0
----
15
18
57

query I rowsort
SELECT DISTINCT - - 2 + col0 FROM tab1 AS cor0
----
5
66
82

query I rowsort
SELECT DISTINCT - 41 + 55 FROM tab2 AS cor0
----
14

query I rowsort
SELECT ALL 76 + + col2 FROM tab0 AS cor0
----
109
158
77

query I rowsort
SELECT - - col2 * + 77 AS col1 FROM tab0 AS cor0
----
2541
6314
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-5617
SELECT + ( - 73 ) * cor0.col0 DIV + ( col0 ) + + col0 FROM tab1 AS cor0
----
-70
-9
7

skipif mysql # not compatible
query I rowsort label-5617
SELECT + ( - 73 ) * cor0.col0 / + ( col0 ) + + col0 FROM tab1 AS cor0
----
-70
-9
7

query I rowsort
SELECT DISTINCT + ( - col0 ) * col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5619
SELECT ALL + 75 * - col0 DIV col0 AS col0 FROM tab1 cor0
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL + 75 * - col0 / col0 AS col0 FROM tab1 cor0
----
-75
-75
-75

query I rowsort
SELECT ALL + col1 + - col1 + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + 7 * col0 * cor0.col1 FROM tab2 AS cor0
----
1519
32214
9401

query I rowsort
SELECT DISTINCT cor0.col2 + + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4039
-6304
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5623
SELECT - col1 DIV col2 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5623
SELECT - col1 / col2 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - col0 + + col0 * col2 AS col0 FROM tab1 AS cor0
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + cor0.col1 col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - 41 * col1 AS col2 FROM tab1 AS cor0
----
-1066
-410
-533

onlyif mysql # use DIV operator for integer division
query I rowsort label-5627
SELECT ALL col0 * col1 DIV + ( - 30 ) AS col2 FROM tab0 AS cor0
----
-113
-269
-68

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL col0 * col1 / + ( - 30 ) AS col2 FROM tab0 AS cor0
----
-113
-269
-68

query I rowsort
SELECT - col2 * 26 * col2 AS col2 FROM tab1 AS cor0
----
-239616
-75816
-84474

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5629
SELECT DISTINCT - col2 * + CAST( - 93 * - col1 AS SIGNED ) + + col2 * col1 FROM tab2
----
-141128
-59432
-77004

skipif mysql # not compatible
query I rowsort label-5629
SELECT DISTINCT - col2 * + CAST ( - 93 * - col1 AS INTEGER ) + + col2 * col1 FROM tab2
----
-141128
-59432
-77004

query I rowsort
SELECT - col0 + - col1 * - col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5632
SELECT ALL col2 + + CAST( col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL col2 + + CAST ( col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5633
SELECT ALL + cor0.col2 DIV + col2 - cor0.col1 AS col1 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL + cor0.col2 / + col2 - cor0.col1 AS col1 FROM tab1 AS cor0
----
-12
-25
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5634
SELECT ALL - tab1.col0 DIV - col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL - tab1.col0 / - col2 FROM tab1
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5635
SELECT DISTINCT + CAST( 87 AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT + CAST ( 87 AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0
----
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-5636
SELECT ALL - cor0.col0 * + col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL - cor0.col0 * + col0 / + col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + 44 + + 64 * - col2 FROM tab1 cor0
----
-3412
-3604
-6100

query I rowsort
SELECT - cor0.col1 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col1 + 40 AS col1 FROM tab0 AS cor0
----
-46
-51
-57

query I rowsort
SELECT DISTINCT + ( 42 ) + col1 * 76 FROM tab0 AS cor0
----
6578
6958
7414

query I rowsort
SELECT ALL 43 * + ( col0 ) + 17 * col2 FROM tab1 cor0
----
1047
3721
5072

query I rowsort
SELECT col1 * + 20 + - col1 AS col1 FROM tab0
----
1634
1729
1843

query I rowsort
SELECT ALL + col0 + ( - col1 + + tab1.col1 * + col1 ) AS col0 FROM tab1
----
154
236
653

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 70 col1 FROM tab0
----
2310
5740
70

query I rowsort
SELECT - col1 - 42 * col2 AS col0 FROM tab0
----
-139
-1472
-3535

query I rowsort
SELECT ALL - 14 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c2bf0e2420d22cd58d7ee3b30827afcc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 + - col2 col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT - 29 * - 35 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to a7ff18cd57019f07f3899255dcd91577

query I rowsort
SELECT ALL - 14 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5650
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5650
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL tab2.col2 * - 58 FROM tab2
----
-1508
-1566
-2204

query I rowsort
SELECT DISTINCT col0 + col2 * cor0.col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT - col1 * col0 * - 27 + col1 AS col1 FROM tab0 AS cor0
----
218764
55814
91762

query I rowsort
SELECT ALL 22 * - cor1.col2 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e4da59a8cf3465a7a259c0f757d7a4b8

query I rowsort
SELECT ALL + col1 * + col1 - col2 * cor0.col1 FROM tab1 cor0
----
-1079
-470
-728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( - cor0.col1 ) col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - cor0.col0 * - cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5

query I rowsort
SELECT ALL cor0.col1 + 8 FROM tab2 AS cor0
----
25
39
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-5659
SELECT ALL + cor0.col1 DIV + col0 AS col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL + cor0.col1 / + col0 AS col0 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5660
SELECT DISTINCT - col0 + ( - 9 ) DIV + col2 FROM tab0 AS cor0
----
-24
-44
-89

skipif mysql # not compatible
query I rowsort label-5660
SELECT DISTINCT - col0 + ( - 9 ) / + col2 FROM tab0 AS cor0
----
-24
-44
-89

query I rowsort
SELECT ALL 12 + col0 FROM tab2
----
19
90
91

query I rowsort
SELECT DISTINCT - 82 * 75 + col2 AS col2 FROM tab0
----
-6068
-6117
-6149

query I rowsort
SELECT ALL - col0 + col1 + col2 AS col2 FROM tab1
----
29
3
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-5664
SELECT DISTINCT - col0 + col2 DIV - col0 col1 FROM tab2
----
-10
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT - col0 + col2 / - col0 col1 FROM tab2
----
-10
-78
-79

query I rowsort
SELECT 19 * + tab1.col0 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 784a68fe52dc95cc387a68183ae5081d

query I rowsort
SELECT col2 * + 17 * col0 + col2 * col0 + col2 AS col1 FROM tab2
----
3429
36530
54074

query I rowsort
SELECT ALL + + 46 * + 37 FROM tab2 AS cor0
----
1702
1702
1702

query I rowsort
SELECT - - 93 * + cor0.col1 FROM tab1 AS cor0
----
1209
2418
930

query I rowsort
SELECT col0 * - tab2.col1 + - col1 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT + ( + cor0.col2 ) * col2 - cor0.col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT 0 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col1 * - cor0.col0 AS col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - col0 + col0 * + ( - col2 ) + cor0.col2 FROM tab2 cor0
----
-169
-2080
-3043

query I rowsort
SELECT DISTINCT + 58 + - col2 * - col1 FROM tab1 AS cor0
----
1306
1462
628

query I rowsort
SELECT ALL 95 * - col2 + - 49 FROM tab2 AS cor0
----
-2519
-2614
-3659

query I rowsort
SELECT ALL col0 + col1 * + col0 * + col1 FROM tab2 AS cor0
----
22910
271596
6734

query I rowsort
SELECT 35 + - col0 FROM tab0 AS cor0
----
-54
0
11

query I rowsort
SELECT DISTINCT + + 80 AS col2 FROM tab2 AS cor0
----
80

query I rowsort
SELECT ALL + col1 + - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT - 25 + col2 AS col1 FROM tab2 cor0
----
1
13
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5681
SELECT DISTINCT - col1 DIV + col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT - col1 / + col1 FROM tab0 cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5682
SELECT - col1 DIV col2 + cor0.col2 + col0 * + col2 AS col1 FROM tab0 AS cor0
----
-61
7379
823

skipif mysql # not compatible
query I rowsort label-5682
SELECT - col1 / col2 + cor0.col2 + col0 * + col2 AS col1 FROM tab0 AS cor0
----
-61
7379
823

query I rowsort
SELECT + 63 * + col0 AS col1 FROM tab2 cor0
----
441
4914
4977

query I rowsort
SELECT col2 * 23 - col1 AS col2 FROM tab2
----
539
590
857

onlyif mysql # use DIV operator for integer division
query I rowsort label-5685
SELECT ALL - - 21 + + cor0.col1 DIV col0 AS col2 FROM tab2 AS cor0
----
21
21
25

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL - - 21 + + cor0.col1 / col0 AS col2 FROM tab2 AS cor0
----
21
21
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5687
SELECT + 48 * - col0 * col0 + col0 DIV - col2 FROM tab1 AS cor0
----
-196609
-307200
-432

skipif mysql # not compatible
query I rowsort label-5687
SELECT + 48 * - col0 * col0 + col0 / - col2 FROM tab1 AS cor0
----
-196609
-307200
-432

query I rowsort
SELECT - + 25 + + col2 + + 93 AS col0 FROM tab2 AS cor0
----
106
94
95

query I rowsort
SELECT + - col0 * col1 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT DISTINCT + 6 + col0 + 96 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
137
3198
7967

query I rowsort
SELECT - col1 + - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT DISTINCT 43 AS col2 FROM tab1, tab0, tab1 AS cor0
----
43

query I rowsort
SELECT 54 * col0 AS col0 FROM tab1
----
162
3456
4320

query I rowsort
SELECT DISTINCT + + 28 FROM tab2, tab1 AS cor0
----
28

query I rowsort
SELECT - + cor0.col2 + - cor0.col1 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT 5 - + col1 AS col2 FROM tab0 AS cor0
----
-81
-86
-92

query I rowsort
SELECT - - col2 + + 15 AS col1 FROM tab0 AS cor0
----
16
48
97

query I rowsort
SELECT + col2 + ( + col1 ) * + col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - col0 * - col0 + cor0.col0 + - col2 AS col0 FROM tab2 AS cor0
----
29
6136
6282

query I rowsort
SELECT DISTINCT ( - col0 ) * col1 AS col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT 98 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT ALL - - col1 + - col2 * - col1 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5703
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - cor0.col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - cor0.col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 15 * 38 FROM tab2 AS cor0
----
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5705
SELECT col1 + col2 * 87 DIV - col1 FROM tab1
----
-154
-485
-629

skipif mysql # not compatible
query I rowsort label-5705
SELECT col1 + col2 * 87 / - col1 FROM tab1
----
-154
-485
-629

query I rowsort
SELECT ALL + 24 + 31 AS col0 FROM tab1
----
55
55
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-5707
SELECT - - ( 20 ) DIV - col0 + ( 81 ) AS col0 FROM tab1 AS cor0
----
75
81
81

skipif mysql # not compatible
query I rowsort label-5707
SELECT - - ( 20 ) / - col0 + ( 81 ) AS col0 FROM tab1 AS cor0
----
75
81
81

query I rowsort
SELECT ALL + + col0 + cor0.col1 * cor0.col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT 16 * + col0 FROM tab0 AS cor0
----
1424
384
560

query I rowsort
SELECT DISTINCT - col2 + + 97 + cor0.col0 AS col1 FROM tab0 AS cor0
----
104
131
88

query I rowsort
SELECT ALL - ( ( col2 ) ) FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ALL - ( + 44 ) + - cor0.col0 * + ( - 86 * col1 ) FROM tab1 AS cor0
----
54996
6664
89396

query I rowsort
SELECT ALL - + ( + cor0.col0 ) * - col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT ( col2 ) * col1 * ( col2 * col1 ) + + ( + col1 ) FROM tab1 AS cor0
----
1557517
1971242
324910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 * col0 * ( 79 ) col0 FROM tab1 cor0
----
22041
470208
587760

query I rowsort
SELECT DISTINCT - col1 + cor0.col1 AS col0 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 + + col1 col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL + + ( - col1 ) AS col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT - - 21 * + col1 * - cor0.col1 FROM tab0 AS cor0
----
-155316
-173901
-197589

query I rowsort
SELECT DISTINCT + ( + col1 ) * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + + cor0.col0 * col1 AS col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT col0 + - col2 * cor0.col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT + col1 + 15 FROM tab2
----
32
46
74

query I rowsort
SELECT - col2 * - col1 - tab1.col1 FROM tab1
----
1235
1378
560

query I rowsort
SELECT - 79 - 67 * + col1 FROM tab2
----
-1218
-2156
-4032

query I rowsort
SELECT DISTINCT + col2 * + 20 - - 48 * col1 AS col2 FROM tab1 AS cor0
----
1620
2328
2544

query I rowsort
SELECT + col0 * tab1.col1 AS col1 FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 col1 FROM tab0
----
-81

query I rowsort
SELECT DISTINCT col1 * - ( + col1 * cor0.col2 ) AS col2 FROM tab0 cor0
----
-244068
-679042
-9409

query I rowsort
SELECT - + col0 * col0 + - col1 * col2 FROM tab1 AS cor0
----
-1413
-4666
-7648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5731
SELECT col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5731
SELECT col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5732
SELECT ALL - tab0.col0 + CAST( NULL AS SIGNED ) / - 69 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5732
SELECT ALL - tab0.col0 + CAST ( NULL AS INTEGER ) / - 69 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5733
SELECT + col1 + + col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-5733
SELECT + col1 + + col2 / - col1 AS col1 FROM tab2 AS cor0
----
15
31
59

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5735
SELECT ALL + tab1.col1 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL + tab1.col1 + - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab2.col2 + 80 FROM tab2, tab1 AS cor0
----
9 values hashing to 6d7ecf3194faeba5654a856a020b91bc

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to b9fc7433316cc7891b52d2a23a135419

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5738
SELECT + col2 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5738
SELECT + col2 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + - 34 FROM tab0
----
-1
-33
48

query I rowsort
SELECT DISTINCT - cor0.col0 - - 27 FROM tab1 AS cor0
----
-37
-53
24

query I rowsort
SELECT DISTINCT - 50 * - col2 + col1 + 23 FROM tab1 AS cor0
----
2749
2883
4836

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5742
SELECT ALL CAST( - col1 AS SIGNED ) + col0 * - cor0.col2 FROM tab0 cor0
----
-132
-7389
-878

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL CAST ( - col1 AS INTEGER ) + col0 * - cor0.col2 FROM tab0 cor0
----
-132
-7389
-878

query I rowsort
SELECT - + ( - col0 ) + - col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 + + col0 + col2 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + col2 * - 97 AS col2 FROM tab0 AS cor0
----
-3201
-7954
-97

query I rowsort
SELECT col1 * - ( - col0 * tab2.col2 ) AS col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT - col2 + + 41 * - tab0.col0 + col0 * + col1 * col1 AS col1 FROM tab0
----
176487
327879
733278

query I rowsort
SELECT DISTINCT - col0 * + col2 + - col2 AS col0 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT - col0 + + ( + col1 ) * col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL ( cor0.col0 ) + col2 + col1 FROM tab0 cor0
----
133
143
262

query I rowsort
SELECT ALL + + col2 - + col1 * - col1 AS col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT + cor0.col2 * - col0 * col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5754
SELECT ALL + ( cor0.col0 ) + col1 DIV + col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5754
SELECT ALL + ( cor0.col0 ) + col1 / + col2 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 22 col0 FROM tab2 AS cor0
----
-56
-57
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-5756
SELECT DISTINCT - cor0.col2 * + col2 - col0 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
-1445
-677
-730

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT - cor0.col2 * + col2 - col0 / cor0.col0 AS col1 FROM tab2 AS cor0
----
-1445
-677
-730

query I rowsort
SELECT + ( - col2 * col1 ) AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + - col1 * + 30 + col1 AS col0 FROM tab1 AS cor0
----
-290
-377
-754

onlyif mysql # use DIV operator for integer division
query I rowsort label-5759
SELECT DISTINCT + 75 * col2 DIV col0 AS col0 FROM tab0 AS cor0
----
103
2
69

skipif mysql # not compatible
query I rowsort label-5759
SELECT DISTINCT + 75 * col2 / col0 AS col0 FROM tab0 AS cor0
----
103
2
69

query I rowsort
SELECT ALL + + cor0.col1 + col2 AS col0 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT cor0.col0 + 19 FROM tab1 AS cor0
----
22
83
99

query I rowsort
SELECT - - 74 * + col1 FROM tab0 AS cor0
----
6364
6734
7178

onlyif mysql # use DIV operator for integer division
query I rowsort label-5763
SELECT ALL col1 DIV ( + col0 ) FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL col1 / ( + col0 ) FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT - col2 + - 8 * col1 AS col1 FROM tab0 AS cor0
----
-721
-777
-810

query I rowsort
SELECT DISTINCT - - col1 * - 18 FROM tab0 AS cor0
----
-1548
-1638
-1746

query I rowsort
SELECT DISTINCT col1 + - tab1.col2 * - 51 FROM tab1
----
2780
2917
4909

query I rowsort
SELECT - col0 + col0 * 27 * - col0 FROM tab1 cor0
----
-110656
-172880
-246

query I rowsort
SELECT DISTINCT + col1 * 69 * + cor0.col1 FROM tab2 cor0
----
19941
240189
66309

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5769
SELECT - - col0 + CAST( NULL AS SIGNED ) - 62 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5769
SELECT - - col0 + CAST ( NULL AS INTEGER ) - 62 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5770
SELECT col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5770
SELECT col0 / + col0 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col0 + ( + 90 ) FROM tab1 AS cor0
----
10
26
87

query I rowsort
SELECT DISTINCT - + col1 * - 93 FROM tab0 cor0
----
7998
8463
9021

query I rowsort
SELECT - - col2 * col1 + + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 col1 FROM tab1 AS cor0
----
109
67
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 > ( NULL ) OR col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - col1 * - col0 + + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL + col1 * cor0.col1 + - col2 AS col1 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT ALL + cor0.col0 + col0 + - col2 AS col1 FROM tab2 AS cor0
----
-13
120
130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 + col1 col0 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT + col0 + col0 * col0 * col0 FROM tab0 AS cor0
----
13848
42910
705058

query I rowsort
SELECT ALL + tab2.col2 + - tab2.col1 AS col1 FROM tab2
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col1 col2 FROM tab2
----
118
34
62

query I rowsort
SELECT ALL col1 * col1 + col2 AS col2 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT - + col1 + + col0 * col0 AS col0 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT DISTINCT + col0 FROM tab1 cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT col2 * + col2 * col1 + col2 * col0 FROM tab1
----
127488
36138
75978

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( col2 * - col2 )
----

query I rowsort
SELECT tab1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ALL - col1 + cor0.col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + cor0.col2 + col2 AS col0 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) col2 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT + + cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5793
SELECT - col0 DIV + col1 + - col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-5793
SELECT - col0 / + col1 + - col1 FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5794
SELECT - col2 + - col2 DIV + col0 + + tab2.col2 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5794
SELECT - col2 + - col2 / + col0 + + tab2.col2 FROM tab2
----
-3
0
0

query I rowsort
SELECT DISTINCT - col1 * + col2 + col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT ALL col2 * col2 + - tab2.col2 AS col0 FROM tab2
----
1406
650
702

query I rowsort
SELECT DISTINCT - col2 + col1 * col2 + cor0.col1 FROM tab2 AS cor0
----
1567
625
841

query I rowsort
SELECT DISTINCT + + col0 + + cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 - - col2 * col1 col2 FROM tab0 AS cor0
----
14924
194
5676

query I rowsort
SELECT ALL + col1 * + col1 + - col2 FROM tab2 cor0
----
251
3455
934

query I rowsort
SELECT ALL tab0.col2 - + col0 AS col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT col0 - + col0 AS col2 FROM tab1
----
0

query I rowsort
SELECT + col0 * col2 - + tab0.col0 FROM tab0
----
0
7209
768

query I rowsort
SELECT + col0 * col2 - + col1 AS col0 FROM tab2
----
158
1969
2985

query I rowsort
SELECT tab2.col2 + col2 * - col1 - - col0 AS col2 FROM tab2
----
-1430
-529
-803

query I rowsort
SELECT col2 - col1 * - col0 FROM tab2
----
1381
244
4628

query I rowsort
SELECT DISTINCT col0 + + col0 + - col1 FROM tab1 WHERE + col1 NOT BETWEEN col2 AND NULL
----
-20
118
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * + col1 col1 FROM tab0
----
2814
62
7373

query I rowsort
SELECT - 86 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af

onlyif mysql # use DIV operator for integer division
query I rowsort label-5810
SELECT col0 + + cor0.col0 - - col2 DIV col1 FROM tab2 AS cor0
----
14
156
160

skipif mysql # not compatible
query I rowsort label-5810
SELECT col0 + + cor0.col0 - - col2 / col1 FROM tab2 AS cor0
----
14
156
160

query I rowsort
SELECT + col1 - col2 * col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT - 57 - col0 AS col1 FROM tab1 AS cor0
----
-121
-137
-60

query I rowsort
SELECT + col0 * + cor0.col0 + col2 - - col0 FROM tab2 AS cor0
----
6188
6358
83

query I rowsort
SELECT - - col0 - cor0.col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT tab1.col1 - - col2 AS col1 FROM tab1
----
109
67
80

query I rowsort
SELECT col2 + - col2 * - tab1.col1 AS col2 FROM tab1
----
1344
1458
627

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE ( - col1 * col0 ) BETWEEN ( NULL ) AND ( + col1 / - col2 + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 + + col1 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT col0 * - col1 * col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT col2 * + col1 + + col1 + col2 FROM tab2
----
1619
701
895

query I rowsort
SELECT DISTINCT + col0 + - col0 / col1 FROM tab2 WHERE ( NULL ) IN ( tab2.col1 + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * col1 IN ( + col2 * col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 * - col1 ) IN ( col0 + + col2 * col1 )
----

query I rowsort
SELECT col1 + tab2.col0 + + col0 FROM tab2
----
175
215
45

query III rowsort
SELECT * FROM tab0 WHERE - col0 IN ( col2 )
----

query I rowsort
SELECT col2 + col2 * - col0 AS col2 FROM tab2
----
-162
-2002
-2964

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col0 * col0 )
----

query I rowsort
SELECT col2 * col0 FROM tab1 WHERE NOT NULL <= - col2
----

query I rowsort
SELECT col0 * col2 + 33 FROM tab1
----
195
3681
7713

query I rowsort
SELECT + col1 * + col2 + 21 FROM tab2
----
1555
667
858

query I rowsort
SELECT ALL - col2 * tab2.col2 AS col0 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT ALL + 9 + + col1 AS col1 FROM tab2
----
26
40
68

query I rowsort
SELECT + col0 + col2 * col0 * - col2 AS col2 FROM tab2 AS cor0
----
-113997
-5096
-52650

query I rowsort
SELECT col0 * - col1 * - col0 + - 19 + col1 * col2 AS col2 FROM tab2 cor0
----
106724
2337
360471

query I rowsort
SELECT cor0.col1 * - 41 FROM tab2 AS cor0
----
-1271
-2419
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-5838
SELECT + col0 DIV 47 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5838
SELECT + col0 / 47 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + + col0 * + 23 FROM tab2 AS cor0
----
161
1794
1817

query I rowsort
SELECT - col2 * - 30 AS col2 FROM tab0 AS cor0
----
2460
30
990

query I rowsort
SELECT col0 * - 1 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + 95 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 * col0 col2 FROM tab1
----
282
6016
7520

query I rowsort
SELECT DISTINCT cor0.col2 + - col0 - col1 FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT - cor0.col2 * col1 + 45 AS col2 FROM tab2 AS cor0
----
-1489
-601
-792

query I rowsort
SELECT + + col2 * col2 + - ( - col0 ) FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT + col0 * col1 * - cor0.col0 + + col2 * + 59 AS col1 FROM tab1 AS cor0
----
-37597
-77536
2952

onlyif mysql # use DIV operator for integer division
query I rowsort label-5848
SELECT - 0 DIV + col1 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-5848
SELECT - 0 / + col1 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ( col0 ) + + col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL ( + 99 ) * col2 AS col2 FROM tab2 AS cor0
----
2574
2673
3762

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5851
SELECT ALL + + CAST( col2 AS SIGNED ) * + col1 + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL + + CAST ( col2 AS INTEGER ) * + col1 + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + col1 * + col0 * col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
118826
49569
720893

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5853
SELECT - ( - 32 ) - col2 / CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5853
SELECT - ( - 32 ) - col2 / CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 6 * col2 + - col0 + - col0 FROM tab1 AS cor0
----
214
318
416

onlyif mysql # use DIV operator for integer division
query I rowsort label-5855
SELECT ALL 89 * + col1 + - col0 DIV + col1 + + cor0.col2 FROM tab2 AS cor0
----
1547
2786
5276

skipif mysql # not compatible
query I rowsort label-5855
SELECT ALL 89 * + col1 + - col0 / + col1 + + cor0.col2 FROM tab2 AS cor0
----
1547
2786
5276

query I rowsort
SELECT + - 64 * - col0 * + col0 FROM tab0 AS cor0
----
36864
506944
78400

query I rowsort
SELECT DISTINCT + 35 + col2 FROM tab2 AS cor0
----
61
62
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 + + col0 col1 FROM tab2 AS cor0
----
102
173
174

onlyif mysql # use DIV operator for integer division
query I rowsort label-5859
SELECT - 92 DIV col0 FROM tab2
----
-1
-1
-13

skipif mysql # not compatible
query I rowsort label-5859
SELECT - 92 / col0 FROM tab2
----
-1
-1
-13

query I rowsort
SELECT - col1 * 63 * col2 AS col2 FROM tab1
----
-35910
-78624
-88452

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 * col0 col0 FROM tab2
----
483
5382
5451

query I rowsort
SELECT ALL + - col2 + col1 * + col1 + 14 FROM tab1 AS cor0
----
57
636
87

query I rowsort
SELECT ALL ( + col1 ) + 61 AS col2 FROM tab0 cor0
----
147
152
158

query I rowsort
SELECT col1 * - col0 - ( 2 ) * col2 AS col0 FROM tab1 AS cor0
----
-1232
-186
-754

query I rowsort
SELECT + + col2 + + col0 * 7 FROM tab0 AS cor0
----
201
246
705

onlyif mysql # use DIV operator for integer division
query I rowsort label-5866
SELECT ALL - - 80 DIV col1 - - 94 * cor0.col0 FROM tab0 cor0
----
2256
3290
8366

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL - - 80 / col1 - - 94 * cor0.col0 FROM tab0 cor0
----
2256
3290
8366

query I rowsort
SELECT ALL + 7 + + col0 * - col2 * - 49 FROM tab1 AS cor0
----
178759
376327
7945

query I rowsort
SELECT ALL - - col1 * col1 + col2 * cor0.col2 AS col2 FROM tab0 cor0
----
15005
8485
9410

query I rowsort
SELECT 65 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
195
4160
5200

query I rowsort
SELECT ALL - 64 * col0 + - col1 - - col2 FROM tab0 AS cor0
----
-1589
-2336
-5705

query I rowsort
SELECT DISTINCT - 9 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-153
-279
-531

query I rowsort
SELECT 93 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT col2 * 82 FROM tab1
----
4428
4674
7872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 col2 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5875
SELECT ALL - CAST( 26 AS SIGNED ) AS col2 FROM tab2
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL - CAST ( 26 AS INTEGER ) AS col2 FROM tab2
----
-26
-26
-26

query I rowsort
SELECT col1 + + col2 + col2 * - col2 FROM tab2
----
-1389
-591
-671

query I rowsort
SELECT ALL tab1.col1 * + col2 + col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT col2 * col0 + - col0 * - 31 * col1 FROM tab1 AS cor0
----
23488
2580
39920

query I rowsort
SELECT DISTINCT col0 + col2 * col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1260
19032
649611

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col2 + ( + col2 ) col0 FROM tab1 AS cor0
----
162
171
288

onlyif mysql # use DIV operator for integer division
query I rowsort label-5881
SELECT + col0 + - col0 DIV - 26 FROM tab0 AS cor0
----
24
36
92

skipif mysql # not compatible
query I rowsort label-5881
SELECT + col0 + - col0 / - 26 FROM tab0 AS cor0
----
24
36
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-5882
SELECT DISTINCT col2 DIV - col2 + col2 * tab0.col0 col0 FROM tab0
----
34
7297
791

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5882
SELECT DISTINCT col2 / - col2 + col2 * tab0.col0 col0 FROM tab0
----
34
7297
791

query I rowsort
SELECT ALL 42 + col2 AS col1 FROM tab2 AS cor0
----
68
69
80

query I rowsort
SELECT ALL + col0 * 9 FROM tab0
----
216
315
801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col1 FROM tab2, tab1 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT ( col0 ) * - col0 + 47 FROM tab2
----
-2
-6037
-6194

onlyif mysql # use DIV operator for integer division
query I rowsort label-5887
SELECT ALL col0 DIV + col0 - + col0 AS col1 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-5887
SELECT ALL col0 / + col0 - + col0 AS col1 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT ALL - 57 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5889
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 * + col0 + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 * + col0 + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 21 * - col0 - - col0 FROM tab0 AS cor0
----
-1780
-480
-700

query I rowsort
SELECT - ( 98 ) * cor0.col0 AS col1 FROM tab2 cor0
----
-686
-7644
-7742

query I rowsort
SELECT DISTINCT - + ( + col0 ) + col0 * + 99 AS col0 FROM tab1 AS cor0
----
294
6272
7840

query I rowsort
SELECT + 80 FROM tab1, tab0 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT - ( + 37 ) * - col0 FROM tab1 AS cor0
----
111
2368
2960

onlyif mysql # use DIV operator for integer division
query I rowsort label-5895
SELECT + cor0.col1 DIV - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5895
SELECT + cor0.col1 / - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5896
SELECT DISTINCT 55 * col2 - col1 * - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5896
SELECT DISTINCT 55 * col2 - col1 * - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * 16 FROM tab1 AS cor0
----
160
208
416

query I rowsort
SELECT ALL + - col0 * ( 82 ) + - col0 AS col0 FROM tab2 AS cor0
----
-581
-6474
-6557

query I rowsort
SELECT + col0 + ( - ( - cor0.col1 ) ) FROM tab1 cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 col0 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # use DIV operator for integer division
query I rowsort label-5901
SELECT cor0.col1 DIV - col0 AS col0 FROM tab2 cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5901
SELECT cor0.col1 / - col0 AS col0 FROM tab2 cor0
----
-4
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + cor0.col0 + col1 col2 FROM tab0 AS cor0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + cor0.col0 col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + + col2 * - col2 + - col2 * - cor0.col2 * + col0 FROM tab2 AS cor0
----
112632
4374
52052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col0 + ( col2 ) col1 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT + cor0.col1 * 84 FROM tab1, tab1 AS cor0
----
1092
2184
840

query I rowsort
SELECT - cor0.col2 * 28 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 6e13c46c267b9e782500df1c298a5204

query I rowsort
SELECT - 28 * col0 + - col2 FROM tab1 AS cor0
----
-138
-1849
-2336

query I rowsort
SELECT - col2 + 65 * + col0 AS col0 FROM tab0
----
1527
2274
5703

query I rowsort
SELECT + col2 + col2 + col0 AS col1 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT DISTINCT col1 + cor0.col1 * col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL ( + cor1.col0 ) AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL - + col1 + + cor0.col0 FROM tab2 AS cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 2 * - col0 + col1 * cor0.col2 - + col1 col0 FROM tab1 AS cor0
----
1384
1395
688

query I rowsort
SELECT ALL - - col0 * + col0 + + 46 AS col2 FROM tab0 AS cor0
----
1271
622
7967

query I rowsort
SELECT DISTINCT col1 * col0 + + 39 * ( col2 ) FROM tab1 AS cor0
----
2184
2863
4784

query I rowsort
SELECT - 68 FROM tab2, tab1 cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 3a5c3d9872a8a4148ab98ed0ab0a6c62

query I rowsort
SELECT DISTINCT + col1 * col2 - cor0.col1 AS col2 FROM tab2 cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT 82 + col0 * col0 FROM tab1 AS cor0
----
4178
6482
91

query I rowsort
SELECT ALL - col1 * + col1 * - ( col2 ) FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT DISTINCT 15 + + col0 FROM tab1 AS cor0
----
18
79
95

query I rowsort
SELECT - col0 + col0 * col1 * - col0 AS col0 FROM tab1
----
-237
-41024
-83280

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL + 75 * 98 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f481e8e9f3f8b6773c51686512bee012

query I rowsort
SELECT DISTINCT ( 43 ) AS col1 FROM tab1, tab2 AS cor0
----
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5926
SELECT - col2 * - CAST( - 81 AS SIGNED ) FROM tab0 AS cor0
----
-2673
-6642
-81

skipif mysql # not compatible
query I rowsort label-5926
SELECT - col2 * - CAST ( - 81 AS INTEGER ) FROM tab0 AS cor0
----
-2673
-6642
-81

query I rowsort
SELECT DISTINCT - 32 * col0 * col2 FROM tab2
----
-6048
-64896
-96064

query I rowsort
SELECT tab2.col0 + col2 * col2 FROM tab2
----
1523
736
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col1 + - 24 * + col0 col1 FROM tab0 AS cor0
----
6145
6820
8569

onlyif mysql # use DIV operator for integer division
query I rowsort label-5930
SELECT col2 + - 79 DIV + col0 AS col2 FROM tab0
----
-1
30
82

skipif mysql # not compatible
query I rowsort label-5930
SELECT col2 + - 79 / + col0 AS col2 FROM tab0
----
-1
30
82

query I rowsort
SELECT + tab0.col0 * 14 AS col1 FROM tab0
----
1246
336
490

query I rowsort
SELECT DISTINCT 89 * col2 FROM tab0 AS cor0
----
2937
7298
89

query I rowsort
SELECT - 74 + 55 FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT 61 + col0 AS col0 FROM tab1 AS cor0
----
125
141
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 col2 FROM tab2 AS cor0
----
55
55
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5936
SELECT ALL - CAST( + 9 AS SIGNED ) * col0 - col0 FROM tab1 AS cor0
----
-30
-640
-800

skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL - CAST ( + 9 AS INTEGER ) * col0 - col0 FROM tab1 AS cor0
----
-30
-640
-800

query I rowsort
SELECT DISTINCT - - ( + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - 37 AS col2 FROM tab2 AS cor0
----
-37
-37
-37

query I rowsort
SELECT col0 + 86 FROM tab1 AS cor0
----
150
166
89

skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 - CAST ( - col1 + col2 AS REAL ) AS col1 FROM tab2
----
-23
-59
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5941
SELECT DISTINCT - col0 * CAST( - col1 AS SIGNED ) - - col1 FROM tab0
----
2150
3492
8190

skipif mysql # not compatible
query I rowsort label-5941
SELECT DISTINCT - col0 * CAST ( - col1 AS INTEGER ) - - col1 FROM tab0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-5942
SELECT col0 + col2 * 31 - - col2 DIV col0 col2 FROM tab1
----
1695
1831
3057

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5942
SELECT col0 + col2 * 31 - - col2 / col0 col2 FROM tab1
----
1695
1831
3057

query I rowsort
SELECT ALL - 82 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 38 col2 FROM tab0
----
120
39
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-5945
SELECT + tab1.col2 DIV + ( + tab1.col0 ) + + col1 DIV + col0 AS col0 FROM tab1
----
0
1
26

skipif mysql # not compatible
query I rowsort label-5945
SELECT + tab1.col2 / + ( + tab1.col0 ) + + col1 / + col0 AS col0 FROM tab1
----
0
1
26

query I rowsort
SELECT - col0 + - 15 FROM tab1
----
-18
-79
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - tab1.col1 col2 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL ( col1 ) * col0 + - 94 AS col0 FROM tab2
----
123
1249
4508

query I rowsort
SELECT ALL 30 + 75 AS col0 FROM tab2
----
105
105
105

query I rowsort
SELECT - col1 * + 34 + col0 AS col2 FROM tab2 AS cor0
----
-1047
-1928
-499

query I rowsort
SELECT DISTINCT - 45 AS col2 FROM tab2 cor0
----
-45

query I rowsort
SELECT DISTINCT 29 * + col2 * 7 AS col2 FROM tab2
----
5278
5481
7714

query I rowsort
SELECT DISTINCT col0 * - tab0.col1 AS col2 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT 53 + col2 AS col0 FROM tab1
----
107
110
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 - - col0 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col2 - col2 col1 FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5957
SELECT col2 * - CAST( + col1 AS SIGNED ) AS col0 FROM tab1
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-5957
SELECT col2 * - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + col2 - - 64 FROM tab1 AS cor0
----
118
121
160

onlyif mysql # use DIV operator for integer division
query I rowsort label-5959
SELECT DISTINCT + - col2 DIV - 6 - + cor0.col0 * col0 FROM tab0 AS cor0
----
-1225
-571
-7908

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT + - col2 / - 6 - + cor0.col0 * col0 FROM tab0 AS cor0
----
-1225
-571
-7908

query I rowsort
SELECT - col2 * + 50 AS col0 FROM tab1 AS cor0
----
-2700
-2850
-4800

onlyif mysql # use DIV operator for integer division
query I rowsort label-5961
SELECT col1 + + col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-5961
SELECT col1 + + col1 / + col0 AS col1 FROM tab0 AS cor0
----
89
92
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5962
SELECT DISTINCT col2 + CAST( - 24 AS SIGNED ) FROM tab1 AS cor0
----
30
33
72

skipif mysql # not compatible
query I rowsort label-5962
SELECT DISTINCT col2 + CAST ( - 24 AS INTEGER ) FROM tab1 AS cor0
----
30
33
72

query I rowsort
SELECT ALL col2 * + ( col2 * - col1 ) + + 65 AS col0 FROM tab1 AS cor0
----
-119743
-32425
-75751

query I rowsort
SELECT ALL + + col1 * - 38 AS col2 FROM tab0 cor0
----
-3268
-3458
-3686

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5965
SELECT - - col1 / + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5965
SELECT - - col1 / + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-5967
SELECT ALL - cor0.col1 DIV - col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5967
SELECT ALL - cor0.col1 / - col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT 33 + + col1 AS col0 FROM tab0 AS cor0
----
119
124
130

query I rowsort
SELECT ALL + - 62 FROM tab1 cor0
----
-62
-62
-62

query I rowsort
SELECT ALL + - 4 * - col1 FROM tab0 AS cor0
----
344
364
388

query I rowsort
SELECT DISTINCT + ( + col0 ) * col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col0 + cor0.col2 - col1 FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT - + ( + 8 ) * - col2 FROM tab0 AS cor0
----
264
656
8

query I rowsort
SELECT DISTINCT + 9 FROM tab2 AS cor0
----
9

query I rowsort
SELECT + - 88 - - 7 * col2 AS col1 FROM tab2 AS cor0
----
101
178
94

query I rowsort
SELECT DISTINCT - col2 * + col2 + col1 AS col0 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT - + 72 * - col1 AS col1 FROM tab0 AS cor0
----
6192
6552
6984

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5978
SELECT ALL - CAST( + 27 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL - CAST ( + 27 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT col2 - + col0 * - 47 FROM tab1
----
195
3065
3856

query I rowsort
SELECT 7 + col2 * col1 - + col0 AS col0 FROM tab0 AS cor0
----
2821
69
7380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col0 col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT ALL + col1 * col0 + ( 21 ) * col1 FROM tab2 cor0
----
1700
5841
868

query I rowsort
SELECT + + ( cor0.col0 ) + cor0.col2 FROM tab2 AS cor0
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 92 * - col2 col1 FROM tab2 cor0
----
2392
2484
3496

onlyif mysql # use DIV operator for integer division
query I rowsort label-5985
SELECT ALL - cor0.col0 DIV col0 + cor0.col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL - cor0.col0 / col0 + cor0.col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT DISTINCT - 5 * col2 FROM tab1
----
-270
-285
-480

query I rowsort
SELECT DISTINCT - - 15 * + col1 - - col2 FROM tab0 AS cor0
----
1323
1447
1456

query I rowsort
SELECT col1 * + col0 + ( col2 ) FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL col0 * + col1 * - col1 + col1 * col0 AS col0 FROM tab0 AS cor0
----
-175440
-325920
-728910

query I rowsort
SELECT + cor0.col0 * + col0 + col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL + + cor0.col0 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5992
SELECT DISTINCT + col0 DIV + ( col1 + + cor0.col1 ) FROM tab1 cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT + col0 / + ( col1 + + cor0.col1 ) FROM tab1 cor0
----
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5993
SELECT + cor0.col2 + + cor0.col0 DIV + ( col2 ) FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-5993
SELECT + cor0.col2 + + cor0.col0 / + ( col2 ) FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT DISTINCT + 2 FROM tab2, tab1, tab1 AS cor0
----
2

query I rowsort
SELECT - tab1.col1 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 + col1 col2 FROM tab0 AS cor0
----
14
3
8

query I rowsort
SELECT ALL + - 20 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT - - 94 * - col0 + 39 FROM tab2 AS cor0
----
-619
-7293
-7387

query I rowsort
SELECT - 3 * cor0.col0 + + 58 FROM tab2 AS cor0
----
-176
-179
37

query I rowsort
SELECT + + 51 AS col0 FROM tab2 cor0
----
51
51
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 34 * col1 col0 FROM tab2 AS cor0
----
1054
2006
578

query I rowsort
SELECT ALL + col1 + col2 * + 56 FROM tab1 AS cor0
----
3050
3202
5389

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6003
SELECT - - 43 * + col2 * CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6003
SELECT - - 43 * + col2 * CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * - 66 col2 FROM tab2 AS cor0
----
-431
-5089
-5197

query I rowsort
SELECT ALL col1 * + 26 AS col1 FROM tab0
----
2236
2366
2522

onlyif mysql # use DIV operator for integer division
query I rowsort label-6006
SELECT ALL col2 * col1 DIV - ( - col2 ) AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL col2 * col1 / - ( - col2 ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT tab1.col1 * cor1.col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to c60831db2936bdb61fb09e86d08b0883

query I rowsort
SELECT ALL + col2 + + col2 + col2 AS col2 FROM tab1 cor0
----
162
171
288

query I rowsort
SELECT + col1 * 47 + col2 + col1 * col1 FROM tab0 AS cor0
----
11471
12640
13969

query I rowsort
SELECT + cor0.col2 * - 6 FROM tab2 AS cor0
----
-156
-162
-228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( - col1 ) col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + - col0 + - col1 * + col2 * - col0 AS col0 FROM tab1 cor0
----
36416
4209
99760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6013
SELECT ALL + CAST( col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 + - col2 col0 FROM tab0 AS cor0
----
0
49
81

query I rowsort
SELECT - - 87 * - col2 AS col2 FROM tab1 AS cor0
----
-4698
-4959
-8352

query I rowsort
SELECT ALL - 40 + cor0.col2 AS col1 FROM tab1 AS cor0
----
14
17
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-6017
SELECT DISTINCT - 1 + - col0 DIV + col0 col1 FROM tab1 AS cor0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6017
SELECT DISTINCT - 1 + - col0 / + col0 col1 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT + col0 * + 41 AS col2 FROM tab1 AS cor0
----
123
2624
3280

query I rowsort
SELECT 55 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to c59acfbb70996777fa5053195838c3d6

query I rowsort
SELECT cor0.col1 + + 8 + col1 AS col0 FROM tab0 cor0
----
180
190
202

onlyif mysql # use DIV operator for integer division
query I rowsort label-6021
SELECT - col1 DIV col2 col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6021
SELECT - col1 / col2 col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT - 74 * - col1 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
6331
6652
7177

query I rowsort
SELECT - + col2 * - 12 FROM tab2 AS cor0
----
312
324
456

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6024
SELECT + ( 62 ) + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6024
SELECT + ( 62 ) + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + col0 ) * cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT + 7 * + col1 AS col2 FROM tab1 AS cor0
----
182
70
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

onlyif mysql # use DIV operator for integer division
query I rowsort label-6028
SELECT - 76 DIV - col1 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-6028
SELECT - 76 / - col1 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT DISTINCT - 99 AS col1 FROM tab2, tab1 cor0
----
-99

query I rowsort
SELECT - - col1 - - col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6031
SELECT DISTINCT + col1 DIV col2 col0 FROM tab0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6031
SELECT DISTINCT + col1 / col2 col0 FROM tab0
----
1
2
97

query I rowsort
SELECT ALL cor0.col1 + 1 FROM tab1, tab2 AS cor0
----
9 values hashing to 2036013494344f92349618089e7342a0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 85 col2 FROM tab0, tab1 AS cor0
----
85

query I rowsort
SELECT DISTINCT col0 * - col1 + 88 AS col2 FROM tab1 AS cor0
----
-552
-952
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-6035
SELECT ALL col0 - - col2 DIV + ( + col2 ) FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL col0 - - col2 / + ( + col2 ) FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL + 10 - col1 FROM tab0 AS cor0
----
-76
-81
-87

query I rowsort
SELECT ALL + 9 * - col2 AS col1 FROM tab2 AS cor0
----
-234
-243
-342

query I rowsort
SELECT DISTINCT - 13 + col0 AS col1 FROM tab1 AS cor0
----
-10
51
67

query I rowsort
SELECT + + col1 + col0 * + col2 AS col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL - 12 - col1 * + col1 FROM tab0 AS cor0
----
-7408
-8293
-9421

onlyif mysql # use DIV operator for integer division
query I rowsort label-6041
SELECT ALL col0 DIV cor0.col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL col0 / cor0.col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT + 36 + + col2 * + ( + ( + tab0.col0 ) ) * tab0.col0 AS col2 FROM tab0
----
1261
19044
649558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - col2 col1 FROM tab2
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6044
SELECT + + col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6044
SELECT + + col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + 16 FROM tab2 cor0
----
-10
-11
-22

query I rowsort
SELECT DISTINCT - - col1 * + 32 FROM tab2 AS cor0
----
1888
544
992

query I rowsort
SELECT DISTINCT - + col1 * ( - col2 ) AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - 46 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6049
SELECT ALL tab1.col2 * col2 - ( col0 ) DIV col0 AS col1 FROM tab1
----
2915
3248
9215

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL tab1.col2 * col2 - ( col0 ) / col0 AS col1 FROM tab1
----
2915
3248
9215

query I rowsort
SELECT ALL col1 - - col0 * - col0 * col2 FROM tab2
----
-1292
-158125
-237141

query I rowsort
SELECT ALL + 81 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT 82 * tab0.col1 FROM tab0
----
7052
7462
7954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL - + 53 * + col1 + col2 AS col0 FROM tab1 AS cor0
----
-1324
-473
-593

query I rowsort
SELECT DISTINCT - col1 * 34 + col2 - + col0 * - col2 AS col1 FROM tab0 cor0
----
-2099
-3262
4286

query I rowsort
SELECT ALL ( ( - col2 ) ) + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ( + 22 ) AS col2 FROM tab1 AS cor0
----
22
22
22

query I rowsort
SELECT 48 + + col0 AS col0 FROM tab2 AS cor0
----
126
127
55

query I rowsort
SELECT DISTINCT - col2 * - ( cor0.col1 ) + col0 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6060
SELECT + - CAST( NULL AS DECIMAL ) * 34 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT + - CAST ( NULL AS REAL ) * 34 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - tab2.col1 * 78 + col0 AS col2 FROM tab2
----
22621
271596
74965

query I rowsort
SELECT ( - col2 ) + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - ( + 38 ) AS col2 FROM tab1 cor0
----
-38
-38
-38

query I rowsort
SELECT ALL + 62 + - 4 * - col1 FROM tab1 AS cor0
----
102
114
166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col0 ) col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - col2 * 37 FROM tab2
----
-1406
-962
-999

query I rowsort
SELECT DISTINCT col2 * 7 AS col0 FROM tab1
----
378
399
672

query I rowsort
SELECT ALL 71 * tab2.col2 FROM tab2
----
1846
1917
2698

onlyif mysql # use DIV operator for integer division
query I rowsort label-6069
SELECT - col1 DIV ( col0 * col0 ) + col2 AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6069
SELECT - col1 / ( col0 * col0 ) + col2 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT - col0 + - 9 FROM tab1
----
-12
-73
-89

query I rowsort
SELECT + 56 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT DISTINCT ( + col0 * col2 ) FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6073
SELECT + col0 + col2 * col2 DIV col0 AS col0 FROM tab2
----
111
86
97

skipif mysql # not compatible
query I rowsort label-6073
SELECT + col0 + col2 * col2 / col0 AS col0 FROM tab2
----
111
86
97

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) - col2 * col2 AS col1 FROM tab1
----
-2970
-3306
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 + + col1 col2 FROM tab0
----
66
71
77

query I rowsort
SELECT ALL 89 + 53 FROM tab0 AS cor0
----
142
142
142

query I rowsort
SELECT + 29 * 17 + - col2 FROM tab1
----
397
436
439

query I rowsort
SELECT col2 + - tab0.col1 * - col0 FROM tab0
----
2097
3396
8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6079
SELECT ALL CAST( NULL AS SIGNED ) * 23 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL CAST ( NULL AS INTEGER ) * 23 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + ( col2 ) ) AS col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT ( 73 + col0 ) AS col1 FROM tab2
----
151
152
80

query I rowsort
SELECT ALL - - 21 * - cor0.col0 FROM tab0 AS cor0
----
-1869
-504
-735

query I rowsort
SELECT DISTINCT + + 82 * col2 AS col2 FROM tab0 AS cor0
----
2706
6724
82

query I rowsort
SELECT - cor0.col1 * - col1 + col2 * col2 FROM tab1 AS cor0
----
3349
3592
9385

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 col1 FROM tab0 AS cor0
----
57

query I rowsort
SELECT DISTINCT + col2 + - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 - + col1 col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL ( - col1 ) * col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT - + 58 * + col1 FROM tab1 AS cor0
----
-1508
-580
-754

query I rowsort
SELECT - 55 AS col2 FROM tab1 cor0
----
-55
-55
-55

query I rowsort
SELECT - col1 * + ( 1 ) FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - cor1.col0 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-7
-78
-79

query I rowsort
SELECT - col1 + + col0 + - ( - col0 * col1 ) AS col2 FROM tab2 AS cor0
----
1405
193
4621

onlyif mysql # use DIV operator for integer division
query I rowsort label-6094
SELECT + col1 + ( + col1 ) DIV cor0.col0 + - col0 FROM tab0 AS cor0
----
3
64
65

skipif mysql # not compatible
query I rowsort label-6094
SELECT + col1 + ( + col1 ) / cor0.col0 + - col0 FROM tab0 AS cor0
----
3
64
65

query I rowsort
SELECT DISTINCT - col0 * col0 + col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT - cor0.col2 + 88 * col0 AS col0 FROM tab0 AS cor0
----
2079
3079
7750

onlyif mysql # use DIV operator for integer division
query I rowsort label-6097
SELECT col2 DIV - col1 + - col2 + cor0.col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6097
SELECT col2 / - col1 + - col2 + cor0.col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * + 2 col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT 98 * col1 FROM tab0 cor0
----
8428
8918
9506

query I rowsort
SELECT - ( + 68 ) AS col0 FROM tab1 AS cor0
----
-68
-68
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-6101
SELECT DISTINCT - tab1.col1 * + tab1.col2 * tab1.col1 + col0 DIV col2 + - col1 col2 FROM tab1
----
-16237
-36530
-5709

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6101
SELECT DISTINCT - tab1.col1 * + tab1.col2 * tab1.col1 + col0 / col2 + - col1 col2 FROM tab1
----
-16237
-36530
-5709

query I rowsort
SELECT cor0.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT tab2.col1 * + col1 + + col0 + col1 AS col1 FROM tab2
----
3618
385
999

query I rowsort
SELECT - - 3 + col1 * col2 FROM tab1 AS cor0
----
1251
1407
573

query I rowsort
SELECT + col0 * col1 + + col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6106
SELECT - - col0 * + CAST( cor0.col1 AS SIGNED ) + col1 FROM tab2 AS cor0
----
1360
248
4661

skipif mysql # not compatible
query I rowsort label-6106
SELECT - - col0 * + CAST ( cor0.col1 AS INTEGER ) + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT 62 AS col1 FROM tab2, tab1, tab0 AS cor0
----
62

query I rowsort
SELECT tab2.col1 * col1 + + ( + col0 ) * col0 FROM tab2
----
1010
6530
9565

query I rowsort
SELECT + ( 34 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT ALL col0 + - ( - cor0.col2 ) + col2 FROM tab2 AS cor0
----
130
155
61

query I rowsort
SELECT + col0 * cor0.col2 + - ( col2 ) AS col0 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT ALL - + col0 * - ( 9 ) AS col1 FROM tab1 AS cor0
----
27
576
720

query I rowsort
SELECT ALL + cor0.col1 + 35 FROM tab1 AS cor0
----
45
48
61

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab0 cor1
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0

query I rowsort
SELECT ALL - - 36 + + cor0.col2 FROM tab1 AS cor0
----
132
90
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6116
SELECT ALL + CAST( ( + col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL + CAST ( ( + col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6117
SELECT - ( - col1 ) + - col2 DIV col0 AS col1 FROM tab1 AS cor0
----
10
12
8

skipif mysql # not compatible
query I rowsort label-6117
SELECT - ( - col1 ) + - col2 / col0 AS col1 FROM tab1 AS cor0
----
10
12
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 83 + 92 col2 FROM tab0 AS cor0
----
9
9
9

query I rowsort
SELECT - 6 * - col1 FROM tab0 AS cor0
----
516
546
582

query I rowsort
SELECT DISTINCT + 54 * + col1 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
30780
67392
75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT - col1 + cor0.col1 * ( col0 ) * col0 AS col1 FROM tab1 AS cor0
----
208
40950
83187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query I rowsort
SELECT DISTINCT ( tab2.col2 ) * + col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + 23 * + col1 FROM tab1 AS cor0
----
230
299
598

query I rowsort
SELECT - col1 * col0 - + 9 * - col1 AS col1 FROM tab2 AS cor0
----
-1190
-4071
62

query I rowsort
SELECT + + 69 * + col0 AS col0 FROM tab1 AS cor0
----
207
4416
5520

query I rowsort
SELECT - - 45 AS col0 FROM tab0 AS cor0
----
45
45
45

query I rowsort
SELECT DISTINCT + col0 + 4 AS col2 FROM tab1
----
68
7
84

query I rowsort
SELECT + cor0.col1 + col1 * - ( - col1 ) FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT - - ( + ( cor0.col2 ) ) AS col1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6132
SELECT + CAST( - 35 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-6132
SELECT + CAST ( - 35 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-35
-35
-35

query I rowsort
SELECT - col2 + + 46 AS col2 FROM tab2 AS cor0
----
19
20
8

query I rowsort
SELECT ALL cor1.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6135
SELECT - col2 + + col2 + col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6135
SELECT - col2 + + col2 + col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( 80 ) + col0 AS col0 FROM tab1
----
-16
-77
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6137
SELECT - + 92 * cor0.col1 * 13 - + 32 DIV col2 FROM tab0 AS cor0
----
-102856
-108836
-116044

skipif mysql # not compatible
query I rowsort label-6137
SELECT - + 92 * cor0.col1 * 13 - + 32 / col2 FROM tab0 AS cor0
----
-102856
-108836
-116044

query I rowsort
SELECT - ( + col2 ) * - col1 + col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + 41 AS col2 FROM tab0
----
41

query I rowsort
SELECT DISTINCT + 57 + 96 AS col0 FROM tab0
----
153

query I rowsort
SELECT 23 * + 1 AS col2 FROM tab2
----
23
23
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6142
SELECT DISTINCT - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + ( - 74 ) AS col1 FROM tab0 cor0
----
-74
-74
-74

query I rowsort
SELECT DISTINCT + col2 * col0 + col0 * + col0 FROM tab1 cor0
----
14080
171
7744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6145
SELECT CAST( NULL AS DECIMAL ) / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6145
SELECT CAST ( NULL AS REAL ) / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 4 * col0 AS col1 FROM tab2 AS cor0
----
28
312
316

query I rowsort
SELECT ALL + col0 - cor0.col2 FROM tab1 AS cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + col1 + cor0.col0 col2 FROM tab0 AS cor0
----
134
167
269

query I rowsort
SELECT ALL - col0 * - col1 - 46 AS col0 FROM tab2 AS cor0
----
1297
171
4556

query I rowsort
SELECT ALL - 32 * cor0.col0 AS col2 FROM tab1 cor0
----
-2048
-2560
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 0 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col1 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor1.col1 - cor0.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d96a0599dd4e2b207e26faf0b386d68f

query I rowsort
SELECT ALL + cor0.col1 + col1 * col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - cor1.col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT - col1 * ( - 20 ) + cor0.col2 FROM tab1 AS cor0
----
257
356
574

query I rowsort
SELECT DISTINCT col1 + - col1 * + col2 FROM tab1 cor0
----
-1235
-1378
-560

query I rowsort
SELECT - col2 * 0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + - ( + col2 ) * col2 FROM tab1 cor0
----
-2913
-3185
-9136

query I rowsort
SELECT DISTINCT + 4 * - col1 AS col0 FROM tab0 AS cor0
----
-344
-364
-388

query I rowsort
SELECT + ( - 39 ) * - col2 + - 86 + - col1 AS col0 FROM tab1 AS cor0
----
1994
2127
3645

query I rowsort
SELECT ALL - + 40 FROM tab2 AS cor0
----
-40
-40
-40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6163
SELECT DISTINCT + col0 + CAST( 9 AS SIGNED ) * col2 + col0 FROM tab1
----
1024
492
641

skipif mysql # not compatible
query I rowsort label-6163
SELECT DISTINCT + col0 + CAST ( 9 AS INTEGER ) * col2 + col0 FROM tab1
----
1024
492
641

query I rowsort
SELECT ALL tab1.col0 + 32 AS col0 FROM tab1
----
112
35
96

query I rowsort
SELECT - col0 * - 23 FROM tab0
----
2047
552
805

query I rowsort
SELECT ALL - 76 + - 95 FROM tab2 AS cor0
----
-171
-171
-171

query I rowsort
SELECT DISTINCT + + 87 AS col1 FROM tab2 cor0
----
87

query I rowsort
SELECT ALL - 72 * col2 FROM tab0 AS cor0
----
-2376
-5904
-72

query I rowsort
SELECT - col1 + 47 AS col0 FROM tab0
----
-39
-44
-50

query I rowsort
SELECT + 4 * tab0.col1 * + col2 - + ( col2 ) FROM tab0
----
11319
29766
387

query I rowsort
SELECT ( col1 ) * + col0 + col0 FROM tab0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-6172
SELECT DISTINCT - col0 DIV - 40 AS col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-6172
SELECT DISTINCT - col0 / - 40 AS col0 FROM tab2
----
0
1

query I rowsort
SELECT - 41 * col1 AS col2 FROM tab2 AS cor0
----
-1271
-2419
-697

query I rowsort
SELECT ALL 26 * + col2 AS col0 FROM tab1 AS cor0
----
1404
1482
2496

query I rowsort
SELECT 65 * + col1 + col2 + + 55 AS col2 FROM tab2
----
1198
2097
3916

query I rowsort
SELECT + 9 * col1 FROM tab1
----
117
234
90

query I rowsort
SELECT ALL - 61 - col2 AS col0 FROM tab2
----
-87
-88
-99

query I rowsort
SELECT + col1 * col1 + + ( + col2 + - 65 ) AS col2 FROM tab1 AS cor0
----
200
665
92

query I rowsort
SELECT DISTINCT col1 + - 88 FROM tab0 AS cor0
----
-2
3
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6180
SELECT DISTINCT - - col0 + - CAST( NULL AS SIGNED ) + + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6180
SELECT DISTINCT - - col0 + - CAST ( NULL AS INTEGER ) + + col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 88 * col2 * 18 + 77 * - col0 FROM tab2
----
-43307
-47190
-66275

query I rowsort
SELECT - 77 * + col2 FROM tab1 AS cor0
----
-4158
-4389
-7392

query I rowsort
SELECT DISTINCT - - cor0.col2 * + cor0.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
2838
7462
97

query I rowsort
SELECT - col1 + + 39 * 9 FROM tab0 AS cor0
----
254
260
265

onlyif mysql # use DIV operator for integer division
query I rowsort label-6185
SELECT ALL - + col1 DIV col0 + + cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
1534
646
833

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL - + col1 / col0 + + cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
1534
646
833

query I rowsort
SELECT DISTINCT + col1 + + ( col1 ) * - col0 * + col2 + col2 AS col0 FROM tab1 cor0
----
-36413
-4132
-99731

query I rowsort
SELECT DISTINCT + + cor0.col2 + cor0.col2 - + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - col2 * - col0 + col1 AS col2 FROM tab1
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-6189
SELECT tab1.col0 * ( col2 ) DIV + col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6189
SELECT tab1.col0 * ( col2 ) / + col2 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT col0 + - cor0.col1 + col1 AS col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + col2 * 21 FROM tab2 AS cor0
----
546
567
798

query I rowsort
SELECT DISTINCT - cor0.col1 * + ( cor0.col1 ) * + col0 + ( + 28 ) AS col2 FROM tab1 AS cor0
----
-13492
-2000
-6372

query I rowsort
SELECT ALL - - col0 * + 77 AS col1 FROM tab0 AS cor0
----
1848
2695
6853

onlyif mysql # use DIV operator for integer division
query I rowsort label-6194
SELECT col0 - col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-6194
SELECT col0 - col1 / + col1 AS col1 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT DISTINCT + + col2 + - col1 * + col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-6196
SELECT ALL + cor0.col2 DIV - col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL + cor0.col2 / - col1 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT - col2 * col2 + ( + col0 ) FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL col2 * col2 + 26 AS col2 FROM tab2 AS cor0
----
1470
702
755

query I rowsort
SELECT + col0 * - col1 * - ( - col0 ) FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT col0 + col1 * + ( + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT + - 71 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-36
-47
18

query I rowsort
SELECT - + col0 + ( + col0 ) + - col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT col1 * - 16 + - 61 + - col1 AS col0 FROM tab1 AS cor0
----
-231
-282
-503

query I rowsort
SELECT + col2 * + 9 AS col2 FROM tab1 AS cor0
----
486
513
864

query I rowsort
SELECT - col0 + ( + cor0.col2 * - cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6206
SELECT DISTINCT 5 DIV + col0 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT 5 / + col0 AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL - 79 * 75 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a85843dd000334bc329539bab70759f5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 + + 49 col0 FROM tab0 AS cor0
----
88
88
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6209
SELECT - col1 * - ( + col2 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6209
SELECT - col1 * - ( + col2 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + 24 ) * + col0 AS col0 FROM tab1 AS cor0
----
-1536
-1920
-72

query I rowsort
SELECT DISTINCT ( col2 ) + + cor0.col0 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + col1 + col1 * col2 - col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT ( 27 ) * + tab2.col0 * + 76 FROM tab2, tab2 AS cor0
----
14364
160056
162108

onlyif mysql # use DIV operator for integer division
query I rowsort label-6214
SELECT - 72 DIV ( col0 ) AS col1 FROM tab1 AS cor0
----
-1
-24
0

skipif mysql # not compatible
query I rowsort label-6214
SELECT - 72 / ( col0 ) AS col1 FROM tab1 AS cor0
----
-1
-24
0

query I rowsort
SELECT ALL + ( + cor0.col1 * ( - 32 ) ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cdcb3e6d751eca888cf36305a541a0b0

query I rowsort
SELECT DISTINCT - 64 * col1 FROM tab0 AS cor0
----
-5504
-5824
-6208

query I rowsort
SELECT - + 14 - col2 FROM tab2 AS cor0
----
-40
-41
-52

query I rowsort
SELECT DISTINCT 67 + cor0.col2 AS col1 FROM tab0 AS cor0
----
100
149
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6219
SELECT - - cor0.col2 * cor0.col0 + CAST( NULL AS SIGNED ) * + 7 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6219
SELECT - - cor0.col2 * cor0.col0 + CAST ( NULL AS INTEGER ) * + 7 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * - cor0.col2 * - 89 + - 29 FROM tab2 AS cor0
----
-16850
-180521
-267207

query I rowsort
SELECT DISTINCT 96 * + col1 FROM tab1
----
1248
2496
960

query I rowsort
SELECT 99 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT + col0 + tab0.col2 + + col2 FROM tab0
----
253
37
90

query I rowsort
SELECT DISTINCT 65 FROM tab2, tab1 AS cor0, tab2 cor1
----
65

query I rowsort
SELECT + ( - col0 ) + col2 + + ( + cor0.col0 + ( - col1 ) ) FROM tab0 AS cor0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + + 81 col0 FROM tab2 AS cor0
----
-1262
-136
-4521

onlyif mysql # use DIV operator for integer division
query I rowsort label-6227
SELECT col2 + col0 * - ( col0 ) - col0 DIV + ( tab2.col0 ) AS col0 FROM tab2
----
-23
-6059
-6204

skipif mysql # not compatible
query I rowsort label-6227
SELECT col2 + col0 * - ( col0 ) - col0 / + ( tab2.col0 ) AS col0 FROM tab2
----
-23
-6059
-6204

query I rowsort
SELECT - col2 * + col2 + cor0.col1 * - col0 FROM tab2 AS cor0
----
-2787
-5278
-946

query I rowsort
SELECT ALL cor0.col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6230
SELECT DISTINCT + col0 * CAST( 97 AS SIGNED ) FROM tab1
----
291
6208
7760

skipif mysql # not compatible
query I rowsort label-6230
SELECT DISTINCT + col0 * CAST ( 97 AS INTEGER ) FROM tab1
----
291
6208
7760

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab1 cor2
----
3645 values hashing to fb3687512d3714969d7c6afc5561ed79

query I rowsort
SELECT - col2 + + 30 FROM tab0 AS cor0
----
-3
-52
29

query I rowsort
SELECT ( - col0 ) * - col1 - col2 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT - col1 - tab2.col0 AS col0 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT tab0.col1 * + col0 + + tab0.col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT ALL cor1.col2 AS col1 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT tab2.col1 + col2 + 37 * + col1 FROM tab2
----
1205
2268
684

query I rowsort
SELECT DISTINCT 17 + - col1 * - col0 FROM tab0
----
2081
3412
8116

query I rowsort
SELECT + - col1 * + col0 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT - - ( col2 ) * + col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col0 + + col1 * + tab2.col2 * tab2.col0 FROM tab2
----
119730
51113
5866

query I rowsort
SELECT DISTINCT - + col0 * - col2 * col2 + + col1 FROM tab1 AS cor0
----
207946
737293
8774

query I rowsort
SELECT DISTINCT + col0 * col0 + cor0.col1 + - col2 FROM tab1 AS cor0
----
-19
4049
6317

query I rowsort
SELECT ALL + col2 * - cor0.col0 + - col2 * + col0 + - ( + col0 + + col2 ) * + col0 * + col1 FROM tab0 AS cor0
----
-119232
-122290
-1399525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + 24 col0 FROM tab0
----
-23
58
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6246
SELECT DISTINCT - col2 - - col2 DIV - col2 FROM tab0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT - col2 - - col2 / - col2 FROM tab0
----
-2
-34
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6247
SELECT ALL - CAST( NULL AS SIGNED ) - - tab0.col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL - CAST ( NULL AS INTEGER ) - - tab0.col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) - tab0.col1 * + ( col1 + + col2 ) col1 FROM tab0
----
-10201
-15661
-9505

query I rowsort
SELECT + 62 * 29 * - col1 FROM tab0 cor0
----
-154628
-163618
-174406

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col1 - col2 * + ( + col0 ) col0 FROM tab0 cor0
----
-673
-7125
63

query I rowsort
SELECT DISTINCT + ( 40 ) * - col2 FROM tab1 AS cor0
----
-2160
-2280
-3840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6252
SELECT ALL + col1 * col0 + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6252
SELECT ALL + col1 * col0 + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 4 + - col1 AS col1 FROM tab1 AS cor0
----
-22
-6
-9

query I rowsort
SELECT DISTINCT - - cor0.col2 * + col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6255
SELECT DISTINCT + col0 DIV - col1 FROM tab1 cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-6255
SELECT DISTINCT + col0 / - col1 FROM tab1 cor0
----
-6
0

query I rowsort
SELECT ALL - 8 AS col2 FROM tab1 cor0
----
-8
-8
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6257
SELECT - 58 DIV + col2 AS col2 FROM tab0 cor0
----
-1
-58
0

skipif mysql # not compatible
query I rowsort label-6257
SELECT - 58 / + col2 AS col2 FROM tab0 cor0
----
-1
-58
0

query I rowsort
SELECT + - ( col1 ) * + 64 * + 67 AS col1 FROM tab1 AS cor0
----
-111488
-42880
-55744

query I rowsort
SELECT DISTINCT + - 43 FROM tab2 AS cor0
----
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-6260
SELECT + 77 + - col1 DIV ( + col1 ) AS col0 FROM tab1 AS cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-6260
SELECT + 77 + - col1 / ( + col1 ) AS col0 FROM tab1 AS cor0
----
76
76
76

query I rowsort
SELECT + col1 + - cor0.col0 * col0 FROM tab0 cor0
----
-1128
-490
-7830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # use DIV operator for integer division
query I rowsort label-6263
SELECT - ( 53 ) DIV col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6263
SELECT - ( 53 ) / col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ( 46 ) * - col1 + + col1 - col1 FROM tab1
----
-1196
-460
-598

query I rowsort
SELECT DISTINCT + - cor0.col0 + - col0 * - col0 FROM tab1 cor0
----
4032
6
6320

query I rowsort
SELECT DISTINCT - col2 * + ( col2 ) * - ( col0 ) FROM tab2
----
114076
5103
52728

query I rowsort
SELECT DISTINCT - - col0 + col2 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL col2 * + col2 * ( + 51 ) FROM tab0 AS cor0
----
342924
51
55539

query I rowsort
SELECT cor0.col2 * col0 + + col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL - 64 * col2 + 4 * col2 + col0 FROM tab1
----
-3237
-3356
-5680

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT col0 * - col2 - - 70 * + col0 FROM tab1 AS cor0
----
-2080
48
832

query I rowsort
SELECT - col0 + + col1 * + 19 FROM tab2 AS cor0
----
1043
244
582

query I rowsort
SELECT ALL + - cor0.col1 * col1 + 81 AS col0 FROM tab0 AS cor0
----
-7315
-8200
-9328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 - col2 col1 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6276
SELECT DISTINCT cor0.col2 + + CAST( NULL AS SIGNED ) col2 FROM tab1, tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT cor0.col2 + + CAST ( NULL AS INTEGER ) col2 FROM tab1, tab2 AS cor0
----
NULL

query I rowsort
SELECT + cor0.col0 * - col1 + - col2 + + col2 * 7 FROM tab1 AS cor0
----
-298
-464
246

query I rowsort
SELECT ALL + 65 + col2 + + col2 FROM tab1
----
173
179
257

query I rowsort
SELECT ALL + col0 + col1 * + col2 * + 71 + + col0 FROM tab2
----
109070
46024
59441

onlyif mysql # use DIV operator for integer division
query I rowsort label-6280
SELECT - cor0.col1 DIV col1 + 28 FROM tab1 AS cor0
----
27
27
27

skipif mysql # not compatible
query I rowsort label-6280
SELECT - cor0.col1 / col1 + 28 FROM tab1 AS cor0
----
27
27
27

query I rowsort
SELECT DISTINCT + col0 + tab1.col2 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL - 56 + col2 FROM tab0
----
-23
-55
26

query I rowsort
SELECT DISTINCT - col0 * - col1 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT col0 * 89 FROM tab1 AS cor0
----
267
5696
7120

onlyif mysql # use DIV operator for integer division
query I rowsort label-6285
SELECT ALL - ( cor0.col2 ) + col2 DIV col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL - ( cor0.col2 ) + col2 / col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + col1 AS REAL ) - - col0 AS col0 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col1 * - col0 col2 FROM tab2 cor0
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT cor0.col1 + - cor0.col2 * + cor0.col2 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT + - 17 AS col1 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT ALL 77 * - col2 FROM tab2 AS cor0
----
-2002
-2079
-2926

onlyif mysql # use DIV operator for integer division
query I rowsort label-6291
SELECT DISTINCT ( - col2 ) DIV col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-6291
SELECT DISTINCT ( - col2 ) / col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT ALL + + 49 * + col0 + - col2 FROM tab2 cor0
----
316
3796
3833

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - 89 ) + - col2 col1 FROM tab2 AS cor0
----
-115
-116
-127

query I rowsort
SELECT DISTINCT ( col0 ) + + cor0.col0 * col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT + + 36 AS col0 FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT col0 + ( 73 ) * col0 FROM tab2
----
518
5772
5846

query I rowsort
SELECT ALL + col0 * 12 FROM tab0
----
1068
288
420

query I rowsort
SELECT col1 - 88 AS col0 FROM tab1
----
-62
-75
-78

query I rowsort
SELECT 39 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT + + 56 AS col0 FROM tab0 AS cor0
----
56
56
56

query I rowsort
SELECT ALL + col1 * - ( - col1 ) * col1 + + 17 FROM tab0 AS cor0
----
636073
753588
912690

onlyif mysql # use DIV operator for integer division
query I rowsort label-6302
SELECT + col2 DIV - ( col0 ) FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6302
SELECT + col2 / - ( col0 ) FROM tab0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6303
SELECT ALL col2 + CAST( - col0 AS SIGNED ) FROM tab2
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-6303
SELECT ALL col2 + CAST ( - col0 AS INTEGER ) FROM tab2
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-6304
SELECT DISTINCT - col0 DIV - col2 + 0 + + col1 AS col1 FROM tab1 AS cor0
----
11
13
26

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT - col0 / - col2 + 0 + + col1 AS col1 FROM tab1 AS cor0
----
11
13
26

query I rowsort
SELECT + + cor0.col2 + 54 + - col0 * col1 AS col2 FROM tab0 AS cor0
----
-1977
-3340
-7963

query I rowsort
SELECT ALL - 40 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 01aad4539198a6509248e086869f90a6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6307
SELECT - col1 * col2 DIV 27 FROM tab1
----
-21
-46
-52

skipif mysql # not compatible
query I rowsort label-6307
SELECT - col1 * col2 / 27 FROM tab1
----
-21
-46
-52

query I rowsort
SELECT col0 * + ( + col1 ) + col0 * - 35 - col1 FROM tab2 AS cor0
----
-1439
-59
1813

query I rowsort
SELECT DISTINCT - + cor0.col1 + cor0.col2 * 82 AS col1 FROM tab1 cor0
----
4402
4664
7859

query I rowsort
SELECT - cor0.col0 + ( col2 * + 12 ) AS col2 FROM tab2 cor0
----
234
317
377

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * - col1 col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT - + ( - col2 ) + col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT + 36 * + col2 FROM tab2 AS cor0
----
1368
936
972

query I rowsort
SELECT ALL + col0 + 20 FROM tab1
----
100
23
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 35 - + col1 col0 FROM tab2 cor0
----
214
2671
2748

query I rowsort
SELECT - - col0 * + ( - cor0.col1 ) + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT col1 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT + ( cor0.col1 ) * + cor0.col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - + col0 * + col0 + col1 + - col1 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6320
SELECT - col0 + - CAST( NULL AS SIGNED ) * + col2 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-6320
SELECT - col0 + - CAST ( NULL AS INTEGER ) * + col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + ( - ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6322
SELECT col2 * col2 DIV 10 FROM tab1 AS cor0
----
291
324
921

skipif mysql # not compatible
query I rowsort label-6322
SELECT col2 * col2 / 10 FROM tab1 AS cor0
----
291
324
921

query I rowsort
SELECT ALL - col0 + + 90 * col0 FROM tab2 AS cor0
----
623
6942
7031

query I rowsort
SELECT DISTINCT + col1 + 72 * + col0 + + col1 FROM tab1 cor0
----
268
4628
5786

query I rowsort
SELECT + + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT 34 FROM tab1, tab0 cor0, tab2, tab0 AS cor1
----
81 values hashing to 6cda47a564e8ee9e9e7915815a3a7769

query I rowsort
SELECT ALL + ( + col2 ) * col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - col2 * 62 FROM tab0
----
-2046
-5084
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 + col2 col2 FROM tab1 AS cor0
----
134
137
176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 94 col0 FROM tab2, tab0 cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
54
57
96

query I rowsort
SELECT ALL + 80 * - cor0.col0 + - ( - tab1.col2 ) FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 984658079ebc8ca34f19ec9a4f6f1fb6

query I rowsort
SELECT + 21 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT col1 * - col2 + ( col1 ) AS col2 FROM tab2 AS cor0
----
-1475
-629
-806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6335
SELECT DISTINCT CAST( - col2 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-6335
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT + + col1 * ( - col0 ) - 25 FROM tab1 AS cor0
----
-103
-1065
-665

onlyif mysql # use DIV operator for integer division
query I rowsort label-6337
SELECT + col0 DIV col1 - col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6337
SELECT + col0 / col1 - col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + - col2 * col0 * 2 col1 FROM tab1 AS cor0
----
-15440
-327
-7360

query I rowsort
SELECT ALL ( col0 ) + - col2 FROM tab0 cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6340
SELECT ALL + + CAST( NULL AS SIGNED ) * - col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL + + CAST ( NULL AS INTEGER ) * - col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + col2 * + col1 * col1 AS col2 FROM tab0 cor0
----
244154
679133
9506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6342
SELECT ALL ( col2 ) * col1 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL ( col2 ) * col1 + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 7 * col0 * + col2 AS col1 FROM tab1 AS cor0
----
1134
25536
53760

query I rowsort
SELECT DISTINCT + col0 * + 34 - + col0 * - col0 AS col1 FROM tab2
----
287
8736
8927

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + ( + col0 ) - + tab2.col0 col0 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT - col2 * - col2 + + col2 * + col2 - - col0 AS col0 FROM tab2
----
1430
1465
2967

query I rowsort
SELECT ALL + col2 + + col1 * + col0 * - col1 - 11 * col1 FROM tab0
----
-178417
-330381
-737928

query I rowsort
SELECT DISTINCT + - ( 92 ) + - col0 FROM tab1 AS cor0
----
-156
-172
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-6349
SELECT DISTINCT col0 + 67 DIV col1 col0 FROM tab1 AS cor0
----
5
70
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6349
SELECT DISTINCT col0 + 67 / col1 col0 FROM tab1 AS cor0
----
5
70
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 + - cor0.col1 col2 FROM tab0 AS cor0
----
-38
-43
-49

query I rowsort
SELECT - - cor0.col2 * + col1 + + col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL - cor0.col0 + - col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6353
SELECT + col0 DIV + col2 + - col0 FROM tab1 cor0
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-6353
SELECT + col0 / + col2 + - col0 FROM tab1 cor0
----
-3
-63
-80

query I rowsort
SELECT + col1 - col0 * tab2.col2 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT col0 + col0 + col1 FROM tab0
----
134
167
269

query I rowsort
SELECT DISTINCT tab2.col0 + col0 + - tab2.col2 * + tab2.col1 AS col0 FROM tab2
----
-1378
-488
-823

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6357
SELECT - CAST( + col2 + col2 AS SIGNED ) * col2 FROM tab2
----
-1352
-1458
-2888

skipif mysql # not compatible
query I rowsort label-6357
SELECT - CAST ( + col2 + col2 AS INTEGER ) * col2 FROM tab2
----
-1352
-1458
-2888

query I rowsort
SELECT - 48 + cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9aca838dd81f22c8a0b07a74e40b0937

onlyif mysql # use DIV operator for integer division
query I rowsort label-6359
SELECT ( ( col0 ) ) DIV - 90 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6359
SELECT ( ( col0 ) ) / - 90 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 45 col1 FROM tab0 AS cor0
----
1080
1575
4005

query I rowsort
SELECT - col2 * - col0 + col1 * 23 + + 62 * + col2 AS col1 FROM tab2 AS cor0
----
2576
4997
5749

query I rowsort
SELECT ALL + col1 + + 79 * - 37 FROM tab0 cor0
----
-2826
-2832
-2837

query I rowsort
SELECT ALL + 27 + + 71 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT - 78 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # use DIV operator for integer division
query I rowsort label-6365
SELECT ALL 4 DIV - 85 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6365
SELECT ALL 4 / - 85 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - tab1.col1 + + col1 + col2 * col0 * + ( col1 ) FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL col1 - + ( tab0.col0 ) FROM tab0
----
2
62
62

query I rowsort
SELECT ALL - col0 * col1 * + cor0.col0 + col1 FROM tab1 AS cor0
----
-208
-40950
-83187

query I rowsort
SELECT DISTINCT - cor0.col1 - - 94 FROM tab1 AS cor0
----
68
81
84

query I rowsort
SELECT ALL + col0 + col1 * + col2 * - col0 AS col0 FROM tab2 cor0
----
-119574
-50955
-5852

query I rowsort
SELECT ALL col0 * + col2 - col0 * col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 34 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 * - col1 + col0 col1 FROM tab2
----
3559
368
968

query I rowsort
SELECT + 69 * - 56 FROM tab2, tab2 AS cor0
----
9 values hashing to 689fb2539e628a07a3884c3eb6bd4134

query I rowsort
SELECT DISTINCT - col2 * + 84 FROM tab2 AS cor0
----
-2184
-2268
-3192

query I rowsort
SELECT - - col0 + + col2 * col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - col1 + + col1 * + col0 FROM tab2 AS cor0
----
1326
186
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-6378
SELECT ALL + - col1 + + col2 DIV col0 AS col1 FROM tab2 AS cor0
----
-17
-28
-59

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL + - col1 + + col2 / col0 AS col1 FROM tab2 AS cor0
----
-17
-28
-59

query I rowsort
SELECT DISTINCT - - col2 * col2 - col1 * + col0 FROM tab0 cor0
----
-1375
-3394
-975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 + cor0.col2 col1 FROM tab0 AS cor0
----
-40
-8
41

query I rowsort
SELECT + cor0.col2 - + col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT 67 * col0 + col2 + col0 FROM tab2 AS cor0
----
503
5330
5410

query I rowsort
SELECT ALL - - cor0.col2 + tab2.col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 1897f50f7cf9347194b630d1613bd20b

query I rowsort
SELECT ALL col1 + - col2 + col2 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6385
SELECT + CAST( 97 AS SIGNED ) + col1 FROM tab0 AS cor0
----
183
188
194

skipif mysql # not compatible
query I rowsort label-6385
SELECT + CAST ( 97 AS INTEGER ) + col1 FROM tab0 AS cor0
----
183
188
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-6386
SELECT + + cor0.col1 - col0 DIV - col2 FROM tab1 cor0
----
11
13
26

skipif mysql # not compatible
query I rowsort label-6386
SELECT + + cor0.col1 - col0 / - col2 FROM tab1 cor0
----
11
13
26

query I rowsort
SELECT ALL + - col1 * - col0 AS col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT 65 + col0 FROM tab1 AS cor0
----
129
145
68

query I rowsort
SELECT ALL + col2 - 71 AS col1 FROM tab2 AS cor0
----
-33
-44
-45

query I rowsort
SELECT ALL + cor0.col1 * col1 + - 26 AS col1 FROM tab0 AS cor0
----
7370
8255
9383

query I rowsort
SELECT ALL col1 - - col2 AS col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL + col2 + ( + 69 ) FROM tab2 AS cor0
----
107
95
96

query I rowsort
SELECT 80 + col0 * col0 FROM tab1
----
4176
6480
89

query I rowsort
SELECT col2 * + col0 + col2 AS col1 FROM tab0
----
36
7380
825

query I rowsort
SELECT DISTINCT - col2 * tab0.col2 AS col1 FROM tab0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6396
SELECT 98 * col2 DIV col2 FROM tab0 AS cor0
----
98
98
98

skipif mysql # not compatible
query I rowsort label-6396
SELECT 98 * col2 / col2 FROM tab0 AS cor0
----
98
98
98

query I rowsort
SELECT DISTINCT 1 AS col2 FROM tab1
----
1

query I rowsort
SELECT DISTINCT 16 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
16

query I rowsort
SELECT ALL 56 * - col1 FROM tab1
----
-1456
-560
-728

query I rowsort
SELECT ALL + ( - tab2.col1 ) * + col0 AS col0 FROM tab2
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 col0 FROM tab0
----
-74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6402
SELECT col2 * - 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-6402
SELECT col2 * - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col0 * - 92 col2 FROM tab0
----
112700
52992
728732

query I rowsort
SELECT col1 * ( ( - col0 ) ) AS col2 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6405
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6405
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
91

query I rowsort
SELECT ALL + - cor0.col2 * + 73 - + col2 AS col2 FROM tab0 cor0
----
-2442
-6068
-74

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col1 AS REAL ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + 94 + col1 AS col2 FROM tab0 AS cor0
----
180
185
191

query I rowsort
SELECT - col0 * 38 AS col2 FROM tab2 AS cor0
----
-266
-2964
-3002

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 70 AS REAL ) + col1 FROM tab2 AS cor0
----
101
129
87

query I rowsort
SELECT - col1 + col1 * - col0 * - ( 29 ) FROM tab0 AS cor0
----
234780
59770
98358

query I rowsort
SELECT - - cor0.col0 + col0 * col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - ( + 27 ) FROM tab2 AS cor0
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 * ( col1 ) + + col1 col2 FROM tab0
----
6536
6916
7372

query I rowsort
SELECT ALL - col0 + - 75 AS col2 FROM tab2
----
-153
-154
-82

query I rowsort
SELECT ALL ( col0 * col1 ) AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL ( tab2.col2 ) AS col0 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6419
SELECT DISTINCT + col0 * - col0 + - ( + col1 ) * + col0 DIV + col0 FROM tab0 AS cor0
----
-1322
-662
-8012

skipif mysql # not compatible
query I rowsort label-6419
SELECT DISTINCT + col0 * - col0 + - ( + col1 ) * + col0 / + col0 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT DISTINCT col2 * + cor0.col1 + - col0 * + col0 AS col1 FROM tab2 AS cor0
----
-4550
-5595
788

query I rowsort
SELECT DISTINCT col0 * col0 - col0 AS col1 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT ALL - col1 * cor0.col0 + ( + col0 ) FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - + col2 + + col1 + - col1 * col1 FROM tab0 AS cor0
----
-7343
-8272
-9313

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - cor0.col0 * - 10 * + col2 col1 FROM tab2 AS cor0
----
1921
20339
30037

query I rowsort
SELECT ALL 95 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6426
SELECT ALL col2 + - col0 DIV 20 AS col0 FROM tab1 AS cor0
----
54
54
92

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL col2 + - col0 / 20 AS col0 FROM tab1 AS cor0
----
54
54
92

query I rowsort
SELECT DISTINCT - + cor0.col2 + - col2 AS col2 FROM tab0 AS cor0
----
-164
-2
-66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6428
SELECT col2 + + col1 * cor0.col0 + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6428
SELECT col2 + + col1 * cor0.col0 + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 - + 43 * ( col0 ) FROM tab1 AS cor0
----
-155
-2762
-3453

query I rowsort
SELECT - - cor0.col2 * - col2 + - col0 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT + col2 - 0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + col2 * ( col2 * col1 + - col2 ) AS col0 FROM tab0 AS cor0
----
605160
92565
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6433
SELECT ALL col2 * CAST( + ( + col0 ) AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL col2 * CAST ( + ( + col0 ) AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT + col1 - 70 AS col2 FROM tab2 AS cor0
----
-11
-39
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-6435
SELECT col2 + - 29 + + col2 DIV - cor0.col0 AS col1 FROM tab2 AS cor0
----
-3
-5
9

skipif mysql # not compatible
query I rowsort label-6435
SELECT col2 + - 29 + + col2 / - cor0.col0 AS col1 FROM tab2 AS cor0
----
-3
-5
9

query I rowsort
SELECT col1 + + 39 AS col1 FROM tab1 cor0
----
49
52
65

query I rowsort
SELECT + col2 * col1 - + cor0.col0 AS col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT - 67 + + col0 + + col1 FROM tab2 AS cor0
----
-29
29
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 12 col2 FROM tab1 AS cor0
----
12
12
12

query I rowsort
SELECT col1 * 3 FROM tab2
----
177
51
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6442
SELECT ALL CAST( NULL AS SIGNED ) * - cor0.col1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL CAST ( NULL AS INTEGER ) * - cor0.col1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6443
SELECT col2 * - CAST( + col1 * col0 AS SIGNED ) AS col1 FROM tab1
----
-36480
-4212
-99840

skipif mysql # not compatible
query I rowsort label-6443
SELECT col2 * - CAST ( + col1 * col0 AS INTEGER ) AS col1 FROM tab1
----
-36480
-4212
-99840

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1, tab0 AS cor2
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae

query I rowsort
SELECT DISTINCT - col1 - tab0.col0 AS col2 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT ALL 82 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT - - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6449
SELECT DISTINCT col1 * - CAST( NULL AS DECIMAL ) * + 94 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT col1 * - CAST ( NULL AS REAL ) * + 94 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( + col2 ) col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - - col2 * + ( col0 ) + + col0 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6452
SELECT cor0.col2 DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6452
SELECT cor0.col2 / - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6453
SELECT ALL - col0 + - ( col1 ) DIV - cor0.col2 AS col2 FROM tab0 AS cor0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL - col0 + - ( col1 ) / - cor0.col2 AS col2 FROM tab0 AS cor0
----
-22
-88
62

query I rowsort
SELECT DISTINCT - + col2 * 89 + 77 + - col0 FROM tab1 AS cor0
----
-4732
-5060
-8547

query I rowsort
SELECT ALL + col1 + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT - col1 + + 57 FROM tab2 AS cor0
----
-2
26
40

query I rowsort
SELECT DISTINCT - 66 AS col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL - + col2 * - cor0.col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - cor0.col2 * col2 * - col0 AS col1 FROM tab2 AS cor0
----
114076
5103
52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 - - tab0.col1 col0 FROM tab0
----
195
205
264

query I rowsort
SELECT ALL 6 * cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to f293fb31cc171abeef4b8f6e790a6ab0

query I rowsort
SELECT ALL + col0 - + col2 * + col2 FROM tab2
----
-1365
-598
-722

onlyif mysql # use DIV operator for integer division
query I rowsort label-6463
SELECT DISTINCT - 65 DIV cor0.col2 FROM tab0 AS cor0
----
-1
-65
0

skipif mysql # not compatible
query I rowsort label-6463
SELECT DISTINCT - 65 / cor0.col2 FROM tab0 AS cor0
----
-1
-65
0

query I rowsort
SELECT ALL 78 + - col1 * - col0 * 7 FROM tab1 AS cor0
----
4558
624
7358

query I rowsort
SELECT ALL + + 32 + col2 AS col2 FROM tab0 AS cor0
----
114
33
65

query I rowsort
SELECT 79 FROM tab1, tab0 AS cor0, tab0 cor1, tab0 AS cor2
----
81 values hashing to da0116d31b8af0da9f685c090d378baf

onlyif mysql # use DIV operator for integer division
query I rowsort label-6467
SELECT ALL - col2 DIV + col0 AS col0 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-6467
SELECT ALL - col2 / + col0 AS col0 FROM tab1 cor0
----
-1
-18
0

query I rowsort
SELECT + - 15 AS col0 FROM tab2 AS cor0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT + + col2 * col1 AS col1 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6470
SELECT DISTINCT + CAST( + tab2.col2 AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0, tab1 cor1, tab1, tab2 AS cor2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-6470
SELECT DISTINCT + CAST ( + tab2.col2 AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0, tab1 cor1, tab1, tab2 AS cor2
----
26
27
38

query I rowsort
SELECT DISTINCT + ( + col0 ) * col2 + col1 + - cor0.col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + tab2.col2 - col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - tab2.col1 * tab2.col0 - - tab2.col1 FROM tab2
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-6474
SELECT ALL + col2 DIV col1 + - col2 AS col2 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL + col2 / col1 + - col2 AS col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - col1 * tab2.col0 - col0 AS col2 FROM tab2
----
-1422
-224
-4680

query I rowsort
SELECT + col2 + col1 * col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT ALL + + tab0.col1 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ( tab1.col2 * + ( - ( - col1 ) ) + 8 ) AS col0 FROM tab1
----
1256
1412
578

query I rowsort
SELECT DISTINCT - ( col0 * + col2 ) FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - cor1.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 3e2b81ca10484cbfc66f186955e0e920

query I rowsort
SELECT - - cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT - tab1.col1 * tab1.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 315ab91f9844de122b0c28cd16e982e4

query I rowsort
SELECT DISTINCT - cor0.col2 * - 3 AS col2 FROM tab1, tab1 AS cor0
----
162
171
288

query I rowsort
SELECT ALL 10 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT DISTINCT + 6 AS col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6486
SELECT ALL - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( col2 ) + + col0 * col2 FROM tab2
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-6488
SELECT DISTINCT - 47 + col0 DIV + col1 col0 FROM tab1
----
-41
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6488
SELECT DISTINCT - 47 + col0 / + col1 col0 FROM tab1
----
-41
-47

query I rowsort
SELECT DISTINCT 23 * 66 + + col0 FROM tab0
----
1542
1553
1607

query I rowsort
SELECT ALL - col0 * + 7 + - tab2.col0 * 91 FROM tab2
----
-686
-7644
-7742

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6491
SELECT DISTINCT - CAST( + col2 AS SIGNED ) + + tab2.col1 FROM tab2
----
-21
33
4

skipif mysql # not compatible
query I rowsort label-6491
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + + tab2.col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT + + 90 + 20 AS col0 FROM tab1 AS cor0
----
110
110
110

query I rowsort
SELECT DISTINCT + + 65 FROM tab2 AS cor0
----
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6494
SELECT DISTINCT CAST( col1 AS SIGNED ) + - col1 * cor0.col2 AS col0 FROM tab2 cor0
----
-1475
-629
-806

skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT CAST ( col1 AS INTEGER ) + - col1 * cor0.col2 AS col0 FROM tab2 cor0
----
-1475
-629
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - 29 col1 FROM tab2 AS cor0
----
-55
-56
-67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6496
SELECT + CAST( NULL AS SIGNED ) + 30 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6496
SELECT + CAST ( NULL AS INTEGER ) + 30 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6497
SELECT + CAST( 2 AS SIGNED ) * + col0 + col1 FROM tab2 AS cor0
----
175
215
45

skipif mysql # not compatible
query I rowsort label-6497
SELECT + CAST ( 2 AS INTEGER ) * + col0 + col1 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT 1 * col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - 36 + + col2 * - ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-1570
-682
-873

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6500
SELECT + 5 * col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6500
SELECT + 5 * col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 36 - cor0.col0 FROM tab2 AS cor0
----
-42
-43
29

query I rowsort
SELECT ALL + col0 - cor0.col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col1 - col0 * 71 FROM tab2 AS cor0
----
-466
-5479
-5592

skipif mysql # not compatible
query I rowsort
SELECT col1 * cor0.col2 / + CAST ( + col2 AS REAL ) + - col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - - col0 * - col1 * - col1 + - ( - col1 + + ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
22886
271603
6785

query I rowsort
SELECT ALL + 33 - col1 AS col0 FROM tab0 AS cor0
----
-53
-58
-64

query I rowsort
SELECT cor0.col1 + - col1 * - ( - 27 ) AS col1 FROM tab2 cor0
----
-1534
-442
-806

query I rowsort
SELECT ALL col2 * + col1 AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT col0 * col1 + - 91 AS col2 FROM tab0 AS cor0
----
1973
3304
8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 * - col0 col2 FROM tab1 cor0
----
24
583
944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6511
SELECT cor0.col1 + col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6511
SELECT cor0.col1 + col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 11 * + col2 * cor0.col2 AS col0 FROM tab1 cor0
----
101376
32076
35739

query I rowsort
SELECT ALL - col0 + + cor0.col1 AS col0 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT cor0.col2 + col0 * + cor0.col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT col2 + + col0 * col0 * col2 FROM tab1
----
233529
540
614496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - tab2.col0 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + ( 21 ) * col1 + + col1 FROM tab1
----
220
286
572

query I rowsort
SELECT - col0 * + col0 + col2 AS col1 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT - + cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - col2 * 69 * + col1 FROM tab0
----
-195822
-514878
-6693

query I rowsort
SELECT + 30 * col2 FROM tab2
----
1140
780
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-6522
SELECT + 9 DIV col0 + - col2 + + col2 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6522
SELECT + 9 / col0 + - col2 + + col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL ( - col0 ) + - col1 * tab1.col2 * - col0 FROM tab1
----
36416
4209
99760

query I rowsort
SELECT DISTINCT + col0 + col0 * + col1 AS col0 FROM tab1
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6525
SELECT 37 DIV cor0.col0 + - col1 + col0 FROM tab0 AS cor0
----
-2
-61
-61

skipif mysql # not compatible
query I rowsort label-6525
SELECT 37 / cor0.col0 + - col1 + col0 FROM tab0 AS cor0
----
-2
-61
-61

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + + col2 + col1 AS col0 FROM tab2 AS cor0
----
-1449
-591
-779

query I rowsort
SELECT col2 * - col0 + cor0.col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL - cor0.col0 * - cor0.col0 - col0 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT col1 * cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + col1 * col1 - + col2 FROM tab2
----
251
3455
934

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 > NULL
----

query I rowsort
SELECT + tab2.col2 * col0 + - col2 * - col1 * col2 AS col0 FROM tab2
----
22788
27550
41912

query I rowsort
SELECT ALL - col2 * + col0 + col1 FROM tab0
----
-706
-7207
62

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 NOT IN ( + col2 * + col0 * col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT col0 * col1 + col0 + col0 * col1 FROM tab2
----
2765
441
9282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 - col1 col1 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6539
SELECT + col0 * + col0 + + col2 + tab1.col1 DIV col0 AS col1 FROM tab1
----
4153
6496
71

skipif mysql # not compatible
query I rowsort label-6539
SELECT + col0 * + col0 + + col2 + tab1.col1 / col0 AS col1 FROM tab1
----
4153
6496
71

query I rowsort
SELECT - col0 - col2 * + col2 AS col0 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT DISTINCT col0 * + col1 + - col2 + col2 * + col1 AS col0 FROM tab1
----
1153
1428
2192

onlyif mysql # use DIV operator for integer division
query I rowsort label-6542
SELECT col0 DIV + col0 + + tab1.col0 AS col1 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-6542
SELECT col0 / + col0 + + tab1.col0 AS col1 FROM tab1
----
4
65
81

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT - col1 + col2 IN ( - col2 * - col1 )
----
1
33
82

query I rowsort
SELECT DISTINCT - col1 * col0 * + col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT + tab0.col0 * col0 AS col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + col0 * - col0 * + col2 AS col1 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT - col1 + + col2 + col2 AS col0 FROM tab1
----
104
179
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6548
SELECT ALL col0 - - col2 DIV + col0 FROM tab1
----
21
64
81

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL col0 - - col2 / + col0 FROM tab1
----
21
64
81

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NULL < col1 - col1
----

query I rowsort
SELECT - col0 * col0 + + col0 AS col0 FROM tab1
----
-4032
-6
-6320

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 ) NOT IN ( - col0 * col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN col2 AND ( + col2 * col0 )
----

query I rowsort
SELECT ALL + tab2.col2 * + col2 * tab2.col2 AS col0 FROM tab2
----
17576
19683
54872

query I rowsort
SELECT col2 * - col1 * col2 FROM tab0
----
-611884
-93654
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6555
SELECT DISTINCT - col0 * tab1.col2 - col0 DIV - col1 AS col0 FROM tab1
----
-162
-3642
-7674

skipif mysql # not compatible
query I rowsort label-6555
SELECT DISTINCT - col0 * tab1.col2 - col0 / - col1 AS col0 FROM tab1
----
-162
-3642
-7674

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * tab0.col0 col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + col0 * + col0 + - tab0.col2 AS col2 FROM tab0
----
1224
543
7839

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - - cor0.col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-6560
SELECT - + col2 DIV cor0.col2 col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6560
SELECT - + col2 / cor0.col2 col1 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col2 ) NOT BETWEEN col1 / - col1 AND - col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT + col1 + - col2 * - col2 - - col2 FROM tab0 AS cor0
----
1208
6897
99

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - col0 ) NOT IN ( - col0 )
----

query I rowsort
SELECT + col2 * + tab2.col1 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL tab0.col1 AS col2 FROM tab0, tab0 cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + ( tab0.col0 ) + + col1 FROM tab0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 + col1 col1 FROM tab1 AS cor0
----
108
111
124

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6568
SELECT col2 + cor0.col1 * CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

skipif mysql # not compatible
query I rowsort label-6568
SELECT col2 + cor0.col1 * CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL - cor0.col2 + + col0 * ( ( col2 ) * + col2 ) AS col1 FROM tab1 AS cor0
----
207879
737184
8694

query I rowsort
SELECT DISTINCT + col1 + - col2 AS col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - col0 * col1 + + 45 FROM tab1 AS cor0
----
-33
-595
-995

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6572
SELECT ALL - 44 + col0 * - CAST( 93 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-323
-5996
-7484

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL - 44 + col0 * - CAST ( 93 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-323
-5996
-7484

query I rowsort
SELECT ALL - 98 AS col1 FROM tab1 AS cor0
----
-98
-98
-98

query I rowsort
SELECT ALL - + col0 - - col1 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT 98 + + col2 FROM tab1 AS cor0
----
152
155
194

query I rowsort
SELECT ALL + 41 + col1 AS col2 FROM tab0 AS cor0
----
127
132
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 col1 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL cor1.col2 + 1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 2410632ede73fb50ca521a58579c1c68

onlyif mysql # use DIV operator for integer division
query I rowsort label-6579
SELECT ALL - - col2 DIV + col1 AS col2 FROM tab2 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL - - col2 / + col1 AS col2 FROM tab2 cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 * ( - col1 ) col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL - col0 * 32 FROM tab2 AS cor0
----
-224
-2496
-2528

onlyif mysql # use DIV operator for integer division
query I rowsort label-6582
SELECT DISTINCT + col2 DIV - 84 + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT + col2 / - 84 + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT col2 * col2 + + cor0.col0 * - col2 AS col0 FROM tab2 AS cor0
----
-1352
-1558
540

query I rowsort
SELECT cor0.col2 + + ( + 34 ) * - col0 FROM tab2 AS cor0
----
-211
-2626
-2648

query I rowsort
SELECT ALL - cor0.col2 + 95 FROM tab0 AS cor0
----
13
62
94

query I rowsort
SELECT + col2 + - 80 * + 44 + + cor0.col0 FROM tab2 AS cor0
----
-3403
-3416
-3486

query I rowsort
SELECT DISTINCT + col1 * + 7 * + col0 FROM tab0 AS cor0
----
14448
23765
56693

query I rowsort
SELECT - col0 * + 69 AS col2 FROM tab0 AS cor0
----
-1656
-2415
-6141

query I rowsort
SELECT ALL - col2 * - cor0.col2 + + col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT - - ( - col2 ) * + col0 + - 67 - + col0 AS col2 FROM tab1 AS cor0
----
-232
-3779
-7827

query I rowsort
SELECT DISTINCT + + col1 + - 71 AS col1 FROM tab0 AS cor0
----
15
20
26

query I rowsort
SELECT ALL cor1.col2 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT ALL - - col0 + 59 AS col1 FROM tab1 AS cor0
----
123
139
62

query I rowsort
SELECT col1 * tab0.col1 + - col0 * + col1 FROM tab0
----
182
5332
6014

query I rowsort
SELECT DISTINCT - col0 + - col2 + col0 AS col1 FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6596
SELECT 10 DIV 25 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

skipif mysql # not compatible
query I rowsort label-6596
SELECT 10 / 25 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

query I rowsort
SELECT DISTINCT + - cor0.col1 * + 11 AS col0 FROM tab0 AS cor0
----
-1001
-1067
-946

query I rowsort
SELECT + col1 * 73 AS col0 FROM tab0
----
6278
6643
7081

query I rowsort
SELECT DISTINCT + col0 + + col2 * col1 + - col2 AS col1 FROM tab1
----
1232
1353
577

onlyif mysql # use DIV operator for integer division
query I rowsort label-6600
SELECT + col0 + 90 DIV - col2 + 99 FROM tab1 AS cor0
----
101
162
179

skipif mysql # not compatible
query I rowsort label-6600
SELECT + col0 + 90 / - col2 + 99 FROM tab1 AS cor0
----
101
162
179

query I rowsort
SELECT DISTINCT 71 * - col1 FROM tab1 AS cor0
----
-1846
-710
-923

query I rowsort
SELECT - + col1 + col1 + + col0 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col1 + ( + col0 ) * cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + ( cor0.col2 ) * + col0 + - 66 * - col2 + col1 AS col2 FROM tab1 AS cor0
----
14029
3752
7420

query I rowsort
SELECT ALL - 63 * + cor0.col2 FROM tab2 AS cor0
----
-1638
-1701
-2394

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6606
SELECT + CAST( 96 AS SIGNED ) FROM tab1 AS cor0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-6606
SELECT + CAST ( 96 AS INTEGER ) FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT - - col0 + + col1 * - col0 + + col2 FROM tab2 AS cor0
----
-1226
-183
-4498

query I rowsort
SELECT - cor0.col1 + 34 + col0 FROM tab2 AS cor0
----
10
53
96

query I rowsort
SELECT - - ( - col2 ) * col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT + ( + cor0.col1 ) * + col1 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-6611
SELECT - col2 DIV + col1 + + col2 * - 58 FROM tab0 AS cor0
----
-1914
-4756
-58

skipif mysql # not compatible
query I rowsort label-6611
SELECT - col2 / + col1 + + col2 * - 58 FROM tab0 AS cor0
----
-1914
-4756
-58

query I rowsort
SELECT - 86 + col2 AS col2 FROM tab2 AS cor0
----
-48
-59
-60

query I rowsort
SELECT DISTINCT 71 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
71

query I rowsort
SELECT ALL + col2 * - ( + 99 ) FROM tab0 AS cor0
----
-3267
-8118
-99

query I rowsort
SELECT + + col1 * + 62 AS col1 FROM tab2 AS cor0
----
1054
1922
3658

query I rowsort
SELECT + cor0.col2 - + cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * + 31 FROM tab1 cor0
----
-1984
-2480
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6618
SELECT col0 DIV - col1 + ( + tab0.col0 ) * col1 DIV + col2 FROM tab0
----
3395
62
98

skipif mysql # not compatible
query I rowsort label-6618
SELECT col0 / - col1 + ( + tab0.col0 ) * col1 / + col2 FROM tab0
----
3395
62
98

query I rowsort
SELECT DISTINCT - col1 + 86 + - col0 * - col0 FROM tab0
----
1214
576
7916

query I rowsort
SELECT col2 * + col2 + + tab2.col2 AS col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT DISTINCT + col1 + 75 FROM tab0
----
161
166
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 + - col2 col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT col2 * + col0 + 53 * - col2 FROM tab0
----
-18
-957
2952

onlyif mysql # use DIV operator for integer division
query I rowsort label-6624
SELECT - col1 DIV col1 - cor0.col0 * + col2 AS col2 FROM tab1 AS cor0
----
-163
-3649
-7681

skipif mysql # not compatible
query I rowsort label-6624
SELECT - col1 / col1 - cor0.col0 * + col2 AS col2 FROM tab1 AS cor0
----
-163
-3649
-7681

query I rowsort
SELECT - col1 * cor0.col1 * - col1 - + col1 * - col0 FROM tab1 AS cor0
----
1640
17654
3237

query I rowsort
SELECT + col1 * + 81 AS col2 FROM tab0
----
6966
7371
7857

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6627
SELECT ALL + - col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL + - col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + + 24 FROM tab2 AS cor0
----
-14
-2
-3

query I rowsort
SELECT + 19 * col0 AS col1 FROM tab0
----
1691
456
665

query I rowsort
SELECT DISTINCT - + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-26
-27
-38

query I rowsort
SELECT - 66 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT + 11 * col2 - + col1 * + 58 FROM tab1 AS cor0
----
-914
302
47

query I rowsort
SELECT - cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + col0 * col0 - 7 FROM tab1
----
2
4089
6393

query I rowsort
SELECT - col2 + 80 * col1 AS col1 FROM tab0
----
6847
7198
7759

query I rowsort
SELECT ALL - col2 * 6 + 47 * + col1 + + col1 AS col2 FROM tab1 AS cor0
----
138
48
924

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
24
35
89

query I rowsort
SELECT + col0 + + 17 * col0 FROM tab0 AS cor0
----
1602
432
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 col1 FROM tab1
----
57

query I rowsort
SELECT ALL 14 * ( col0 ) * col0 FROM tab2
----
686
85176
87374

query I rowsort
SELECT DISTINCT - - ( cor0.col1 ) + + col2 * - ( - ( cor0.col1 ) ) AS col1 FROM tab2 AS cor0
----
1593
663
868

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0, tab2 cor1, tab1, tab2 AS cor2
----
3645 values hashing to 4805bcb9c04e49d1f6f82defa880d751

onlyif mysql # use DIV operator for integer division
query I rowsort label-6643
SELECT - + col1 DIV col0 AS col0 FROM tab0 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6643
SELECT - + col1 / col0 AS col0 FROM tab0 cor0
----
-1
-2
-3

query I rowsort
SELECT ALL + 23 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT col2 * - cor0.col2 * - col1 AS col0 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ALL - + cor0.col2 + - col1 * - 84 FROM tab0 AS cor0
----
7191
7562
8147

query I rowsort
SELECT - ( cor0.col1 * - ( - tab1.col0 ) + - cor0.col1 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 924df31f5bc8a9eabfcf978531b44912

query I rowsort
SELECT - - col0 + - col2 * col2 AS col2 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT + + cor0.col1 + col2 * + 82 FROM tab0 AS cor0
----
179
2792
6815

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6650
SELECT + + cor0.col1 * + col0 + CAST( cor0.col0 * + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
2686
434
9204

skipif mysql # not compatible
query I rowsort label-6650
SELECT + + cor0.col1 * + col0 + CAST ( cor0.col0 * + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
2686
434
9204

onlyif mysql # use DIV operator for integer division
query I rowsort label-6651
SELECT - ( tab2.col0 ) DIV + tab2.col1 AS col1 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6651
SELECT - ( tab2.col0 ) / + tab2.col1 AS col1 FROM tab2
----
-1
-4
0

query I rowsort
SELECT 5 * col2 FROM tab0
----
165
410
5

query I rowsort
SELECT ALL - + col1 * - col2 + - ( col2 + col1 ) FROM tab2 AS cor0
----
1449
591
779

query I rowsort
SELECT ALL - - 68 * - col1 FROM tab1 AS cor0
----
-1768
-680
-884

onlyif mysql # use DIV operator for integer division
query I rowsort label-6655
SELECT 97 * + col2 - cor0.col2 DIV - 30 FROM tab1 AS cor0
----
5239
5530
9315

skipif mysql # not compatible
query I rowsort label-6655
SELECT 97 * + col2 - cor0.col2 / - 30 FROM tab1 AS cor0
----
5239
5530
9315

query I rowsort
SELECT + + col2 + + col1 AS col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - 75 - col1 FROM tab2 AS cor0
----
-106
-134
-92

query I rowsort
SELECT ALL - 97 * col0 + cor0.col0 FROM tab2 AS cor0
----
-672
-7488
-7584

query I rowsort
SELECT DISTINCT 34 + + col2 * 67 FROM tab2 AS cor0
----
1776
1843
2580

query I rowsort
SELECT DISTINCT - col0 * cor0.col2 + - col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT ALL - col2 + + 59 FROM tab2 AS cor0
----
21
32
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-6662
SELECT - col0 DIV col0 + cor0.col0 * col2 FROM tab0 AS cor0
----
34
7297
791

skipif mysql # not compatible
query I rowsort label-6662
SELECT - col0 / col0 + cor0.col0 * col2 FROM tab0 AS cor0
----
34
7297
791

query I rowsort
SELECT ALL + col2 * 79 * col0 FROM tab2 AS cor0
----
14931
160212
237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-6664
SELECT - tab0.col0 DIV tab0.col1 col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6664
SELECT - tab0.col0 / tab0.col1 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - ( col2 ) * 36 + col0 AS col0 FROM tab2
----
-1289
-858
-965

onlyif mysql # use DIV operator for integer division
query I rowsort label-6666
SELECT col0 * col2 + - col2 DIV + col0 FROM tab0
----
35
7298
791

skipif mysql # not compatible
query I rowsort label-6666
SELECT col0 * col2 + - col2 / + col0 FROM tab0
----
35
7298
791

onlyif mysql # use DIV operator for integer division
query I rowsort label-6667
SELECT ALL ( 58 ) * cor0.col2 + - CAST( + cor0.col0 AS SIGNED ) DIV tab1.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 6ab5ad2b4ffe325d60b426bba1210bc6

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL ( 58 ) * cor0.col2 + - CAST ( + cor0.col0 AS INTEGER ) / tab1.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 6ab5ad2b4ffe325d60b426bba1210bc6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6668
SELECT + col2 DIV + col1 col2 FROM tab2 AS cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6668
SELECT + col2 / + col1 col2 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT ALL col2 * 98 * cor0.col2 FROM tab1 AS cor0
----
285768
318402
903168

onlyif mysql # use DIV operator for integer division
query I rowsort label-6670
SELECT - + ( 11 ) DIV + col2 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6670
SELECT - + ( 11 ) / + col2 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 + col1 + + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 93 col0 FROM tab0 AS cor0
----
117
128
182

onlyif mysql # use DIV operator for integer division
query I rowsort label-6673
SELECT DISTINCT + - 8 + col0 * - col2 * - col1 + + col2 DIV - col0 AS col1 FROM tab1 AS cor0
----
36472
4186
99831

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT + - 8 + col0 * - col2 * - col1 + + col2 / - col0 AS col1 FROM tab1 AS cor0
----
36472
4186
99831

query I rowsort
SELECT ALL col1 + 31 * col2 FROM tab1 AS cor0
----
1700
1777
2989

query I rowsort
SELECT ( - col1 ) + + col0 AS col2 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT + + col1 + + col1 * col2 AS col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + - col0 * + cor0.col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col0 * 11 + col0 * col2 FROM tab1 AS cor0
----
195
4352
8560

query I rowsort
SELECT DISTINCT - col0 + - col2 * col1 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL - col2 + col2 * col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL - 41 + - col0 AS col1 FROM tab1
----
-105
-121
-44

query I rowsort
SELECT DISTINCT cor0.col2 * + col1 + + cor0.col2 * col2 FROM tab0 AS cor0
----
14186
3927
98

query I rowsort
SELECT - cor0.col2 + - col2 * col1 AS col1 FROM tab1 cor0
----
-1344
-1458
-627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6684
SELECT ALL + - col1 + CAST( NULL AS DECIMAL ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL + - col1 + CAST ( NULL AS REAL ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + - col0 * - col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6686
SELECT ALL + + cor0.col2 * + CAST( 20 AS SIGNED ) FROM tab1 AS cor0
----
1080
1140
1920

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL + + cor0.col2 * + CAST ( 20 AS INTEGER ) FROM tab1 AS cor0
----
1080
1140
1920

query I rowsort
SELECT ALL + 45 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

query I rowsort
SELECT DISTINCT + 35 + col0 AS col2 FROM tab1
----
115
38
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 * 9 col2 FROM tab0
----
192
280
712

query I rowsort
SELECT ALL cor0.col1 - col2 * + col1 FROM tab0 cor0
----
-2752
-7371
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6691
SELECT ALL + cor0.col2 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL + cor0.col2 * + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 + cor0.col2 * col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT col1 + col0 + - col2 AS col2 FROM tab0 AS cor0
----
131
77
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6694
SELECT col0 * CAST( + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-6694
SELECT col0 * CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort
SELECT col0 + - CAST ( cor0.col0 AS REAL ) FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 4 col1 FROM tab1 cor0
----
-12
-256
-320

query I rowsort
SELECT DISTINCT + cor0.col1 + - ( + ( col2 ) ) AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT col1 + 69 * - col1 FROM tab0 cor0
----
-5848
-6188
-6596

query I rowsort
SELECT DISTINCT - col0 + + 32 AS col0 FROM tab1 AS cor0
----
-32
-48
29

query I rowsort
SELECT ALL + cor0.col2 * col0 + 23 + - col2 AS col0 FROM tab1 AS cor0
----
131
3614
7607

query I rowsort
SELECT - + col2 * cor0.col2 + 6 AS col0 FROM tab1 cor0
----
-2910
-3243
-9210

query I rowsort
SELECT col2 + col0 + - col0 FROM tab0
----
1
33
82

query I rowsort
SELECT col0 * col0 * tab2.col0 FROM tab2
----
343
474552
493039

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6704
SELECT - 49 + - col1 * col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6704
SELECT - 49 + - col1 * col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( - 16 ) * - col2 AS col1 FROM tab0 cor0
----
-1312
-16
-528

query I rowsort
SELECT ALL + - col0 + - col2 * col2 AS col1 FROM tab2 AS cor0
----
-1523
-736
-754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6707
SELECT CAST( - 74 AS SIGNED ) * col0 + - col2 + col0 AS col2 FROM tab0 AS cor0
----
-1785
-2556
-6579

skipif mysql # not compatible
query I rowsort label-6707
SELECT CAST ( - 74 AS INTEGER ) * col0 + - col2 + col0 AS col2 FROM tab0 AS cor0
----
-1785
-2556
-6579

query I rowsort
SELECT DISTINCT - col0 + col0 * col2 AS col1 FROM tab2 AS cor0
----
182
1950
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) - + col2 * + col0 col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT + + col0 + - 42 + - col2 AS col1 FROM tab0 AS cor0
----
-35
-51
-8

query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 - col0 FROM tab0 AS cor0
----
-105
-267
-72

query I rowsort
SELECT - 6 + col2 AS col2 FROM tab0
----
-5
27
76

query I rowsort
SELECT ALL - + cor0.col0 * - cor0.col0 + + ( col1 ) * + col2 - - col2 AS col1 FROM tab1 AS cor0
----
1467
4723
7744

query I rowsort
SELECT - - 91 + - cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 4e714cc8b4bb7490d7e3ca73c64421ca

query I rowsort
SELECT DISTINCT + 91 FROM tab0, tab2 cor0, tab1 cor1
----
91

query I rowsort
SELECT - ( 75 ) AS col0 FROM tab1, tab0 cor0 CROSS JOIN tab0
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59

query I rowsort
SELECT DISTINCT - + 59 * col2 FROM tab2 AS cor0
----
-1534
-1593
-2242

query I rowsort
SELECT ALL - 40 * col1 FROM tab0 AS cor0
----
-3440
-3640
-3880

query I rowsort
SELECT DISTINCT - ( col2 ) * ( col2 ) FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT + - col0 * col1 + cor0.col0 FROM tab2 cor0
----
-1264
-210
-4524

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-6722
SELECT col2 + col1 - col2 DIV - 53 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-6722
SELECT col2 + col1 - col2 / - 53 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT col2 + + col2 AS col0 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT col1 * + col2 - 57 * col0 * col0 AS col1 FROM tab1 AS cor0
----
-232902
-363552
891

query I rowsort
SELECT DISTINCT - col1 * + col0 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6726
SELECT DISTINCT + 4 DIV col0 col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6726
SELECT DISTINCT + 4 / col0 col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 8 + + col1 AS col2 FROM tab0 AS cor0
----
105
94
99

query I rowsort
SELECT ALL + 8 + + col2 AS col2 FROM tab1 AS cor0
----
104
62
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-6729
SELECT DISTINCT col0 * col1 DIV 4 FROM tab0 AS cor0
----
2024
516
848

skipif mysql # not compatible
query I rowsort label-6729
SELECT DISTINCT col0 * col1 / 4 FROM tab0 AS cor0
----
2024
516
848

query I rowsort
SELECT + + col0 + - 13 * - col1 AS col0 FROM tab1 AS cor0
----
194
249
341

query I rowsort
SELECT + 97 * - col2 AS col1 FROM tab2
----
-2522
-2619
-3686

query I rowsort
SELECT - col1 * 37 AS col1 FROM tab1 cor0
----
-370
-481
-962

query I rowsort
SELECT + 57 * col0 AS col2 FROM tab0
----
1368
1995
5073

query I rowsort
SELECT + 25 * col2 FROM tab1 AS cor0
----
1350
1425
2400

query I rowsort
SELECT ALL - col1 + - col0 * col2 * + 49 AS col1 FROM tab1 AS cor0
----
-178762
-376333
-7964

query I rowsort
SELECT ALL 20 FROM tab0, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT ALL + cor0.col2 * - col0 + - col1 + + col1 AS col1 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT - - col1 * col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL - 58 + col2 FROM tab1 AS cor0
----
-1
-4
38

query I rowsort
SELECT DISTINCT + 63 * - 51 AS col0 FROM tab1 AS cor0
----
-3213

onlyif mysql # use DIV operator for integer division
query I rowsort label-6741
SELECT DISTINCT ( 33 ) + cor0.col2 DIV col2 AS col2 FROM tab1 cor0
----
34

skipif mysql # not compatible
query I rowsort label-6741
SELECT DISTINCT ( 33 ) + cor0.col2 / col2 AS col2 FROM tab1 cor0
----
34

query I rowsort
SELECT - cor0.col1 + + col2 * col1 FROM tab2 AS cor0
----
1475
629
806

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab2 cor2
----
3645 values hashing to 1b40f6ebec12e55a9e5893620c5636c7

query I rowsort
SELECT DISTINCT - + ( col1 ) + col2 * 49 AS col1 FROM tab1 AS cor0
----
2620
2783
4691

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6745
SELECT ALL - + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL - + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col1 - col0 AS col2 FROM tab0
----
7372
8192
9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-6747
SELECT DISTINCT 7 DIV col2 FROM tab0
----
0
7

skipif mysql # not compatible
query I rowsort label-6747
SELECT DISTINCT 7 / col2 FROM tab0
----
0
7

query I rowsort
SELECT 99 * ( + col0 ) + 25 * 26 * - col2 AS col1 FROM tab2
----
-16857
-16879
-9178

query I rowsort
SELECT col1 * - col2 * ( - col0 ) FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT + 72 * + 57 AS col1 FROM tab0
----
4104

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6751
SELECT col0 * CAST( + 31 AS SIGNED ) AS col0 FROM tab1
----
1984
2480
93

skipif mysql # not compatible
query I rowsort label-6751
SELECT col0 * CAST ( + 31 AS INTEGER ) AS col0 FROM tab1
----
1984
2480
93

query I rowsort
SELECT cor0.col0 + - cor0.col2 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4646ed87e8cc5aacb51f9b4e472c3c4b

query I rowsort
SELECT tab1.col0 * + 92 * + ( - tab1.col1 ) FROM tab1
----
-58880
-7176
-95680

query I rowsort
SELECT ALL col0 * + tab0.col0 - col0 FROM tab0
----
1190
552
7832

query I rowsort
SELECT ALL + col0 - 23 * - col2 * col0 FROM tab0
----
167943
18240
840

query I rowsort
SELECT ALL + ( col1 ) - + col1 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6757
SELECT + CAST( NULL AS SIGNED ) * + col1 + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6757
SELECT + CAST ( NULL AS INTEGER ) * + col1 + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + col1 * + cor0.col0 + + col2 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT DISTINCT tab2.col1 FROM tab2, tab0, tab1 AS cor0, tab1 cor1
----
17
31
59

query I rowsort
SELECT ALL ( + col1 ) * col0 FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6761
SELECT - ( col1 ) DIV - col1 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6761
SELECT - ( col1 ) / - col1 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - - col2 + - col2 * col1 FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT ALL cor1.col0 AS col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT + - cor0.col2 + + col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - - cor0.col1 + - cor0.col0 * ( col2 ) FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + 69 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT + col1 + 46 AS col2 FROM tab0 AS cor0
----
132
137
143

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0, tab1, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - - col1 * ( 26 ) AS col1 FROM tab2 AS cor0
----
1534
442
806

query I rowsort
SELECT + col1 * col0 * col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + + col0 * - ( + col1 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col1 + - ( 52 * + tab0.col1 ) FROM tab0
----
-4386
-4641
-4947

onlyif mysql # use DIV operator for integer division
query I rowsort label-6773
SELECT + col1 DIV + ( - cor0.col1 + - col1 ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6773
SELECT + col1 / + ( - cor0.col1 + - col1 ) AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6774
SELECT ALL ( - col0 ) DIV + col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL ( - col0 ) / + col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 30 * col0 + col0 AS col0 FROM tab2 AS cor0
----
217
2418
2449

query I rowsort
SELECT DISTINCT col2 * - 74 AS col1 FROM tab0 AS cor0
----
-2442
-6068
-74

query I rowsort
SELECT + col0 * - 42 FROM tab2 cor0
----
-294
-3276
-3318

query I rowsort
SELECT DISTINCT - 89 + 20 AS col2 FROM tab0 AS cor0
----
-69

query I rowsort
SELECT DISTINCT + + col2 + + 71 * col2 - col0 * 89 FROM tab1 cor0
----
-1592
-208
3621

query I rowsort
SELECT DISTINCT - ( col2 ) * col2 * col2 + 19 AS col0 FROM tab2 AS cor0
----
-17557
-19664
-54853

query I rowsort
SELECT ALL cor0.col2 - 84 AS col0 FROM tab0 AS cor0
----
-2
-51
-83

query I rowsort
SELECT + col2 - - ( - 90 ) * col1 AS col1 FROM tab2
----
-1492
-2763
-5284

query I rowsort
SELECT DISTINCT col0 * + 51 * col0 AS col2 FROM tab0
----
29376
403971
62475

onlyif mysql # use DIV operator for integer division
query I rowsort label-6784
SELECT DISTINCT tab0.col1 DIV + 67 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT tab0.col1 / + 67 FROM tab0
----
1

query I rowsort
SELECT col2 + - 68 AS col2 FROM tab1
----
-11
-14
28

query I rowsort
SELECT + tab0.col1 - col2 AS col0 FROM tab0
----
53
9
96

query I rowsort
SELECT col0 * col0 + - col1 AS col1 FROM tab1
----
-17
4086
6387

query I rowsort
SELECT 21 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT ALL col0 * 66 AS col0 FROM tab0
----
1584
2310
5874

query I rowsort
SELECT - 70 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f

query I rowsort
SELECT DISTINCT + + cor0.col2 + - col0 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT 60 + col1 AS col2 FROM tab2 AS cor0
----
119
77
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 + cor0.col0 * - col2 * + col1 col2 FROM tab2 AS cor0
----
-124254
-52377
-6076

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 * col0 + col1 col1 FROM tab1 AS cor0
----
266
5130
6413

onlyif mysql # use DIV operator for integer division
query I rowsort label-6795
SELECT - + col1 DIV col1 col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6795
SELECT - + col1 / col1 col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL ( col1 ) * + 63 FROM tab2 AS cor0
----
1071
1953
3717

query I rowsort
SELECT DISTINCT ( ( col0 ) ) FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT col1 * col2 + ( + col2 ) AS col0 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6799
SELECT - CAST( 51 AS SIGNED ) FROM tab2
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-6799
SELECT - CAST ( 51 AS INTEGER ) FROM tab2
----
-51
-51
-51

query I rowsort
SELECT ALL - - col0 * 89 AS col0 FROM tab1 AS cor0
----
267
5696
7120

onlyif mysql # use DIV operator for integer division
query I rowsort label-6801
SELECT col2 + col0 DIV - ( - col1 ) col2 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6801
SELECT col2 + col0 / - ( - col1 ) col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6802
SELECT + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6802
SELECT + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col2 * + tab1.col0 + col0 * + col1 FROM tab1
----
240
4288
8720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 + + col2 col0 FROM tab2
----
28
29
40

query I rowsort
SELECT ALL - col1 + col0 * - col1 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT + cor0.col1 * + col2 * + col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT cor0.col1 * 86 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to d37849d551c3e612af02856f5e5e76f3

query I rowsort
SELECT DISTINCT ( - 53 ) AS col0 FROM tab1, tab0 AS cor0
----
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-6809
SELECT - tab1.col2 + + col2 DIV - tab1.col2 FROM tab1
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-6809
SELECT - tab1.col2 + + col2 / - tab1.col2 FROM tab1
----
-55
-58
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6810
SELECT ALL + tab1.col2 * col0 DIV col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL + tab1.col2 * col0 / col0 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6811
SELECT DISTINCT - col0 + + tab0.col1 DIV col1 - - col2 * col2 AS col2 FROM tab0
----
-33
1066
6636

skipif mysql # not compatible
query I rowsort label-6811
SELECT DISTINCT - col0 + + tab0.col1 / col1 - - col2 * col2 AS col2 FROM tab0
----
-33
1066
6636

onlyif mysql # use DIV operator for integer division
query I rowsort label-6812
SELECT 23 DIV - col1 FROM tab1 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6812
SELECT 23 / - col1 FROM tab1 AS cor0
----
-1
-2
0

query I rowsort
SELECT - 9 * col0 AS col1 FROM tab0 AS cor0
----
-216
-315
-801

query I rowsort
SELECT - col0 + - ( - col2 ) AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT - col0 * - col0 + + col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT - 32 * col1 AS col1 FROM tab0
----
-2752
-2912
-3104

query I rowsort
SELECT DISTINCT col2 + - tab1.col0 + - ( - 4 ) FROM tab1
----
-3
20
55

query I rowsort
SELECT ALL 91 + - col2 FROM tab1
----
-5
34
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col2 col0 FROM tab2, tab1 cor0
----
26
27
38

query I rowsort
SELECT + col2 * - col0 + + col1 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col2 * + col0 + col1 - col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 <> col0
----

query I rowsort
SELECT col1 - - col2 AS col1 FROM tab1 WHERE NULL BETWEEN col0 * col1 AND col0
----

query I rowsort
SELECT ALL col2 * tab2.col2 - + col0 AS col1 FROM tab2
----
1365
598
722

query I rowsort
SELECT col1 + - col0 * col1 * + tab0.col2 FROM tab0
----
-3298
-664027
-68026

query I rowsort
SELECT + col1 / - tab0.col2 FROM tab0 WHERE ( NULL ) NOT IN ( + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6826
SELECT - tab0.col0 DIV + col1 col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6826
SELECT - tab0.col0 / + col1 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE ( - col2 ) <= - col0 + col2 * + col0 * + col1
----
3
64
80

query I rowsort
SELECT col0 * col0 AS col2 FROM tab1 WHERE NOT ( col1 ) NOT IN ( + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6829
SELECT tab1.col1 DIV + col0 + col0 * - col0 * col2 FROM tab1
----
-233472
-478
-614400

skipif mysql # not compatible
query I rowsort label-6829
SELECT tab1.col1 / + col0 + col0 * - col0 * col2 FROM tab1
----
-233472
-478
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-6830
SELECT DISTINCT + col0 DIV + col1 FROM tab1
----
0
6

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT + col0 / + col1 FROM tab1
----
0
6

query I rowsort
SELECT + tab0.col0 * tab0.col2 * + col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT tab0.col2 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT - col1 + - col2 + tab2.col1 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT col2 + + col2 + - col2 AS col1 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-6835
SELECT - col2 DIV + tab2.col1 + col2 * tab2.col2 * tab2.col1 AS col2 FROM tab2
----
22599
24546
39884

skipif mysql # not compatible
query I rowsort label-6835
SELECT - col2 / + tab2.col1 + col2 * tab2.col2 * tab2.col1 AS col2 FROM tab2
----
22599
24546
39884

query I rowsort
SELECT - tab2.col0 * col2 - col2 FROM tab2 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 * - col1 * + col0 - - col1 * + col2 col0 FROM tab1
----
-40390
-81952
1170

query I rowsort
SELECT DISTINCT tab1.col2 * col0 - col2 * - col1 AS col0 FROM tab1
----
1566
4218
8928

query I rowsort
SELECT - 13 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query I rowsort
SELECT - cor0.col2 - + cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 col2 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT 51 * 25 FROM tab0, tab0 AS cor0
----
9 values hashing to 60400a0361a75a61fed77d7efd260823

query I rowsort
SELECT ALL + cor0.col1 * - 99 + 8 FROM tab1 AS cor0
----
-1279
-2566
-982

query I rowsort
SELECT DISTINCT + col0 * - col0 * col0 AS col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 62 col2 FROM tab0 AS cor0
----
2046
5084
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6846
SELECT - + col0 + - col2 * + 18 + + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6846
SELECT - + col0 + - col2 * + 18 + + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 24 * cor0.col1 col0 FROM tab2 AS cor0
----
1475
425
775

onlyif mysql # use DIV operator for integer division
query I rowsort label-6848
SELECT ALL col2 DIV + 79 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL col2 / + 79 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - - 56 + + 81 AS col2 FROM tab1 AS cor0
----
137
137
137

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col1 FROM tab2 AS cor0
----
95
95
95

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + 95 AS REAL ) AS col2 FROM tab1 AS cor0
----
95
95
95

query I rowsort
SELECT DISTINCT col1 * - col0 + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col0 ) * col1 col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col0 * + col0 * col0 AS col2 FROM tab2
----
343
474552
493039

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 * + col1 col2 FROM tab0 AS cor0
----
5332
5642
6014

query I rowsort
SELECT ALL - ( + col1 * + col0 ) AS col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL - 57 * col0 AS col0 FROM tab0 AS cor0
----
-1368
-1995
-5073

query I rowsort
SELECT DISTINCT col2 + col0 * - col2 AS col0 FROM tab2 cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-6859
SELECT 51 DIV - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6859
SELECT 51 / - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT ( - col2 + col2 * col0 ) FROM tab2
----
162
2002
2964

query I rowsort
SELECT ALL + col2 * + col1 * col2 + - cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
611877
63
93663

query I rowsort
SELECT + cor0.col0 * - cor0.col1 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52

query I rowsort
SELECT ALL 39 * col0 FROM tab0
----
1365
3471
936

query I rowsort
SELECT ALL ( + ( - col1 ) ) * col2 AS col2 FROM tab0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6865
SELECT ALL CAST( NULL AS SIGNED ) + ( col2 ) + + col0 * + col2 * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6865
SELECT ALL CAST ( NULL AS INTEGER ) + ( col2 ) + + col0 * + col2 * col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + ( col0 ) AS col1 FROM tab0 cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6867
SELECT ALL col2 DIV + col1 + - col2 + + col1 * - tab2.col0 FROM tab2
----
-1379
-244
-4628

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL col2 / + col1 + - col2 + + col1 * - tab2.col0 FROM tab2
----
-1379
-244
-4628

query I rowsort
SELECT ALL col2 + + col0 * col0 AS col1 FROM tab1 cor0
----
4153
63
6496

query I rowsort
SELECT ALL col0 + + col0 * - col1 AS col1 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - col1 + col2 * + col2 * col0 FROM tab0
----
-62
26050
598345

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - col2 AND col1
----

query I rowsort
SELECT col2 FROM tab2 WHERE NULL IN ( col2 / - col1 + - col2 )
----

query I rowsort
SELECT cor0.col1 + - cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - col0 col1 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT - col2 * col2 + - col2 + + col0 * col2 FROM tab2 AS cor0
----
-567
1326
1520

query I rowsort
SELECT ALL + col1 + - col2 * - col2 AS col2 FROM tab1 AS cor0
----
2942
3259
9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - cor0.col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab0 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL - col2 * col1 + - col1 AS col1 FROM tab2
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT col0 + + col0 * col0 - col1 AS col0 FROM tab0
----
1163
514
7919

query I rowsort
SELECT DISTINCT + col0 - - col1 * tab0.col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT DISTINCT + tab2.col2 + - col1 * - col1 - tab2.col1 AS col2 FROM tab2
----
310
3448
957

onlyif mysql # use DIV operator for integer division
query I rowsort label-6883
SELECT - col1 + - col1 DIV tab1.col1 AS col1 FROM tab1
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-6883
SELECT - col1 + - col1 / tab1.col1 AS col1 FROM tab1
----
-11
-14
-27

query I rowsort
SELECT tab1.col0 + + col0 + col0 AS col2 FROM tab1
----
192
240
9

query I rowsort
SELECT ALL - + col1 * col0 * + col1 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-6886
SELECT DISTINCT - cor0.col0 DIV + cor0.col2 AS col0 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6886
SELECT DISTINCT - cor0.col0 / + cor0.col2 AS col0 FROM tab1 cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6887
SELECT ALL + col2 * col0 + col0 DIV col0 AS col2 FROM tab2 AS cor0
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL + col2 * col0 + col0 / col0 AS col2 FROM tab2 AS cor0
----
190
2029
3003

query I rowsort
SELECT ALL + cor0.col0 * col1 - - col2 AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT + + col0 * + cor0.col2 * - col0 AS col2 FROM tab1 cor0
----
-233472
-486
-614400

query I rowsort
SELECT + + col0 + + col2 * - cor0.col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT ALL + col1 + cor0.col2 * col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT + col2 * + tab2.col0 + col0 - col1 FROM tab2
----
165
2047
3064

query I rowsort
SELECT DISTINCT + cor0.col0 - - col1 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - cor0.col2 + + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - cor0.col1 * col0 + cor0.col1 AS col1 FROM tab1 cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 col1 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL col0 * 25 FROM tab1
----
1600
2000
75

query I rowsort
SELECT ALL - cor0.col1 * - tab2.col1 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to b80ce76f8664310580a5197b3984e0f7

query I rowsort
SELECT + col0 * col1 + + col2 * col1 FROM tab1
----
1210
1482
2288

query I rowsort
SELECT - - col2 * 31 FROM tab0 cor0
----
1023
2542
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6901
SELECT - col2 * CAST( col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-6901
SELECT - col2 * CAST ( col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6902
SELECT DISTINCT - cor0.col0 * - CAST( - col1 AS SIGNED ) FROM tab2 cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-6902
SELECT DISTINCT - cor0.col0 * - CAST ( - col1 AS INTEGER ) FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - col0 * col1 - col0 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 - cor0.col2 * + cor0.col1 col2 FROM tab1 cor0
----
-1326
-208
70

query I rowsort
SELECT ALL + col2 + - ( - cor0.col2 ) AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL + 96 - - 42 FROM tab2 AS cor0
----
138
138
138

query I rowsort
SELECT DISTINCT + ( col2 ) * col2 + - 98 * - col2 AS col1 FROM tab1 AS cor0
----
18624
8208
8835

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 + - 83 col1 FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT ALL - + 85 AS col0 FROM tab2 AS cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT - col2 - - tab2.col0 AS col0 FROM tab2
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6911
SELECT DISTINCT tab2.col2 - + CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT tab2.col2 - + CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
0

query I rowsort
SELECT col0 * col2 - col1 * col1 * col0 AS col0 FROM tab1
----
-1866
-2752
-5840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 col0 FROM tab0 cor0
----
18
18
18

query I rowsort
SELECT + + 60 * + col0 + col1 * col2 AS col2 FROM tab0 AS cor0
----
12802
2197
4278

query I rowsort
SELECT - col2 + - col1 * - cor0.col0 - col1 AS col0 FROM tab0 cor0
----
1945
3297
7926

query I rowsort
SELECT DISTINCT + col1 + + tab1.col2 - ( col2 ) FROM tab1
----
10
13
26

query I rowsort
SELECT ALL - + ( col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 + col0 col1 FROM tab0 AS cor0
----
-22
-33
32

query I rowsort
SELECT DISTINCT - 61 * col2 AS col2 FROM tab2 AS cor0
----
-1586
-1647
-2318

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 * - 72 col2 FROM tab0 AS cor0
----
-1642
-2423
-6317

query I rowsort
SELECT ALL 5 * col0 + - col0 AS col1 FROM tab2
----
28
312
316

query I rowsort
SELECT - + 77 * - tab1.col2 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to b5e8305eda430688c218c7463b3ae3a1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 + col0 col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL - 33 * - col1 + + col0 * - col1 * col2 + - 16 FROM tab1 AS cor0
----
-3370
-36166
-99427

query I rowsort
SELECT ALL 13 + - cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
-1521
-633
-824

query I rowsort
SELECT DISTINCT - tab2.col0 AS col2 FROM tab2, tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + + col0 - 58 FROM tab2 AS cor0
----
-51
20
21

query I rowsort
SELECT + col2 + - ( 42 ) FROM tab0 AS cor0
----
-41
-9
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-6929
SELECT + col1 * ( - col2 + cor0.col2 ) DIV 26 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6929
SELECT + col1 * ( - col2 + cor0.col2 ) / 26 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * - ( 90 ) FROM tab2 AS cor0
----
-2340
-2430
-3420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 58 col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT DISTINCT - col2 * ( - col0 * col2 + - ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
-62
23298
590974

onlyif mysql # use DIV operator for integer division
query I rowsort label-6933
SELECT DISTINCT - cor0.col1 + - ( - col1 ) * cor0.col2 DIV - 30 FROM tab1 AS cor0
----
-29
-54
-72

skipif mysql # not compatible
query I rowsort label-6933
SELECT DISTINCT - cor0.col1 + - ( - col1 ) * cor0.col2 / - 30 FROM tab1 AS cor0
----
-29
-54
-72

query I rowsort
SELECT - cor0.col1 * col0 + - col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL cor0.col1 * - col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-6936
SELECT DISTINCT col1 DIV col0 + + col2 * - col0 FROM tab2 AS cor0
----
-185
-2028
-3002

skipif mysql # not compatible
query I rowsort label-6936
SELECT DISTINCT col1 / col0 + + col2 * - col0 FROM tab2 AS cor0
----
-185
-2028
-3002

query I rowsort
SELECT cor0.col2 + - 79 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8d6dc3a067a92fcc0da1234a3d662367

query I rowsort
SELECT 17 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT ALL + col2 + + tab1.col1 * col2 AS col1 FROM tab1
----
1344
1458
627

query I rowsort
SELECT + ( col1 ) * + col1 * + 59 AS col2 FROM tab1
----
39884
5900
9971

query I rowsort
SELECT DISTINCT col2 * + cor0.col0 + 50 * col2 AS col2 FROM tab1 AS cor0
----
12480
2862
6498

query I rowsort
SELECT - - 1 + col2 * + col0 FROM tab0 AS cor0
----
36
7299
793

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6943
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 + - col2 col0 FROM tab1 AS cor0
----
-105
-63
-66

query I rowsort
SELECT - ( - col2 ) + col2 AS col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT - + col2 + 53 FROM tab0 AS cor0
----
-29
20
52

query I rowsort
SELECT col0 + 5 * col2 FROM tab1 AS cor0
----
273
349
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-6948
SELECT - col1 * 43 + col2 DIV cor0.col0 + + col2 AS col1 FROM tab0 AS cor0
----
-3664
-3831
-4170

skipif mysql # not compatible
query I rowsort label-6948
SELECT - col1 * 43 + col2 / cor0.col0 + + col2 AS col1 FROM tab0 AS cor0
----
-3664
-3831
-4170

onlyif mysql # use DIV operator for integer division
query I rowsort label-6949
SELECT + 1 * 81 DIV col2 + + col2 + col2 AS col1 FROM tab0 AS cor0
----
164
68
83

skipif mysql # not compatible
query I rowsort label-6949
SELECT + 1 * 81 / col2 + + col2 + col2 AS col1 FROM tab0 AS cor0
----
164
68
83

query I rowsort
SELECT + + ( 21 ) AS col2 FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT DISTINCT - 89 * - col1 AS col1 FROM tab0 AS cor0
----
7654
8099
8633

onlyif mysql # use DIV operator for integer division
query I rowsort label-6952
SELECT DISTINCT ( col2 ) DIV - 64 - ( col1 ) col0 FROM tab1 AS cor0
----
-10
-14
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT ( col2 ) / - 64 - ( col1 ) col0 FROM tab1 AS cor0
----
-10
-14
-26

query I rowsort
SELECT DISTINCT - col1 * - col0 + + 87 AS col2 FROM tab0 AS cor0
----
2151
3482
8186

query I rowsort
SELECT DISTINCT col0 * 43 AS col1 FROM tab2
----
301
3354
3397

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6955
SELECT + CAST( 31 AS SIGNED ) AS col0 FROM tab2
----
31
31
31

skipif mysql # not compatible
query I rowsort label-6955
SELECT + CAST ( 31 AS INTEGER ) AS col0 FROM tab2
----
31
31
31

query I rowsort
SELECT + - cor0.col2 * 26 FROM tab0 AS cor0
----
-2132
-26
-858

query I rowsort
SELECT - + cor0.col1 + col1 * 19 AS col1 FROM tab0 AS cor0
----
1548
1638
1746

query I rowsort
SELECT 8 * - col1 FROM tab2
----
-136
-248
-472

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6959
SELECT - + col2 * + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6959
SELECT - + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - col2 + cor0.col1 FROM tab2 AS cor0
----
-4
35
92

query I rowsort
SELECT col0 * + ( ( col0 ) ) AS col2 FROM tab0
----
1225
576
7921

query I rowsort
SELECT + col2 * + col0 * + 56 FROM tab0
----
1960
408688
44352

query I rowsort
SELECT col1 * - ( + col0 ) FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT col1 * 10 AS col0 FROM tab2
----
170
310
590

query I rowsort
SELECT ALL - + ( + ( col1 ) ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + ( col0 ) * col2 + cor0.col1 * - cor0.col2 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-655
2277
416

query I rowsort
SELECT + col2 * - 73 + col0 FROM tab0 AS cor0
----
-2385
-38
-5897

query I rowsort
SELECT DISTINCT col2 * col2 * + 68 FROM tab1
----
198288
220932
626688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 93 * + cor0.col1 col1 FROM tab2 AS cor0
----
-1581
-2883
-5487

query I rowsort
SELECT 67 + 14 AS col2 FROM tab0 cor0
----
81
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 + + col1 * - col2 col2 FROM tab1 AS cor0
----
-1238
-1394
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 col1 FROM tab1, tab0 AS cor0
----
87

query I rowsort
SELECT - 85 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT ALL col0 + - 38 FROM tab2
----
-31
40
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6975
SELECT - CAST( col2 AS SIGNED ) + col0 + + 32 AS col1 FROM tab1
----
-19
16
39

skipif mysql # not compatible
query I rowsort label-6975
SELECT - CAST ( col2 AS INTEGER ) + col0 + + 32 AS col1 FROM tab1
----
-19
16
39

query I rowsort
SELECT 42 * + 99 * + col1 + + col1 FROM tab2
----
128929
245381
70703

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 62 col2 FROM tab1
----
-34
5
8

query I rowsort
SELECT ALL - + ( col0 ) + col2 * col2 + ( col0 ) AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT 95 FROM tab0, tab1 cor0
----
95

query I rowsort
SELECT DISTINCT + 84 + tab1.col0 * col1 AS col2 FROM tab1
----
1124
162
724

query I rowsort
SELECT ( 9 ) AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT - ( + tab1.col0 ) + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 - col1 * col2 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT + ( col1 ) + 60 * - col1 * + col2 AS col2 FROM tab1 AS cor0
----
-34190
-74867
-84214

query I rowsort
SELECT - - col0 * - col1 - - cor0.col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + col1 col2 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6987
SELECT + - col0 * - CAST( + 85 AS SIGNED ) - + col1 AS col1 FROM tab1 AS cor0
----
229
5430
6787

skipif mysql # not compatible
query I rowsort label-6987
SELECT + - col0 * - CAST ( + 85 AS INTEGER ) - + col1 AS col1 FROM tab1 AS cor0
----
229
5430
6787

query I rowsort
SELECT + col1 * - 98 * col1 FROM tab2
----
-28322
-341138
-94178

query I rowsort
SELECT - - col0 * 45 AS col0 FROM tab1 AS cor0
----
135
2880
3600

query I rowsort
SELECT ALL col2 - col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL + col0 + - ( - col0 + + col1 ) FROM tab1 AS cor0
----
-20
118
147

query I rowsort
SELECT ALL col2 * 76 AS col2 FROM tab2 AS cor0
----
1976
2052
2888

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6993
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6993
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 - + 34 FROM tab1 AS cor0
----
20
23
62

query I rowsort
SELECT + - col0 + 84 * col2 AS col2 FROM tab0 cor0
----
2748
49
6799

onlyif mysql # use DIV operator for integer division
query I rowsort label-6996
SELECT DISTINCT - ( + col1 + col1 ) DIV - 37 FROM tab2
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6996
SELECT DISTINCT - ( + col1 + col1 ) / - 37 FROM tab2
----
0
1
3

query I rowsort
SELECT + 70 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT DISTINCT + - col1 + + col0 * col0 AS col2 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT DISTINCT + col2 + col0 * 98 AS col0 FROM tab0 cor0
----
2385
3431
8804

query I rowsort
SELECT DISTINCT 30 + + col2 * cor0.col0 + col2 * + col2 AS col2 FROM tab0 AS cor0
----
14052
1911
66

query I rowsort
SELECT DISTINCT 25 + cor1.col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
51
52
63

query I rowsort
SELECT DISTINCT cor0.col0 * 29 AS col0 FROM tab1, tab0 AS cor0
----
1015
2581
696

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7003
SELECT DISTINCT tab2.col2 + CAST( ( + col2 ) AS SIGNED ) * ( + col2 ) FROM tab2
----
1482
702
756

skipif mysql # not compatible
query I rowsort label-7003
SELECT DISTINCT tab2.col2 + CAST ( ( + col2 ) AS INTEGER ) * ( + col2 ) FROM tab2
----
1482
702
756

query I rowsort
SELECT + col0 + col2 + col0 FROM tab1
----
185
256
60

query I rowsort
SELECT DISTINCT col1 + 89 * - col0 AS col2 FROM tab0
----
-2050
-3018
-7830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + ( + col2 ) * - tab2.col1 col0 FROM tab2
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-7007
SELECT - col1 * - col1 + col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
7398
8282
9506

skipif mysql # not compatible
query I rowsort label-7007
SELECT - col1 * - col1 + col1 / + col2 AS col0 FROM tab0 AS cor0
----
7398
8282
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * - ( - col0 ) col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col1 * - col1 - - col0 AS col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT ALL col1 + - ( col1 ) * col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT - + col2 + col0 * - 2 * cor0.col2 - - 95 FROM tab2 AS cor0
----
-310
-3987
-5947

query I rowsort
SELECT ALL - tab0.col2 * + col0 AS col0 FROM tab0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 - - 41 col2 FROM tab1 AS cor0
----
-23
-39
38

query I rowsort
SELECT DISTINCT - - 25 + + col1 AS col1 FROM tab2 AS cor0
----
42
56
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7015
SELECT DISTINCT - CAST( - col0 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 * - col2 + - cor0.col0 col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL 18 * cor0.col0 - col1 AS col1 FROM tab2 AS cor0
----
1345
1405
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 + cor0.col2 + + col2 col1 FROM tab2 AS cor0
----
1520
728
783

query I rowsort
SELECT - ( - col0 ) + col1 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-7020
SELECT cor0.col2 DIV 33 + - col1 * col0 col0 FROM tab2 cor0
----
-1342
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7020
SELECT cor0.col2 / 33 + - col1 * col0 col0 FROM tab2 cor0
----
-1342
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7021
SELECT ALL - col2 * 59 + + col0 DIV col1 FROM tab1 AS cor0
----
-3186
-3357
-5658

skipif mysql # not compatible
query I rowsort label-7021
SELECT ALL - col2 * 59 + + col0 / col1 FROM tab1 AS cor0
----
-3186
-3357
-5658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + ( col2 ) ) col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + - 84 - col2 AS col2 FROM tab1 AS cor0
----
-138
-141
-180

query I rowsort
SELECT 53 + - col0 FROM tab2 AS cor0
----
-25
-26
46

query I rowsort
SELECT ALL tab0.col1 * - col2 * tab0.col2 + - col2 FROM tab0
----
-611966
-93687
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL + 24 * + col1 + - col2 * + col2 * - ( col0 + + 47 ) AS col2 FROM tab2 AS cor0
----
182352
40110
85916

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 + col1 col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL + - col0 - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1612
-725
-844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 - - 41 * col0 col1 FROM tab1 cor0
----
138
2639
3295

query I rowsort
SELECT DISTINCT - - 43 * col2 FROM tab2 AS cor0
----
1118
1161
1634

query I rowsort
SELECT ALL 92 * + tab0.col1 AS col2 FROM tab0
----
7912
8372
8924

onlyif mysql # use DIV operator for integer division
query I rowsort label-7033
SELECT ( + col0 ) + cor0.col0 + 35 DIV - col2 FROM tab1 AS cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-7033
SELECT ( + col0 ) + cor0.col0 + 35 / - col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - 22 * col1 AS col1 FROM tab2 AS cor0
----
-1298
-374
-682

query I rowsort
SELECT + - 23 + col2 * 82 AS col0 FROM tab2 AS cor0
----
2109
2191
3093

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7036
SELECT CAST( - ( tab1.col0 ) AS SIGNED ) * + col1 FROM tab1
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-7036
SELECT CAST ( - ( tab1.col0 ) AS INTEGER ) * + col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT col2 * - col1 * col2 AS col2 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT + 81 * cor0.col1 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 5fb8c1b88e9844595941410d2bfa66de

query I rowsort
SELECT col1 + col2 * 42 FROM tab1 AS cor0
----
2294
2404
4045

query I rowsort
SELECT + ( - 18 + - col1 ) AS col0 FROM tab1
----
-28
-31
-44

query I rowsort
SELECT - 45 - - cor0.col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 16e0ff345e5e76623aede2bb3b2b2298

query I rowsort
SELECT + col2 + - col2 AS col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7043
SELECT ALL + cor0.col2 * - CAST( NULL AS SIGNED ) + + 37 + + 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-7043
SELECT ALL + cor0.col2 * - CAST ( NULL AS INTEGER ) + + 37 + + col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col1 + - 71 FROM tab0 AS cor0
----
-168
-2909
-7533

query I rowsort
SELECT + col0 + 13 * cor0.col1 FROM tab1 AS cor0
----
194
249
341

query I rowsort
SELECT ALL col2 + - col2 * - col2 FROM tab2 AS cor0
----
1482
702
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-7047
SELECT + col0 * col1 DIV col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-7047
SELECT + col0 * col1 / col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + col0 * 80 + + col0 AS col0 FROM tab2 AS cor0
----
567
6318
6399

onlyif mysql # use DIV operator for integer division
query I rowsort label-7049
SELECT DISTINCT - ( col2 ) DIV ( + col1 ) AS col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT - ( col2 ) / ( + col1 ) AS col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT col2 * ( 43 ) * col0 FROM tab1 AS cor0
----
156864
330240
6966

query I rowsort
SELECT + col0 * - 32 * col2 FROM tab1 AS cor0
----
-116736
-245760
-5184

query I rowsort
SELECT DISTINCT + col0 + tab0.col2 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT - ( - cor0.col2 ) + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7054
SELECT col2 + col0 DIV col2 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-7054
SELECT col2 + col0 / col2 FROM tab1 AS cor0
----
54
58
96

query I rowsort
SELECT 75 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT DISTINCT + col2 * 90 FROM tab2
----
2340
2430
3420

skipif mysql # not compatible
query I rowsort
SELECT + col1 * CAST ( + col0 AS REAL ) AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT - col2 * + tab0.col0 AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + col2 * col2 * - tab0.col2 FROM tab0
----
-1
-35937
-551368

onlyif mysql # use DIV operator for integer division
query I rowsort label-7060
SELECT DISTINCT + col0 * - ( - col0 ) - + col1 * 56 DIV - 29 FROM tab1 AS cor0
----
4115
59
6425

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT + col0 * - ( - col0 ) - + col1 * 56 / - 29 FROM tab1 AS cor0
----
4115
59
6425

query I rowsort
SELECT DISTINCT - col2 + ( + col0 ) AS col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - col2 + - 99 * col2 FROM tab0 AS cor0
----
-100
-3300
-8200

query I rowsort
SELECT ALL col0 + - 82 FROM tab2 AS cor0
----
-3
-4
-75

query I rowsort
SELECT ALL col1 - tab2.col0 AS col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT DISTINCT + col0 * - col2 - + ( 40 * + col1 + col1 ) AS col1 FROM tab2
----
-1460
-3699
-4447

onlyif mysql # use DIV operator for integer division
query I rowsort label-7066
SELECT ALL + col0 - + col1 DIV + 12 FROM tab1
----
1
64
79

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL + col0 - + col1 / + 12 FROM tab1
----
1
64
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7067
SELECT + col1 * + CAST( NULL AS SIGNED ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7067
SELECT + col1 * + CAST ( NULL AS INTEGER ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 79 AS col2 FROM tab2, tab1 AS cor0
----
79

query I rowsort
SELECT - col2 * + 34 - + col2 * col2 FROM tab0
----
-2211
-35
-9512

onlyif mysql # use DIV operator for integer division
query I rowsort label-7070
SELECT ALL col0 DIV - col2 + + 47 FROM tab0
----
12
46
47

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL col0 / - col2 + + 47 FROM tab0
----
12
46
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-7071
SELECT - + col2 DIV - 5 + 17 FROM tab1 AS cor0
----
27
28
36

skipif mysql # not compatible
query I rowsort label-7071
SELECT - + col2 / - 5 + 17 FROM tab1 AS cor0
----
27
28
36

query I rowsort
SELECT ALL + col1 + - ( + col0 ) FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL + col1 + 31 AS col0 FROM tab0 cor0
----
117
122
128

query I rowsort
SELECT + - col0 + col1 + col1 AS col1 FROM tab0 cor0
----
148
159
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7075
SELECT + + col1 + - ( + ( cor0.col0 ) ) * CAST( + 24 AS SIGNED ) FROM tab1 AS cor0
----
-1526
-1907
-46

skipif mysql # not compatible
query I rowsort label-7075
SELECT + + col1 + - ( + ( cor0.col0 ) ) * CAST ( + 24 AS INTEGER ) FROM tab1 AS cor0
----
-1526
-1907
-46

query I rowsort
SELECT ALL + col2 + + col2 * col1 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - col1 * ( - col0 * - col0 + + 70 ) FROM tab1 AS cor0
----
-2054
-41660
-84110

query I rowsort
SELECT - 43 + + col1 AS col2 FROM tab2 AS cor0
----
-12
-26
16

query I rowsort
SELECT + ( - col2 ) * col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-7080
SELECT - + col1 DIV - col1 - col0 AS col2 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-7080
SELECT - + col1 / - col1 - col0 AS col2 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT 90 * tab2.col0 FROM tab2
----
630
7020
7110

query I rowsort
SELECT + tab2.col0 * 60 FROM tab2
----
420
4680
4740

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7083
SELECT DISTINCT - col1 * - cor0.col0 * + CAST( NULL AS SIGNED ) - col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT - col1 * - cor0.col0 * + CAST ( NULL AS INTEGER ) - col0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + tab0.col1 * 16 * - col1 AS col1 FROM tab0
----
-118336
-132496
-150544

query I rowsort
SELECT ALL + - cor0.col1 + + col2 - + cor0.col1 FROM tab1 AS cor0
----
2
37
70

query I rowsort
SELECT ALL 14 + + col0 FROM tab1 AS cor0
----
17
78
94

query I rowsort
SELECT ALL + + 10 - cor0.col1 AS col1 FROM tab0 AS cor0
----
-76
-81
-87

query I rowsort
SELECT ALL 85 * + col2 FROM tab1 cor0
----
4590
4845
8160

query I rowsort
SELECT DISTINCT 73 * - col0 * + 88 + + col2 * col2 FROM tab2
----
-44239
-500396
-506052

query I rowsort
SELECT DISTINCT - 35 * + cor0.col1 + col1 FROM tab0 AS cor0
----
-2924
-3094
-3298

onlyif mysql # use DIV operator for integer division
query I rowsort label-7091
SELECT - ( - col0 ) + + cor0.col0 DIV - 13 AS col0 FROM tab1 AS cor0
----
3
60
74

skipif mysql # not compatible
query I rowsort label-7091
SELECT - ( - col0 ) + + cor0.col0 / - 13 AS col0 FROM tab1 AS cor0
----
3
60
74

query I rowsort
SELECT DISTINCT + - 26 AS col2 FROM tab2 AS cor0
----
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7093
SELECT col1 * + col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7093
SELECT col1 * + col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7094
SELECT DISTINCT + + cor0.col1 + col2 DIV col1 AS col2 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT + + cor0.col1 + col2 / col1 AS col2 FROM tab2 AS cor0
----
19
31
59

query I rowsort
SELECT ALL - - 95 AS col2 FROM tab0 AS cor0
----
95
95
95

query I rowsort
SELECT ALL - 62 * - col0 FROM tab1 AS cor0
----
186
3968
4960

query I rowsort
SELECT DISTINCT - + col2 * + col1 * col1 AS col0 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL - col0 + ( col2 ) * cor0.col1 FROM tab2 AS cor0
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-7099
SELECT DISTINCT + col0 DIV + ( + col1 ) FROM tab1 cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-7099
SELECT DISTINCT + col0 / + ( + col1 ) FROM tab1 cor0
----
0
6

query I rowsort
SELECT - col2 * - 99 FROM tab2 AS cor0
----
2574
2673
3762

query I rowsort
SELECT DISTINCT - + cor0.col1 * - col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + tab0.col0 * + col1 * 66 - + 71 * col0 AS col1 FROM tab0
----
134520
221585
528215

query I rowsort
SELECT ALL - 95 AS col0 FROM tab0 AS cor0
----
-95
-95
-95

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237

query I rowsort
SELECT ALL - ( 3 ) * col1 + col2 * - cor0.col2 * + col2 AS col0 FROM tab1 AS cor0
----
-157542
-185223
-884775

query I rowsort
SELECT - col1 * 93 FROM tab1
----
-1209
-2418
-930

query I rowsort
SELECT DISTINCT - col0 + + ( - 66 ) FROM tab1
----
-130
-146
-69

query I rowsort
SELECT DISTINCT + col0 * - 97 AS col0 FROM tab0 AS cor0
----
-2328
-3395
-8633

query I rowsort
SELECT - col1 * + 3 FROM tab2
----
-177
-51
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( - col0 + + col2 ) col1 FROM tab2
----
-3239
-4056
140

query I rowsort
SELECT DISTINCT - 54 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-7112
SELECT DISTINCT + col1 DIV 78 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7112
SELECT DISTINCT + col1 / 78 AS col0 FROM tab2
----
0

query I rowsort
SELECT col2 + + 37 FROM tab0
----
119
38
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 * - col1 col1 FROM tab2
----
-1395
-2655
-765

onlyif mysql # use DIV operator for integer division
query I rowsort label-7115
SELECT 33 DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
33

skipif mysql # not compatible
query I rowsort label-7115
SELECT 33 / col2 AS col2 FROM tab0 AS cor0
----
0
1
33

query I rowsort
SELECT DISTINCT 83 * + col1 FROM tab2
----
1411
2573
4897

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7117
SELECT - + CAST( NULL AS DECIMAL ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7117
SELECT - + CAST ( NULL AS REAL ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7118
SELECT ( col0 ) + col2 DIV 6 AS col0 FROM tab0 AS cor0
----
102
29
35

skipif mysql # not compatible
query I rowsort label-7118
SELECT ( col0 ) + col2 / 6 AS col0 FROM tab0 AS cor0
----
102
29
35

query I rowsort
SELECT + + cor0.col1 * + col2 + + ( col2 ) * 77 AS col1 FROM tab0 AS cor0
----
13776
174
5379

query I rowsort
SELECT DISTINCT + col0 * ( 21 ) FROM tab0 AS cor0
----
1869
504
735

query I rowsort
SELECT + col0 * + 56 + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-445
2834
3778

query I rowsort
SELECT - 44 * - col0 * - ( tab0.col1 ) AS col1 FROM tab0
----
-149380
-356356
-90816

query I rowsort
SELECT - ( - col2 + + col0 ) * - col0 AS col1 FROM tab0
----
-216
1190
623

onlyif mysql # use DIV operator for integer division
query I rowsort label-7124
SELECT DISTINCT - col2 + col2 DIV + 81 + col1 FROM tab1
----
-28
-47
-82

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT - col2 + col2 / + 81 + col1 FROM tab1
----
-28
-47
-82

query I rowsort
SELECT + col0 * col2 + 50 FROM tab1
----
212
3698
7730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 87 col2 FROM tab0
----
111
122
176

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7127
SELECT col1 + CAST( NULL AS DECIMAL ) / + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7127
SELECT col1 + CAST ( NULL AS REAL ) / + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * col0 + 81 AS col0 FROM tab2 AS cor0
----
130
6165
6322

query I rowsort
SELECT DISTINCT 50 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
50

query I rowsort
SELECT ( tab2.col1 + cor0.col1 ) FROM tab2, tab2 cor0
----
9 values hashing to 1aafc156b714810d5d1cdf5028ce351d

query I rowsort
SELECT ALL - col2 * + ( col0 ) FROM tab2
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-7132
SELECT + col0 DIV - ( - col1 ) + - 34 - + 87 FROM tab0
----
-121
-121
-121

skipif mysql # not compatible
query I rowsort label-7132
SELECT + col0 / - ( - col1 ) + - 34 - + 87 FROM tab0
----
-121
-121
-121

onlyif mysql # use DIV operator for integer division
query I rowsort label-7133
SELECT DISTINCT + ( - col1 ) + + col2 DIV - 26 - col0 FROM tab1
----
-31
-76
-96

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT + ( - col1 ) + + col2 / - 26 - col0 FROM tab1
----
-31
-76
-96

query I rowsort
SELECT ALL - col2 - + ( - col1 + - ( + col2 ) ) * - col1 AS col2 FROM tab2
----
-1825
-5041
-973

query I rowsort
SELECT DISTINCT col0 * 55 - col1 AS col1 FROM tab0
----
1234
1828
4804

query I rowsort
SELECT - 51 * col1 + col0 + - 28 FROM tab0
----
-4390
-4580
-4940

query I rowsort
SELECT DISTINCT col1 - cor0.col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-7138
SELECT ALL col1 DIV cor0.col1 + + col1 * + col1 AS col2 FROM tab0 cor0
----
7397
8282
9410

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL col1 / cor0.col1 + + col1 * + col1 AS col2 FROM tab0 cor0
----
7397
8282
9410

query I rowsort
SELECT ( + 1 ) + col2 * + 70 FROM tab2
----
1821
1891
2661

query I rowsort
SELECT ALL + 28 * + tab0.col2 * cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c9920e3d12f795bfb8471d74eac6c999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 + + col2 col1 FROM tab0 AS cor0
----
133
52
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-7142
SELECT + ( col2 ) DIV - col1 FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7142
SELECT + ( col2 ) / - col1 FROM tab2
----
-2
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7143
SELECT ALL CAST( 31 AS SIGNED ) + - col2 * col2 AS col0 FROM tab2
----
-1413
-645
-698

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL CAST ( 31 AS INTEGER ) + - col2 * col2 AS col0 FROM tab2
----
-1413
-645
-698

query I rowsort
SELECT DISTINCT - + col0 + col0 * col2 AS col0 FROM tab2 AS cor0
----
182
1950
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 + - cor0.col2 + - 75 * - col1 col1 FROM tab0 AS cor0
----
-719
3579
7177

query I rowsort
SELECT ALL - + cor0.col0 + - cor0.col1 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT - - 73 - + col1 FROM tab1 AS cor0
----
47
60
63

query I rowsort
SELECT cor1.col1 + 30 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to de4ffba7f97c1f32c7f4e41c87266d00

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7149
SELECT ALL + - col1 + col1 + CAST( - col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL + - col1 + col1 + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort
SELECT + cor0.col2 - - col0 * + CAST ( - col0 AS REAL ) AS col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT + col0 + col2 * 85 AS col0 FROM tab2 AS cor0
----
2288
2302
3309

onlyif mysql # use DIV operator for integer division
query I rowsort label-7152
SELECT ALL + col1 DIV - col1 + + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1224
575
7920

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL + col1 / - col1 + + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1224
575
7920

query I rowsort
SELECT DISTINCT - 30 * col2 AS col1 FROM tab2 AS cor0
----
-1140
-780
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-7154
SELECT DISTINCT - col0 + + col0 DIV col0 + col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT - col0 + + col0 / col0 + col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT + 45 * col1 * ( ( + col0 ) ) + + col1 AS col2 FROM tab2 AS cor0
----
207149
60452
9796

query I rowsort
SELECT DISTINCT - + col1 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + cor1.col1 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
17
31
59

query I rowsort
SELECT ALL - col0 + + tab2.col1 * 85 FROM tab2
----
1366
2628
4937

query I rowsort
SELECT ALL - col0 * + col1 + 44 AS col1 FROM tab1
----
-34
-596
-996

query I rowsort
SELECT 45 * - col2 FROM tab2
----
-1170
-1215
-1710

query I rowsort
SELECT ALL ( col1 ) - - col2 * 83 FROM tab0 AS cor0
----
180
2825
6897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + col0 + - col1 col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + - col0 - 87 * + 21 FROM tab1 AS cor0
----
-1830
-1891
-1907

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col2 * - col2 col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT DISTINCT col1 * col0 - - col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-7166
SELECT DISTINCT + - 45 DIV 92 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT + - 45 / 92 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7167
SELECT ALL - CAST( col1 AS SIGNED ) + - col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL - CAST ( col1 AS INTEGER ) + - col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT - + col0 * + 71 + col1 FROM tab0 cor0
----
-1618
-2388
-6228

query I rowsort
SELECT ALL ( - ( - col2 ) ) - + 34 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
156
2233
2816

query I rowsort
SELECT - ( col1 ) * cor0.col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - 54 AS col2 FROM tab1 cor0
----
-54

query I rowsort
SELECT ALL + - cor0.col0 * + col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + + 55 * + col1 AS col2 FROM tab0 AS cor0
----
4730
5005
5335

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7174
SELECT + CAST( 23 AS SIGNED ) FROM tab1
----
23
23
23

skipif mysql # not compatible
query I rowsort label-7174
SELECT + CAST ( 23 AS INTEGER ) FROM tab1
----
23
23
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7175
SELECT CAST( 95 AS SIGNED ) AS col1 FROM tab0 cor0
----
95
95
95

skipif mysql # not compatible
query I rowsort label-7175
SELECT CAST ( 95 AS INTEGER ) AS col1 FROM tab0 cor0
----
95
95
95

query I rowsort
SELECT + - 23 * - col2 AS col2 FROM tab1 AS cor0
----
1242
1311
2208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col0 FROM tab2, tab0 AS cor0, tab1 cor1, tab1 AS cor2
----
81 values hashing to 68fc0eecd4f434589f3ec576bbd0c540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 col2 FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT ( ( - col1 ) ) AS col2 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - ( + col2 * + col2 ) AS col1 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT - 27 * - ( col2 ) - col1 AS col0 FROM tab0 cor0
----
-70
2123
805

query I rowsort
SELECT ALL - + col1 + - col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7183
SELECT - - CAST( NULL AS SIGNED ) / 22 - + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7183
SELECT - - CAST ( NULL AS INTEGER ) / 22 - + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * 64 FROM tab0 AS cor0
----
1536
2240
5696

query I rowsort
SELECT + ( col2 ) + col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT - + col0 + ( + col1 ) AS col1 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT ALL - col2 + + ( - col0 ) FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT + 64 + col0 AS col0 FROM tab2 AS cor0
----
142
143
71

query I rowsort
SELECT 13 * - col1 + col1 FROM tab0 AS cor0
----
-1032
-1092
-1164

query I rowsort
SELECT 11 * + col0 FROM tab0 cor0
----
264
385
979

query I rowsort
SELECT DISTINCT + - 20 * + ( - cor0.col0 ) + + col1 FROM tab1 cor0
----
1290
1613
86

query I rowsort
SELECT ALL 71 FROM tab0, tab1 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7193
SELECT ALL + ( - col2 ) + col2 * 15 - col0 DIV - col0 AS col1 FROM tab0
----
1149
15
463

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL + ( - col2 ) + col2 * 15 - col0 / - col0 AS col1 FROM tab0
----
1149
15
463

query I rowsort
SELECT + ( + 9 ) - col0 * - ( + col0 ) AS col1 FROM tab0 AS cor0
----
1234
585
7930

onlyif mysql # use DIV operator for integer division
query I rowsort label-7195
SELECT col0 * col0 DIV - col0 + - 19 * col1 FROM tab0 AS cor0
----
-1658
-1818
-1878

skipif mysql # not compatible
query I rowsort label-7195
SELECT col0 * col0 / - col0 + - 19 * col1 FROM tab0 AS cor0
----
-1658
-1818
-1878

query I rowsort
SELECT 93 * col2 + + col2 * - col2 AS col2 FROM tab0
----
1980
902
92

query I rowsort
SELECT DISTINCT - 21 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-21

query I rowsort
SELECT + ( + col2 ) * col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7199
SELECT col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7199
SELECT col1 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * col2 + col2 - col2 col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT col2 * 13 + col2 AS col2 FROM tab2 AS cor0
----
364
378
532

query I rowsort
SELECT col2 + 51 FROM tab0
----
133
52
84

query I rowsort
SELECT col0 * - ( + col1 * col2 ) - - col2 * + 22 AS col2 FROM tab1
----
-3024
-35226
-97728

query I rowsort
SELECT + - col2 * ( - col2 ) FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - col0 + col0 * - 86 AS col1 FROM tab1 cor0
----
-261
-5568
-6960

query I rowsort
SELECT + col2 * 16 FROM tab0 cor0
----
1312
16
528

query I rowsort
SELECT ALL + col2 * + col2 + + col2 FROM tab0 AS cor0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-7208
SELECT DISTINCT - + ( - col0 ) DIV - col1 + + col0 FROM tab1 AS cor0
----
3
58
74

skipif mysql # not compatible
query I rowsort label-7208
SELECT DISTINCT - + ( - col0 ) / - col1 + + col0 FROM tab1 AS cor0
----
3
58
74

query I rowsort
SELECT - + col1 + - cor0.col0 AS col2 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT 37 * cor0.col0 + - cor0.col1 FROM tab0 AS cor0
----
1198
3202
802

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7211
SELECT DISTINCT - CAST( col1 AS SIGNED ) + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

skipif mysql # not compatible
query I rowsort label-7211
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT + cor0.col0 + + 96 * cor0.col0 AS col2 FROM tab0 cor0
----
2328
3395
8633

query I rowsort
SELECT DISTINCT - + col0 * col2 + + col1 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL - cor0.col2 - col0 * + cor0.col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT + ( 92 ) AS col0 FROM tab1 AS cor0
----
92
92
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7216
SELECT ALL CAST( NULL AS SIGNED ) - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL CAST ( NULL AS INTEGER ) - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7217
SELECT - 4 DIV + 2 FROM tab0, tab1 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

skipif mysql # not compatible
query I rowsort label-7217
SELECT - 4 / + 2 FROM tab0, tab1 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT - col2 * col2 * + col1 AS col0 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT - - ( - col2 ) * + cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col0 + + col0 * ( cor0.col1 ) FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT + 57 * + col0 FROM tab0 AS cor0
----
1368
1995
5073

query I rowsort
SELECT ALL - - 44 AS col2 FROM tab1 AS cor0
----
44
44
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7223
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) * 61 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) * 61 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + + col0 col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL + cor0.col1 + 40 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to edd9993100afa656b142c563b1141895

onlyif mysql # use DIV operator for integer division
query I rowsort label-7226
SELECT DISTINCT + col2 + + cor0.col1 DIV - cor0.col0 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-7226
SELECT DISTINCT + col2 + + cor0.col1 / - cor0.col0 FROM tab2 AS cor0
----
23
26
38

query I rowsort
SELECT col2 * col2 + + ( col0 ) AS col1 FROM tab2 AS cor0
----
1523
736
754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7228
SELECT ALL - - col1 + + cor0.col2 * ( col2 * CAST( ( - col0 ) AS SIGNED ) ) FROM tab1 AS cor0
----
-207926
-737267
-8722

skipif mysql # not compatible
query I rowsort label-7228
SELECT ALL - - col1 + + cor0.col2 * ( col2 * CAST ( ( - col0 ) AS INTEGER ) ) FROM tab1 AS cor0
----
-207926
-737267
-8722

query I rowsort
SELECT - + col1 * + ( + col2 ) + col1 FROM tab0 AS cor0
----
-2752
-7371
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 * col1 + ( col2 ) col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT ( + col2 ) * ( col2 ) + col0 FROM tab0
----
1113
36
6813

query I rowsort
SELECT + 7 + - col1 AS col0 FROM tab1
----
-19
-3
-6

query I rowsort
SELECT 61 + - tab0.col2 FROM tab0
----
-21
28
60

query I rowsort
SELECT ALL - 26 + col2 * 74 AS col1 FROM tab0
----
2416
48
6042

query I rowsort
SELECT 71 * col2 FROM tab1
----
3834
4047
6816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - col1 * col2 + col0 * - col0 + col1 AS col0 FROM tab0 AS cor0
----
-1225
-15292
-3328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 * + col0 col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT + 77 * col2 FROM tab2
----
2002
2079
2926

onlyif mysql # use DIV operator for integer division
query I rowsort label-7240
SELECT DISTINCT - + col1 DIV col1 + col1 AS col1 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT - + col1 / col1 + col1 AS col1 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT cor0.col1 + col1 * - col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT - col2 * cor0.col1 + col2 * + col2 AS col0 FROM tab2 AS cor0
----
-108
-858
798

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7243
SELECT DISTINCT - ( col1 ) - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-118
-34
-62

skipif mysql # not compatible
query I rowsort label-7243
SELECT DISTINCT - ( col1 ) - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT cor0.col2 - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + + col0 * - col0 col0 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT col2 + col2 * col0 - col0 * - col2 FROM tab2 AS cor0
----
405
4082
6042

query I rowsort
SELECT 32 - - col1 FROM tab1 AS cor0
----
42
45
58

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab0 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 5d94dfd9164033b5a92f743be8139ecc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 51 col2 FROM tab0 AS cor0
----
35
40
46

query I rowsort
SELECT + col1 * - 2 * 14 AS col0 FROM tab2 AS cor0
----
-1652
-476
-868

query I rowsort
SELECT DISTINCT 23 + col0 * col0 * + col1 AS col2 FROM tab1
----
257
40983
83223

query I rowsort
SELECT DISTINCT col0 + - col1 * 65 FROM tab0
----
-5566
-5826
-6270

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to fa0488bdae83f58c7ffa92505e928570

query I rowsort
SELECT ALL 88 + col2 + col0 FROM tab2 AS cor0
----
122
192
205

query I rowsort
SELECT ALL col1 - + col2 * col1 * - 72 AS col1 FROM tab1 AS cor0
----
101114
41050
89869

query I rowsort
SELECT ALL + ( + col2 ) * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - ( col0 ) * col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 59 col1 FROM tab1 AS cor0
----
1534
590
767

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col1 AS REAL ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort
SELECT col2 + CAST ( col2 AS REAL ) AS col2 FROM tab1
----
108
114
192

query I rowsort
SELECT + 40 + cor0.col2 * - col0 FROM tab2 AS cor0
----
-149
-1988
-2962

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7262
SELECT DISTINCT cor1.col1 * CAST( NULL AS SIGNED ) col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7262
SELECT DISTINCT cor1.col1 * CAST ( NULL AS INTEGER ) col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
NULL

query I rowsort
SELECT + cor0.col0 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + col0 + - col2 - + col1 FROM tab1 cor0
----
-29
-3
-77

query I rowsort
SELECT DISTINCT + col0 + 73 - col2 FROM tab0
----
107
64
80

query I rowsort
SELECT ALL ( 96 + col0 ) AS col2 FROM tab1
----
160
176
99

query I rowsort
SELECT ALL + ( - 46 ) * col2 FROM tab2
----
-1196
-1242
-1748

query I rowsort
SELECT tab2.col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT + 71 * col1 AS col0 FROM tab1
----
1846
710
923

onlyif mysql # use DIV operator for integer division
query I rowsort label-7271
SELECT col0 DIV col1 col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7271
SELECT col0 / col1 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - ( - col1 ) + - 8 * + col2 FROM tab2 AS cor0
----
-149
-185
-287

query I rowsort
SELECT DISTINCT - col2 * - tab2.col0 AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + + 88 * col0 AS col1 FROM tab2 AS cor0
----
616
6864
6952

query I rowsort
SELECT tab0.col1 + 6 * 96 FROM tab0
----
662
667
673

onlyif mysql # use DIV operator for integer division
query I rowsort label-7276
SELECT DISTINCT - col1 DIV - 31 col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT - col1 / - 31 col2 FROM tab1
----
0

query I rowsort
SELECT - - ( 6 ) AS col0 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT 5 * cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 34ff6994b476f6f007f4db49c664ea5a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 4 col1 FROM tab0
----
140
356
96

query I rowsort
SELECT DISTINCT - ( - 85 ) + col2 * 53 * + col1 FROM tab1 AS cor0
----
30295
66229
74497

query I rowsort
SELECT + + col0 * - 84 FROM tab0 cor0
----
-2016
-2940
-7476

query I rowsort
SELECT ALL - 95 + - 38 AS col0 FROM tab1 AS cor0
----
-133
-133
-133

query I rowsort
SELECT - - 99 * + col0 * + col2 AS col1 FROM tab0 cor0
----
3465
722502
78408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7284
SELECT - CAST( NULL AS SIGNED ) + + col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7284
SELECT - CAST ( NULL AS INTEGER ) + + col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7285
SELECT + CAST( + col1 AS SIGNED ) * col0 col1 FROM tab1 cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7285
SELECT + CAST ( + col1 AS INTEGER ) * col0 col1 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL + 36 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT ALL col0 * - col2 - 52 * col0 FROM tab0 AS cor0
----
-11926
-1855
-2040

query I rowsort
SELECT DISTINCT cor0.col2 + ( + 40 ) AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0 cor2
----
136
94
97

query I rowsort
SELECT DISTINCT - 55 + + col1 FROM tab2 AS cor0
----
-24
-38
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 + + 35 col1 FROM tab0 AS cor0
----
97
97
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7292
SELECT DISTINCT - ( + col2 ) DIV col0 + - col0 FROM tab0 cor0
----
-25
-35
-89

skipif mysql # not compatible
query I rowsort label-7292
SELECT DISTINCT - ( + col2 ) / col0 + - col0 FROM tab0 cor0
----
-25
-35
-89

query I rowsort
SELECT DISTINCT cor0.col0 + + cor0.col2 * col2 FROM tab0 AS cor0
----
1113
36
6813

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( 40 AS REAL ) AS col1 FROM tab2 AS cor0
----
-40
-40
-40

query I rowsort
SELECT col1 - col2 * - col2 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL 12 + col1 + - col2 FROM tab2 AS cor0
----
-9
16
45

query I rowsort
SELECT ALL 81 * - col0 AS col0 FROM tab2 cor0
----
-567
-6318
-6399

query I rowsort
SELECT + col2 * - ( col1 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL cor0.col1 * + ( col0 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - cor0.col2 + - cor0.col1 * col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL 71 * - tab0.col2 * 33 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c42e054d5fbc548f2ddf6b782d1457c9

query I rowsort
SELECT - + ( cor0.col1 ) * + 18 AS col0 FROM tab2 AS cor0
----
-1062
-306
-558

query I rowsort
SELECT ALL - cor0.col1 * col2 + - ( - 2 ) AS col1 FROM tab1 cor0
----
-1246
-1402
-568

query I rowsort
SELECT - col2 * + col1 + - 1 FROM tab2 AS cor0
----
-1535
-647
-838

query I rowsort
SELECT - + 19 * - cor0.col0 + - cor0.col0 + - 29 * - col1 FROM tab1 cor0
----
1442
1817
808

query I rowsort
SELECT - col2 * + col2 * + col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-7307
SELECT DISTINCT col2 DIV - col0 AS col1 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7307
SELECT DISTINCT col2 / - col0 AS col1 FROM tab0
----
-1
0

query I rowsort
SELECT 79 * + col2 * col1 FROM tab1
----
110916
45030
98592

query I rowsort
SELECT 68 * col0 + ( 94 ) * col0 * col0 FROM tab2 AS cor0
----
5082
577200
592026

query I rowsort
SELECT DISTINCT - col2 * + tab0.col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - col0 + - cor0.col0 * + 46 AS col0 FROM tab2 cor0
----
-329
-3666
-3713

query I rowsort
SELECT - ( + col2 ) + ( + col1 * col2 ) + 94 FROM tab1 cor0
----
1246
1444
607

onlyif mysql # use DIV operator for integer division
query I rowsort label-7313
SELECT + 62 DIV + col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7313
SELECT + 62 / + col0 FROM tab0 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 - + tab1.col0 * col0 col2 FROM tab1
----
-847
2816
2907

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col1 col2 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT 5 + col2 + col2 AS col1 FROM tab0
----
169
7
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-7317
SELECT + col2 * + col0 DIV col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7317
SELECT + col2 * + col0 / col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + tab0.col2 AS col1 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT - + col2 + 21 * col1 AS col2 FROM tab1 AS cor0
----
153
177
492

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7320
SELECT col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7320
SELECT col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7321
SELECT ALL - col0 * CAST( NULL AS SIGNED ) + + 64 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) + + 64 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * 84 * - 8 + - cor0.col1 * - col1 * + 97 FROM tab0 cor0
----
701284
743449
889153

onlyif mysql # use DIV operator for integer division
query I rowsort label-7323
SELECT - col2 DIV - col2 + 93 AS col1 FROM tab0 AS cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-7323
SELECT - col2 / - col2 + 93 AS col1 FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT ALL - 66 + col2 AS col2 FROM tab0
----
-33
-65
16

query I rowsort
SELECT - col0 + + col1 * - ( col1 ) AS col2 FROM tab0
----
-7420
-8370
-9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-7326
SELECT ALL col0 * col1 + ( + col1 ) DIV col0 FROM tab1
----
1040
640
86

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL col0 * col1 + ( + col1 ) / col0 FROM tab1
----
1040
640
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7327
SELECT CAST( 33 AS SIGNED ) col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7327
SELECT CAST ( 33 AS INTEGER ) col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT DISTINCT col1 + + col2 + + col2 FROM tab0
----
152
255
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL 32 * col2 + ( col2 ) + col1 AS col0 FROM tab0
----
1175
130
2797

query I rowsort
SELECT - 71 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

onlyif mysql # use DIV operator for integer division
query I rowsort label-7332
SELECT + col0 DIV + col1 + + col2 * + col0 FROM tab1
----
162
3654
7686

skipif mysql # not compatible
query I rowsort label-7332
SELECT + col0 / + col1 + + col2 * + col0 FROM tab1
----
162
3654
7686

onlyif mysql # use DIV operator for integer division
query I rowsort label-7333
SELECT DISTINCT col1 DIV col1 col2 FROM tab2 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT col1 / col1 col2 FROM tab2 cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7334
SELECT + cor0.col2 DIV col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-7334
SELECT + cor0.col2 / col1 FROM tab1 cor0
----
2
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7335
SELECT + col2 * 43 DIV + col2 FROM tab0 AS cor0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-7335
SELECT + col2 * 43 / + col2 FROM tab0 AS cor0
----
43
43
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-7336
SELECT + - col1 DIV col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7336
SELECT + - col1 / col1 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7337
SELECT DISTINCT + + col0 + 37 DIV - 16 AS col1 FROM tab0 AS cor0
----
22
33
87

skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT + + col0 + 37 / - 16 AS col1 FROM tab0 AS cor0
----
22
33
87

query I rowsort
SELECT DISTINCT 17 * 16 FROM tab1, tab2 AS cor0
----
272

query I rowsort
SELECT - cor0.col2 + ( 54 ) AS col1 FROM tab1 AS cor0
----
-3
-42
0

query I rowsort
SELECT + col2 * 1 AS col0 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7341
SELECT DISTINCT col2 DIV - col0 + + col0 FROM tab1
----
-15
64
79

skipif mysql # not compatible
query I rowsort label-7341
SELECT DISTINCT col2 / - col0 + + col0 FROM tab1
----
-15
64
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7342
SELECT + col2 DIV - col1 + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7342
SELECT + col2 / - col1 + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - 51 * + ( + cor0.col1 ) - - col1 AS col1 FROM tab0 AS cor0
----
-4300
-4550
-4850

query I rowsort
SELECT + 26 - col2 FROM tab0 AS cor0
----
-56
-7
25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7345
SELECT DISTINCT CAST( cor0.col1 AS SIGNED ) + - col1 * + 47 FROM tab0 AS cor0
----
-3956
-4186
-4462

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT CAST ( cor0.col1 AS INTEGER ) + - col1 * + 47 FROM tab0 AS cor0
----
-3956
-4186
-4462

query I rowsort
SELECT ALL + + 67 * col0 + col2 AS col2 FROM tab2 AS cor0
----
496
5252
5331

query I rowsort
SELECT + - col1 + - col1 * col1 AS col0 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT DISTINCT + col0 + col0 * - col1 AS col1 FROM tab0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-7349
SELECT 84 DIV + col0 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-7349
SELECT 84 / + col0 FROM tab0
----
0
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-7350
SELECT ALL + col0 * cor0.col0 DIV - col1 FROM tab0 AS cor0
----
-12
-6
-87

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL + col0 * cor0.col0 / - col1 FROM tab0 AS cor0
----
-12
-6
-87

query I rowsort
SELECT - - 77 + cor0.col0 FROM tab0 AS cor0
----
101
112
166

onlyif mysql # use DIV operator for integer division
query I rowsort label-7352
SELECT - 52 + + col0 - col2 DIV col1 AS col0 FROM tab1 AS cor0
----
-51
21
7

skipif mysql # not compatible
query I rowsort label-7352
SELECT - 52 + + col0 - col2 / col1 AS col0 FROM tab1 AS cor0
----
-51
21
7

query I rowsort
SELECT ALL - - ( + col2 ) * col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + + col1 + - 61 AS col0 FROM tab2 AS cor0
----
-2
-30
-44

query I rowsort
SELECT DISTINCT - col0 * col1 + - 11 AS col2 FROM tab1 AS cor0
----
-1051
-651
-89

query I rowsort
SELECT DISTINCT + - col1 * col0 + 2 - - col1 FROM tab0 AS cor0
----
-1976
-3296
-8006

query I rowsort
SELECT DISTINCT - cor0.col0 + 18 * - col0 FROM tab2 AS cor0
----
-133
-1482
-1501

query I rowsort
SELECT col2 * + 31 - col1 FROM tab0 AS cor0
----
-66
2451
937

query I rowsort
SELECT ALL col0 + - 84 AS col2 FROM tab1 AS cor0
----
-20
-4
-81

query I rowsort
SELECT + col2 * + col1 - - col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT 53 AS col0 FROM tab0, tab1, tab1 AS cor0
----
53

query I rowsort
SELECT DISTINCT + col2 * col0 + + 88 AS col1 FROM tab2 AS cor0
----
2116
277
3090

onlyif mysql # use DIV operator for integer division
query I rowsort label-7363
SELECT ALL col1 * - cor0.col2 + + col1 DIV col0 AS col0 FROM tab2 AS cor0
----
-1534
-646
-833

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL col1 * - cor0.col2 + + col1 / col0 AS col0 FROM tab2 AS cor0
----
-1534
-646
-833

query I rowsort
SELECT DISTINCT - col2 * - col2 - - 88 AS col0 FROM tab0 AS cor0
----
1177
6812
89

query I rowsort
SELECT ALL - col0 + - ( + col1 ) * + col1 FROM tab0 cor0
----
-7420
-8370
-9444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7366
SELECT ALL + col0 * CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL + col0 * CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT col2 + - 81 * cor0.col1 FROM tab2 AS cor0
----
-1339
-2484
-4753

query I rowsort
SELECT DISTINCT - 67 AS col2 FROM tab1
----
-67

query I rowsort
SELECT ALL + col2 * - col1 * + col2 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT - cor0.col1 * 70 FROM tab1 AS cor0
----
-1820
-700
-910

query I rowsort
SELECT - col0 + ( + tab2.col1 + col0 ) * - tab2.col2 FROM tab2
----
-1033
-3640
-3727

query I rowsort
SELECT - 74 * col0 FROM tab2 AS cor0
----
-518
-5772
-5846

onlyif mysql # use DIV operator for integer division
query I rowsort label-7373
SELECT DISTINCT 69 DIV - 44 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7373
SELECT DISTINCT 69 / - 44 AS col1 FROM tab1 AS cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7374
SELECT ALL + - col0 DIV col2 + - col2 * 86 * + col1 AS col2 FROM tab0 AS cor0
----
-244068
-641733
-8377

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL + - col0 / col2 + - col2 * 86 * + col1 AS col2 FROM tab0 AS cor0
----
-244068
-641733
-8377

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7375
SELECT ALL - CAST( NULL AS SIGNED ) + + cor0.col0 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL - CAST ( NULL AS INTEGER ) + + cor0.col0 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7376
SELECT + - col1 DIV - col0 + - col1 + + 87 * cor0.col2 FROM tab0 AS cor0
----
-8
2788
7044

skipif mysql # not compatible
query I rowsort label-7376
SELECT + - col1 / - col0 + - col1 + + 87 * cor0.col2 FROM tab0 AS cor0
----
-8
2788
7044

query I rowsort
SELECT + cor0.col1 + col0 * - col1 * - 32 FROM tab2 AS cor0
----
147323
42993
6975

query I rowsort
SELECT col2 * - cor0.col0 + 96 FROM tab0 AS cor0
----
-696
-7202
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-7379
SELECT + col2 DIV - col0 + + ( col0 ) AS col2 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-7379
SELECT + col2 / - col0 + + ( col0 ) AS col2 FROM tab2 AS cor0
----
4
78
79

query I rowsort
SELECT ALL - ( + col0 ) + - col2 + + 68 * col1 FROM tab1
----
1711
559
708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 + col1 * - col0 col0 FROM tab0 cor0
----
-1977
-3308
-8012

query I rowsort
SELECT + - col0 * + col0 + + 25 FROM tab0 AS cor0
----
-1200
-551
-7896

query I rowsort
SELECT + + 84 + col0 FROM tab1 AS cor0
----
148
164
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-7384
SELECT + - 98 DIV col2 + cor0.col0 + col1 FROM tab1 AS cor0
----
28
73
92

skipif mysql # not compatible
query I rowsort label-7384
SELECT + - 98 / col2 + cor0.col0 + col1 FROM tab1 AS cor0
----
28
73
92

query I rowsort
SELECT 84 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT DISTINCT + 36 + 72 FROM tab0
----
108

query I rowsort
SELECT ALL ( 74 + col2 ) * - ( col1 ) FROM tab2
----
-1904
-3131
-5900

skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( - col0 AS REAL ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT col1 * 77 AS col1 FROM tab0 AS cor0
----
6622
7007
7469

query I rowsort
SELECT - 93 + 91 FROM tab1 AS cor0
----
-2
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col1 * col0 col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL + 83 + - col1 AS col2 FROM tab1 cor0
----
57
70
73

query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-7394
SELECT ALL + col1 DIV col0 + col2 DIV col1 + col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
10
6
7

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL + col1 / col0 + col2 / col1 + col0 / + col2 AS col1 FROM tab1 AS cor0
----
10
6
7

query I rowsort
SELECT ( col1 ) * 88 FROM tab0 AS cor0
----
7568
8008
8536

query I rowsort
SELECT ALL + cor0.col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + + col1 * + col0 + col2 FROM tab0 cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col2 + 29 * - col0 col1 FROM tab1 AS cor0
----
-1809
-2237
-59

query I rowsort
SELECT DISTINCT + + col1 + + cor0.col2 + col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT - col2 + + col1 + col1 FROM tab1
----
-2
-37
-70

query I rowsort
SELECT - col2 - 41 FROM tab2 AS cor0
----
-67
-68
-79

query I rowsort
SELECT col0 * - col1 + col1 * cor0.col2 * col0 AS col0 FROM tab1 cor0
----
35840
4134
98800

query I rowsort
SELECT ALL - 93 + col0 AS col1 FROM tab2
----
-14
-15
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-7404
SELECT ALL + col2 * - col0 DIV ( col0 ) FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL + col2 * - col0 / ( col0 ) FROM tab2
----
-26
-27
-38

query I rowsort
SELECT + col0 * + col2 + + 64 AS col1 FROM tab2 AS cor0
----
2092
253
3066

query I rowsort
SELECT + col0 * col2 - - col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL - 50 * + col0 AS col2 FROM tab0 cor0
----
-1200
-1750
-4450

query I rowsort
SELECT 28 AS col0 FROM tab2 cor0
----
28
28
28

query I rowsort
SELECT + + ( col1 ) * - col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL 80 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT DISTINCT + + ( + col2 ) * col1 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT 12 * 80 FROM tab2, tab1 AS cor0
----
9 values hashing to 8bc4e161682a69058c1ad77cfa6786a8

query I rowsort
SELECT DISTINCT + 22 * - col1 AS col1 FROM tab2 AS cor0
----
-1298
-374
-682

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7414
SELECT + CAST( NULL AS SIGNED ) + col2 * - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7414
SELECT + CAST ( NULL AS INTEGER ) + col2 * - col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 * col0 * cor0.col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL - - col0 * - 1 + - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT + - ( - col2 ) * + col1 + - 50 + - 49 AS col2 FROM tab1 AS cor0
----
1149
1305
471

query I rowsort
SELECT ALL + ( - 35 ) * col1 AS col0 FROM tab2 AS cor0
----
-1085
-2065
-595

onlyif mysql # use DIV operator for integer division
query I rowsort label-7419
SELECT - 62 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7419
SELECT - 62 / col0 AS col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT - col0 * - 54 + - col2 FROM tab2 AS cor0
----
351
4186
4228

query I rowsort
SELECT DISTINCT - col0 * - col1 * - col0 FROM tab0 cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL + col1 * + col0 * + col0 + - 66 FROM tab0 AS cor0
----
118759
49470
720745

query I rowsort
SELECT col1 + - 38 FROM tab1
----
-12
-25
-28

query I rowsort
SELECT DISTINCT col1 * + tab0.col2 + - col1 - col0 FROM tab0
----
-35
2728
7282

query I rowsort
SELECT DISTINCT - col1 + - ( col1 ) * ( - col1 + col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT col0 * - cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + 85 AS col2 FROM tab1 AS cor0
----
85
85
85

query I rowsort
SELECT ( cor0.col1 ) * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + 33 * col1 FROM tab0 AS cor0
----
2838
3003
3201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 + + col0 col1 FROM tab0 AS cor0
----
134
167
269

query I rowsort
SELECT DISTINCT - col0 + - col0 + col0 AS col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL 42 * 88 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b6fa1b0dcf83646290f96b34c828f463

query I rowsort
SELECT ALL col0 + cor0.col2 * col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL + 15 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT DISTINCT col1 + + ( - 26 ) * col1 AS col0 FROM tab0 AS cor0
----
-2150
-2275
-2425

query I rowsort
SELECT DISTINCT col2 * - col2 + - col0 FROM tab1 AS cor0
----
-2919
-3313
-9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7437
SELECT DISTINCT - col0 + + CAST( col1 AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT - col0 + + CAST ( col1 AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL col2 + - col2 * 44 AS col2 FROM tab1 AS cor0
----
-2322
-2451
-4128

query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7440
SELECT ALL + + col1 * + CAST( 11 * - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1067
-31218
-82082

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL + + col1 * + CAST ( 11 * - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1067
-31218
-82082

query I rowsort
SELECT + + col2 * ( + col1 + + col2 ) * col0 AS col0 FROM tab0 AS cor0
----
1262554
3430
94248

onlyif mysql # use DIV operator for integer division
query I rowsort label-7442
SELECT + - 56 * cor0.col0 DIV col2 AS col2 FROM tab1 AS cor0
----
-3
-46
-62

skipif mysql # not compatible
query I rowsort label-7442
SELECT + - 56 * cor0.col0 / col2 AS col2 FROM tab1 AS cor0
----
-3
-46
-62

query I rowsort
SELECT - - 88 * - col1 FROM tab2 AS cor0
----
-1496
-2728
-5192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * col0 + - 77 * - col1 col2 FROM tab0 AS cor0
----
14928
7198
8694

onlyif mysql # use DIV operator for integer division
query I rowsort label-7445
SELECT - + cor0.col2 DIV - 83 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

skipif mysql # not compatible
query I rowsort label-7445
SELECT - + cor0.col2 / - 83 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

query I rowsort
SELECT DISTINCT + 48 * 60 AS col1 FROM tab2
----
2880

query I rowsort
SELECT DISTINCT 94 * - 6 FROM tab0
----
-564

query I rowsort
SELECT - + cor0.col0 * - col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT 21 * + col0 FROM tab2 AS cor0
----
147
1638
1659

query I rowsort
SELECT + 51 + - col2 * - col0 AS col0 FROM tab1 AS cor0
----
213
3699
7731

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7451
SELECT - col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7451
SELECT - col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col0 + + col2 * + col1 FROM tab1
----
1566
4218
8928

onlyif mysql # use DIV operator for integer division
query I rowsort label-7453
SELECT DISTINCT col2 + - tab0.col2 DIV col0 + + col2 FROM tab0
----
164
2
65

skipif mysql # not compatible
query I rowsort label-7453
SELECT DISTINCT col2 + - tab0.col2 / col0 + + col2 FROM tab0
----
164
2
65

query I rowsort
SELECT ALL 43 + cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 7b8d2d5cc451c43db152ae33c9c44c82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7455
SELECT + col2 + - col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7455
SELECT + col2 + - col1 / + col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - cor0.col2 + 83 AS col2 FROM tab1 AS cor0
----
-13
26
29

query I rowsort
SELECT + ( cor0.col2 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7458
SELECT ALL + CAST( col2 AS SIGNED ) FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL + CAST ( col2 AS INTEGER ) FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7459
SELECT DISTINCT 9 DIV + 77 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT 9 / + 77 FROM tab0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7460
SELECT ALL - CAST( + ( - col1 ) AS SIGNED ) * + col2 * 66 FROM tab2 AS cor0
----
101244
42636
55242

skipif mysql # not compatible
query I rowsort label-7460
SELECT ALL - CAST ( + ( - col1 ) AS INTEGER ) * + col2 * 66 FROM tab2 AS cor0
----
101244
42636
55242

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7461
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 31 * - 96 AS col2 FROM tab0
----
-2976
-2976
-2976

query I rowsort
SELECT col0 * cor0.col2 + + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7464
SELECT + CAST( col2 AS SIGNED ) + - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-7464
SELECT + CAST ( col2 AS INTEGER ) + - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7465
SELECT DISTINCT col0 + + col0 DIV + col2 AS col2 FROM tab0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-7465
SELECT DISTINCT col0 + + col0 / + col2 AS col2 FROM tab0
----
24
70
90

query I rowsort
SELECT + + 32 + col1 * 48 * - col2 FROM tab1 AS cor0
----
-27328
-59872
-67360

onlyif mysql # use DIV operator for integer division
query I rowsort label-7467
SELECT ALL + 82 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL + 82 / cor0.col0 AS col0 FROM tab0 AS cor0
----
0
2
3

query I rowsort
SELECT DISTINCT + 39 * + col0 + col0 AS col2 FROM tab1 AS cor0
----
120
2560
3200

query I rowsort
SELECT col2 * col1 + + col1 - col2 FROM tab2 AS cor0
----
1567
625
841

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7471
SELECT tab0.col2 DIV col0 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7471
SELECT tab0.col2 / col0 AS col2 FROM tab0
----
0
0
1

query I rowsort
SELECT - col1 * + ( col1 ) AS col2 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT - - col1 * - 13 FROM tab2 AS cor0
----
-221
-403
-767

query I rowsort
SELECT - + col1 * 39 AS col1 FROM tab0 AS cor0
----
-3354
-3549
-3783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 30 * col1 + - col1 col2 FROM tab2 AS cor0
----
1711
493
899

query I rowsort
SELECT ALL - + 79 * - col2 AS col0 FROM tab0 AS cor0
----
2607
6478
79

query I rowsort
SELECT ALL + col2 + cor0.col1 AS col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT + - 31 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1023
-2542
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 - col1 col0 FROM tab0 AS cor0
----
-40
-45
-51

query I rowsort
SELECT ( cor0.col1 ) + col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT col0 * col0 * 9 AS col0 FROM tab0
----
11025
5184
71289

query I rowsort
SELECT + cor0.col1 * col2 AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT col2 * 28 AS col2 FROM tab2 AS cor0
----
1064
728
756

query I rowsort
SELECT DISTINCT 47 FROM tab1, tab2 AS cor0
----
47

query I rowsort
SELECT ALL col2 + 98 FROM tab0
----
131
180
99

query I rowsort
SELECT - col0 * ( ( col0 ) ) FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT ALL + col2 + 73 * col0 * col2 + - col2 * - col2 AS col2 FROM tab2
----
14553
148746
220628

query I rowsort
SELECT ALL col2 + 64 + col2 FROM tab2
----
116
118
140

query I rowsort
SELECT DISTINCT + - col0 * 85 FROM tab0 AS cor0
----
-2040
-2975
-7565

query I rowsort
SELECT - + col2 * col2 + col0 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722

onlyif mysql # use DIV operator for integer division
query I rowsort label-7491
SELECT ALL - col0 * - col1 + + col0 DIV - col2 AS col1 FROM tab0
----
2064
3360
8098

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL - col0 * - col1 + + col0 / - col2 AS col1 FROM tab0
----
2064
3360
8098

query I rowsort
SELECT - + 45 AS col2 FROM tab1 AS cor0
----
-45
-45
-45

query I rowsort
SELECT + ( + col2 ) + - col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT + - ( col0 ) * 11 + 57 FROM tab1 AS cor0
----
-647
-823
24

query I rowsort
SELECT ALL - + col2 + cor0.col2 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7496
SELECT ALL - col0 + + tab1.col0 + - col2 DIV - col2 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL - col0 + + tab1.col0 + - col2 / - col2 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT - + cor0.col1 * col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL 43 * - col1 FROM tab2 AS cor0
----
-1333
-2537
-731

query I rowsort
SELECT - - col0 - + col1 * ( + 12 ) AS col2 FROM tab1 AS cor0
----
-309
-56
-76

query I rowsort
SELECT ALL - + 67 * + col2 FROM tab2 cor0
----
-1742
-1809
-2546

onlyif mysql # use DIV operator for integer division
query I rowsort label-7501
SELECT ALL + cor0.col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL + cor0.col2 / + col1 AS col2 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL + - ( - col2 ) * col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + 83 * - col0 * col2 + - cor0.col1 FROM tab1 AS cor0
----
-13472
-302794
-637453

onlyif mysql # use DIV operator for integer division
query I rowsort label-7504
SELECT ALL cor0.col2 + col0 * + col0 DIV col0 AS col2 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL cor0.col2 + col0 * + col0 / col0 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT 33 + + col2 * - cor0.col1 FROM tab1 AS cor0
----
-1215
-1371
-537

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 96 + + col0 * 79 col0 FROM tab2 cor0
----
457
6066
6145

query I rowsort
SELECT - - 66 AS col0 FROM tab0 AS cor0
----
66
66
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-7508
SELECT ALL + col1 DIV col0 + tab1.col2 AS col2 FROM tab1
----
57
62
96

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL + col1 / col0 + tab1.col2 AS col2 FROM tab1
----
57
62
96

query I rowsort
SELECT ALL 24 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

onlyif mysql # use DIV operator for integer division
query I rowsort label-7510
SELECT col2 DIV tab1.col2 + 69 FROM tab1
----
70
70
70

skipif mysql # not compatible
query I rowsort label-7510
SELECT col2 / tab1.col2 + 69 FROM tab1
----
70
70
70

query I rowsort
SELECT ALL - col2 + + col0 AS col0 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT ALL + + cor0.col1 * - col1 + + ( col2 + + col1 ) * + cor0.col0 FROM tab2 cor0
----
-555
3149
4056

query I rowsort
SELECT DISTINCT - col0 * + col1 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT + + col2 * - cor0.col1 + 87 FROM tab0 AS cor0
----
-10
-2751
-7375

query I rowsort
SELECT - + col2 * col1 + + 68 FROM tab0 AS cor0
----
-2770
-29
-7394

onlyif mysql # use DIV operator for integer division
query I rowsort label-7516
SELECT DISTINCT + col1 + - 87 * cor0.col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
206
505
655

skipif mysql # not compatible
query I rowsort label-7516
SELECT DISTINCT + col1 + - 87 * cor0.col2 / - col1 AS col1 FROM tab1 AS cor0
----
206
505
655

query I rowsort
SELECT DISTINCT + cor0.col2 + col1 + col0 AS col1 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT ALL + - col2 * + cor0.col1 - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT col2 * col0 + + 67 FROM tab1 AS cor0
----
229
3715
7747

query I rowsort
SELECT - col2 * - col0 + + cor0.col2 + + col0 AS col0 FROM tab1 cor0
----
219
3769
7856

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7521
SELECT + col1 * CAST( cor0.col1 AS SIGNED ) - - col2 FROM tab2 AS cor0
----
327
3507
988

skipif mysql # not compatible
query I rowsort label-7521
SELECT + col1 * CAST ( cor0.col1 AS INTEGER ) - - col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL - col0 * - 91 FROM tab2 AS cor0
----
637
7098
7189

query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 + col0 FROM tab0 cor0
----
7420
8370
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-7524
SELECT - col0 DIV 61 + 5 AS col2 FROM tab1 AS cor0
----
4
4
5

skipif mysql # not compatible
query I rowsort label-7524
SELECT - col0 / 61 + 5 AS col2 FROM tab1 AS cor0
----
4
4
5

query I rowsort
SELECT DISTINCT 46 * tab2.col2 - - ( col2 ) FROM tab2
----
1222
1269
1786

onlyif mysql # use DIV operator for integer division
query I rowsort label-7526
SELECT DISTINCT + tab2.col0 - col1 DIV col0 FROM tab2
----
3
78
79

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT + tab2.col0 - col1 / col0 FROM tab2
----
3
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7527
SELECT - col0 + - col2 DIV + 50 AS col1 FROM tab0
----
-24
-35
-90

skipif mysql # not compatible
query I rowsort label-7527
SELECT - col0 + - col2 / + 50 AS col1 FROM tab0
----
-24
-35
-90

query I rowsort
SELECT col0 + + 29 AS col0 FROM tab1 AS cor0
----
109
32
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-7529
SELECT - col1 DIV tab1.col1 col2 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7529
SELECT - col1 / tab1.col1 col2 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 20 col0 FROM tab1 AS cor0
----
-20

query I rowsort
SELECT DISTINCT - 98 AS col0 FROM tab2 AS cor0
----
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 + col0 * col1 col1 FROM tab2 cor0
----
1348
222
4607

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7533
SELECT ALL - CAST( col0 AS SIGNED ) * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL - CAST ( col0 AS INTEGER ) * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + col2 * col1 + - col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL 59 * - col0 AS col2 FROM tab0 AS cor0
----
-1416
-2065
-5251

query I rowsort
SELECT - cor0.col2 + + 74 * - cor0.col2 FROM tab0 AS cor0
----
-2475
-6150
-75

query I rowsort
SELECT DISTINCT + 58 * + 34 AS col0 FROM tab2 AS cor0
----
1972

query I rowsort
SELECT ALL + 26 AS col1 FROM tab0 AS cor0
----
26
26
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7539
SELECT - CAST( NULL AS DECIMAL ) + + 43 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7539
SELECT - CAST ( NULL AS REAL ) + + 43 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + - col0 + 69 AS col1 FROM tab1
----
-24
-5
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + col0 + - col0 * cor0.col1 - col2 col0 FROM tab1 AS cor0
----
-1337
-210
-2176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 col2 FROM tab2 AS cor0
----
67
67
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 69 col1 FROM tab0 AS cor0
----
-104
-158
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-7544
SELECT DISTINCT + cor0.col2 DIV + col0 + - col1 FROM tab2 cor0
----
-17
-28
-59

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT + cor0.col2 / + col0 + - col1 FROM tab2 cor0
----
-17
-28
-59

query I rowsort
SELECT ALL + 26 - - col2 FROM tab0 AS cor0
----
108
27
59

query I rowsort
SELECT DISTINCT - + 12 + + col1 FROM tab2 AS cor0
----
19
47
5

query I rowsort
SELECT DISTINCT + + 26 * col1 - 45 AS col1 FROM tab1 cor0
----
215
293
631

onlyif mysql # use DIV operator for integer division
query I rowsort label-7548
SELECT DISTINCT col1 DIV col1 - col1 * 35 FROM tab0 AS cor0
----
-3009
-3184
-3394

skipif mysql # not compatible
query I rowsort label-7548
SELECT DISTINCT col1 / col1 - col1 * 35 FROM tab0 AS cor0
----
-3009
-3184
-3394

query I rowsort
SELECT ALL - 31 FROM tab0
----
-31
-31
-31

query I rowsort
SELECT ALL - 93 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT col1 * + col1 * - tab2.col0 + tab2.col2 AS col2 FROM tab2
----
-22793
-271492
-6700

query I rowsort
SELECT col1 * col1 + col1 - + col1 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( col0 * + col0 )
----

query I rowsort
SELECT ALL - tab2.col2 * + col1 * tab2.col1 AS col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT col0 * + tab1.col1 + + col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT ( + col2 * col0 * - col1 ) IN ( + col2 / + col2 )
----
24
35
89

query I rowsort
SELECT ALL + tab2.col2 - tab2.col0 * col1 AS col2 FROM tab2
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + - col0 col2 FROM tab2
----
182
1950
2923

query I rowsort
SELECT - col1 + - col0 * + col1 - col1 * - col0 AS col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT col1 * + col2 + col0 * tab2.col2 + - col1 NOT IN ( + col1 )
----

query I rowsort
SELECT - col1 * col2 + col2 + col1 * + col2 FROM tab0
----
1
33
82

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( col0 + + col2 + + col1 )
----

query I rowsort
SELECT DISTINCT col1 * col1 * tab1.col0 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT col2 * + col2 * col0 AS col2 FROM tab2
----
114076
5103
52728

query III rowsort
SELECT * FROM tab1 WHERE - col0 + col2 BETWEEN col1 AND NULL
----

query I rowsort
SELECT - col1 * col1 / + col1 AS col1 FROM tab2 WHERE NULL IN ( + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7566
SELECT - col2 * col1 DIV + col2 col0 FROM tab1
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7566
SELECT - col2 * col1 / + col2 col0 FROM tab1
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col0 * col2 col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT NULL >= col2
----

query I rowsort
SELECT col1 * - col1 FROM tab2 WHERE ( NULL ) IN ( col2 * tab2.col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7570
SELECT DISTINCT - col1 DIV + tab1.col1 - col0 AS col2 FROM tab1
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-7570
SELECT DISTINCT - col1 / + tab1.col1 - col0 AS col2 FROM tab1
----
-4
-65
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 * col1 * col2 col0 FROM tab0
----
-244044
-678953
-9374

query I rowsort
SELECT - col2 * col1 * tab2.col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT ALL tab0.col2 * + col1 * col1 AS col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT - tab1.col1 * + col2 - - tab1.col2 AS col2 FROM tab1
----
-1152
-1350
-513

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( - tab0.col1 * - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col0 * - tab1.col1 + col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7577
SELECT - col2 * + col0 * - col0 - - col1 DIV + col2 FROM tab0 AS cor0
----
1322
19010
649523

skipif mysql # not compatible
query I rowsort label-7577
SELECT - col2 * + col0 * - col0 - - col1 / + col2 FROM tab0 AS cor0
----
1322
19010
649523

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0 WHERE NOT NULL < cor0.col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - tab1.col0 * + tab1.col0 col0 FROM tab1
----
-35
-4106
-6413

query I rowsort
SELECT tab2.col1 + col1 * col0 AS col1 FROM tab2
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-7581
SELECT col0 DIV tab0.col0 + col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-7581
SELECT col0 / tab0.col0 + col2 FROM tab0
----
2
34
83

query I rowsort
SELECT + col2 * - cor0.col1 AS col0 FROM tab1 AS cor0 WHERE NULL <> - col0 + - col2 * + col2 - + col2
----

query I rowsort
SELECT 20 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT DISTINCT - 56 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-56

query I rowsort
SELECT - 3 + tab0.col1 + - cor1.col0 FROM tab0, tab2 AS cor0, tab1, tab1 cor1
----
81 values hashing to c7450b6129caa47d2b79f2777ff7f2d2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col1 FROM tab1
----
53
53
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-7587
SELECT ALL - tab1.col0 DIV + 5 + - col1 * col2 AS col1 FROM tab1
----
-1264
-1404
-582

skipif mysql # not compatible
query I rowsort label-7587
SELECT ALL - tab1.col0 / + 5 + - col1 * col2 AS col1 FROM tab1
----
-1264
-1404
-582

query I rowsort
SELECT col2 * - 35 + + col2 * col1 AS col0 FROM tab2 cor0
----
-108
-684
624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7589
SELECT DISTINCT CAST( NULL AS DECIMAL ) - col0 * col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT CAST ( NULL AS REAL ) - col0 * col2 AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + ( + col2 ) * - col2 AS col1 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT - - ( + col1 ) * - col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7592
SELECT - CAST( NULL AS DECIMAL ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7592
SELECT - CAST ( NULL AS REAL ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 59 * + col0 FROM tab0 AS cor0
----
1416
2065
5251

query I rowsort
SELECT col2 * col1 - col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT cor0.col2 AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL 58 * col2 AS col2 FROM tab0
----
1914
4756
58

query I rowsort
SELECT + - col0 * col0 + col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT + col2 * 52 AS col0 FROM tab2 AS cor0
----
1352
1404
1976

query I rowsort
SELECT + cor0.col0 + - 40 - - col0 AS col2 FROM tab0 AS cor0
----
138
30
8

query I rowsort
SELECT DISTINCT + ( + col0 ) - col0 * - col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT + + ( + 69 ) FROM tab0 AS cor0
----
69

query I rowsort
SELECT DISTINCT ( + 39 ) AS col1 FROM tab1 AS cor0
----
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-7603
SELECT DISTINCT + 22 DIV ( col1 ) FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7603
SELECT DISTINCT + 22 / ( col1 ) FROM tab2 AS cor0
----
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7604
SELECT CAST( NULL AS DECIMAL ) * + 69 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT CAST ( NULL AS REAL ) * + 69 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col2 * cor0.col0 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col2 * + 30 + + col1 AS col1 FROM tab1 AS cor0
----
1646
1720
2893

query I rowsort
SELECT 18 + col0 AS col1 FROM tab2
----
25
96
97

query I rowsort
SELECT + 75 * 23 AS col0 FROM tab0
----
1725
1725
1725

query I rowsort
SELECT 29 * col1 AS col1 FROM tab2
----
1711
493
899

query I rowsort
SELECT ALL + + 24 + col1 FROM tab2 cor0
----
41
55
83

query I rowsort
SELECT + col1 + col0 * - col2 * + col1 FROM tab2 AS cor0
----
-119593
-51017
-5828

query I rowsort
SELECT ALL ( 94 ) + tab1.col0 * col0 FROM tab1
----
103
4190
6494

query I rowsort
SELECT DISTINCT col1 * - 93 - + col1 * - col2 FROM tab1
----
-1014
-360
39

query I rowsort
SELECT DISTINCT - col0 * - col1 * + col1 + + col1 AS col2 FROM tab1
----
13533
2054
6410

query I rowsort
SELECT ALL - col0 * + col1 * - cor0.col1 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT + col1 * 18 + - col0 FROM tab2 AS cor0
----
227
551
984

query I rowsort
SELECT ALL - tab0.col2 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT + col1 * - ( 38 ) FROM tab2 AS cor0
----
-1178
-2242
-646

onlyif mysql # use DIV operator for integer division
query I rowsort label-7619
SELECT ALL - col1 DIV + col0 + - col0 DIV col2 FROM tab1 AS cor0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL - col1 / + col0 + - col0 / col2 FROM tab1 AS cor0
----
-1
-8
0

query I rowsort
SELECT DISTINCT - col1 * col1 + - col1 AS col2 FROM tab2 cor0
----
-306
-3540
-992

query I rowsort
SELECT DISTINCT col0 + + col2 * - 53 AS col2 FROM tab0 AS cor0
----
-1725
-18
-4257

onlyif mysql # use DIV operator for integer division
query I rowsort label-7622
SELECT ALL - col1 DIV col0 AS col2 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-7622
SELECT ALL - col1 / col0 AS col2 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT ALL 99 + tab0.col1 FROM tab0
----
185
190
196

query I rowsort
SELECT ALL - 56 + col0 FROM tab2
----
-49
22
23

query I rowsort
SELECT DISTINCT + ( col2 + col1 ) AS col2 FROM tab0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7626
SELECT ALL + 2 DIV 3 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL + 2 / 3 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-7627
SELECT col0 + 40 DIV + col0 AS col2 FROM tab0 AS cor0
----
25
36
89

skipif mysql # not compatible
query I rowsort label-7627
SELECT col0 + 40 / + col0 AS col2 FROM tab0 AS cor0
----
25
36
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7628
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7628
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 * - col2 * + col0 AS col2 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-7630
SELECT DISTINCT col2 * col1 DIV tab0.col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT col2 * col1 / tab0.col1 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT col2 + col1 * col1 + col0 AS col1 FROM tab0 AS cor0
----
7453
8452
9445

query I rowsort
SELECT col1 + + col1 * col2 AS col0 FROM tab0
----
194
2924
7553

query I rowsort
SELECT + col0 + tab1.col1 * col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT DISTINCT col1 * col0 + + cor0.col2 * col0 FROM tab0 AS cor0
----
15397
2856
3430

onlyif mysql # use DIV operator for integer division
query I rowsort label-7635
SELECT ALL - col2 + col0 + col1 DIV col0 FROM tab2 AS cor0
----
-16
41
52

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL - col2 + col0 + col1 / col0 FROM tab2 AS cor0
----
-16
41
52

query I rowsort
SELECT DISTINCT - col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT tab1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL - + col1 + + col0 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - col2 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7363
8199
9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-7640
SELECT + col1 DIV - col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7640
SELECT + col1 / - col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + cor0.col0 * col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + col2 * - col1 + col1 + cor0.col1 FROM tab2 AS cor0
----
-1416
-612
-775

onlyif mysql # use DIV operator for integer division
query I rowsort label-7643
SELECT - col1 * col2 DIV col0 AS col1 FROM tab1 cor0
----
-15
-468
-8

skipif mysql # not compatible
query I rowsort label-7643
SELECT - col1 * col2 / col0 AS col1 FROM tab1 cor0
----
-15
-468
-8

query I rowsort
SELECT DISTINCT + - col0 + - col1 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT 87 * col2 - - col2 AS col0 FROM tab0 AS cor0
----
2904
7216
88

query I rowsort
SELECT DISTINCT - cor0.col0 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL - - col1 - - col2 * col1 AS col0 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT - 59 * + col1 * col1 + + col0 * + cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
-35672
30580
89869

query I rowsort
SELECT ALL + col0 * + col2 + + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT + + col1 - cor0.col0 AS col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT ALL - 53 * + col0 AS col1 FROM tab1 AS cor0
----
-159
-3392
-4240

query I rowsort
SELECT ( col2 ) + + cor0.col1 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + + col1 col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL col0 + - col1 * col0 + - col2 AS col2 FROM tab2 AS cor0
----
-1302
-237
-4550

query I rowsort
SELECT + 99 + col1 * col1 FROM tab2
----
1060
3580
388

query I rowsort
SELECT + 47 + col1 AS col2 FROM tab0 AS cor0
----
133
138
144

query I rowsort
SELECT + 28 AS col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT ALL + + 51 + col0 AS col1 FROM tab2 AS cor0
----
129
130
58

query I rowsort
SELECT col2 * col0 + 92 FROM tab1 AS cor0
----
254
3740
7772

query I rowsort
SELECT + col1 + ( - col2 * col2 ) FROM tab2 cor0
----
-1427
-617
-698

query I rowsort
SELECT + col0 * col0 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
14080
171
7744

query I rowsort
SELECT ALL + 18 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT col0 * 65 * col2 AS col0 FROM tab1 AS cor0
----
10530
237120
499200

query I rowsort
SELECT col0 + + col1 + + 6 AS col0 FROM tab2 AS cor0
----
102
143
44

query I rowsort
SELECT col0 * - ( - col0 + + col2 * col2 ) FROM tab2 AS cor0
----
-107835
-46644
-5054

query I rowsort
SELECT - col0 + col2 + - col0 AS col2 FROM tab1 AS cor0
----
-64
-71
48

query I rowsort
SELECT ALL - col1 * - 19 FROM tab1 AS cor0
----
190
247
494

onlyif mysql # use DIV operator for integer division
query I rowsort label-7668
SELECT DISTINCT col0 DIV + col2 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7668
SELECT DISTINCT col0 / + col2 FROM tab1 cor0
----
0
1

query I rowsort
SELECT ALL + col1 + + 60 AS col0 FROM tab2 AS cor0
----
119
77
91

query I rowsort
SELECT col0 * - 63 FROM tab2 cor0
----
-441
-4914
-4977

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7671
SELECT - CAST( ( + col0 ) AS SIGNED ) + - 50 * + col1 AS col2 FROM tab0 AS cor0
----
-4324
-4639
-4885

skipif mysql # not compatible
query I rowsort label-7671
SELECT - CAST ( ( + col0 ) AS INTEGER ) + - 50 * + col1 AS col2 FROM tab0 AS cor0
----
-4324
-4639
-4885

query I rowsort
SELECT DISTINCT + - 74 * 90 AS col1 FROM tab1 AS cor0
----
-6660

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7673
SELECT - CAST( - col2 AS SIGNED ) + - col2 * - col0 FROM tab2 AS cor0
----
2054
216
3040

skipif mysql # not compatible
query I rowsort label-7673
SELECT - CAST ( - col2 AS INTEGER ) + - col2 * - col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + + col1 - - col0 * + col1 FROM tab1 AS cor0
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7677
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT - CAST ( NULL AS REAL ) col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + ( + 11 * + col0 ) FROM tab0
----
264
385
979

query I rowsort
SELECT ALL - col1 * cor0.col0 * ( + col0 * + col1 ) AS col2 FROM tab2 AS cor0
----
-1803649
-21178404
-47089

query I rowsort
SELECT DISTINCT + col0 * - col1 - + 83 AS col1 FROM tab0 AS cor0
----
-2147
-3478
-8182

query I rowsort
SELECT DISTINCT col2 + + cor0.col0 AS col1 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT col2 * cor0.col0 * - col1 FROM tab0 cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL + ( + col0 ) - + col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + col0 * col0 * - 6 - - cor0.col0 AS col2 FROM tab2 AS cor0
----
-287
-36426
-37367

query I rowsort
SELECT ALL + col2 * + 69 + cor0.col2 * col0 FROM tab0 AS cor0
----
104
12956
3069

query I rowsort
SELECT ALL + cor0.col1 * + 96 FROM tab0, tab1 AS cor0
----
9 values hashing to b42ff08e59e3946339991f1be89b6cac

query I rowsort
SELECT DISTINCT - 22 + cor0.col1 * - col1 AS col0 FROM tab0 cor0
----
-7418
-8303
-9431

query I rowsort
SELECT col2 * + 35 FROM tab1 AS cor0
----
1890
1995
3360

query I rowsort
SELECT ALL 23 * - col1 AS col1 FROM tab2
----
-1357
-391
-713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 col2 FROM tab0
----
43
43
43

query I rowsort
SELECT DISTINCT - 13 * - col2 FROM tab2
----
338
351
494

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 24 ) col1 FROM tab2 AS cor0
----
24
24
24

query I rowsort
SELECT + + cor1.col1 AS col1 FROM tab2, tab0 cor0, tab0 AS cor1, tab0, tab0 cor2
----
243 values hashing to c6425afc100dd55de8d45dec18c469ea

query I rowsort
SELECT ( 57 ) * col0 AS col2 FROM tab0 AS cor0
----
1368
1995
5073

query I rowsort
SELECT + col2 + col2 * - 58 FROM tab2
----
-1482
-1539
-2166

query I rowsort
SELECT ALL + 72 AS col0 FROM tab1, tab1 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to e1618abfe12be6a950cc575d695639b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + ( 73 ) col2 FROM tab1 AS cor0
----
127
130
169

onlyif mysql # use DIV operator for integer division
query I rowsort label-7698
SELECT DISTINCT col1 + 86 DIV - 91 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT col1 + 86 / - 91 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - col0 + ( 94 ) FROM tab1 AS cor0
----
14
30
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * + 4 - - ( col1 ) col2 FROM tab1 AS cor0
----
-30
-39
-78

query I rowsort
SELECT ALL + col1 * + ( cor0.col1 ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + cor0.col1 + + cor0.col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * + col2 + + cor0.col0 col0 FROM tab1 cor0
----
165
3712
7760

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 cor1, tab1 cor2
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c

query I rowsort
SELECT DISTINCT 65 * + col1 AS col1 FROM tab2 AS cor0
----
1105
2015
3835

query I rowsort
SELECT + ( - 2 ) + + col0 * 85 FROM tab1 AS cor0
----
253
5438
6798

onlyif mysql # use DIV operator for integer division
query I rowsort label-7707
SELECT ALL - ( col0 ) DIV col2 + + 39 * - col1 FROM tab1 cor0
----
-1014
-391
-507

skipif mysql # not compatible
query I rowsort label-7707
SELECT ALL - ( col0 ) / col2 + + 39 * - col1 FROM tab1 cor0
----
-1014
-391
-507

query I rowsort
SELECT ALL + + col0 * col0 + col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT ALL - + 36 + cor0.col0 FROM tab2 cor0
----
-29
42
43

query I rowsort
SELECT DISTINCT + + col1 * - col2 * + col0 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - col1 * 3 FROM tab1 AS cor0
----
-30
-39
-78

query I rowsort
SELECT DISTINCT col1 * + col1 + + col2 AS col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL - 55 * col2 AS col1 FROM tab0 AS cor0
----
-1815
-4510
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-7714
SELECT ALL cor0.col0 + cor0.col0 DIV col1 + + col1 FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL cor0.col0 + cor0.col0 / col1 + + col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - col0 * + cor0.col1 * 97 AS col2 FROM tab0 AS cor0
----
-200208
-329315
-785603

query I rowsort
SELECT DISTINCT + col0 + - col1 + col2 * + 33 AS col2 FROM tab1 cor0
----
1759
1935
3235

query I rowsort
SELECT DISTINCT - + col0 * + col1 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - col2 * cor0.col0 + - col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT - - ( - cor0.col0 ) + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-14
-156
-158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7720
SELECT ALL - ( - col1 ) * - CAST( - 14 * col2 AS SIGNED ) col0 FROM tab1 cor0
----
17472
19656
7980

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL - ( - col1 ) * - CAST ( - 14 * col2 AS INTEGER ) col0 FROM tab1 cor0
----
17472
19656
7980

query I rowsort
SELECT DISTINCT col2 + - 21 * + col0 FROM tab2 AS cor0
----
-120
-1612
-1621

onlyif mysql # use DIV operator for integer division
query I rowsort label-7722
SELECT ALL + col0 + - 17 DIV col2 - cor0.col2 FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL + col0 + - 17 / col2 - cor0.col2 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7723
SELECT ALL col1 * - CAST( NULL AS SIGNED ) + + 65 * cor0.col0 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7723
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) + + 65 * cor0.col0 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7724
SELECT ALL + + col2 - col2 DIV - 65 AS col2 FROM tab0 AS cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL + + col2 - col2 / - 65 AS col2 FROM tab0 AS cor0
----
1
33
83

query I rowsort
SELECT ALL + col0 + - col1 * tab1.col2 AS col2 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - col2 + + col2 * + tab2.col0 FROM tab2
----
162
2002
2964

query I rowsort
SELECT DISTINCT - col0 + col2 + + col2 AS col2 FROM tab0
----
-33
42
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col2 col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT 64 FROM tab2, tab2 cor0
----
64

query I rowsort
SELECT 62 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT + ( col1 ) * col2 + + col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT - col1 * + col1 + col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT col2 + - 54 AS col0 FROM tab0
----
-21
-53
28

query I rowsort
SELECT + col1 + - 14 FROM tab0
----
72
77
83

query I rowsort
SELECT + 16 AS col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT ALL - col0 + - ( - col0 ) AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * 49 AS col2 FROM tab1
----
147
3136
3920

query I rowsort
SELECT DISTINCT - col1 - + col0 * col1 FROM tab1
----
-104
-1053
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-7739
SELECT ALL - tab2.col1 * - tab2.col1 DIV col1 - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL - tab2.col1 * - tab2.col1 / col1 - col1 FROM tab2
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7740
SELECT - - col0 + - col0 / CAST( NULL AS DECIMAL ) + - cor0.col1 * col1 * + 25 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7740
SELECT - - col0 + - col0 / CAST ( NULL AS REAL ) + - cor0.col1 * col1 * + 25 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * col1 + + cor0.col1 * + ( cor0.col2 ) + cor0.col2 FROM tab1 AS cor0
----
1267
1536
2384

query I rowsort
SELECT + tab2.col1 * + tab2.col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL - col2 + col0 + + col2 * - col2 FROM tab1
----
-2967
-3242
-9232

query I rowsort
SELECT ALL - ( 18 * tab1.col2 ) + col0 AS col0 FROM tab1
----
-1648
-962
-969

onlyif mysql # use DIV operator for integer division
query I rowsort label-7745
SELECT - tab0.col2 DIV + 66 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7745
SELECT - tab0.col2 / + 66 FROM tab0
----
-1
0
0

query I rowsort
SELECT 2 * cor0.col0 + cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 4db566b1c24579a693701691c14ecd0c

query I rowsort
SELECT - col1 - + col2 * col1 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT ALL - + col2 + - cor0.col0 AS col2 FROM tab0 cor0
----
-171
-36
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7749
SELECT ALL ( - cor0.col1 ) * CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7749
SELECT ALL ( - cor0.col1 ) * CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7750
SELECT DISTINCT - + col2 * col2 * - CAST( 41 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
119556
133209
377856

skipif mysql # not compatible
query I rowsort label-7750
SELECT DISTINCT - + col2 * col2 * - CAST ( 41 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
119556
133209
377856

query I rowsort
SELECT col2 * col2 + ( 13 + - col1 ) FROM tab1 AS cor0
----
2903
3252
9216

query I rowsort
SELECT DISTINCT col1 * col2 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT cor0.col1 + col0 * - 45 FROM tab0 AS cor0
----
-1478
-3914
-994

query I rowsort
SELECT + 79 * + col1 + - col2 * ( col2 + ( cor0.col2 ) ) AS col1 FROM tab2 AS cor0
----
-1545
3309
991

onlyif mysql # use DIV operator for integer division
query I rowsort label-7755
SELECT 47 DIV col2 - ( + 44 ) FROM tab0 cor0
----
-43
-44
3

skipif mysql # not compatible
query I rowsort label-7755
SELECT 47 / col2 - ( + 44 ) FROM tab0 cor0
----
-43
-44
3

query I rowsort
SELECT DISTINCT + + 75 * + col0 FROM tab2 AS cor0
----
525
5850
5925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 * + col2 col1 FROM tab2 AS cor0
----
130
135
190

query I rowsort
SELECT + - 38 - + col0 FROM tab2 AS cor0
----
-116
-117
-45

query I rowsort
SELECT - 90 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-2340
-2430
-3420

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7760
SELECT CAST( NULL AS SIGNED ) + col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT CAST ( NULL AS INTEGER ) + col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 17 * + 59 + col0 FROM tab1 AS cor0
----
1006
1067
1083

query I rowsort
SELECT DISTINCT - ( - 30 ) FROM tab2, tab2 AS cor0
----
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-7763
SELECT ALL col1 DIV - ( - 94 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL col1 / - ( - 94 ) AS col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 77 * col0 * cor0.col2 col2 FROM tab2 AS cor0
----
14553
156156
231154

query I rowsort
SELECT DISTINCT + + col2 + col0 * - col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL + 58 + col1 AS col1 FROM tab0 cor0
----
144
149
155

query I rowsort
SELECT ALL + 70 + - col0 * 70 FROM tab1 AS cor0
----
-140
-4410
-5530

onlyif mysql # use DIV operator for integer division
query I rowsort label-7768
SELECT DISTINCT + col0 DIV cor0.col0 AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7768
SELECT DISTINCT + col0 / cor0.col0 AS col0 FROM tab0 cor0
----
1

query I rowsort
SELECT DISTINCT 31 + + col1 * col2 AS col1 FROM tab0 AS cor0
----
128
2869
7493

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7770
SELECT DISTINCT + col0 + col1 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT + col0 + col1 * - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7771
SELECT - col0 DIV + cor0.col1 + + col0 FROM tab1 AS cor0
----
3
58
74

skipif mysql # not compatible
query I rowsort label-7771
SELECT - col0 / + cor0.col1 + + col0 FROM tab1 AS cor0
----
3
58
74

query I rowsort
SELECT DISTINCT 50 * - col0 FROM tab1 AS cor0
----
-150
-3200
-4000

query I rowsort
SELECT ALL - 63 * + 43 FROM tab1, tab2 AS cor0
----
9 values hashing to 91693a6d4e8957f8c5817f2e238f416c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 + ( col0 * + col1 ) col0 FROM tab1 cor0
----
-2609
-2838
-8176

query I rowsort
SELECT ALL - - col0 * 52 + + col0 AS col0 FROM tab0 AS cor0
----
1272
1855
4717

query I rowsort
SELECT col2 * - col1 + - cor0.col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT + col2 * + col2 + - col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT - cor0.col2 + + col1 * col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT - col0 + + col2 * col0 + col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - + col1 + ( + col2 ) FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT col2 * + 76 AS col1 FROM tab1 AS cor0
----
4104
4332
7296

query I rowsort
SELECT ALL - 90 - col1 AS col2 FROM tab1 cor0
----
-100
-103
-116

query I rowsort
SELECT DISTINCT - ( + 25 ) * col1 * ( col2 ) AS col0 FROM tab0 AS cor0
----
-186550
-2425
-70950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 50 ) * col0 col0 FROM tab0 AS cor0
----
1200
1750
4450

query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT 98 + - col0 * + cor0.col2 AS col0 FROM tab0 cor0
----
-694
-7200
63

query I rowsort
SELECT col1 * cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT + 78 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT 19 + tab1.col1 AS col2 FROM tab1
----
29
32
45

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1 WHERE NOT NULL < ( tab0.col1 )
----

query I rowsort
SELECT col2 * col2 * + ( col0 ) FROM tab0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ALL - col1 * + 58 FROM tab2 AS cor0
----
-1798
-3422
-986

onlyif mysql # use DIV operator for integer division
query I rowsort label-7794
SELECT - + col1 + + ( col1 ) DIV col1 FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-7794
SELECT - + col1 + + ( col1 ) / col1 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT - 20 AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

onlyif mysql # use DIV operator for integer division
query I rowsort label-7796
SELECT ALL - col1 * - col1 + tab1.col2 DIV - col2 FROM tab1
----
168
675
99

skipif mysql # not compatible
query I rowsort label-7796
SELECT ALL - col1 * - col1 + tab1.col2 / - col2 FROM tab1
----
168
675
99

query I rowsort
SELECT ALL 19 + - tab2.col0 AS col0 FROM tab2
----
-59
-60
12

query I rowsort
SELECT DISTINCT + ( + col2 ) + - col1 AS col0 FROM tab2
----
-33
-4
21

query I rowsort
SELECT DISTINCT col0 + + tab2.col1 AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT 46 AS col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
46

query I rowsort
SELECT DISTINCT tab2.col0 + + col1 * - tab2.col0 FROM tab2
----
-1264
-210
-4524

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to 9aea36b1adc82580fae09bf05c24fd77

query I rowsort
SELECT ALL col0 * + col0 + col2 AS col2 FROM tab1
----
4153
63
6496

query I rowsort
SELECT DISTINCT - col0 + - col1 + col1 * + col1 FROM tab0 AS cor0
----
7286
8101
9277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) + col0 col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT col2 * + col0 * - col0 AS col0 FROM tab0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-7807
SELECT tab2.col0 DIV col1 + + 13 AS col1 FROM tab2
----
13
14
17

skipif mysql # not compatible
query I rowsort label-7807
SELECT tab2.col0 / col1 + + 13 AS col1 FROM tab2
----
13
14
17

query I rowsort
SELECT ALL ( + col2 ) * + col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-7809
SELECT ALL col2 DIV col0 + cor0.col1 * col0 FROM tab2 AS cor0
----
1343
220
4602

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL col2 / col0 + cor0.col1 * col0 FROM tab2 AS cor0
----
1343
220
4602

query I rowsort
SELECT - 52 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74

query I rowsort
SELECT DISTINCT col2 + + 89 AS col0 FROM tab0
----
122
171
90

query I rowsort
SELECT col2 * - 32 + ( col0 ) * col2 AS col1 FROM tab1 AS cor0
----
-1566
1824
4608

onlyif mysql # use DIV operator for integer division
query I rowsort label-7813
SELECT col0 DIV + col0 + + col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-7813
SELECT col0 / + col0 + + col1 FROM tab1
----
11
14
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7814
SELECT - col2 + - CAST( NULL AS SIGNED ) + 62 * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7814
SELECT - col2 + - CAST ( NULL AS INTEGER ) + 62 * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col0 + + col0 * col1 - col2 AS col1 FROM tab0 AS cor0
----
2055
3429
8106

query I rowsort
SELECT DISTINCT - + col1 + cor0.col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + - col1 - + col0 * - col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT - - col2 + + col0 * + col0 AS col2 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7819
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 + col0 / col1 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 + col0 / col1 AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + col1 * - 7 + col1 * - 53 AS col0 FROM tab0 AS cor0
----
-5160
-5460
-5820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7821
SELECT DISTINCT - col0 * ( cor0.col0 ) + - CAST( NULL AS SIGNED ) / cor0.col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT - col0 * ( cor0.col0 ) + - CAST ( NULL AS INTEGER ) / cor0.col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT cor0.col0 + - cor0.col0 * - col0 + ( + col1 + col2 ) FROM tab2 AS cor0
----
114
6247
6375

query I rowsort
SELECT ALL - ( - cor0.col1 ) + col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - + 48 + - col0 AS col0 FROM tab2 AS cor0
----
-126
-127
-55

skipif mysql # not compatible
query I rowsort
SELECT 37 * col0 + col1 * - CAST ( - col1 AS REAL ) AS col2 FROM tab1 AS cor0
----
2468
3129
787

query I rowsort
SELECT ALL + 91 * + col2 FROM tab1 AS cor0
----
4914
5187
8736

query I rowsort
SELECT + col0 + ( col1 ) * col1 AS col1 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT - col2 * - 62 AS col1 FROM tab0
----
2046
5084
62

query I rowsort
SELECT DISTINCT + 60 + 59 + + col0 AS col2 FROM tab1 AS cor0
----
122
183
199

query I rowsort
SELECT + col0 + col2 - col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + cor1.col0 - 78 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 9169384f5bdd8aceb6e387c678e2c39d

query I rowsort
SELECT DISTINCT - col2 + - col1 * col0 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT col0 - + col1 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT 3 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 col0 FROM tab2
----
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7836
SELECT ALL CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( cor0.col2 ) + + col2 AS col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL col2 + + col0 * + col1 * + col0 FROM tab0 AS cor0
----
118826
49569
720893

onlyif mysql # use DIV operator for integer division
query I rowsort label-7839
SELECT DISTINCT + col0 * col2 DIV col1 AS col0 FROM tab0 AS cor0
----
0
80
9

skipif mysql # not compatible
query I rowsort label-7839
SELECT DISTINCT + col0 * col2 / col1 AS col0 FROM tab0 AS cor0
----
0
80
9

query I rowsort
SELECT + col2 - + 37 FROM tab2 AS cor0
----
-10
-11
1

query I rowsort
SELECT DISTINCT - col0 - - col0 * col2 * - ( - col0 + col1 ) FROM tab2 AS cor0
----
-4543
186045
38454

query I rowsort
SELECT DISTINCT + - 26 * + 11 FROM tab0 AS cor0
----
-286

query I rowsort
SELECT ALL - 28 + 68 FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT + col1 * + col1 + col1 AS col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT ALL col1 + + 69 * + tab0.col1 AS col1 FROM tab0
----
6020
6370
6790

query I rowsort
SELECT DISTINCT - col1 + ( + col0 + - col1 ) FROM tab0
----
-148
-159
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 + cor0.col2 + 25 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 99f5692bc76d303b08abee4df17a175c

query I rowsort
SELECT + 89 * + 75 AS col0 FROM tab0
----
6675
6675
6675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 6 col2 FROM tab2
----
-1
-72
-73

query I rowsort
SELECT DISTINCT + col2 * cor0.col0 + - 93 AS col2 FROM tab1 AS cor0
----
3555
69
7587

onlyif mysql # use DIV operator for integer division
query I rowsort label-7851
SELECT - col1 * cor0.col1 DIV col0 FROM tab2 AS cor0
----
-137
-3
-44

skipif mysql # not compatible
query I rowsort label-7851
SELECT - col1 * cor0.col1 / col0 FROM tab2 AS cor0
----
-137
-3
-44

query I rowsort
SELECT DISTINCT + col1 + - 49 FROM tab2 AS cor0
----
-18
-32
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-7853
SELECT + cor0.col1 DIV - ( 36 * - col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7853
SELECT + cor0.col1 / - ( 36 * - col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * - 76 FROM tab1 AS cor0
----
-4104
-4332
-7296

query I rowsort
SELECT DISTINCT + col1 + - 85 AS col2 FROM tab2 AS cor0
----
-26
-54
-68

query I rowsort
SELECT DISTINCT - col0 + + 73 AS col2 FROM tab2 AS cor0
----
-5
-6
66

query I rowsort
SELECT ALL cor0.col2 * 48 * - col0 FROM tab2 AS cor0
----
-144096
-9072
-97344

query I rowsort
SELECT 88 - col2 * + col2 * col0 AS col2 FROM tab1
----
-207848
-737192
-8660

query I rowsort
SELECT - 21 + col1 AS col0 FROM tab2
----
-4
10
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-7860
SELECT DISTINCT - 74 DIV + col1 AS col1 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT - 74 / + col1 AS col1 FROM tab2
----
-1
-2
-4

query I rowsort
SELECT ALL - col0 * + col0 * + col0 FROM tab0
----
-13824
-42875
-704969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7862
SELECT col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7862
SELECT col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + 1 FROM tab1
----
4
65
81

query I rowsort
SELECT col1 * col2 * - 96 AS col0 FROM tab1
----
-119808
-134784
-54720

query I rowsort
SELECT ALL - col2 - + col1 * tab2.col0 AS col0 FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT ALL col1 + - ( + ( col0 ) ) FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL + col1 + - 4 * 87 AS col2 FROM tab2 cor0
----
-289
-317
-331

query I rowsort
SELECT DISTINCT col2 + + col2 * - col2 * + col0 FROM tab0 AS cor0
----
-26103
-34
-598354

onlyif mysql # use DIV operator for integer division
query I rowsort label-7869
SELECT ALL + col0 + CAST( col2 AS SIGNED ) DIV col0 col0 FROM tab0 AS cor0
----
25
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL + col0 + CAST ( col2 AS INTEGER ) / col0 col0 FROM tab0 AS cor0
----
25
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7870
SELECT DISTINCT + cor0.col1 DIV + cor0.col2 AS col1 FROM tab0, tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT + cor0.col1 / + cor0.col2 AS col1 FROM tab0, tab0 AS cor0
----
1
2
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 - + col0 BETWEEN - cor0.col0 / col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 + + col1 + col0 * col0 AND cor0.col1
----

query IIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 - - col2 * + col2 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT DISTINCT + col0 - - col2 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7876
SELECT ALL tab2.col0 DIV - col1 + - tab2.col0 FROM tab2
----
-7
-79
-83

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL tab2.col0 / - col1 + - tab2.col0 FROM tab2
----
-7
-79
-83

query I rowsort
SELECT DISTINCT col2 + col0 * + col1 * col1 AS col2 FROM tab1
----
13616
2082
6457

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= col0 - col1
----

query I rowsort
SELECT DISTINCT col2 * + col2 AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - col0 ) OR NOT ( NULL ) BETWEEN + col2 * cor0.col2 AND ( col1 * + col0 )
----

query I rowsort
SELECT - + col1 + cor0.col1 + + col0 * col0 * - col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT + col0 * col0 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT col1 + col2 + - col2 * col0 FROM tab0 AS cor0
----
-673
-7125
63

query I rowsort
SELECT DISTINCT + col2 * - tab1.col1 * col1 AS col2 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT ALL - col1 + + col0 * col2 * - col1 + + col0 * - col2 FROM tab0
----
-3527
-671507
-68990

query I rowsort
SELECT DISTINCT tab2.col0 AS col2 FROM tab2, tab0 cor0
----
7
78
79

query I rowsort
SELECT ALL tab1.col2 + tab1.col1 AS col2 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7888
SELECT ALL col2 DIV - tab0.col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL col2 / - tab0.col1 AS col2 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE col1 BETWEEN NULL AND ( + col1 )
----

query I rowsort
SELECT + col0 * col2 + col1 * col1 FROM tab0 AS cor0
----
15579
8188
9444

query I rowsort
SELECT ALL + cor0.col0 * - col1 + + col0 + - col2 AS col0 FROM tab0 AS cor0
----
-2073
-3361
-8092

query I rowsort
SELECT ALL - cor0.col1 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - col2 * col2 + col0 + - col2 * col2 FROM tab0 AS cor0
----
-13359
-2154
33

query I rowsort
SELECT - col2 * - col2 + + 34 + - cor0.col2 FROM tab0 AS cor0
----
1090
34
6676

query I rowsort
SELECT ALL - col2 + col0 * ( - col1 ) FROM tab2
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT 66 + - col1 FROM tab2
----
35
49
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7897
SELECT - col2 DIV + 79 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7897
SELECT - col2 / + 79 FROM tab1 AS cor0
----
-1
0
0

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to b6efe6f7ec1a3daa3cc6ea9dd7d13455

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7899
SELECT + tab1.col1 + - CAST( - col0 AS SIGNED ) * col0 FROM tab1
----
35
4106
6413

skipif mysql # not compatible
query I rowsort label-7899
SELECT + tab1.col1 + - CAST ( - col0 AS INTEGER ) * col0 FROM tab1
----
35
4106
6413

query I rowsort
SELECT ALL col2 + 24 * cor0.col1 FROM tab1 AS cor0
----
297
408
678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 96 col2 FROM tab1 AS cor0
----
-5184
-5472
-9216

query I rowsort
SELECT - - col2 * 21 AS col2 FROM tab0 AS cor0
----
1722
21
693

query I rowsort
SELECT + cor0.col2 * ( col2 ) + - col0 AS col2 FROM tab0 AS cor0
----
-34
1065
6635

onlyif mysql # use DIV operator for integer division
query I rowsort label-7904
SELECT + col1 * cor0.col1 * col1 + cor0.col0 * col0 DIV - col1 AS col0 FROM tab1 AS cor0
----
1705
17576
591

skipif mysql # not compatible
query I rowsort label-7904
SELECT + col1 * cor0.col1 * col1 + cor0.col0 * col0 / - col1 AS col0 FROM tab1 AS cor0
----
1705
17576
591

query I rowsort
SELECT DISTINCT - col1 - col1 * tab1.col2 AS col1 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT col1 + - col1 * + col0 + col1 FROM tab1
----
-1014
-26
-620

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( tab2.col0 + col1 )
----

query I rowsort
SELECT DISTINCT - col1 * + col0 + col0 AS col2 FROM tab2
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-7909
SELECT col0 DIV tab0.col1 + col0 * tab0.col0 col1 FROM tab0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7909
SELECT col0 / tab0.col1 + col0 * tab0.col0 col1 FROM tab0
----
1225
576
7921

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT IN ( - col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL + col1 / col2 FROM tab2 WHERE NULL IN ( col0 + - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7912
SELECT DISTINCT + col0 - - col1 DIV col2 col2 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT + col0 - - col1 / col2 col2 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab1 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT col0 - - col0 AS col2 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT ALL + col1 * col0 + tab2.col0 AS col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT col2 * + col2 FROM tab2 WHERE ( - col0 ) BETWEEN col2 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * + col0 * col2 col0 FROM tab1
----
207872
737200
8745

query I rowsort
SELECT DISTINCT + 90 * - col2 FROM tab1 AS cor0
----
-4860
-5130
-8640

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to fcae6e4467f798ac88c869b8e38c6b23

query I rowsort
SELECT + + 94 * col2 FROM tab2 AS cor0
----
2444
2538
3572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col2 * 29 + col0 * - cor0.col0 AS col2 FROM tab1 cor0
----
-1575
-5749
-9184

onlyif mysql # use DIV operator for integer division
query I rowsort label-7924
SELECT ALL col2 - ( col1 ) DIV + col1 AS col0 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL col2 - ( col1 ) / + col1 AS col0 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT DISTINCT - col2 * 94 + + col1 * col2 * - col0 FROM tab1 AS cor0
----
-108864
-41838
-9288

query I rowsort
SELECT DISTINCT col2 + ( - cor0.col1 * + col2 ) + col1 FROM tab2 AS cor0
----
-1449
-591
-779

query I rowsort
SELECT ALL - col1 - + ( 87 ) FROM tab2 AS cor0
----
-104
-118
-146

query I rowsort
SELECT DISTINCT col0 * ( col2 ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - + cor0.col0 + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT DISTINCT + 54 - - col2 AS col1 FROM tab1
----
108
111
150

query I rowsort
SELECT - col1 + - tab1.col2 - - 23 * + col0 FROM tab1
----
-11
1405
1731

onlyif mysql # use DIV operator for integer division
query I rowsort label-7932
SELECT DISTINCT + col1 DIV + col0 - col1 FROM tab2
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-7932
SELECT DISTINCT + col1 / + col0 - col1 FROM tab2
----
-17
-27
-59

query I rowsort
SELECT DISTINCT col2 * + 96 FROM tab1 AS cor0
----
5184
5472
9216

query I rowsort
SELECT cor0.col2 * - col2 + cor0.col0 FROM tab1 cor0
----
-2913
-3185
-9136

query I rowsort
SELECT - 69 - col1 AS col0 FROM tab1
----
-79
-82
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col2 + ( - tab2.col2 ) col2 FROM tab2
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7937
SELECT + col2 + CAST( - col1 AS SIGNED ) * + col1 AS col2 FROM tab1
----
-43
-622
-73

skipif mysql # not compatible
query I rowsort label-7937
SELECT + col2 + CAST ( - col1 AS INTEGER ) * + col1 AS col2 FROM tab1
----
-43
-622
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7938
SELECT - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7938
SELECT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 69 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT ALL + col2 * ( 42 * col1 ) FROM tab2 AS cor0
----
27132
35154
64428

query I rowsort
SELECT - + col1 * - col2 + 79 FROM tab1 AS cor0
----
1327
1483
649

query I rowsort
SELECT DISTINCT - col1 - col0 * ( col1 ) FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT - + col0 * - 57 FROM tab1 AS cor0
----
171
3648
4560

query I rowsort
SELECT - 20 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # use DIV operator for integer division
query I rowsort label-7945
SELECT ALL - + col0 * col2 DIV + col1 FROM tab0 cor0
----
-80
-9
0

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL - + col0 * col2 / + col1 FROM tab0 cor0
----
-80
-9
0

query I rowsort
SELECT ALL + 96 + - col2 FROM tab2
----
58
69
70

query I rowsort
SELECT DISTINCT col1 + col1 * - ( col1 ) FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT tab1.col0 + col0 * + col2 + - tab1.col0 FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col2 * + col1 col1 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT col2 + + col1 * - col1 + - ( col0 + - col2 ) AS col1 FROM tab0
----
-7354
-8206
-9442

query I rowsort
SELECT DISTINCT - col1 + - col0 * - col1 * col2 AS col2 FROM tab1 cor0
----
36470
4186
99827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 - col2 col1 FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT col0 * col2 - - cor0.col2 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-7954
SELECT ALL - col0 * cor0.col1 DIV + col1 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL - col0 * cor0.col1 / + col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT col0 + cor0.col2 * + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL + - 43 AS col2 FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT col1 + - col1 * col2 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT + col2 * col1 * - col0 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-7959
SELECT - + col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7959
SELECT - + col1 / + col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - + 92 * col2 AS col2 FROM tab1 AS cor0
----
-4968
-5244
-8832

query I rowsort
SELECT DISTINCT + + cor0.col0 + + col0 AS col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL col2 * cor0.col1 * + col0 AS col1 FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT - - cor0.col2 * - col2 * cor0.col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT + ( + tab0.col1 ) AS col0 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7965
SELECT col2 DIV cor0.col1 - - col1 FROM tab1 cor0
----
15
20
28

skipif mysql # not compatible
query I rowsort label-7965
SELECT col2 / cor0.col1 - - col1 FROM tab1 cor0
----
15
20
28

query I rowsort
SELECT DISTINCT - + col1 + col2 AS col2 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT + col1 * + col1 + - cor0.col0 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT ALL + col0 + + col2 * col1 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT + col0 * - col0 - + col0 AS col0 FROM tab1 cor0
----
-12
-4160
-6480

query I rowsort
SELECT ALL ( - col2 ) * col0 + + col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-3078
-6432
1242

query I rowsort
SELECT DISTINCT ( + 98 ) AS col1 FROM tab0
----
98

query I rowsort
SELECT DISTINCT 79 FROM tab2, tab0 cor0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 13 * + col0 col2 FROM tab1 AS cor0
----
-1040
-39
-832

query I rowsort
SELECT cor0.col2 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL + col1 * 95 AS col0 FROM tab1 AS cor0
----
1235
2470
950

query I rowsort
SELECT ALL - + cor0.col2 * col1 + - col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL 75 + + col2 FROM tab0 cor0
----
108
157
76

query I rowsort
SELECT - 68 + 41 * col0 FROM tab1
----
2556
3212
55

query I rowsort
SELECT col2 + + tab2.col0 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT col1 * - 32 + - col2 * col2 AS col0 FROM tab2
----
-1721
-1988
-2564

query I rowsort
SELECT ALL - ( 81 ) * tab2.col2 FROM tab2
----
-2106
-2187
-3078

query I rowsort
SELECT - ( 90 ) * + col1 * - ( - cor0.col1 ) + - col0 AS col0 FROM tab1 AS cor0
----
-15290
-60843
-9064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + col2 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT 40 AS col0 FROM tab2 cor0
----
40
40
40

query I rowsort
SELECT ALL + + 72 - - col2 * col0 FROM tab1 AS cor0
----
234
3720
7752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 39 + col1 * col1 col1 FROM tab2 AS cor0
----
250
3442
922

query I rowsort
SELECT + - cor0.col1 - 36 * col0 * + col2 FROM tab2 cor0
----
-108089
-6835
-73067

query I rowsort
SELECT cor0.col0 + 39 * col2 FROM tab1 AS cor0
----
2109
2287
3824

query I rowsort
SELECT cor0.col2 + 35 AS col0 FROM tab0 AS cor0
----
117
36
68

query I rowsort
SELECT - col2 + - col1 * col0 - col1 FROM tab0 AS cor0
----
-2183
-3493
-8272

query I rowsort
SELECT ALL - col0 * + ( 13 ) - col1 FROM tab1 AS cor0
----
-1053
-65
-842

onlyif mysql # use DIV operator for integer division
query I rowsort label-7992
SELECT col2 + col0 DIV + cor0.col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7992
SELECT col2 + col0 / + cor0.col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + - col2 * col2 * - col0 FROM tab1 cor0
----
207936
737280
8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 col2 FROM tab0
----
-91
-91
-91

query I rowsort
SELECT - + cor0.col0 * + col1 + col0 * col0 FROM tab2 cor0
----
-168
1482
4898

query I rowsort
SELECT - col2 * + ( col1 ) * col0 + col1 AS col1 FROM tab1 AS cor0
----
-36470
-4186
-99827

query I rowsort
SELECT - - col2 * - col2 - 14 FROM tab0 AS cor0
----
-1103
-15
-6738

query I rowsort
SELECT - + col0 + + 4 AS col1 FROM tab1 AS cor0
----
-60
-76
1

query I rowsort
SELECT - - 23 AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # use DIV operator for integer division
query I rowsort label-8000
SELECT DISTINCT - + col1 DIV col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-8000
SELECT DISTINCT - + col1 / col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ALL + + col2 + + col1 AS col0 FROM tab0 cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8002
SELECT + CAST( + ( col2 ) AS SIGNED ) + col1 - col2 * + col1 FROM tab0 AS cor0
----
-2719
-7289
1

skipif mysql # not compatible
query I rowsort label-8002
SELECT + CAST ( + ( col2 ) AS INTEGER ) + col1 - col2 * + col1 FROM tab0 AS cor0
----
-2719
-7289
1

query I rowsort
SELECT DISTINCT - - 26 + + col0 * col2 AS col0 FROM tab0 cor0
----
61
7324
818

query I rowsort
SELECT col1 + cor0.col2 AS col2 FROM tab0 cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8005
SELECT ALL - CAST( NULL AS SIGNED ) * 41 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL - CAST ( NULL AS INTEGER ) * 41 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( col2 ) * col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT + + cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - 80 AS col0 FROM tab1, tab1 cor0, tab0 cor1
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 - tab0.col0 col0 FROM tab0, tab0 cor0
----
9 values hashing to 95db8eb8b4d8fc12e0b01ec0ffb72fb7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8010
SELECT DISTINCT + col1 + 33 * + col2 * CAST( NULL AS SIGNED ) + + col1 * + col2 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8010
SELECT DISTINCT + col1 + 33 * + col2 * CAST ( NULL AS INTEGER ) + + col1 * + col2 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col1 * + 35 - - col2 FROM tab1 AS cor0
----
407
551
964

query I rowsort
SELECT - - col0 * + 45 + col2 * + 88 AS col1 FROM tab0 AS cor0
----
11221
1663
3984

query I rowsort
SELECT + col2 - 57 * + col1 FROM tab0 AS cor0
----
-4869
-5105
-5528

query I rowsort
SELECT - ( col0 ) + - col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT 23 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8016
SELECT + cor1.col2 + - CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8016
SELECT + cor1.col2 + - CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + + 48 * cor1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6578d42c04016ce7b6b2efe85e72e9ca

onlyif mysql # use DIV operator for integer division
query I rowsort label-8018
SELECT 15 + + col1 DIV col0 AS col0 FROM tab2 AS cor0
----
15
15
19

skipif mysql # not compatible
query I rowsort label-8018
SELECT 15 + + col1 / col0 AS col0 FROM tab2 AS cor0
----
15
15
19

query I rowsort
SELECT col0 * col0 - + 73 AS col1 FROM tab1
----
-64
4023
6327

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT + col2 * + tab0.col1 + col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT col0 * ( col1 ) * + tab2.col2 - col0 FROM tab2
----
119574
50955
5852

onlyif mysql # use DIV operator for integer division
query I rowsort label-8023
SELECT DISTINCT - col1 DIV 22 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT - col1 / 22 AS col1 FROM tab1
----
-1
0

query I rowsort
SELECT col2 * - 87 * + 2 FROM tab0 AS cor0
----
-14268
-174
-5742

onlyif mysql # use DIV operator for integer division
query I rowsort label-8025
SELECT ALL + - col2 DIV ( - col1 ) + col0 + + CAST( - 55 AS SIGNED ) FROM tab1 AS cor0
----
-50
14
32

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL + - col2 / ( - col1 ) + col0 + + CAST ( - 55 AS INTEGER ) FROM tab1 AS cor0
----
-50
14
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + cor0.col0 col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - cor0.col0 - + col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT + 98 + col0 FROM tab0 AS cor0
----
122
133
187

query I rowsort
SELECT ALL - col0 + - col0 * + ( + col2 ) * - col1 FROM tab2 AS cor0
----
119574
50955
5852

query I rowsort
SELECT + 28 + cor0.col1 AS col1 FROM tab0 AS cor0
----
114
119
125

query I rowsort
SELECT ALL + 59 * - col1 FROM tab1 AS cor0
----
-1534
-590
-767

query I rowsort
SELECT - ( - col2 ) * 88 * + 98 FROM tab1
----
465696
491568
827904

query I rowsort
SELECT + col0 + - col0 + + 79 FROM tab0
----
79
79
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-8034
SELECT DISTINCT col0 DIV + col0 + cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
1535
647
838

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT col0 / + col0 + cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
1535
647
838

query I rowsort
SELECT DISTINCT + + col1 + col0 * ( col2 ) FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL - col0 * col0 + cor0.col0 * + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - 74 * col1 AS col1 FROM tab2 AS cor0
----
1258
2294
4366

query I rowsort
SELECT ALL - - col1 - col0 * ( col0 ) FROM tab1 cor0
----
-4086
-6387
17

query I rowsort
SELECT ALL - - 28 + col1 + ( - col1 ) FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT DISTINCT - - col1 * cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL - col1 * col2 + 6 AS col1 FROM tab0 AS cor0
----
-2832
-7456
-91

query I rowsort
SELECT DISTINCT + - col2 + col2 + + col1 AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT cor0.col0 * col1 + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1210
1482
2288

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8044
SELECT col0 + - CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-8044
SELECT col0 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + cor1.col0 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8046
SELECT - col2 + col2 * + CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8046
SELECT - col2 + col2 * + CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( col2 ) + + col0 * 15 FROM tab0 AS cor0
----
1253
327
524

query I rowsort
SELECT cor0.col0 * - 0 AS col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT tab1.col2 - ( + col1 ) FROM tab1
----
28
47
83

query I rowsort
SELECT 46 * - tab0.col2 + - col2 FROM tab0
----
-1551
-3854
-47

query I rowsort
SELECT DISTINCT + 25 * + col2 FROM tab1
----
1350
1425
2400

query I rowsort
SELECT + col0 + col2 * - col1 * ( col2 ) FROM tab0
----
-611795
-62
-93630

query I rowsort
SELECT - ( col2 ) * col2 * 27 + col0 AS col1 FROM tab1
----
-248752
-78729
-87659

query I rowsort
SELECT ALL col1 * 70 FROM tab2
----
1190
2170
4130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col1 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 13 * ( - cor0.col0 ) FROM tab0 AS cor0
----
-1157
-312
-455

query I rowsort
SELECT DISTINCT - ( 67 ) AS col0 FROM tab2
----
-67

query I rowsort
SELECT 84 + + 24 FROM tab2
----
108
108
108

query I rowsort
SELECT - 46 FROM tab2, tab2 cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8061
SELECT + CAST( NULL AS SIGNED ) * - 15 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8061
SELECT + CAST ( NULL AS INTEGER ) * - 15 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + col2 + col0 * ( + ( - col1 ) * + 54 + col1 ) FROM tab0
----
-109359
-179934
-429165

query I rowsort
SELECT ALL 86 * tab0.col2 * ( col2 ) AS col0 FROM tab0
----
578264
86
93654

query I rowsort
SELECT ALL - - col0 + - col2 + - cor0.col2 FROM tab1 AS cor0
----
-105
-112
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-8065
SELECT DISTINCT - + col2 + + cor0.col0 DIV - col0 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-8065
SELECT DISTINCT - + col2 + + cor0.col0 / - col0 FROM tab0 AS cor0
----
-2
-34
-83

query I rowsort
SELECT ALL + col1 + ( - col1 ) * - col1 FROM tab1
----
110
182
702

query I rowsort
SELECT col1 * col2 + + col0 * col2 FROM tab1
----
1566
4218
8928

query I rowsort
SELECT ALL col0 + 24 FROM tab1
----
104
27
88

query I rowsort
SELECT ALL tab2.col0 + col2 * col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT + 1 * + tab1.col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL - cor0.col2 * - col1 + col1 * cor0.col0 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT ALL - + col0 + - cor0.col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-11
-111
-58

query I rowsort
SELECT + 30 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT - col0 + cor0.col0 * col0 FROM tab2 cor0
----
42
6006
6162

query I rowsort
SELECT col0 * ( col1 * col0 ) AS col0 FROM tab1
----
234
40960
83200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * + col0 + + ( + 24 + cor0.col2 ) col0 FROM tab0 AS cor0
----
-10
-7192
-735

query I rowsort
SELECT DISTINCT - + 44 + - col2 AS col2 FROM tab1 AS cor0
----
-101
-140
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8078
SELECT ALL CAST( NULL AS SIGNED ) / col2 + col1 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-8078
SELECT ALL CAST ( NULL AS INTEGER ) / col2 + col1 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 * 74 + - col2 AS col1 FROM tab2 AS cor0
----
1898
1971
2774

query I rowsort
SELECT DISTINCT - ( cor0.col0 ) + cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL + - ( - 71 ) AS col1 FROM tab2 AS cor0
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * + col2 + + ( col0 ) col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL col0 + + 63 FROM tab2 AS cor0
----
141
142
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-8084
SELECT ALL - ( col2 ) DIV col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL - ( col2 ) / col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col1 + 53 * col0 FROM tab1 AS cor0
----
133
3382
4227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( col2 ) * - col2 - + 98 * - 90 col2 FROM tab2
----
-10863
-46052
-8756

query I rowsort
SELECT ALL - + col0 + - col0 * cor0.col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT + ( col0 ) * + cor0.col2 + - col1 AS col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL 17 + + col2 AS col2 FROM tab2 AS cor0
----
43
44
55

query I rowsort
SELECT DISTINCT - - col1 + col2 * col0 AS col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL col1 + col2 * + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - + col0 * col0 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
-1482
-4898
168

query I rowsort
SELECT col2 + ( + ( + col0 ) ) * - ( col1 ) + + col2 FROM tab0 AS cor0
----
-1998
-3393
-7935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * col2 col0 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8095
SELECT DISTINCT cor0.col2 + - CAST( NULL AS SIGNED ) * - 54 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT cor0.col2 + - CAST ( NULL AS INTEGER ) * - 54 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8096
SELECT + 21 DIV col2 col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8096
SELECT + 21 / col2 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + + col2 * + col0 * col2 + - col1 FROM tab0 AS cor0
----
-62
26050
598345

query I rowsort
SELECT DISTINCT cor0.col1 + - 9 FROM tab0, tab1 cor0
----
1
17
4

query I rowsort
SELECT + cor0.col2 * - col2 * - col0 - + cor0.col1 FROM tab0 AS cor0
----
-62
26050
598345

query I rowsort
SELECT col1 + col1 * + col0 AS col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT - cor0.col1 - ( + col2 * col2 ) FROM tab2 AS cor0
----
-1461
-735
-760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8102
SELECT ALL - CAST( - ( + col1 ) + ( + col0 ) AS SIGNED ) FROM tab0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-8102
SELECT ALL - CAST ( - ( + col1 ) + ( + col0 ) AS INTEGER ) FROM tab0
----
2
62
62

query I rowsort
SELECT - col0 + col2 * col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8104
SELECT + CAST( NULL AS SIGNED ) * - cor0.col0 / cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8104
SELECT + CAST ( NULL AS INTEGER ) * - cor0.col0 / cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col2 ) AS col0 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT col2 * col0 * + 23 FROM tab2 AS cor0
----
4347
46644
69046

query I rowsort
SELECT - col0 * + col2 + + col1 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT cor0.col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-8109
SELECT - 82 DIV col2 col0 FROM tab0 AS cor0
----
-1
-2
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8109
SELECT - 82 / col2 col0 FROM tab0 AS cor0
----
-1
-2
-82

query I rowsort
SELECT col1 + - col0 * - col1 * - 19 AS col0 FROM tab0
----
-153790
-39130
-64408

query I rowsort
SELECT - - ( col1 ) * + col1 * + col2 AS col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT + ( col0 ) * + col1 AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + tab2.col2 * col0 + - col1 FROM tab2
----
158
1969
2985

query I rowsort
SELECT col1 + col1 * 13 FROM tab2
----
238
434
826

query I rowsort
SELECT DISTINCT + + col1 + col2 * 72 FROM tab0 cor0
----
169
2462
5995

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - col1 * - 3 + + cor0.col1 - col0 col0 FROM tab1 AS cor0
----
-1764
-3811
-4189

query I rowsort
SELECT - col1 * - col1 * - 66 AS col1 FROM tab0 cor0
----
-488136
-546546
-620994

query I rowsort
SELECT ALL + col2 * col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT + col1 * 19 FROM tab0 AS cor0
----
1634
1729
1843

query I rowsort
SELECT DISTINCT - - col0 + col2 * + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL - + col2 + 91 * + 35 FROM tab1 AS cor0
----
3089
3128
3131

query I rowsort
SELECT ALL - + col2 * col2 + 35 AS col0 FROM tab0 AS cor0
----
-1054
-6689
34

query I rowsort
SELECT - col0 + - ( ( + col2 ) ) FROM tab2 cor0
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8124
SELECT DISTINCT col1 + CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8124
SELECT DISTINCT col1 + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col2 + col0 * col2 AS col0 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT - - cor0.col0 - ( - col1 ) * col2 FROM tab1 cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-8127
SELECT col2 DIV 41 + cor0.col1 FROM tab1 cor0
----
11
15
27

skipif mysql # not compatible
query I rowsort label-8127
SELECT col2 / 41 + cor0.col1 FROM tab1 cor0
----
11
15
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8128
SELECT ALL - col1 + CAST( + 16 AS SIGNED ) FROM tab2 AS cor0
----
-1
-15
-43

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL - col1 + CAST ( + 16 AS INTEGER ) FROM tab2 AS cor0
----
-1
-15
-43

query I rowsort
SELECT 55 + + col2 AS col2 FROM tab1
----
109
112
151

query I rowsort
SELECT + col2 * - col0 * 97 + - 87 FROM tab2
----
-18420
-196803
-291281

query I rowsort
SELECT DISTINCT col0 * col0 - 95 * - col0 FROM tab1 AS cor0
----
10176
14000
294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - tab2.col0 + tab2.col1 col0 FROM tab2, tab0, tab0 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + col0 * ( cor0.col1 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - ( col1 ) * + col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8135
SELECT + + col2 + - col2 DIV + col1 AS col1 FROM tab1 cor0
----
52
52
89

skipif mysql # not compatible
query I rowsort label-8135
SELECT + + col2 + - col2 / + col1 AS col1 FROM tab1 cor0
----
52
52
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 75 ) col1 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT ALL 34 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT 6 * col2 * - col2 + 17 + + 52 FROM tab0 AS cor0
----
-40275
-6465
63

query I rowsort
SELECT 15 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT ALL - col0 * + col0 - - 47 AS col2 FROM tab1 AS cor0
----
-4049
-6353
38

query I rowsort
SELECT + + ( + col1 ) + + col2 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - 22 - col2 FROM tab2
----
-48
-49
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-8143
SELECT + col0 DIV - col0 + ( + col0 ) * col1 * 48 col2 FROM tab1
----
30719
3743
49919

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8143
SELECT + col0 / - col0 + ( + col0 ) * col1 * 48 col2 FROM tab1
----
30719
3743
49919

query I rowsort
SELECT DISTINCT - col2 * + col1 * - 90 AS col2 FROM tab2
----
138060
58140
75330

query I rowsort
SELECT ALL - tab1.col1 * 60 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 45f51fdc77d7861d96fecde2ebbcf7db

query I rowsort
SELECT - col2 * ( + col1 + - col2 ) * 37 FROM tab1 AS cor0
----
294816
55944
99123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * ( 74 ) col1 FROM tab0 AS cor0
----
6364
6734
7178

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8148
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + 99 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + 99 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8150
SELECT DISTINCT ( cor0.col0 ) * col1 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
-10
-11

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT ( cor0.col0 ) * col1 / - col2 AS col0 FROM tab1 AS cor0
----
-1
-10
-11

onlyif mysql # use DIV operator for integer division
query I rowsort label-8151
SELECT 25 DIV - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8151
SELECT 25 / - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT + + col0 * + 84 AS col1 FROM tab1 AS cor0
----
252
5376
6720

query I rowsort
SELECT ALL - 53 + - col2 FROM tab0 cor0
----
-135
-54
-86

query I rowsort
SELECT col0 * + 88 FROM tab0 AS cor0
----
2112
3080
7832

query I rowsort
SELECT + ( + cor0.col0 ) * - col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL - + 84 * - col2 + - col1 FROM tab1 AS cor0
----
4510
4778
8051

query I rowsort
SELECT DISTINCT + ( - 85 ) AS col0 FROM tab1 AS cor0
----
-85

query I rowsort
SELECT DISTINCT 35 FROM tab2 cor0
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 * col0 col1 FROM tab0 AS cor0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 col1 FROM tab2 cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + col2 col1 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8162
SELECT ALL + col0 + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL + col0 + col2 / col1 AS col0 FROM tab1 AS cor0
----
5
69
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-8163
SELECT DISTINCT + 16 DIV - col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT + 16 / - col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 * col0 col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL col0 + + cor0.col1 FROM tab1 cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8166
SELECT - col1 * cor0.col2 * + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

skipif mysql # not compatible
query I rowsort label-8166
SELECT - col1 * cor0.col2 * + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL + 76 * + col2 - + col2 AS col2 FROM tab2 AS cor0
----
1950
2025
2850

query I rowsort
SELECT ALL 80 * + col1 + ( ( + col2 ) * - 18 ) AS col2 FROM tab0 AS cor0
----
5804
6286
7742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 28 col0 FROM tab0 AS cor0
----
2408
2548
2716

query I rowsort
SELECT DISTINCT - col2 * + col0 + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT - + col2 * + col1 + 95 AS col2 FROM tab0 AS cor0
----
-2
-2743
-7367

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 * CAST ( - col0 AS REAL ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + cor0.col2 + - 51 * + 62 FROM tab2 AS cor0
----
-3124
-3135
-3136

onlyif mysql # use DIV operator for integer division
query I rowsort label-8174
SELECT + + col1 + ( col0 + col0 ) DIV col2 FROM tab0 AS cor0
----
167
87
93

skipif mysql # not compatible
query I rowsort label-8174
SELECT + + col1 + ( col0 + col0 ) / col2 FROM tab0 AS cor0
----
167
87
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8175
SELECT ALL + col1 + - ( + col2 ) * - col2 * - CAST( + col1 AS SIGNED ) + + col2 * col0 AS col1 FROM tab2 cor0
----
-21529
-22379
-37797

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL + col1 + - ( + col2 ) * - col2 * - CAST ( + col1 AS INTEGER ) + + col2 * col0 AS col1 FROM tab2 cor0
----
-21529
-22379
-37797

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 16 * col2 col1 FROM tab2 AS cor0
----
442
459
646

query I rowsort
SELECT cor0.col0 * + 37 AS col0 FROM tab2 AS cor0
----
259
2886
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * + 72 col1 FROM tab0 cor0
----
1752
2555
6497

onlyif mysql # use DIV operator for integer division
query I rowsort label-8179
SELECT ALL + col0 * ( - 2 ) - col2 * 80 DIV 17 FROM tab1 AS cor0
----
-260
-396
-611

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL + col0 * ( - 2 ) - col2 * 80 / 17 FROM tab1 AS cor0
----
-260
-396
-611

query I rowsort
SELECT - col0 * col2 + col2 * - col2 * col2 AS col2 FROM tab2 AS cor0
----
-19604
-19872
-57874

query I rowsort
SELECT col1 + - cor0.col2 * + col0 * - col1 AS col0 FROM tab2 cor0
----
119711
51051
5890

query I rowsort
SELECT col2 * col1 + - col2 * - cor0.col0 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT ALL + 99 + tab2.col0 FROM tab2
----
106
177
178

query I rowsort
SELECT + - col1 + + col2 * + col2 FROM tab2 AS cor0
----
1427
617
698

onlyif mysql # use DIV operator for integer division
query I rowsort label-8185
SELECT - col0 + col2 DIV + ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-8185
SELECT - col0 + col2 / + ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-25
-36
-90

query I rowsort
SELECT + 99 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT 46 * + tab1.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 1cd935e612b4c432effb9b66fa7bca63

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - 88 * cor0.col2 - 19 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d05801c98d3fe99d7595d6933f29ab39

query I rowsort
SELECT col2 * cor0.col1 - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-124
-1947
357

query I rowsort
SELECT col0 + col2 * ( col1 ) FROM tab1 cor0
----
1328
1407
634

query I rowsort
SELECT - col1 + col0 * ( cor0.col2 ) FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT ALL - col1 - + col0 * cor0.col0 * + col2 AS col2 FROM tab2 AS cor0
----
-1354
-158243
-237175

skipif mysql # not compatible
query I rowsort
SELECT - col2 + col2 * CAST ( - 76 AS REAL ) * col1 FROM tab2 AS cor0
----
-116610
-49134
-63639

query I rowsort
SELECT + + col1 + + col1 * col1 AS col0 FROM tab1 cor0
----
110
182
702

query I rowsort
SELECT + 48 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8197
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1, tab1 cor0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8197
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1, tab1 cor0, tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL + 29 * + col2 AS col2 FROM tab2
----
1102
754
783

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8199
SELECT col2 + col2 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8199
SELECT col2 + col2 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 31 + col0 AS col2 FROM tab0 AS cor0
----
120
55
66

query I rowsort
SELECT ALL 3 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT col1 + col0 * ( + 18 ) FROM tab1 cor0
----
1162
1453
80

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) * 79 + + col1 * + col1 FROM tab2 AS cor0
----
-1054
-1180
-1488

onlyif mysql # use DIV operator for integer division
query I rowsort label-8204
SELECT ALL + - 16 DIV cor0.col0 FROM tab1 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL + - 16 / cor0.col0 FROM tab1 AS cor0
----
-5
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8205
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8205
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT 94 * - col2 AS col1 FROM tab1
----
-5076
-5358
-9024

query I rowsort
SELECT - tab0.col1 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT - col0 * col0 - + col0 FROM tab2 AS cor0
----
-56
-6162
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-8209
SELECT - ( - 98 ) DIV col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8209
SELECT - ( - 98 ) / col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT 2 AS col0 FROM tab2, tab2 cor0
----
2

query I rowsort
SELECT + - 60 * - col0 FROM tab1 AS cor0
----
180
3840
4800

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1, tab1 cor1
----
243 values hashing to 7e12d99d8ab63d9fd10e95cef9d78998

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8213
SELECT DISTINCT CAST( 56 AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT CAST ( 56 AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0
----
56

query I rowsort
SELECT DISTINCT - 42 FROM tab2, tab1 AS cor0
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT ALL ( - col2 + tab1.col0 ) FROM tab1
----
-16
-51
7

query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab2, tab0, tab0 AS cor0
----
90

query I rowsort
SELECT ALL - col2 * tab0.col2 AS col0 FROM tab0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 60 col0 FROM tab2 AS cor0
----
-1560
-1620
-2280

query I rowsort
SELECT DISTINCT + 66 * col2 AS col1 FROM tab2
----
1716
1782
2508

query I rowsort
SELECT DISTINCT tab0.col0 * - col1 - col0 * ( - tab0.col0 + col1 ) AS col2 FROM tab0
----
-3552
-5565
-8277

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8222
SELECT + CAST( NULL AS SIGNED ) - - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8222
SELECT + CAST ( NULL AS INTEGER ) - - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - ( - col0 ) + 47 AS col0 FROM tab0
----
104
218
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 44 col0 FROM tab2
----
1144
1188
1672

query I rowsort
SELECT 10 + col2 AS col2 FROM tab2
----
36
37
48

query I rowsort
SELECT + tab0.col2 + tab0.col1 AS col1 FROM tab0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-8227
SELECT - - col2 + 84 DIV 99 col1 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8227
SELECT - - col2 + 84 / 99 col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT 54 + + col2 AS col1 FROM tab0
----
136
55
87

query I rowsort
SELECT 40 * - col0 AS col1 FROM tab2
----
-280
-3120
-3160

query I rowsort
SELECT DISTINCT - col2 + col2 * - 96 FROM tab0 AS cor0
----
-3201
-7954
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8231
SELECT - ( + col1 ) DIV - 7 AS col0 FROM tab2 cor0
----
2
4
8

skipif mysql # not compatible
query I rowsort label-8231
SELECT - ( + col1 ) / - 7 AS col0 FROM tab2 cor0
----
2
4
8

query I rowsort
SELECT + - col0 + - col2 * col1 FROM tab2 AS cor0
----
-1612
-725
-844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 col2 FROM tab2, tab2 cor0
----
-18

query I rowsort
SELECT - + col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-8235
SELECT ALL - col0 + col2 DIV + col1 AS col2 FROM tab1
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL - col0 + col2 / + col1 AS col2 FROM tab1
----
-1
-59
-73

query I rowsort
SELECT ALL col0 + ( + col1 ) FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-8237
SELECT col2 DIV ( col1 ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8237
SELECT col2 / ( col1 ) AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8238
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - ( - cor0.col2 ) AS col0 FROM tab2 cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8240
SELECT ALL + CAST( col1 AS SIGNED ) * + col1 col2 FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL + CAST ( col1 AS INTEGER ) * + col1 col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT 18 + - 28 * col2 FROM tab2 AS cor0
----
-1046
-710
-738

query I rowsort
SELECT + + 52 AS col0 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT + col2 * 9 FROM tab0 AS cor0
----
297
738
9

query I rowsort
SELECT col0 + cor0.col2 * + col1 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT 23 * - ( + col2 ) FROM tab2 cor0
----
-598
-621
-874

query I rowsort
SELECT ALL ( - col2 ) + col2 * - col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT ALL - ( cor0.col1 ) + col2 * - col0 FROM tab0 AS cor0
----
-132
-7389
-878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 92 col1 FROM tab2 AS cor0
----
-33
-61
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-8249
SELECT DISTINCT + ( - col0 ) DIV - col0 + + col0 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7421
8371
9445

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT + ( - col0 ) / - col0 + + col0 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7421
8371
9445

query I rowsort
SELECT DISTINCT + 95 + - 79 FROM tab2 AS cor0
----
16

query I rowsort
SELECT DISTINCT - 47 * + 40 AS col0 FROM tab2 AS cor0
----
-1880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 col1 FROM tab2 cor0
----
-48
-48
-48

query I rowsort
SELECT - ( - col0 ) * - col1 + + col0 * + col0 FROM tab1 AS cor0
----
-69
3456
5360

query I rowsort
SELECT - cor0.col0 + + cor0.col2 * 69 FROM tab2 AS cor0
----
1716
1856
2543

query I rowsort
SELECT DISTINCT - col1 + col1 + 65 FROM tab0 AS cor0
----
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-8256
SELECT ALL + cor0.col1 * col2 + 55 DIV 34 FROM tab1 cor0
----
1249
1405
571

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL + cor0.col1 * col2 + 55 / 34 FROM tab1 cor0
----
1249
1405
571

query I rowsort
SELECT - + col0 + - cor0.col2 * 42 FROM tab1 AS cor0
----
-2271
-2458
-4112

query I rowsort
SELECT DISTINCT + col2 * - col0 + - ( col2 + col0 ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
-21320
-2673
-71

query I rowsort
SELECT - + 54 - - col0 AS col1 FROM tab2 AS cor0
----
-47
24
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-8260
SELECT ALL + 8 DIV + col1 + - col1 + ( col2 ) * - 77 col2 FROM tab2 AS cor0
----
-2061
-2110
-2943

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL + 8 / + col1 + - col1 + ( col2 ) * - 77 col2 FROM tab2 AS cor0
----
-2061
-2110
-2943

query I rowsort
SELECT ALL col0 + + 90 AS col0 FROM tab0 AS cor0
----
114
125
179

onlyif mysql # use DIV operator for integer division
query I rowsort label-8262
SELECT ALL col0 DIV - ( 8 ) AS col0 FROM tab2 AS cor0
----
-9
-9
0

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL col0 / - ( 8 ) AS col0 FROM tab2 AS cor0
----
-9
-9
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8263
SELECT ALL + 28 DIV 14 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL + 28 / 14 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT col0 + - col0 * + col0 - col0 AS col2 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT + col2 * - col1 - col0 AS col2 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT + 14 * tab1.col2 FROM tab1
----
1344
756
798

query I rowsort
SELECT DISTINCT 11 + - col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1433
-665
-718

query I rowsort
SELECT + + ( + col1 ) + ( 51 ) AS col2 FROM tab0 AS cor0
----
137
142
148

query I rowsort
SELECT DISTINCT + 95 * - col1 FROM tab2 AS cor0
----
-1615
-2945
-5605

query I rowsort
SELECT ALL - 36 * col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-20736
-285156
-44100

query I rowsort
SELECT cor0.col2 + col2 * 27 * - col2 AS col0 FROM tab1 AS cor0
----
-248736
-78678
-87666

onlyif mysql # use DIV operator for integer division
query I rowsort label-8272
SELECT ALL + 83 + + col0 + col0 DIV col1 FROM tab0
----
107
118
172

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL + 83 + + col0 + col0 / col1 FROM tab0
----
107
118
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 38 col0 FROM tab2
----
-40
-41
31

query I rowsort
SELECT ALL + col2 + - col1 + col1 * + ( col1 ) FROM tab0
----
7343
8272
9313

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col0 col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + cor0.col1 - col0 AS col2 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT DISTINCT ( - col2 ) * - col1 * 20 AS col1 FROM tab1 AS cor0
----
11400
24960
28080

query I rowsort
SELECT 36 + col1 AS col0 FROM tab0 AS cor0
----
122
127
133

query I rowsort
SELECT - 98 + col1 * + 75 AS col0 FROM tab0 AS cor0
----
6352
6727
7177

onlyif mysql # use DIV operator for integer division
query I rowsort label-8281
SELECT DISTINCT col2 DIV cor0.col1 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT col2 / cor0.col1 AS col2 FROM tab0 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8282
SELECT + cor0.col0 DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-8282
SELECT + cor0.col0 / cor0.col1 AS col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT ALL - - cor0.col1 * + col0 + col0 - 7 AS col1 FROM tab1 cor0
----
1113
697
74

query I rowsort
SELECT + + 8 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT ALL + col2 + col2 - + col1 AS col1 FROM tab0
----
-20
-95
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-8286
SELECT ALL + col0 + + ( col2 ) DIV + col1 AS col0 FROM tab2 AS cor0
----
7
78
81

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL + col0 + + ( col2 ) / + col1 AS col0 FROM tab2 AS cor0
----
7
78
81

query I rowsort
SELECT - - cor0.col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - col2 + col0 * col1 FROM tab0 cor0
----
2031
3394
8017

query I rowsort
SELECT + cor0.col1 * + 31 - 37 FROM tab2 cor0
----
1792
490
924

onlyif mysql # use DIV operator for integer division
query I rowsort label-8290
SELECT - cor0.col2 + + cor0.col0 * col0 DIV col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-8290
SELECT - cor0.col2 + + cor0.col0 * col0 / col0 AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL - col1 * 85 * ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-54400
-6630
-88400

query I rowsort
SELECT DISTINCT + col0 + - 59 AS col2 FROM tab1
----
-56
21
5

query I rowsort
SELECT col1 * col0 + col0 * col2 + + 63 FROM tab2 cor0
----
4408
469
6693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * - col2 col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT ALL - - col1 * + col1 * col2 + + col0 AS col1 FROM tab1 AS cor0
----
16304
36507
5764

query I rowsort
SELECT ALL cor0.col0 * + 18 AS col1 FROM tab1 AS cor0
----
1152
1440
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8297
SELECT ( + col1 ) * col1 - CAST( NULL AS SIGNED ) * 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8297
SELECT ( + col1 ) * col1 - CAST ( NULL AS INTEGER ) * 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 42 * 79 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-10780
-3415
-6156

query I rowsort
SELECT + cor1.col2 AS col2 FROM tab0, tab2 cor0, tab2, tab0 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT + col1 * 94 FROM tab1
----
1222
2444
940

onlyif mysql # use DIV operator for integer division
query I rowsort label-8301
SELECT 73 DIV col0 + - col2 * col1 FROM tab1 AS cor0
----
-1248
-1380
-569

skipif mysql # not compatible
query I rowsort label-8301
SELECT 73 / col0 + - col2 * col1 FROM tab1 AS cor0
----
-1248
-1380
-569

query I rowsort
SELECT - 57 AS col1 FROM tab2 cor0
----
-57
-57
-57

query I rowsort
SELECT ALL + ( col0 ) * + col1 - + col2 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT ALL - col0 + col2 + col0 * - 39 AS col2 FROM tab2 AS cor0
----
-253
-3094
-3122

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 * col0 col2 FROM tab0 AS cor0
----
-1608
-2345
-5963

query I rowsort
SELECT - + 17 + col2 AS col2 FROM tab2 AS cor0
----
10
21
9

query I rowsort
SELECT ALL - ( + 87 ) * col0 + - 36 * - col0 AS col0 FROM tab1 AS cor0
----
-153
-3264
-4080

query I rowsort
SELECT + col0 * 27 * - col2 + - col1 + cor0.col0 * + col2 AS col0 FROM tab2 AS cor0
----
-4945
-52787
-78069

query I rowsort
SELECT col2 * + col2 + col0 * col2 FROM tab0 AS cor0
----
14022
1881
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-8310
SELECT + - ( - col1 ) DIV 20 FROM tab0 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-8310
SELECT + - ( - col1 ) / 20 FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT 91 FROM tab1, tab1 cor0
----
91

query I rowsort
SELECT + + ( - col2 ) * cor0.col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT 75 + col1 + col2 AS col1 FROM tab1
----
142
155
184

query I rowsort
SELECT DISTINCT - - col0 * - col2 + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8315
SELECT DISTINCT cor0.col2 * + CAST( NULL AS SIGNED ) - col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8315
SELECT DISTINCT cor0.col2 * + CAST ( NULL AS INTEGER ) - col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col2 * tab2.col2 - - col1 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT ALL + cor0.col0 FROM tab2, tab2 cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to 455e4df3bf7b0fa681c56e89df1a761f

query I rowsort
SELECT ALL ( 83 ) - - cor0.col0 * ( + 81 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 9e9a6d8b138950b94b86c85803134d05

query I rowsort
SELECT DISTINCT - col0 - + ( col1 ) * tab0.col0 FROM tab0
----
-2088
-3430
-8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-8320
SELECT col1 DIV ( + tab2.col1 ) AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8320
SELECT col1 / ( + tab2.col1 ) AS col0 FROM tab2
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8321
SELECT DISTINCT col1 + CAST( col0 AS SIGNED ) * col1 AS col2 FROM tab1
----
104
1053
650

skipif mysql # not compatible
query I rowsort label-8321
SELECT DISTINCT col1 + CAST ( col0 AS INTEGER ) * col1 AS col2 FROM tab1
----
104
1053
650

query I rowsort
SELECT col1 * 95 + + col0 + - col0 FROM tab0
----
8170
8645
9215

query I rowsort
SELECT DISTINCT + col0 + - col0 * tab0.col1 AS col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT ( col0 ) - col0 * + col0 * - cor0.col2 FROM tab0 AS cor0
----
1260
19032
649611

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 - col2 col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT + tab1.col2 + - col0 AS col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT - col2 + - col1 * 87 AS col2 FROM tab0 cor0
----
-7515
-7999
-8440

query I rowsort
SELECT 60 * + 90 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 1bb92b37cce320beb5c2c8a9675f6daf

query I rowsort
SELECT ALL 79 * - 47 FROM tab2, tab2 AS cor0
----
9 values hashing to 9babbb4d3d127463a1345028bd2b5b30

query I rowsort
SELECT + col2 + + ( cor0.col1 * col1 ) FROM tab0 AS cor0
----
7429
8363
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-8331
SELECT DISTINCT - col1 DIV - 20 AS col1 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT - col1 / - 20 AS col1 FROM tab0 AS cor0
----
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8332
SELECT - cor0.col2 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8332
SELECT - cor0.col2 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - 98 ) * + col0 FROM tab1 AS cor0
----
-294
-6272
-7840

onlyif mysql # use DIV operator for integer division
query I rowsort label-8334
SELECT DISTINCT col1 * col2 * col2 + - cor0.col2 DIV col1 FROM tab0 AS cor0
----
611884
93654
97

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT col1 * col2 * col2 + - cor0.col2 / col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT + cor0.col1 * + 36 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 76914f330847d0243812dd0ae2e4649e

onlyif mysql # use DIV operator for integer division
query I rowsort label-8336
SELECT DISTINCT + + col2 DIV - col1 + - col1 * - col2 + col1 * col1 * + CAST( col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
23475
273052
7564

skipif mysql # not compatible
query I rowsort label-8336
SELECT DISTINCT + + col2 / - col1 + - col1 * - col2 + col1 * col1 * + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
23475
273052
7564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 + + ( col0 ) col2 FROM tab1 AS cor0
----
140
156
79

query I rowsort
SELECT DISTINCT ( + cor0.col1 ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8339
SELECT CAST( NULL AS SIGNED ) * + ( + col2 * col2 ) col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8339
SELECT CAST ( NULL AS INTEGER ) * + ( + col2 * col2 ) col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 81 AS col1 FROM tab0, tab2 cor0, tab1 cor1
----
81

query I rowsort
SELECT DISTINCT - ( col2 * col2 ) FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT + col1 * ( cor0.col0 ) FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - cor0.col2 + - 53 FROM tab2 AS cor0
----
-79
-80
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8345
SELECT ALL + col2 * - CAST( - 48 AS SIGNED ) FROM tab0 AS cor0
----
1584
3936
48

skipif mysql # not compatible
query I rowsort label-8345
SELECT ALL + col2 * - CAST ( - 48 AS INTEGER ) FROM tab0 AS cor0
----
1584
3936
48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8346
SELECT - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8346
SELECT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col0 + - col1 * col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT ALL + col2 * col2 - - col0 AS col2 FROM tab2
----
1523
736
754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8349
SELECT + CAST( 11 AS SIGNED ) col2 FROM tab0, tab1 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8349
SELECT + CAST ( 11 AS INTEGER ) col2 FROM tab0, tab1 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT ALL + tab1.col1 * 12 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 20e99b3671400d7356e2e71b6c1fd6c8

query I rowsort
SELECT DISTINCT - 17 + cor0.col2 FROM tab1, tab0 AS cor0
----
-16
16
65

query I rowsort
SELECT + col0 + col2 * ( + tab2.col1 ) FROM tab2
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - ( ( + col0 ) ) col0 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT ALL + col0 * + 12 AS col0 FROM tab1 AS cor0
----
36
768
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-8355
SELECT DISTINCT - col1 + - cor0.col1 + - col1 DIV cor0.col1 AS col1 FROM tab2 cor0
----
-119
-35
-63

skipif mysql # not compatible
query I rowsort label-8355
SELECT DISTINCT - col1 + - cor0.col1 + - col1 / cor0.col1 AS col1 FROM tab2 cor0
----
-119
-35
-63

query I rowsort
SELECT ALL - col0 + - 61 * 71 AS col2 FROM tab2 AS cor0
----
-4338
-4409
-4410

onlyif mysql # use DIV operator for integer division
query I rowsort label-8357
SELECT tab0.col0 DIV 74 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8357
SELECT tab0.col0 / 74 FROM tab0
----
0
0
1

query I rowsort
SELECT 20 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT + + 79 * - col1 FROM tab1 cor0
----
-1027
-2054
-790

onlyif mysql # use DIV operator for integer division
query I rowsort label-8360
SELECT + ( - col2 ) DIV col0 - col2 FROM tab0
----
-1
-34
-82

skipif mysql # not compatible
query I rowsort label-8360
SELECT + ( - col2 ) / col0 - col2 FROM tab0
----
-1
-34
-82

query I rowsort
SELECT - col2 - 71 AS col0 FROM tab0
----
-104
-153
-72

query I rowsort
SELECT - col0 * + col0 * - ( cor0.col1 ) - col0 FROM tab1 AS cor0
----
231
40896
83120

query I rowsort
SELECT + 45 * col0 FROM tab0 AS cor0
----
1080
1575
4005

query I rowsort
SELECT col2 * col1 - ( 87 + + cor0.col2 ) * - col0 AS col1 FROM tab1 AS cor0
----
15888
1827
9786

query I rowsort
SELECT tab1.col0 + col0 * + 75 + col2 AS col0 FROM tab1
----
282
4921
6176

query I rowsort
SELECT DISTINCT + col2 * + tab2.col1 * + col2 + col2 + + col2 FROM tab2
----
22653
24624
39936

query I rowsort
SELECT DISTINCT + - col2 + + cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT - 26 * - col1 + + col0 FROM tab1 AS cor0
----
324
418
679

query I rowsort
SELECT cor0.col0 * cor0.col1 - col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL + col2 + col1 * + ( + col0 ) * col0 AS col2 FROM tab2 AS cor0
----
106135
1546
358982

onlyif mysql # use DIV operator for integer division
query I rowsort label-8371
SELECT ALL - - 16 DIV col0 FROM tab1 cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL - - 16 / col0 FROM tab1 cor0
----
0
0
5

query I rowsort
SELECT ALL + col1 * col2 * ( + col1 ) + col2 FROM tab1 AS cor0
----
16320
36558
5757

query I rowsort
SELECT + - col2 + col2 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + - 68 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-122
-125
-164

query I rowsort
SELECT ALL + col2 + - 59 - col1 AS col1 FROM tab1 cor0
----
-12
-31
24

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( + 79 AS REAL ) * - cor0.col0 FROM tab2 AS cor0
----
553
6162
6241

query I rowsort
SELECT + - ( - col0 ) + - cor0.col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT 18 * - col2 AS col2 FROM tab1
----
-1026
-1728
-972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 col0 FROM tab0, tab2 AS cor0
----
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-8380
SELECT + - cor0.col0 DIV - col2 col0 FROM tab0 AS cor0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8380
SELECT + - cor0.col0 / - col2 col0 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT - 86 + col2 * 37 + 61 AS col0 FROM tab1 AS cor0
----
1973
2084
3527

query I rowsort
SELECT - col2 + + col0 * col1 AS col2 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-8383
SELECT ALL tab0.col0 DIV - col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL tab0.col0 / - col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 44 AS REAL ) * + col1 AS col1 FROM tab1
----
1144
440
572

query I rowsort
SELECT ALL + ( - ( - col1 ) ) * 81 + col2 AS col0 FROM tab1
----
1149
2160
867

query I rowsort
SELECT - - col2 + col2 * col1 AS col0 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT ALL - cor0.col0 * col1 - col2 FROM tab2 AS cor0
----
-1381
-244
-4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8388
SELECT + + col1 * + CAST( - 97 * col0 AS SIGNED ) FROM tab2 AS cor0
----
-130271
-21049
-446394

skipif mysql # not compatible
query I rowsort label-8388
SELECT + + col1 * + CAST ( - 97 * col0 AS INTEGER ) FROM tab2 AS cor0
----
-130271
-21049
-446394

query I rowsort
SELECT DISTINCT col1 * + ( + col0 ) FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-8390
SELECT DISTINCT - col2 DIV - ( 18 * col2 ) col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8390
SELECT DISTINCT - col2 / - ( 18 * col2 ) col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col2 + 28 * col0 FROM tab2 cor0
----
2210
223
2250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 27 * - 55 * + col0 col2 FROM tab0 AS cor0
----
-132074
-35554
-51878

query I rowsort
SELECT DISTINCT col2 * + 33 - col1 * - col0 AS col1 FROM tab0 AS cor0
----
10805
3153
3428

query I rowsort
SELECT DISTINCT - + col0 * + col2 + + col0 + col1 * 18 FROM tab2 AS cor0
----
-2617
-888
376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 44 - - col1 col2 FROM tab0 AS cor0
----
1142
1637
4007

query I rowsort
SELECT col2 + col0 * + col1 * - col0 AS col1 FROM tab2
----
-106059
-1492
-358930

query I rowsort
SELECT + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT col2 - + 24 AS col2 FROM tab2 AS cor0
----
14
2
3

query I rowsort
SELECT ALL - col1 * - 34 + col2 * col2 + cor0.col1 FROM tab0 AS cor0
----
3396
4099
9909

query I rowsort
SELECT col0 + - 19 FROM tab2 AS cor0
----
-12
59
60

query I rowsort
SELECT DISTINCT + cor0.col2 * 23 AS col0 FROM tab2 cor0
----
598
621
874

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8402
SELECT ALL col1 + - ( - col2 ) * + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8402
SELECT ALL col1 + - ( - col2 ) * + col2 * 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-8403
SELECT DISTINCT - col2 + + col0 + tab1.col2 DIV col2 FROM tab1
----
-15
-50
8

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT - col2 + + col0 + tab1.col2 / col2 FROM tab1
----
-15
-50
8

query I rowsort
SELECT + col1 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + ( - col2 ) * col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 + - 55 col2 FROM tab1, tab0 AS cor0
----
28

query I rowsort
SELECT ALL col2 * - 36 * - col1 AS col1 FROM tab1
----
20520
44928
50544

query I rowsort
SELECT + + 5 * - col0 + - col2 AS col0 FROM tab1 AS cor0
----
-377
-496
-69

query I rowsort
SELECT + col2 + - 91 FROM tab2 AS cor0
----
-53
-64
-65

query I rowsort
SELECT + cor0.col2 * + cor0.col2 + - col0 AS col1 FROM tab2 AS cor0
----
1365
598
722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 + col2 col0 FROM tab1 cor0
----
-2862
-3192
-9120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8412
SELECT + + col0 + col1 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8412
SELECT + + col0 + col1 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8413
SELECT DISTINCT - 65 - + cor0.col2 DIV + col2 FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT - 65 - + cor0.col2 / + col2 FROM tab1 cor0
----
-66

query I rowsort
SELECT DISTINCT - 65 + + col0 AS col2 FROM tab1 AS cor0
----
-1
-62
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-8415
SELECT 16 DIV + col0 + ( col2 ) FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-8415
SELECT 16 / + col0 + ( col2 ) FROM tab0 cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8416
SELECT 69 * col2 DIV ( 89 ) FROM tab0 AS cor0
----
0
25
63

skipif mysql # not compatible
query I rowsort label-8416
SELECT 69 * col2 / ( 89 ) FROM tab0 AS cor0
----
0
25
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-8417
SELECT DISTINCT + col1 DIV + cor0.col1 AS col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8417
SELECT DISTINCT + col1 / + cor0.col1 AS col1 FROM tab1 cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8418
SELECT ALL col1 + - col1 DIV + col0 FROM tab0 AS cor0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL col1 + - col1 / + col0 FROM tab0 AS cor0
----
83
90
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-8419
SELECT - col1 DIV 19 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8419
SELECT - col1 / 19 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT + col0 + + 49 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
1330
1352
1941

onlyif mysql # use DIV operator for integer division
query I rowsort label-8421
SELECT - col2 DIV 84 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8421
SELECT - col2 / 84 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 col2 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT - ( col2 ) + + col0 + col0 AS col2 FROM tab0 AS cor0
----
15
69
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8424
SELECT + CAST( - col1 AS SIGNED ) * - tab2.col2 - - col1 AS col0 FROM tab2
----
1593
663
868

skipif mysql # not compatible
query I rowsort label-8424
SELECT + CAST ( - col1 AS INTEGER ) * - tab2.col2 - - col1 AS col0 FROM tab2
----
1593
663
868

query I rowsort
SELECT - 90 + - col0 FROM tab0 AS cor0
----
-114
-125
-179

query I rowsort
SELECT ALL + + 7 * - col2 AS col1 FROM tab2 AS cor0
----
-182
-189
-266

query I rowsort
SELECT ALL cor0.col0 + cor0.col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL + cor0.col0 + + col1 AS col2 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT - 38 - 29 AS col1 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

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 + col2 - - 58 FROM tab0
----
140
59
91

query I rowsort
SELECT - col2 * ( - col2 ) + 70 * cor0.col0 AS col0 FROM tab0 cor0
----
12954
2451
2769

query I rowsort
SELECT DISTINCT - + 54 + 5 * col2 AS col2 FROM tab0 AS cor0
----
-49
111
356

query I rowsort
SELECT DISTINCT - - col2 + - col0 * col2 + col1 AS col2 FROM tab0 AS cor0
----
-673
-7125
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8435
SELECT + 82 + - col2 * col0 - - CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8435
SELECT + 82 + - col2 * col0 - - CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + cor0.col2 + - col1 + + col2 AS col0 FROM tab0 AS cor0
----
1
2785
7453

query I rowsort
SELECT ALL - - col0 + 10 * - col0 + cor0.col2 FROM tab1 AS cor0
----
-519
-624
27

query I rowsort
SELECT 48 - col2 * col0 FROM tab0 cor0
----
-7250
-744
13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8439
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * 58 - col1 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8439
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 58 - col1 AS col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 55 ) col0 FROM tab2 cor0
----
55

query I rowsort
SELECT ALL + cor0.col0 - 7 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f788bbbfd9050d41f97ad44e54b78cf5

query I rowsort
SELECT - col2 + - col0 - + col0 AS col0 FROM tab2
----
-182
-196
-41

query I rowsort
SELECT DISTINCT - col2 - + col2 * - col1 * col1 FROM tab0
----
244035
678960
9408

query I rowsort
SELECT DISTINCT - col0 * tab1.col1 + - col0 * col2 FROM tab1
----
-240
-4288
-8720

query I rowsort
SELECT ALL + col0 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - col2 + - col0 + - cor0.col2 AS col2 FROM tab0 cor0
----
-253
-37
-90

query I rowsort
SELECT ALL + col1 * 68 + col0 * + ( ( col2 ) ) FROM tab2
----
2297
4158
6040

query I rowsort
SELECT ALL - tab0.col1 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8449
SELECT + CAST( NULL AS SIGNED ) * - col0 col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8449
SELECT + CAST ( NULL AS INTEGER ) * - col0 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 + + col2 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT ALL + + cor0.col2 * col0 * cor0.col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL - 64 * + col0 * + 43 AS col0 FROM tab1
----
-176128
-220160
-8256

query I rowsort
SELECT + - col1 * col2 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + 8 col2 FROM tab2 AS cor0
----
25
39
67

query I rowsort
SELECT ALL - + col0 * col2 + + 77 * - col1 FROM tab1 AS cor0
----
-2164
-4418
-8681

query I rowsort
SELECT DISTINCT + cor0.col2 * 98 AS col2 FROM tab0 AS cor0
----
3234
8036
98

query I rowsort
SELECT ALL + col1 + + col1 * - col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT + - cor0.col0 * + ( + ( - tab0.col0 ) ) AS col0 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 04f88c53da1ccbc3b901792896e5cdd4

query I rowsort
SELECT ALL - col1 + + ( col2 ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + col1 + - 63 FROM tab1 AS cor0
----
-37
-50
-53

query I rowsort
SELECT ALL + cor0.col1 - + ( 91 ) * col1 AS col1 FROM tab2 cor0
----
-1530
-2790
-5310

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8462
SELECT DISTINCT col0 * CAST( col2 * - col2 AS SIGNED ) FROM tab0 AS cor0
----
-26136
-35
-598436

skipif mysql # not compatible
query I rowsort label-8462
SELECT DISTINCT col0 * CAST ( col2 * - col2 AS INTEGER ) FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT + col2 * + col0 + 46 + - col2 FROM tab2 AS cor0
----
2048
208
3010

query I rowsort
SELECT - - col0 * col1 + col0 AS col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + + cor0.col2 * - 88 AS col1 FROM tab1 AS cor0
----
-4752
-5016
-8448

onlyif mysql # use DIV operator for integer division
query I rowsort label-8466
SELECT + tab0.col1 DIV tab0.col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8466
SELECT + tab0.col1 / tab0.col1 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 + + 51 col1 FROM tab2
----
2079
240
3053

query I rowsort
SELECT 64 + - col2 * col2 FROM tab2 AS cor0
----
-1380
-612
-665

query I rowsort
SELECT DISTINCT - col1 * - col1 + + col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT + - 3 AS col1 FROM tab1 AS cor0
----
-3
-3
-3

query I rowsort
SELECT ALL + - 41 * col2 * col2 + + 91 * col1 AS col1 FROM tab0 AS cor0
----
-267403
-36823
8786

query I rowsort
SELECT DISTINCT - - col2 + col1 * ( col1 ) FROM tab2 cor0
----
327
3507
988

query I rowsort
SELECT ALL - + col1 * - 53 FROM tab0 AS cor0
----
4558
4823
5141

query I rowsort
SELECT ALL col1 * 75 + - 3 AS col0 FROM tab1 AS cor0
----
1947
747
972

query I rowsort
SELECT col1 * - cor0.col2 + + 52 * - col1 * - 23 + 58 AS col0 FROM tab0 AS cor0
----
100076
101432
115973

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + ( - col0 ) col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + - col2 + + cor0.col2 * - col2 + col2 * col2 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8478
SELECT DISTINCT - + cor0.col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT DISTINCT - + cor0.col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - - cor0.col1 AS col2 FROM tab0, tab2, tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-8481
SELECT DISTINCT + 0 DIV tab1.col0 + 62 DIV col0 FROM tab1
----
0
20

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT + 0 / tab1.col0 + 62 / col0 FROM tab1
----
0
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-8482
SELECT 11 DIV col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8482
SELECT 11 / col1 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8483
SELECT + tab1.col2 DIV col0 + ( + 70 ) + col0 AS col1 FROM tab1
----
134
151
91

skipif mysql # not compatible
query I rowsort label-8483
SELECT + tab1.col2 / col0 + ( + 70 ) + col0 AS col1 FROM tab1
----
134
151
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-8484
SELECT - col2 * col0 DIV cor0.col0 - col2 DIV cor0.col0 FROM tab0 cor0
----
-1
-34
-82

skipif mysql # not compatible
query I rowsort label-8484
SELECT - col2 * col0 / cor0.col0 - col2 / cor0.col0 FROM tab0 cor0
----
-1
-34
-82

query I rowsort
SELECT ALL col0 + 74 AS col2 FROM tab0 AS cor0
----
109
163
98

query I rowsort
SELECT ALL - col1 + + 98 - + col0 FROM tab0 AS cor0
----
-12
-34
-82

query I rowsort
SELECT ALL - 21 * col0 FROM tab2 cor0
----
-147
-1638
-1659

onlyif mysql # use DIV operator for integer division
query I rowsort label-8488
SELECT DISTINCT - - col0 - + cor0.col2 DIV - col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-8488
SELECT DISTINCT - - col0 - + cor0.col2 / - col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - - 21 + + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-33
-36
-75

query I rowsort
SELECT + col1 + 87 FROM tab0 cor0
----
173
178
184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + 30 * + cor0.col1 col1 FROM tab2 AS cor0
----
1848
589
937

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + 9 col2 FROM tab0 AS cor0
----
10
42
91

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( 6 AS REAL ) * col1 + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
140
213
380

query I rowsort
SELECT ( - col1 ) * + col0 + ( + col2 ) * + col0 AS col0 FROM tab0 AS cor0
----
-1272
-3360
-801

query I rowsort
SELECT 43 * col1 AS col1 FROM tab0 AS cor0
----
3698
3913
4171

query I rowsort
SELECT ALL 5 + col0 AS col1 FROM tab2 AS cor0
----
12
83
84

query I rowsort
SELECT + - 74 * - col1 AS col1 FROM tab2 AS cor0
----
1258
2294
4366

query I rowsort
SELECT DISTINCT + col2 * col0 + - cor0.col1 - + ( col1 ) * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1512
-803
2696

query I rowsort
SELECT + cor0.col2 * 0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * + col2 + col1 + + col2 AS col2 FROM tab2 AS cor0
----
2113
247
3057

query I rowsort
SELECT ALL - 8 * cor0.col2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 133027b7616524290ec6272746bccede

query I rowsort
SELECT ALL + 20 * + col1 AS col1 FROM tab0 AS cor0
----
1720
1820
1940

query I rowsort
SELECT 19 AS col0 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to 39241ace4c29d5a55052e1665aa36823

query I rowsort
SELECT - 14 * + col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-17472
-19656
-7980

query I rowsort
SELECT - + 60 * - col2 AS col1 FROM tab0 AS cor0
----
1980
4920
60

query I rowsort
SELECT ALL - ( - col1 ) * + col1 AS col2 FROM tab2
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 + col1 col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT + 11 + + col0 * 14 FROM tab2 AS cor0
----
109
1103
1117

query I rowsort
SELECT ALL + 36 * col0 + col2 FROM tab2 AS cor0
----
279
2834
2882

query I rowsort
SELECT ALL cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + col2 + + cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8512
SELECT - col0 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8512
SELECT - col0 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8513
SELECT ALL - + cor0.col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL - + cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + col0 * col2 + col0 FROM tab2 AS cor0
----
203
2184
3160

query I rowsort
SELECT DISTINCT 84 * + col1 FROM tab1
----
1092
2184
840

query I rowsort
SELECT + ( - tab1.col2 ) * col0 AS col2 FROM tab1
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 col2 FROM tab1, tab1 AS cor0
----
-50

query I rowsort
SELECT ALL - col0 + 18 AS col2 FROM tab1 AS cor0
----
-46
-62
15

query I rowsort
SELECT cor1.col0 AS col0 FROM tab2, tab2 cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT DISTINCT + cor0.col0 * + col2 - cor0.col1 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-8521
SELECT DISTINCT + col0 + 46 DIV + 11 FROM tab1 cor0
----
68
7
84

skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT + col0 + 46 / + 11 FROM tab1 cor0
----
68
7
84

query I rowsort
SELECT ALL + col0 + 30 - + col0 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT ALL + col2 - 9 * 82 AS col1 FROM tab1 cor0
----
-642
-681
-684

query I rowsort
SELECT DISTINCT - col2 * ( - ( - col2 ) ) FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + col2 * + col1 + col1 - col0 FROM tab0 AS cor0
----
159
2900
7464

query I rowsort
SELECT DISTINCT + cor0.col2 + - col2 FROM tab1 cor0
----
0

query I rowsort
SELECT + - col2 + ( - col2 ) * - col1 AS col0 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT - + col0 * - ( - 28 ) AS col2 FROM tab1 AS cor0
----
-1792
-2240
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-8529
SELECT + col2 + - col1 DIV col2 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8529
SELECT + col2 + - col1 / col2 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL col1 * col2 + col0 * col2 AS col0 FROM tab0
----
132
14760
3630

query I rowsort
SELECT + - col0 + 84 FROM tab1 AS cor0
----
20
4
81

query I rowsort
SELECT - col1 * 93 FROM tab1 AS cor0
----
-1209
-2418
-930

query I rowsort
SELECT - 46 * col2 FROM tab2 AS cor0
----
-1196
-1242
-1748

query I rowsort
SELECT DISTINCT 61 * - col0 * + 12 AS col1 FROM tab1
----
-2196
-46848
-58560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col1 * + col2 + + col1 col0 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT cor1.col0 - cor0.col0 AS col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to e8dd2959e2228f8723e3078da7a875e6

query I rowsort
SELECT DISTINCT + cor0.col1 + - col1 FROM tab0 cor0
----
0

query I rowsort
SELECT ( cor1.col1 ) AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - col1 + - col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT + col2 + + col1 * - 94 FROM tab2 cor0
----
-1560
-2887
-5520

query I rowsort
SELECT ALL - col1 * col2 + + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL - - 43 + + col0 AS col2 FROM tab0 AS cor0
----
132
67
78

query I rowsort
SELECT DISTINCT + 54 * - col1 FROM tab2 AS cor0
----
-1674
-3186
-918

query I rowsort
SELECT + - col0 + - col0 * - col0 * - col1 FROM tab1 AS cor0
----
-237
-41024
-83280

query I rowsort
SELECT DISTINCT + 45 * col0 FROM tab1 AS cor0
----
135
2880
3600

query I rowsort
SELECT - + cor0.col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT col1 * 4 * + 94 FROM tab2 AS cor0
----
11656
22184
6392

query I rowsort
SELECT col2 * - cor0.col2 * cor0.col0 AS col2 FROM tab0 cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT - + cor0.col2 + - col0 * + col0 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT col0 * col0 - + col2 * col1 AS col2 FROM tab2
----
-788
4550
5595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 79 col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 * - cor0.col2 col1 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL + - col2 + col0 * - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT ALL 38 * 32 * - col1 FROM tab1
----
-12160
-15808
-31616

onlyif mysql # use DIV operator for integer division
query I rowsort label-8555
SELECT col1 + + 69 DIV + tab0.col0 AS col1 FROM tab0
----
88
91
98

skipif mysql # not compatible
query I rowsort label-8555
SELECT col1 + + 69 / + tab0.col0 AS col1 FROM tab0
----
88
91
98

query I rowsort
SELECT - ( 12 ) * col0 AS col1 FROM tab1 AS cor0
----
-36
-768
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col0 + + col0 col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - 23 - + col1 AS col0 FROM tab0 AS cor0
----
-109
-114
-120

query I rowsort
SELECT ALL - + col1 + + 21 * col1 * - col0 FROM tab1 cor0
----
-13450
-1664
-21853

query I rowsort
SELECT DISTINCT col0 * cor0.col0 + col2 * - cor0.col1 + - col1 AS col1 FROM tab0 AS cor0
----
-2348
1031
368

query I rowsort
SELECT DISTINCT cor0.col2 * col2 + cor0.col2 * col0 FROM tab1 cor0
----
16896
3078
6897

query I rowsort
SELECT ALL + col0 * col0 + cor0.col2 + cor0.col1 FROM tab2 AS cor0
----
107
6169
6296

query I rowsort
SELECT DISTINCT ( + 39 + col1 ) FROM tab0
----
125
130
136

onlyif mysql # use DIV operator for integer division
query I rowsort label-8564
SELECT ALL 0 DIV col2 + tab1.col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL 0 / col2 + tab1.col2 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8565
SELECT DISTINCT col2 + 41 DIV + tab2.col0 FROM tab2
----
26
32
38

skipif mysql # not compatible
query I rowsort label-8565
SELECT DISTINCT col2 + 41 / + tab2.col0 FROM tab2
----
26
32
38

query I rowsort
SELECT - ( - col0 ) * - 19 FROM tab1 cor0
----
-1216
-1520
-57

query I rowsort
SELECT DISTINCT col2 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + cor0.col0 * col1 * col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL + ( - ( col2 ) ) + col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col0 + ( col2 ) AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT + 93 AS col1 FROM tab0, tab2 AS cor0
----
93

query I rowsort
SELECT + 70 * col1 - col2 AS col0 FROM tab1
----
1766
643
814

query I rowsort
SELECT ALL cor0.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

query I rowsort
SELECT + 40 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 09624b9180d40f03a4dda4b4c17356c0

query I rowsort
SELECT DISTINCT ( - cor0.col1 ) FROM tab0, tab1 AS cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8577
SELECT - ( + col2 ) + col0 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8577
SELECT - ( + col2 ) + col0 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * 65 AS col0 FROM tab2 cor0
----
1105
2015
3835

query I rowsort
SELECT ALL - 86 AS col0 FROM tab2
----
-86
-86
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8580
SELECT ALL CAST( NULL AS SIGNED ) + + col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 75 AS col0 FROM tab2, tab1, tab0 cor0
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59

query I rowsort
SELECT ALL - col2 * col2 + + 27 AS col2 FROM tab1
----
-2889
-3222
-9189

query I rowsort
SELECT DISTINCT 31 + col0 + col2 AS col1 FROM tab2 AS cor0
----
135
148
65

query I rowsort
SELECT ALL 97 * col1 + 71 FROM tab1 AS cor0
----
1041
1332
2593

query I rowsort
SELECT col1 * + tab2.col0 * 23 AS col2 FROM tab2
----
105846
30889
4991

query I rowsort
SELECT - tab1.col0 * tab1.col2 * - 91 AS col1 FROM tab1
----
14742
331968
698880

query I rowsort
SELECT - + col2 * - col1 FROM tab2 cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8588
SELECT + col1 * + CAST( + cor0.col1 AS SIGNED ) FROM tab0 cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-8588
SELECT + col1 * + CAST ( + cor0.col1 AS INTEGER ) FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ( + 0 ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL col2 * + 20 AS col1 FROM tab2 AS cor0
----
520
540
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-8591
SELECT - + cor0.col1 DIV col1 + + col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-8591
SELECT - + cor0.col1 / col1 + + col0 FROM tab2 AS cor0
----
6
77
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8592
SELECT + col1 + col0 DIV - col0 AS col0 FROM tab2 cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-8592
SELECT + col1 + col0 / - col0 AS col0 FROM tab2 cor0
----
16
30
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * col2 col0 FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-8594
SELECT + - col2 DIV + 51 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8594
SELECT + - col2 / + 51 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8595
SELECT + col2 + + ( + col0 ) + + col1 DIV - 41 AS col2 FROM tab2 AS cor0
----
103
117
34

skipif mysql # not compatible
query I rowsort label-8595
SELECT + col2 + + ( + col0 ) + + col1 / - 41 AS col2 FROM tab2 AS cor0
----
103
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 61 col2 FROM tab1
----
1586
610
793

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 32 * - col2 col0 FROM tab0
----
-2533
-970
65

query I rowsort
SELECT DISTINCT - col0 * ( + ( col2 ) * - col0 ) AS col0 FROM tab0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-8599
SELECT DISTINCT + col2 DIV + tab1.col1 AS col0 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-8599
SELECT DISTINCT + col2 / + tab1.col1 AS col0 FROM tab1
----
2
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-8600
SELECT col1 + - col0 DIV - col1 FROM tab2 AS cor0
----
21
31
60

skipif mysql # not compatible
query I rowsort label-8600
SELECT col1 + - col0 / - col1 FROM tab2 AS cor0
----
21
31
60

query I rowsort
SELECT - cor0.col0 * + ( col2 ) FROM tab0 cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 * - cor1.col1 col0 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to f74edbb2c01256f2300c17c9f06f84eb

query I rowsort
SELECT + cor0.col0 + 94 * col2 AS col1 FROM tab0 AS cor0
----
129
3126
7797

onlyif mysql # use DIV operator for integer division
query I rowsort label-8604
SELECT + - col2 + col0 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-8604
SELECT + - col2 + col0 / cor0.col1 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8605
SELECT + 24 DIV - ( cor0.col0 ) FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8605
SELECT + 24 / - ( cor0.col0 ) FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8606
SELECT - CAST( NULL AS DECIMAL ) * - col1 * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8606
SELECT - CAST ( NULL AS REAL ) * - col1 * - col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8607
SELECT ALL + CAST( NULL AS SIGNED ) + 29 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-8607
SELECT ALL + CAST ( NULL AS INTEGER ) + 29 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

onlyif mysql # use DIV operator for integer division
query I rowsort label-8608
SELECT ALL + - col2 + 95 DIV + col0 AS col2 FROM tab0 cor0
----
-30
-81
1

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL + - col2 + 95 / + col0 AS col2 FROM tab0 cor0
----
-30
-81
1

query I rowsort
SELECT + col2 + - ( - col2 ) FROM tab2 cor0
----
52
54
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8610
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8610
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 + col2 * ( col2 ) FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT + + col2 + col1 * ( col2 ) AS col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL + 13 * - col2 + - col2 + cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
2376
6314
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-8614
SELECT 39 DIV + cor0.col2 - - col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8614
SELECT 39 / + cor0.col2 - - col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + col0 + + 44 * col2 FROM tab1
----
2379
2572
4304

onlyif mysql # use DIV operator for integer division
query I rowsort label-8616
SELECT - col0 * col2 DIV + col1 AS col2 FROM tab1
----
-364
-590
-6

skipif mysql # not compatible
query I rowsort label-8616
SELECT - col0 * col2 / + col1 AS col2 FROM tab1
----
-364
-590
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 57 col0 FROM tab1 AS cor0
----
67
70
83

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * cor0.col0 + col2 >= NULL OR ( NULL ) IN ( - cor0.col2 )
----

query I rowsort
SELECT ALL cor0.col2 + col2 * col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL + + cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - col2 - + col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT ALL + - cor0.col0 + col2 * col0 + col2 AS col0 FROM tab2 AS cor0
----
1976
209
2961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - cor0.col0 * - col2 * col0 col1 FROM tab0 AS cor0
----
1260
19032
649611

query I rowsort
SELECT DISTINCT - col2 - col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT + col0 - col2 * + col2 AS col0 FROM tab1 cor0
----
-2913
-3185
-9136

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( + col2 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 col2 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-8629
SELECT - tab0.col0 DIV tab0.col2 - col2 AS col1 FROM tab0
----
-33
-36
-83

skipif mysql # not compatible
query I rowsort label-8629
SELECT - tab0.col0 / tab0.col2 - col2 AS col1 FROM tab0
----
-33
-36
-83

query I rowsort
SELECT + col2 + - col0 * col1 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL tab0.col1 * - col0 * col2 AS col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT tab1.col1 + + col2 - col2 * - col1 AS col1 FROM tab1
----
1357
1484
637

query I rowsort
SELECT ALL tab1.col0 * + tab1.col1 AS col2 FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + tab0.col1 col2 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL - 6 FROM tab2 cor0
----
-6
-6
-6

query I rowsort
SELECT + + col2 * + col2 + + col0 * col0 FROM tab1 AS cor0
----
15616
2925
7345

query I rowsort
SELECT DISTINCT col2 * col2 - col1 AS col1 FROM tab2
----
1427
617
698

query I rowsort
SELECT col2 FROM tab0 WHERE NULL < NULL
----

query I rowsort
SELECT + col1 - col0 AS col0 FROM tab0 WHERE ( NULL ) < ( - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8640
SELECT - tab0.col1 DIV col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8640
SELECT - tab0.col1 / col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL ( + 42 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT + col1 + + tab2.col2 * + col2 FROM tab2
----
1461
735
760

query I rowsort
SELECT ALL tab2.col0 * + col2 AS col2 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-8644
SELECT col2 * + col0 + + tab2.col0 DIV + 83 AS col1 FROM tab2
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-8644
SELECT col2 * + col0 + + tab2.col0 / + 83 AS col1 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 + col1 col0 FROM tab1
----
32
35
48

query I rowsort
SELECT ALL - col1 * cor0.col0 - - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 82 col2 FROM tab0 AS cor0
----
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8648
SELECT ALL + 41 + col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
37
41
41

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL + 41 + col1 / - col0 AS col1 FROM tab2 AS cor0
----
37
41
41

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE col1 + col0 + col0 * - col1 NOT BETWEEN col0 + col0 AND NULL
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col1 * + col1 col0 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT col0 * col1 + col1 * col1 + + col2 FROM tab1
----
1305
797
808

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 ) NOT IN ( col1 * + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT ALL tab2.col1 * - col2 AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT + col1 FROM tab0 WHERE ( - col2 + - col0 / col2 ) = NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE ( NULL ) IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col2 * + col1 )
----

query I rowsort
SELECT + col2 * - col1 * + col2 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT col2 - - col2 AS col0 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT col1 * - col1 + + col0 AS col1 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT + col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 + col1 * tab1.col2 AS col0 FROM tab1
----
1235
1378
560

query I rowsort
SELECT ALL + tab2.col2 + col1 FROM tab2 WHERE ( NULL ) > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8664
SELECT col2 + - col1 * col1 DIV - col1 FROM tab2
----
55
58
85

skipif mysql # not compatible
query I rowsort label-8664
SELECT col2 + - col1 * col1 / - col1 FROM tab2
----
55
58
85

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NULL < col0 + + col0
----

query I rowsort
SELECT DISTINCT + + col2 * col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-8667
SELECT ALL 83 + + col2 DIV col0 FROM tab0 AS cor0
----
83
83
84

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL 83 + + col2 / col0 FROM tab0 AS cor0
----
83
83
84

query I rowsort
SELECT DISTINCT + 79 AS col2 FROM tab1, tab2 AS cor0
----
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-8669
SELECT + tab0.col0 DIV + col1 + tab0.col2 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-8669
SELECT + tab0.col0 / + col1 + tab0.col2 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - - col2 + + col2 * - col0 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 42 col1 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT - 0 AS col2 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8673
SELECT DISTINCT tab0.col1 DIV col0 + tab0.col1 * - col1 * 88 + col0 AS col1 FROM tab0
----
-650821
-728638
-827955

skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT tab0.col1 / col0 + tab0.col1 * - col1 * 88 + col0 AS col1 FROM tab0
----
-650821
-728638
-827955

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 - - col1 * col0 col0 FROM tab2
----
1364
213
4569

query I rowsort
SELECT - col0 + - ( - col0 ) * - col2 AS col1 FROM tab1
----
-165
-3712
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col0 + + col0 col2 FROM tab1
----
3
64
80

query I rowsort
SELECT + col0 * - col1 + col0 AS col1 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + + ( + col0 ) * - col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT - - col0 + - col0 + col1 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-8680
SELECT - tab0.col0 DIV + ( 59 ) AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8680
SELECT - tab0.col0 / + ( 59 ) AS col1 FROM tab0
----
-1
0
0

query I rowsort
SELECT - col0 + + 22 + 49 FROM tab2
----
-7
-8
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-8682
SELECT DISTINCT col1 + 85 DIV + 18 AS col2 FROM tab1
----
14
17
30

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT col1 + 85 / + 18 AS col2 FROM tab1
----
14
17
30

query I rowsort
SELECT DISTINCT + col2 + col1 + - col1 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT col1 + - col2 * col0 AS col2 FROM tab2
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-8685
SELECT DISTINCT - col2 * col2 + col0 + col2 DIV + ( 24 ) FROM tab0
----
-1064
-6632
34

skipif mysql # not compatible
query I rowsort label-8685
SELECT DISTINCT - col2 * col2 + col0 + col2 / + ( 24 ) FROM tab0
----
-1064
-6632
34

query I rowsort
SELECT + col1 + - 71 AS col0 FROM tab0 AS cor0
----
15
20
26

query I rowsort
SELECT + - 44 * col1 FROM tab0 AS cor0
----
-3784
-4004
-4268

onlyif mysql # use DIV operator for integer division
query I rowsort label-8688
SELECT DISTINCT 34 DIV + col1 FROM tab1 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT 34 / + col1 FROM tab1 cor0
----
1
2
3

query I rowsort
SELECT ALL - - 20 - col2 FROM tab1 AS cor0
----
-34
-37
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + ( - col0 + + col2 ) col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - 85 * - col1 FROM tab0 AS cor0
----
7310
7735
8245

query I rowsort
SELECT - 28 * 5 AS col1 FROM tab0 AS cor0
----
-140
-140
-140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 * + col0 col2 FROM tab2 AS cor0
----
651
7254
7347

query I rowsort
SELECT ( cor0.col1 ) + + col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ( + 98 ) * - col2 FROM tab0
----
-3234
-8036
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-8696
SELECT ALL + col2 DIV + 3 AS col0 FROM tab2
----
12
8
9

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL + col2 / + 3 AS col0 FROM tab2
----
12
8
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8697
SELECT + 60 DIV - col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8697
SELECT + 60 / - col1 AS col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8698
SELECT - - ( - col1 ) - col1 DIV col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-8698
SELECT - - ( - col1 ) - col1 / col2 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-8699
SELECT ALL - ( col0 + + col2 ) DIV col1 FROM tab2
----
-1
-1
-6

skipif mysql # not compatible
query I rowsort label-8699
SELECT ALL - ( col0 + + col2 ) / col1 FROM tab2
----
-1
-1
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 61 ) * + col1 col0 FROM tab1
----
-1586
-610
-793

query I rowsort
SELECT 82 * - 22 FROM tab0
----
-1804
-1804
-1804

query I rowsort
SELECT - 95 + - col2 FROM tab1 AS cor0
----
-149
-152
-191

query I rowsort
SELECT + col2 + + col2 + - col1 FROM tab2
----
-7
23
59

query I rowsort
SELECT + col2 * col0 * + col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT col0 * col1 + + col2 + cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
1081
2027
6162

query I rowsort
SELECT + cor0.col0 * col2 + col0 + col1 FROM tab2 AS cor0
----
2165
227
3098

query I rowsort
SELECT col1 * col0 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT - cor0.col0 * + col1 - col2 FROM tab2 AS cor0
----
-1381
-244
-4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-8709
SELECT + col2 DIV col0 + col2 + col1 * col1 AS col0 FROM tab2 AS cor0
----
327
3507
991

skipif mysql # not compatible
query I rowsort label-8709
SELECT + col2 / col0 + col2 + col1 * col1 AS col0 FROM tab2 AS cor0
----
327
3507
991

query I rowsort
SELECT 28 + col0 + + col2 FROM tab1 AS cor0
----
149
204
85

query I rowsort
SELECT ALL col0 * 38 + 21 * + col1 * + col2 AS col0 FROM tab1 AS cor0
----
14402
29248
29598

query I rowsort
SELECT DISTINCT + col0 * ( col1 ) FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL + + col1 * 54 FROM tab2 AS cor0
----
1674
3186
918

query I rowsort
SELECT ALL + col0 + 23 FROM tab2 AS cor0
----
101
102
30

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
7
78
79

query I rowsort
SELECT + col0 * + ( 51 ) FROM tab2 AS cor0
----
357
3978
4029

onlyif mysql # use DIV operator for integer division
query I rowsort label-8717
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-8717
SELECT - - col1 / + col0 col1 FROM tab2 AS cor0
----
0
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-8718
SELECT + cor0.col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-8718
SELECT + cor0.col2 / - col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT + cor0.col0 * + 37 AS col2 FROM tab0 cor0
----
1295
3293
888

onlyif mysql # use DIV operator for integer division
query I rowsort label-8720
SELECT - 50 + col1 DIV cor0.col0 - - col2 * - col2 FROM tab2 AS cor0
----
-1494
-726
-775

skipif mysql # not compatible
query I rowsort label-8720
SELECT - 50 + col1 / cor0.col0 - - col2 * - col2 FROM tab2 AS cor0
----
-1494
-726
-775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + - col0 col0 FROM tab1 AS cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 col1 FROM tab0, tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + col2 * - 57 AS col2 FROM tab1
----
-3078
-3249
-5472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + tab2.col0 col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab1, tab2 AS cor0
----
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8726
SELECT DISTINCT col0 * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8726
SELECT DISTINCT col0 * CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab1, tab1 AS cor0, tab0 cor1
----
86
91
97

query I rowsort
SELECT DISTINCT + col0 + col2 * col0 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT ALL - - cor0.col0 * + cor0.col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + - 88 * + col1 AS col2 FROM tab0 AS cor0
----
-7568
-8008
-8536

query I rowsort
SELECT DISTINCT - - ( col1 ) + col1 * ( col2 ) FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT ( - ( - col1 ) ) * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT cor0.col2 * + col2 FROM tab0 cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( col0 ) ) col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - 89 AS col0 FROM tab0 AS cor0
----
-89
-89
-89

query I rowsort
SELECT ALL + + 35 + col2 FROM tab2 AS cor0
----
61
62
73

query I rowsort
SELECT ALL ( - ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ( col2 ) * + col2 * col2 FROM tab0 AS cor0
----
1
35937
551368

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) * col1 * col1 col1 FROM tab2 cor0
----
22831
271518
6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8740
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-8740
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8741
SELECT + col0 + + col1 + CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-8741
SELECT + col0 + + col1 + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8742
SELECT col2 * + col0 / CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8742
SELECT col2 * + col0 / CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - col0 * ( col0 ) AS col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT - col0 * col0 + col1 + col0 FROM tab1 AS cor0
----
-4022
-6307
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-8745
SELECT DISTINCT 5 DIV col2 + col0 + col2 AS col0 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT 5 / col2 + col0 + col2 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - cor0.col2 * col2 + - col1 * col0 FROM tab1 AS cor0
----
-10256
-2994
-3889

query I rowsort
SELECT - 74 + col0 * col1 AS col0 FROM tab1 AS cor0
----
4
566
966

onlyif mysql # use DIV operator for integer division
query I rowsort label-8748
SELECT ALL - col2 + col0 DIV 24 FROM tab2 cor0
----
-23
-27
-35

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL - col2 + col0 / 24 FROM tab2 cor0
----
-23
-27
-35

query I rowsort
SELECT DISTINCT + col0 * col1 - 0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - cor0.col0 + + col2 * 7 AS col1 FROM tab2 AS cor0
----
104
182
187

query I rowsort
SELECT DISTINCT col0 + + col1 - + col2 FROM tab2 AS cor0
----
11
111
58

query I rowsort
SELECT - 43 - col2 * + ( - 75 * + col0 ) FROM tab1 AS cor0
----
12107
273557
575957

query I rowsort
SELECT ALL - col2 * - col0 + 39 FROM tab2 AS cor0
----
2067
228
3041

query I rowsort
SELECT DISTINCT col2 * + 93 AS col1 FROM tab0 AS cor0
----
3069
7626
93

query I rowsort
SELECT - col2 * col2 + col1 * col2 FROM tab2 AS cor0
----
-798
108
858

query I rowsort
SELECT - col1 * ( col1 ) + col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT 73 * col1 * - 81 AS col1 FROM tab2
----
-100521
-183303
-348867

onlyif mysql # use DIV operator for integer division
query I rowsort label-8758
SELECT ALL - 9 * col2 + - col1 DIV 90 AS col0 FROM tab1
----
-486
-513
-864

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL - 9 * col2 + - col1 / 90 AS col0 FROM tab1
----
-486
-513
-864

query I rowsort
SELECT + col0 * col0 + 17 AS col1 FROM tab0 AS cor0
----
1242
593
7938

onlyif mysql # use DIV operator for integer division
query I rowsort label-8760
SELECT ALL col0 DIV + col1 + col1 * col0 FROM tab1 AS cor0
----
1046
646
78

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL col0 / + col1 + col1 * col0 FROM tab1 AS cor0
----
1046
646
78

query I rowsort
SELECT + col2 + 56 FROM tab1 AS cor0
----
110
113
152

query I rowsort
SELECT DISTINCT - cor0.col0 * ( - 93 ) * - col2 + + 51 FROM tab0 AS cor0
----
-3204
-678663
-73605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + 63 col1 FROM tab2 AS cor0
----
141
142
70

query I rowsort
SELECT DISTINCT col2 * - col0 + 97 AS col1 FROM tab1 AS cor0
----
-3551
-65
-7583

query I rowsort
SELECT ALL + - col2 + + 64 FROM tab1 AS cor0
----
-32
10
7

query I rowsort
SELECT + - col2 + - cor0.col0 FROM tab0 AS cor0
----
-171
-36
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8767
SELECT ALL + col2 * CAST( NULL AS SIGNED ) + cor0.col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8767
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8768
SELECT DISTINCT + cor0.col2 * - CAST( - col0 AS SIGNED ) + + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT + cor0.col2 * - CAST ( - col0 AS INTEGER ) + + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + ( + col1 ) + - col1 * + tab1.col2 AS col0 FROM tab1
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-8770
SELECT + col2 DIV - col1 - - tab1.col1 * col0 FROM tab1
----
1033
635
76

skipif mysql # not compatible
query I rowsort label-8770
SELECT + col2 / - col1 - - tab1.col1 * col0 FROM tab1
----
1033
635
76

query I rowsort
SELECT - - 3 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT ALL - + col0 * - 31 FROM tab0 AS cor0
----
1085
2759
744

onlyif mysql # use DIV operator for integer division
query I rowsort label-8773
SELECT DISTINCT - col2 DIV col2 + - col0 * col2 * - 5 FROM tab0 AS cor0
----
174
36489
3959

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT - col2 / col2 + - col0 * col2 * - 5 FROM tab0 AS cor0
----
174
36489
3959

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8774
SELECT + - col0 + + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-8774
SELECT + - col0 + + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8775
SELECT DISTINCT + + col1 DIV 42 col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT + + col1 / 42 col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col1 - - 77 FROM tab1 cor0
----
103
87
90

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0 cor2
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0

query I rowsort
SELECT ALL + 26 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT DISTINCT tab0.col2 * col0 + col0 + + col1 AS col0 FROM tab0
----
167
7478
902

query I rowsort
SELECT + col1 * + tab1.col0 + + 70 AS col2 FROM tab1
----
1110
148
710

query I rowsort
SELECT ALL + col0 * - col1 + col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT 19 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 39241ace4c29d5a55052e1665aa36823

query I rowsort
SELECT ALL - - ( col2 ) * + cor0.col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT - 76 * - col1 AS col1 FROM tab2 AS cor0
----
1292
2356
4484

query I rowsort
SELECT DISTINCT - col0 * col0 - + cor0.col1 * - 98 AS col2 FROM tab0 AS cor0
----
7852
8281
997

query I rowsort
SELECT - - 20 * - col2 - + col1 FROM tab1 AS cor0
----
-1106
-1150
-1933

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca

query I rowsort
SELECT ALL col1 * - col2 * ( + col2 ) + col1 AS col0 FROM tab0
----
-611793
-93568
0

query I rowsort
SELECT - 41 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf

onlyif mysql # use DIV operator for integer division
query I rowsort label-8790
SELECT - col0 + col2 DIV + col1 AS col1 FROM tab1
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-8790
SELECT - col0 + col2 / + col1 AS col1 FROM tab1
----
-1
-59
-73

query I rowsort
SELECT - col0 + col2 + col2 AS col2 FROM tab1
----
105
112
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-8792
SELECT DISTINCT tab2.col1 * tab2.col0 DIV 93 + col2 * + col2 FROM tab2
----
1458
725
731

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT tab2.col1 * tab2.col0 / 93 + col2 * + col2 FROM tab2
----
1458
725
731

query I rowsort
SELECT DISTINCT tab0.col0 + + tab0.col0 FROM tab0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-8794
SELECT DISTINCT col1 * col1 DIV - 7 FROM tab0 AS cor0
----
-1056
-1183
-1344

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT col1 * col1 / - 7 FROM tab0 AS cor0
----
-1056
-1183
-1344

onlyif mysql # use DIV operator for integer division
query I rowsort label-8795
SELECT col1 * - col1 + cor0.col2 DIV col2 FROM tab0 cor0
----
-7395
-8280
-9408

skipif mysql # not compatible
query I rowsort label-8795
SELECT col1 * - col1 + cor0.col2 / col2 FROM tab0 cor0
----
-7395
-8280
-9408

query I rowsort
SELECT 10 + 43 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab0 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 5d94dfd9164033b5a92f743be8139ecc

query I rowsort
SELECT ALL - + 78 + + col1 * col2 - - 88 FROM tab2 AS cor0
----
1544
656
847

query I rowsort
SELECT ALL + cor0.col1 - col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - - 40 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-2160
-2280
-3840

query I rowsort
SELECT ( + 70 ) + col1 AS col1 FROM tab0 AS cor0
----
156
161
167

query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + col1 ) col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT col0 * - cor0.col2 - - col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL + col2 * + 43 AS col0 FROM tab2 AS cor0
----
1118
1161
1634

query I rowsort
SELECT + + 53 + col2 * col1 + - 75 AS col2 FROM tab2 AS cor0
----
1512
624
815

query I rowsort
SELECT ALL - + col2 * 84 FROM tab0 AS cor0
----
-2772
-6888
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT + tab0.col0 * ( - tab0.col0 ) * + col1 AS col2 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL + cor0.col1 + ( 67 ) FROM tab2 AS cor0
----
126
84
98

query I rowsort
SELECT ALL - col2 * col0 + - col2 * cor0.col2 FROM tab1 AS cor0
----
-16896
-3078
-6897

query I rowsort
SELECT DISTINCT - cor0.col0 + cor0.col0 AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT col1 + + ( 72 + col2 ) FROM tab2 AS cor0
----
127
130
157

query I rowsort
SELECT DISTINCT - cor0.col0 * ( col1 ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 col0 FROM tab0
----
45

query I rowsort
SELECT ALL + cor1.col2 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8817
SELECT - col2 * + 5 * - ( col0 * - CAST( + 22 AS SIGNED ) ) AS col2 FROM tab2
----
-20790
-223080
-330220

skipif mysql # not compatible
query I rowsort label-8817
SELECT - col2 * + 5 * - ( col0 * - CAST ( + 22 AS INTEGER ) ) AS col2 FROM tab2
----
-20790
-223080
-330220

query I rowsort
SELECT - col0 * 11 + - 27 * col2 + - col2 FROM tab2
----
-1586
-1933
-833

query I rowsort
SELECT col2 * 71 + + 70 + col1 * + col1 FROM tab1
----
4217
4580
7055

query I rowsort
SELECT DISTINCT - col0 * + ( col1 * + tab0.col2 ) + 61 FROM tab0
----
-3334
-664057
-68051

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8821
SELECT - + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-8821
SELECT - + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT 85 * + ( col1 ) + 47 FROM tab2 AS cor0
----
1492
2682
5062

onlyif mysql # use DIV operator for integer division
query I rowsort label-8823
SELECT - - col2 + cor0.col2 + + col2 DIV 84 FROM tab2 cor0
----
52
54
76

skipif mysql # not compatible
query I rowsort label-8823
SELECT - - col2 + cor0.col2 + + col2 / 84 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT + 82 * col2 AS col0 FROM tab1 AS cor0
----
4428
4674
7872

query I rowsort
SELECT ALL + col2 + 73 * + col2 * - col1 AS col2 FROM tab0
----
-207141
-544644
-7080

query I rowsort
SELECT - 9 * col0 AS col2 FROM tab1 AS cor0
----
-27
-576
-720

query I rowsort
SELECT + 69 AS col2 FROM tab0 cor0
----
69
69
69

query I rowsort
SELECT cor0.col0 * - col2 - cor0.col0 FROM tab1 cor0
----
-165
-3712
-7760

query I rowsort
SELECT - cor0.col1 * - cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b

onlyif mysql # use DIV operator for integer division
query I rowsort label-8830
SELECT 42 DIV col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8830
SELECT 42 / col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 * + 31 FROM tab1
----
1674
1767
2976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( col2 ) - - col0 col1 FROM tab1
----
111
178
272

query I rowsort
SELECT - 32 + col1 FROM tab1 AS cor0
----
-19
-22
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8834
SELECT + 19 DIV - col1 - col0 * 7 col0 FROM tab1 AS cor0
----
-21
-449
-561

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8834
SELECT + 19 / - col1 - col0 * 7 col0 FROM tab1 AS cor0
----
-21
-449
-561

query I rowsort
SELECT ( + col2 ) - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL col1 - 41 AS col2 FROM tab2
----
-10
-24
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - tab1.col1 col0 FROM tab1, tab0, tab0 cor0, tab2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT ALL - cor0.col2 - - 27 * cor0.col0 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 02e2971daccc69447f575718be72c830

query I rowsort
SELECT 33 * + col0 AS col1 FROM tab1
----
2112
2640
99

query I rowsort
SELECT - col0 + - cor0.col2 * + col1 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT col0 * + 96 FROM tab0
----
2304
3360
8544

query I rowsort
SELECT DISTINCT col0 * col1 * col2 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL - - 30 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT + cor0.col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - - 44 * - col0 + + cor0.col1 * col1 FROM tab0 AS cor0
----
4365
6340
7869

query I rowsort
SELECT ALL 24 * col1 - 1 FROM tab0 AS cor0
----
2063
2183
2327

query I rowsort
SELECT ( col1 ) + tab2.col0 FROM tab2
----
137
38
96

query I rowsort
SELECT + tab0.col2 - - tab0.col2 FROM tab0
----
164
2
66

query I rowsort
SELECT + col1 * col2 + - col0 * - col0 - - col1 AS col2 FROM tab0
----
1419
15474
3500

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8850
SELECT CAST( + 74 AS SIGNED ) + + col0 * + col0 * 91 FROM tab2
----
4533
553718
568005

skipif mysql # not compatible
query I rowsort label-8850
SELECT CAST ( + 74 AS INTEGER ) + + col0 * + col0 * 91 FROM tab2
----
4533
553718
568005

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( - 60 AS REAL ) - + col1 FROM tab1 AS cor0
----
34
47
50

query I rowsort
SELECT DISTINCT - col2 + 22 + col1 FROM tab1
----
-25
-6
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 - 86 col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT 8 * col2 FROM tab1 AS cor0
----
432
456
768

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + ( - col1 ) * CAST ( col2 AS REAL ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT col1 + - col0 - + col2 AS col2 FROM tab2 AS cor0
----
-100
-3
-45

query I rowsort
SELECT ALL 73 + cor0.col0 * + 48 AS col0 FROM tab0 AS cor0
----
1225
1753
4345

query I rowsort
SELECT - col2 * col1 + ( cor0.col2 ) + + col1 * col0 AS col1 FROM tab0 AS cor0
----
-741
3299
719

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 91c4f11552b395e0eb390f09eebaec3d

query I rowsort
SELECT + - cor0.col1 + 28 AS col0 FROM tab1 AS cor0
----
15
18
2

query I rowsort
SELECT - col1 * + ( - ( + col0 ) ) * col0 AS col2 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT + col0 * - cor0.col0 * + 45 - col0 FROM tab2 AS cor0
----
-2212
-273858
-280924

query I rowsort
SELECT 87 + + 2 * col0 AS col0 FROM tab0 AS cor0
----
135
157
265

query I rowsort
SELECT + 75 * + col1 FROM tab2 AS cor0
----
1275
2325
4425

query I rowsort
SELECT - col0 * + 28 AS col0 FROM tab2 AS cor0
----
-196
-2184
-2212

query I rowsort
SELECT - col0 * ( tab2.col2 ) * col1 AS col1 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-8867
SELECT ALL + + col2 + col1 DIV + col0 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL + + col2 + col1 / + col0 FROM tab0 AS cor0
----
3
36
83

query I rowsort
SELECT ALL ( col2 ) * col0 * cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
26169
36
598518

query I rowsort
SELECT ALL - + col1 + - 93 FROM tab2 AS cor0
----
-110
-124
-152

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8870
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT + CAST ( NULL AS REAL ) * - col1 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - cor1.col1 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-86
-91
-97

query I rowsort
SELECT ALL col1 + - 14 * col1 FROM tab2 AS cor0
----
-221
-403
-767

query I rowsort
SELECT ( + 63 ) AS col2 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT ALL - 24 + 97 * + col1 + + ( 4 + col1 ) FROM tab0 AS cor0
----
8408
8898
9486

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - cor0.col1 * + col1 col0 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL + 46 * + col1 + col0 AS col0 FROM tab1 cor0
----
1199
524
678

onlyif mysql # use DIV operator for integer division
query I rowsort label-8877
SELECT DISTINCT + - ( 38 ) DIV - col2 + col2 AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT + - ( 38 ) / - col2 + col2 AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - + col1 - + col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - ( 13 ) FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT - + 22 AS col0 FROM tab1 AS cor0
----
-22
-22
-22

query I rowsort
SELECT DISTINCT - 93 * + col0 * col2 AS col0 FROM tab0 cor0
----
-3255
-678714
-73656

onlyif mysql # use DIV operator for integer division
query I rowsort label-8882
SELECT ALL + - col1 + 95 DIV col0 FROM tab1 AS cor0
----
-12
-9
5

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL + - col1 + 95 / col0 FROM tab1 AS cor0
----
-12
-9
5

query I rowsort
SELECT ALL - - col2 + 23 * + col0 FROM tab1 AS cor0
----
123
1529
1936

query I rowsort
SELECT + 12 - 35 * col1 * - col2 FROM tab1 AS cor0
----
19962
43692
49152

onlyif mysql # use DIV operator for integer division
query I rowsort label-8885
SELECT ALL + - col2 DIV col1 + + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL + - col2 / col1 + + col1 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 * col1 + ( - col2 * col0 ) col2 FROM tab2 AS cor0
----
103095
1330
356928

query I rowsort
SELECT DISTINCT - - 67 - col2 FROM tab1 AS cor0
----
-29
10
13

query I rowsort
SELECT + - ( - cor0.col2 ) + - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8889
SELECT DISTINCT + col0 * + col0 + cor0.col0 * CAST( col1 AS SIGNED ) DIV col2 AS col2 FROM tab1 AS cor0
----
10
4107
6410

skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT + col0 * + col0 + cor0.col0 * CAST ( col1 AS INTEGER ) / col2 AS col2 FROM tab1 AS cor0
----
10
4107
6410

query I rowsort
SELECT ALL col0 * col2 * col1 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8891
SELECT DISTINCT + CAST( + 69 AS SIGNED ) - - col2 * - ( 74 * + tab0.col2 ) FROM tab0
----
-497507
-5
-80517

skipif mysql # not compatible
query I rowsort label-8891
SELECT DISTINCT + CAST ( + 69 AS INTEGER ) - - col2 * - ( 74 * + tab0.col2 ) FROM tab0
----
-497507
-5
-80517

query I rowsort
SELECT ALL col2 + ( + col0 ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - + col1 * - 64 * - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-132120
-217315
-518425

query I rowsort
SELECT DISTINCT col2 * + col0 + + col0 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-8895
SELECT DISTINCT - col2 DIV - col2 + + col0 * col2 AS col2 FROM tab1 cor0
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT - col2 / - col2 + + col0 * col2 AS col2 FROM tab1 cor0
----
163
3649
7681

query I rowsort
SELECT + col1 * + col1 - col1 FROM tab0
----
7310
8190
9312

query I rowsort
SELECT ALL + 61 * - 80 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 620b65bc8359229e32fb38fda7adc7c3

query I rowsort
SELECT ALL - + col0 - 84 AS col0 FROM tab0 AS cor0
----
-108
-119
-173

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + col2 col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - 89 * col1 AS col2 FROM tab1 AS cor0
----
-1157
-2314
-890

query I rowsort
SELECT ALL + col2 + + ( col1 ) AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + col0 + col0 * + col1 * - col0 AS col2 FROM tab0
----
-118790
-49512
-720722

query I rowsort
SELECT ALL - 82 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT ALL - 43 + col0 * + 90 FROM tab0
----
2117
3107
7967

query I rowsort
SELECT ALL - col1 + - tab2.col2 * 70 AS col1 FROM tab2
----
-1879
-1921
-2677

query I rowsort
SELECT DISTINCT - col2 + - col1 + + col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - - col0 * - ( 72 ) FROM tab2 AS cor0
----
-504
-5616
-5688

query I rowsort
SELECT ALL + col2 - - col2 * 89 FROM tab0 AS cor0
----
2970
7380
90

query I rowsort
SELECT + col0 - + ( + 7 ) AS col2 FROM tab0 AS cor0
----
17
28
82

query I rowsort
SELECT + + col2 * - col2 * - col1 FROM tab2 AS cor0
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-8912
SELECT + + col2 DIV ( col1 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8912
SELECT + + col2 / ( col1 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8913
SELECT DISTINCT + col1 DIV 15 FROM tab0 cor0
----
5
6

skipif mysql # not compatible
query I rowsort label-8913
SELECT DISTINCT + col1 / 15 FROM tab0 cor0
----
5
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8914
SELECT DISTINCT - tab0.col2 DIV 49 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT - tab0.col2 / 49 FROM tab0
----
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8915
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col0 FROM tab2
----
NULL

query I rowsort
SELECT - col1 * col1 + + col2 * 77 FROM tab1
----
3482
4289
7223

query I rowsort
SELECT ALL + 28 + + col2 AS col0 FROM tab1 AS cor0
----
124
82
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 col2 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT 79 * + col0 AS col0 FROM tab1 AS cor0
----
237
5056
6320

query I rowsort
SELECT + 43 * + col1 AS col2 FROM tab2 AS cor0
----
1333
2537
731

query I rowsort
SELECT - 68 FROM tab2 cor0
----
-68
-68
-68

query I rowsort
SELECT ALL + tab1.col2 AS col2 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL - 40 FROM tab0, tab0 cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8924
SELECT ( 25 ) + + tab2.col1 * CAST( col2 AS SIGNED ) FROM tab2
----
1559
671
862

skipif mysql # not compatible
query I rowsort label-8924
SELECT ( 25 ) + + tab2.col1 * CAST ( col2 AS INTEGER ) FROM tab2
----
1559
671
862

query I rowsort
SELECT ALL + cor0.col1 - cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - + col1 + 81 AS col2 FROM tab2 AS cor0
----
22
50
64

query I rowsort
SELECT DISTINCT - - col1 * + 29 AS col1 FROM tab2 AS cor0
----
1711
493
899

query I rowsort
SELECT + ( - col1 + + tab1.col1 ) FROM tab1
----
0
0
0

query I rowsort
SELECT 91 + + col0 FROM tab0 AS cor0
----
115
126
180

query I rowsort
SELECT ALL 51 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8931
SELECT - + CAST( NULL AS DECIMAL ) + - 26 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8931
SELECT - + CAST ( NULL AS REAL ) + - 26 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - 97 ) AS col2 FROM tab1 AS cor0
----
-97
-97
-97

query I rowsort
SELECT + col0 * + 45 AS col2 FROM tab2
----
315
3510
3555

query I rowsort
SELECT + 56 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT DISTINCT - cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-54
-57
-96

query I rowsort
SELECT + - 46 * + col1 FROM tab0 AS cor0
----
-3956
-4186
-4462

query I rowsort
SELECT ALL 75 - - col2 FROM tab0 AS cor0
----
108
157
76

query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col0 * col2 + + col2 AS col1 FROM tab2 AS cor0
----
2132
223
3119

query I rowsort
SELECT ALL + + col1 * col2 + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL - - cor0.col2 + - col1 * - cor0.col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT ALL + col0 - + col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - col1 + + col2 * col0 + col2 FROM tab2 AS cor0
----
185
1995
3023

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 + + col1 col1 FROM tab1
----
82
85
98

query I rowsort
SELECT DISTINCT + col1 + + tab0.col0 * + col1 - col1 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + col2 * col1 + col0 - col1 * col0 FROM tab2
----
-2990
-618
627

query I rowsort
SELECT + col2 * col2 + col0 * + col1 * + col0 + col2 FROM tab0
----
118827
50658
727617

query I rowsort
SELECT DISTINCT - col1 + col1 + - col2 * - col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + col2 * cor0.col2 + col2 * + col0 FROM tab0 cor0
----
14022
1881
36

query I rowsort
SELECT col2 * col0 + + col0 * col0 + + col0 FROM tab0 AS cor0
----
1295
1392
15308

query I rowsort
SELECT col0 + col0 * - col0 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT - col2 + - col1 * col0 + col1 FROM tab0
----
-2011
-3299
-8090

query I rowsort
SELECT DISTINCT - col2 + tab1.col1 * col1 FROM tab1
----
43
622
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-8953
SELECT + col0 + col1 DIV - tab1.col1 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-8953
SELECT + col0 + col1 / - tab1.col1 FROM tab1
----
2
63
79

query I rowsort
SELECT col1 + col0 * col1 + - col0 AS col0 FROM tab2
----
1281
241
4583

onlyif mysql # use DIV operator for integer division
query I rowsort label-8955
SELECT - tab0.col0 + col1 DIV col2 FROM tab0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-8955
SELECT - tab0.col0 + col1 / col2 FROM tab0
----
-22
-88
62

query I rowsort
SELECT DISTINCT + 41 + col2 * + col2 FROM tab1 AS cor0
----
2957
3290
9257

query I rowsort
SELECT ALL 83 + - col2 AS col0 FROM tab1 AS cor0
----
-13
26
29

query I rowsort
SELECT + cor0.col2 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + - col2 * - col1 * + col0 + - col1 FROM tab1 AS cor0
----
36470
4186
99827

query I rowsort
SELECT + + 89 + cor0.col2 FROM tab1 AS cor0
----
143
146
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL - col2 * - 16 FROM tab0
----
1312
16
528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col1 FROM tab1
----
7
7
7

query I rowsort
SELECT ALL - 41 AS col0 FROM tab2
----
-41
-41
-41

query I rowsort
SELECT DISTINCT - + ( col0 ) * + col0 * col1 + col2 AS col2 FROM tab0 AS cor0
----
-118824
-49503
-720729

query I rowsort
SELECT DISTINCT + + ( + col1 ) * + cor0.col0 * + col1 AS col0 FROM tab0 AS cor0
----
177504
329315
737009

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( col2 + + col0 + tab2.col1 )
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT - col0 = ( + col0 )
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8969
SELECT DISTINCT + col1 - col2 DIV + col1 FROM tab2
----
15
31
59

skipif mysql # not compatible
query I rowsort label-8969
SELECT DISTINCT + col1 - col2 / + col1 FROM tab2
----
15
31
59

query I rowsort
SELECT ALL col0 + + col2 * - col2 AS col1 FROM tab2
----
-1365
-598
-722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col1 col0 FROM tab2
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 - - col1 col1 FROM tab2 AS cor0 WHERE NULL < ( - col0 / - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 <= ( + tab0.col2 + + col1 + + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-8974
SELECT + col0 + - tab0.col0 DIV - col0 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-8974
SELECT + col0 + - tab0.col0 / - col0 FROM tab0
----
25
36
90

query I rowsort
SELECT DISTINCT tab0.col1 FROM tab0 WHERE col0 = col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8976
SELECT ALL - col1 - - col1 DIV + col0 AS col2 FROM tab1
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-8976
SELECT ALL - col1 - - col1 / + col0 AS col2 FROM tab1
----
-10
-13
-18

query I rowsort
SELECT ALL - tab1.col1 - col0 AS col2 FROM tab1 WHERE NOT ( NULL ) > ( + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL col1 - + tab2.col1 * col0 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT ALL - tab1.col0 - col0 AS col1 FROM tab1
----
-128
-160
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8981
SELECT ALL + col1 DIV col2 AS col0 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL + col1 / col2 AS col0 FROM tab0 AS cor0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + tab0.col1 * col1 col2 FROM tab0
----
7420
8370
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 * - col1 col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT cor0.col1 * cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
327
3507
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-8985
SELECT col0 * - col0 DIV col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-8985
SELECT col0 * - col0 / col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + - cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - col0 + - cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
-1422
-224
-4680

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8989
SELECT DISTINCT + col0 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8989
SELECT DISTINCT + col0 / cor0.col1 AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 )
----

query I rowsort
SELECT - 41 * cor0.col2 FROM tab0 AS cor0
----
-1353
-3362
-41

query I rowsort
SELECT - + ( col0 ) * col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ( 48 ) FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT + - col2 * - col0 + + cor0.col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL 28 * 34 FROM tab0, tab2 AS cor0
----
9 values hashing to ba9556e4eca688d662fa154c6add1bf1

query I rowsort
SELECT + ( + col0 ) * cor0.col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + col2 * + 32 FROM tab1 AS cor0
----
1728
1824
3072

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8999
SELECT + 63 + tab0.col1 * - CAST( 35 AS SIGNED ) AS col2 FROM tab0
----
-2947
-3122
-3332

skipif mysql # not compatible
query I rowsort label-8999
SELECT + 63 + tab0.col1 * - CAST ( 35 AS INTEGER ) AS col2 FROM tab0
----
-2947
-3122
-3332

query I rowsort
SELECT ALL cor0.col1 + 68 + + ( col0 ) FROM tab0 AS cor0
----
178
200
248

query I rowsort
SELECT col0 * 7 FROM tab1 AS cor0
----
21
448
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 5 col1 FROM tab1
----
130
50
65

query I rowsort
SELECT DISTINCT col0 * ( + col0 ) * col0 FROM tab2
----
343
474552
493039

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 * 44 col2 FROM tab2 AS cor0
----
1066
1181
1593

onlyif mysql # use DIV operator for integer division
query I rowsort label-9005
SELECT - - col1 * CAST( + col1 AS SIGNED ) + col0 + + cor0.col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
164
248
661

skipif mysql # not compatible
query I rowsort label-9005
SELECT - - col1 * CAST ( + col1 AS INTEGER ) + col0 + + cor0.col2 / - col0 AS col0 FROM tab1 AS cor0
----
164
248
661

query I rowsort
SELECT + col2 * - col1 + col2 + col1 AS col1 FROM tab1 AS cor0
----
-1139
-1324
-503

onlyif mysql # use DIV operator for integer division
query I rowsort label-9007
SELECT + - col1 + - cor0.col1 DIV col2 FROM tab0 AS cor0
----
-194
-88
-92

skipif mysql # not compatible
query I rowsort label-9007
SELECT + - col1 + - cor0.col1 / col2 FROM tab0 AS cor0
----
-194
-88
-92

query I rowsort
SELECT - col2 * + 40 FROM tab1 cor0
----
-2160
-2280
-3840

query I rowsort
SELECT DISTINCT + ( - 93 ) FROM tab1 AS cor0
----
-93

query I rowsort
SELECT ALL ( col2 ) * col0 * - col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT + 59 * + col2 AS col1 FROM tab1 cor0
----
3186
3363
5664

query I rowsort
SELECT DISTINCT col2 * + 26 FROM tab0 AS cor0
----
2132
26
858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 95 col2 FROM tab1 AS cor0
----
285
6080
7600

query I rowsort
SELECT DISTINCT - col0 * + col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9015
SELECT ALL + CAST( - 79 AS SIGNED ) FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to c9cc9510604e093bd158ca33928acaed

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL + CAST ( - 79 AS INTEGER ) FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to c9cc9510604e093bd158ca33928acaed

query I rowsort
SELECT col1 * col0 - + col1 AS col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT 29 - + col0 FROM tab1
----
-35
-51
26

query I rowsort
SELECT + - ( - col2 ) - ( 77 + col1 ) AS col2 FROM tab2 AS cor0
----
-110
-56
-81

query I rowsort
SELECT - - col2 * - col1 * 51 FROM tab2 AS cor0
----
-32946
-42687
-78234

query I rowsort
SELECT cor0.col2 - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT + - 50 - col2 FROM tab2 AS cor0
----
-76
-77
-88

query I rowsort
SELECT DISTINCT - cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - + col0 + + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9024
SELECT col1 * CAST( - col0 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

skipif mysql # not compatible
query I rowsort label-9024
SELECT col1 * CAST ( - col0 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT - col0 * + ( col1 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col2 * - 82 * col2 FROM tab0 cor0
----
-551368
-82
-89298

query I rowsort
SELECT DISTINCT + col1 + ( col2 ) AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - - col0 * + 43 * + 9 AS col2 FROM tab2 AS cor0
----
2709
30186
30573

query I rowsort
SELECT - col0 * + ( col0 ) + - col1 * cor0.col0 FROM tab0 AS cor0
----
-16020
-2640
-4620

query I rowsort
SELECT + cor0.col1 + + 63 * - ( + col0 * col1 ) FROM tab0 AS cor0
----
-129946
-213788
-510146

query I rowsort
SELECT col1 + - col2 * ( - tab2.col1 + col0 ) AS col1 FROM tab2
----
-2339
-435
679

query I rowsort
SELECT DISTINCT col0 + col2 - + 6 FROM tab0 AS cor0
----
165
30
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 * + cor0.col2 col0 FROM tab0 AS cor0
----
-1452
-3608
-44

query I rowsort
SELECT DISTINCT - col2 * col0 + + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + cor0.col2 * 37 * - col0 col1 FROM tab0 AS cor0
----
-1294
-269944
-29271

query I rowsort
SELECT DISTINCT - - col1 * - col0 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + - col0 + 81 * + cor0.col2 col0 FROM tab2 AS cor0
----
2002
2153
2961

query I rowsort
SELECT - col1 + cor0.col1 + - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - + col2 * col0 * + col1 FROM tab2 cor0
----
-119652
-51034
-5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 62 col0 FROM tab2 AS cor0
----
140
141
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9041
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 - 10 AS col2 FROM tab2 AS cor0
----
16
17
28

query I rowsort
SELECT ALL col1 + - ( + col0 + - col1 ) * col2 FROM tab0 AS cor0
----
159
2132
255

query I rowsort
SELECT DISTINCT + col0 * + 45 FROM tab0 AS cor0
----
1080
1575
4005

query I rowsort
SELECT col0 * cor0.col1 + - 9 AS col1 FROM tab1 AS cor0
----
1031
631
69

query I rowsort
SELECT col2 + - col0 * - col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 * - ( 25 + col0 ) col0 FROM tab1 AS cor0
----
-5696
-84
-8400

query I rowsort
SELECT ALL - 94 * - col2 * col0 + + col0 AS col2 FROM tab2 AS cor0
----
17773
190710
282267

query I rowsort
SELECT ALL - ( 6 ) + cor0.col1 * 43 AS col0 FROM tab2 AS cor0
----
1327
2531
725

query I rowsort
SELECT DISTINCT 95 * + col2 AS col0 FROM tab1 cor0
----
5130
5415
9120

query I rowsort
SELECT ( col1 ) * + cor0.col0 + 13 FROM tab2 AS cor0
----
1356
230
4615

query I rowsort
SELECT ALL - 80 + - col0 + + col1 AS col0 FROM tab1 AS cor0
----
-134
-147
-57

query I rowsort
SELECT DISTINCT 55 + 68 AS col2 FROM tab1 AS cor0
----
123

query I rowsort
SELECT 84 + + cor0.col2 FROM tab1 AS cor0
----
138
141
180

query I rowsort
SELECT + + ( - 14 ) AS col0 FROM tab1 AS cor0
----
-14
-14
-14

query I rowsort
SELECT 99 * - col2 FROM tab1 AS cor0
----
-5346
-5643
-9504

onlyif mysql # use DIV operator for integer division
query I rowsort label-9057
SELECT + + col1 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9057
SELECT + + col1 / - col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9058
SELECT DISTINCT CAST( - col1 AS SIGNED ) * col0 + + col1 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630

skipif mysql # not compatible
query I rowsort label-9058
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * col0 + + col1 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9059
SELECT ALL CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 51 * col1 AS col0 FROM tab0 AS cor0
----
4386
4641
4947

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9061
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + - col0 + - col0 col1 FROM tab2 AS cor0
----
-21
-234
-237

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9061
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + - col0 + - col0 col1 FROM tab2 AS cor0
----
-21
-234
-237

query I rowsort
SELECT ALL cor0.col0 - ( col2 ) * - col2 AS col0 FROM tab0 cor0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-9063
SELECT ALL cor0.col2 DIV - col0 + 70 DIV col0 + col0 FROM tab2 AS cor0
----
14
78
79

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL cor0.col2 / - col0 + 70 / col0 + col0 FROM tab2 AS cor0
----
14
78
79

query I rowsort
SELECT + col1 + - 24 AS col1 FROM tab2
----
-7
35
7

query I rowsort
SELECT ( + col0 ) * col0 + + col2 * col1 FROM tab2
----
6887
7618
886

query I rowsort
SELECT col1 + + ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9068
SELECT DISTINCT 1 * col2 + - col0 DIV col1 FROM tab2 AS cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT 1 * col2 + - col0 / col1 FROM tab2 AS cor0
----
25
27
34

query I rowsort
SELECT ALL col2 * cor0.col1 + col0 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-9070
SELECT DISTINCT 58 * - col2 + + col2 DIV + ( col0 ) + col1 DIV 38 AS col1 FROM tab1 cor0
----
-3114
-3306
-5567

skipif mysql # not compatible
query I rowsort label-9070
SELECT DISTINCT 58 * - col2 + + col2 / + ( col0 ) + col1 / 38 AS col1 FROM tab1 cor0
----
-3114
-3306
-5567

onlyif mysql # use DIV operator for integer division
query I rowsort label-9071
SELECT ALL tab1.col2 DIV + col1 AS col2 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-9071
SELECT ALL tab1.col2 / + col1 AS col2 FROM tab1
----
2
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9072
SELECT col1 DIV col2 - + col2 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-9072
SELECT col1 / col2 - + col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT + 96 * - 22 FROM tab1
----
-2112
-2112
-2112

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col1 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT DISTINCT - - 67 AS col1 FROM tab2 cor0
----
67

query I rowsort
SELECT DISTINCT + ( col2 ) * + cor0.col1 - col2 AS col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT + ( col2 ) + ( col2 ) AS col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL + 75 * + col1 + + 9 - + col1 * col1 AS col2 FROM tab1 AS cor0
----
1283
659
815

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 * col1 col0 FROM tab2 AS cor0
----
1239
357
651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 + col1 col2 FROM tab0
----
119
173
98

query I rowsort
SELECT + - col0 * + 99 + + col0 * col1 + cor0.col2 * col2 * + cor0.col2 FROM tab0 AS cor0
----
-69
35625
550656

query I rowsort
SELECT DISTINCT col2 * ( - ( col0 ) ) * 90 AS col0 FROM tab2 AS cor0
----
-17010
-182520
-270180

onlyif mysql # use DIV operator for integer division
query I rowsort label-9083
SELECT - col1 DIV 95 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9083
SELECT - col1 / 95 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * 33 + + cor0.col0 FROM tab0 AS cor0
----
2862
3092
3236

onlyif mysql # use DIV operator for integer division
query I rowsort label-9085
SELECT DISTINCT col1 DIV ( + col2 ) FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-9085
SELECT DISTINCT col1 / ( + col2 ) FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT ALL - 52 FROM tab1, tab1 cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT DISTINCT - col0 * ( col1 ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL 91 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT + col0 * + col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT col0 * - cor0.col0 * - col0 AS col1 FROM tab0 cor0
----
13824
42875
704969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - col0 * - cor0.col1 col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT - 11 + + col2 * + col2 FROM tab1 AS cor0
----
2905
3238
9205

query I rowsort
SELECT + - ( 74 ) * cor0.col2 FROM tab0 AS cor0
----
-2442
-6068
-74

query I rowsort
SELECT DISTINCT - ( 38 ) * + col2 FROM tab0 AS cor0
----
-1254
-3116
-38

query I rowsort
SELECT ALL col1 * 22 FROM tab0 AS cor0
----
1892
2002
2134

query I rowsort
SELECT ALL + 67 * col1 * - col2 FROM tab2 AS cor0
----
-102778
-43282
-56079

query I rowsort
SELECT ( + cor0.col1 ) + 9 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 512eb82a39f70c55a5fe947f93fbf94a

query I rowsort
SELECT + ( 41 ) * col1 + 27 + - cor0.col0 * + col0 FROM tab2 AS cor0
----
-3638
-5517
1249

query I rowsort
SELECT + col1 * + col2 * + col1 + col1 AS col2 FROM tab0 AS cor0
----
244154
679133
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * - 16 col2 FROM tab1 AS cor0
----
-150
-195
-390

onlyif mysql # use DIV operator for integer division
query I rowsort label-9101
SELECT - col0 DIV col0 + col1 FROM tab2 cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-9101
SELECT - col0 / col0 + col1 FROM tab2 cor0
----
16
30
58

query I rowsort
SELECT + col1 * - 93 AS col1 FROM tab1 AS cor0
----
-1209
-2418
-930

skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 + - CAST ( + col1 AS REAL ) * col1 * - col0 FROM tab0 AS cor0
----
177480
329280
736920

query I rowsort
SELECT ALL + + col1 * 76 AS col0 FROM tab1 AS cor0
----
1976
760
988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9105
SELECT - col0 + + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9105
SELECT - col0 + + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * 2 + - col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - + 52 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT 77 + col2 FROM tab2 AS cor0
----
103
104
115

query I rowsort
SELECT + + 36 FROM tab0, tab2 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN ( + col0 * col1 ) AND col1 + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT col1 + - col0 - col0 FROM tab2
----
-141
-97
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-9113
SELECT col0 * col1 DIV col0 + col2 * col0 AS col0 FROM tab2
----
2087
220
3019

skipif mysql # not compatible
query I rowsort label-9113
SELECT col0 * col1 / col0 + col2 * col0 AS col0 FROM tab2
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-9114
SELECT col0 * + tab1.col2 DIV + col2 AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9114
SELECT col0 * + tab1.col2 / + col2 AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL col0 + - col1 + tab0.col1 * col0 FROM tab0
----
2002
3333
8097

query I rowsort
SELECT - col1 + - col1 + tab0.col2 AS col1 FROM tab0 WHERE NOT tab0.col2 + col1 < + col1
----
-100
-139
-193

query I rowsort
SELECT + 54 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT DISTINCT + - col1 - + col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT col1 * - col0 + - col0 * col0 AS col0 FROM tab2 AS cor0
----
-10686
-266
-7584

query I rowsort
SELECT DISTINCT - + col1 + + col1 - ( col2 ) AS col0 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT + - 44 - + cor0.col1 AS col2 FROM tab1 AS cor0
----
-54
-57
-70

query I rowsort
SELECT + col2 - + col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT col2 * + cor0.col1 * 94 FROM tab1 AS cor0
----
117312
131976
53580

onlyif mysql # use DIV operator for integer division
query I rowsort label-9124
SELECT 62 * + col0 DIV - col0 col2 FROM tab0
----
-62
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9124
SELECT 62 * + col0 / - col0 col2 FROM tab0
----
-62
-62
-62

query I rowsort
SELECT + col2 * + 60 + col2 FROM tab1
----
3294
3477
5856

query I rowsort
SELECT + - col0 + - col0 * - col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL 47 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9128
SELECT + - col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9128
SELECT + - col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT + ( 59 + - col1 ) AS col1 FROM tab0
----
-27
-32
-38

query I rowsort
SELECT 85 * + col1 + col0 FROM tab1 cor0
----
1185
2213
914

query I rowsort
SELECT + col2 * 24 FROM tab2 AS cor0
----
624
648
912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col0 - + col2 col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT - ( - 59 ) * + cor1.col2 * cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
38114
49383
90506

query I rowsort
SELECT - 8 * + col0 AS col2 FROM tab0 AS cor0
----
-192
-280
-712

query I rowsort
SELECT - + 87 * cor0.col2 FROM tab0 AS cor0
----
-2871
-7134
-87

query I rowsort
SELECT ALL - 96 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( - col2 + col0 ) * ( + col0 ) col0 FROM tab1
----
-4480
16640
3978

query I rowsort
SELECT ALL - 55 * + col0 FROM tab2 AS cor0
----
-385
-4290
-4345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 + - cor0.col0 * + col2 col1 FROM tab0 AS cor0
----
-7263
-757
0

query I rowsort
SELECT - col0 * + 62 FROM tab2 cor0
----
-434
-4836
-4898

query I rowsort
SELECT 43 + - col0 FROM tab2
----
-35
-36
36

query I rowsort
SELECT - col1 + tab1.col1 * - col1 * tab1.col1 FROM tab1
----
-1010
-17602
-2210

query I rowsort
SELECT 5 + col0 AS col1 FROM tab2
----
12
83
84

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + ( col2 ) * cor0.col2 * + CAST ( col1 AS REAL ) + cor0.col1 * ( col2 ) / - col2 FROM tab1 AS cor0
----
119795
32480
75790

query I rowsort
SELECT DISTINCT - 50 - - cor0.col0 AS col1 FROM tab2 AS cor0
----
-43
28
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 67 col2 FROM tab1 AS cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + 10 AS INTEGER ) + col2 * CAST ( + col1 AS REAL ) FROM tab2 cor0
----
1544
656
847

query I rowsort
SELECT ALL + - col2 * col0 + col1 * + col1 FROM tab1 AS cor0
----
-3548
-7511
514

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 88 col2 FROM tab0 AS cor0
----
-88
-88
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-9151
SELECT DISTINCT - - 75 DIV cor0.col0 - cor0.col0 FROM tab2 AS cor0
----
-78
-79
3

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT - - 75 / cor0.col0 - cor0.col0 FROM tab2 AS cor0
----
-78
-79
3

query I rowsort
SELECT DISTINCT tab1.col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
10
13
26

query I rowsort
SELECT ( tab1.col1 ) + - 38 FROM tab1
----
-12
-25
-28

query I rowsort
SELECT DISTINCT col0 * + tab2.col1 * col0 + + 39 * col2 AS col2 FROM tab2
----
107579
2572
359970

onlyif mysql # use DIV operator for integer division
query I rowsort label-9155
SELECT DISTINCT col2 + - col2 * col1 * col1 + col2 DIV tab0.col2 FROM tab0
----
-244034
-678959
-9407

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT col2 + - col2 * col1 * col1 + col2 / tab0.col2 FROM tab0
----
-244034
-678959
-9407

query I rowsort
SELECT ALL - 78 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c4f3c63f98c3c08f2848f46850a476d4

query I rowsort
SELECT col1 * col1 - ( - col1 ) AS col1 FROM tab2 AS cor0
----
306
3540
992

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9158
SELECT ALL - - col0 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9158
SELECT ALL - - col0 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 * - 93 + - col2 * col2 * 81 FROM tab1 AS cor0
----
-233778
-262239
-745287

query I rowsort
SELECT ALL - col2 * col2 - + col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT DISTINCT col2 * cor0.col2 + cor0.col1 * - cor0.col1 * col1 AS col1 FROM tab2 cor0
----
-204703
-29062
-3469

query I rowsort
SELECT + col2 + + col2 + - col2 AS col0 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * 70 + 1 col1 FROM tab0 AS cor0
----
2311
5741
71

query I rowsort
SELECT - col1 + + 8 AS col1 FROM tab1 AS cor0
----
-18
-2
-5

query I rowsort
SELECT DISTINCT - - cor0.col2 + - cor0.col2 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9166
SELECT ALL + 30 DIV col1 + + col1 * - col1 * col2 AS col2 FROM tab2
----
-10981
-25947
-90506

skipif mysql # not compatible
query I rowsort label-9166
SELECT ALL + 30 / col1 + + col1 * - col1 * col2 AS col2 FROM tab2
----
-10981
-25947
-90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-9167
SELECT DISTINCT col2 + + tab0.col1 DIV - col2 AS col2 FROM tab0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT col2 + + tab0.col1 / - col2 AS col2 FROM tab0
----
-96
31
81

query I rowsort
SELECT + 6 + + col0 + col0 FROM tab0
----
184
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-9169
SELECT DISTINCT - - col0 DIV 18 FROM tab1 AS cor0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-9169
SELECT DISTINCT - - col0 / 18 FROM tab1 AS cor0
----
0
3
4

query I rowsort
SELECT DISTINCT - cor0.col1 * ( - 77 ) FROM tab0 AS cor0
----
6622
7007
7469

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9171
SELECT DISTINCT + cor0.col0 * CAST( 14 AS SIGNED ) + - col1 * col1 FROM tab1 AS cor0
----
-634
796
951

skipif mysql # not compatible
query I rowsort label-9171
SELECT DISTINCT + cor0.col0 * CAST ( 14 AS INTEGER ) + - col1 * col1 FROM tab1 AS cor0
----
-634
796
951

query I rowsort
SELECT - 19 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT - + col1 * - col1 + col2 AS col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT + col1 * - ( - col0 ) AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - - ( 92 ) + - col2 * col0 FROM tab1 AS cor0
----
-3556
-70
-7588

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL 99 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT ALL 16 + + col1 * + ( - col0 + - col1 ) FROM tab1 AS cor0
----
-1193
-724
-738

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) * 73 col0 FROM tab0 AS cor0
----
6278
6643
7081

query I rowsort
SELECT DISTINCT col0 * - cor0.col2 * ( col0 ) AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9181
SELECT ALL - - 27 * col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL - - 27 * col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 19 * col2 AS col1 FROM tab1 cor0
----
1026
1083
1824

query I rowsort
SELECT DISTINCT - cor0.col1 + col1 * + col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT ALL 10 - - col2 * + 31 AS col2 FROM tab0 AS cor0
----
1033
2552
41

query I rowsort
SELECT - cor0.col1 * + col2 + 28 AS col1 FROM tab2 AS cor0
----
-1506
-618
-809

query I rowsort
SELECT ALL - - ( cor0.col0 ) * 12 AS col2 FROM tab2 AS cor0
----
84
936
948

onlyif mysql # use DIV operator for integer division
query I rowsort label-9187
SELECT DISTINCT 20 + - cor0.col1 DIV - ( + col0 ) FROM tab2 cor0
----
20
24

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT 20 + - cor0.col1 / - ( + col0 ) FROM tab2 cor0
----
20
24

query I rowsort
SELECT ALL + - 67 + - col1 * 36 FROM tab1 AS cor0
----
-1003
-427
-535

query I rowsort
SELECT + - col0 + + col0 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 * + cor0.col2 * 51 AS col2 FROM tab0 AS cor0
----
-144738
-380562
-4947

query I rowsort
SELECT ALL - - col2 * col2 + 10 + - col2 AS col1 FROM tab1 cor0
----
2872
3202
9130

query I rowsort
SELECT cor0.col2 * tab0.col0 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 902505fbcf7f17c64fec98cb613bf3ef

query I rowsort
SELECT ALL 34 * 55 FROM tab1
----
1870
1870
1870

query I rowsort
SELECT + col2 * col2 + col2 AS col0 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT ALL col2 * + col1 * - col1 + + tab0.col0 AS col1 FROM tab0
----
-244044
-678953
-9374

query I rowsort
SELECT ALL + col1 + col0 * + 92 + - col2 FROM tab0
----
2261
3316
8197

query I rowsort
SELECT ALL - + 91 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-3003
-7462
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9198
SELECT 28 / col1 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9198
SELECT 28 / col1 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + cor0.col0 + + col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL + 2 * col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1292
1674
3068

query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 + cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
-193
-3344
-923

query I rowsort
SELECT ( + 22 ) FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col0 col2 FROM tab0
----
2
62

query I rowsort
SELECT - 45 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT ALL + ( - col2 * col2 ) AS col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - 64 * + col2 AS col1 FROM tab2
----
-1664
-1728
-2432

onlyif mysql # use DIV operator for integer division
query I rowsort label-9207
SELECT ALL + ( col0 ) DIV tab1.col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL + ( col0 ) / tab1.col0 FROM tab1
----
1
1
1

query I rowsort
SELECT - + 69 + - col0 AS col0 FROM tab2 AS cor0
----
-147
-148
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9209
SELECT col1 * + cor0.col2 + + CAST( col1 AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
10234
15743
9506

skipif mysql # not compatible
query I rowsort label-9209
SELECT col1 * + cor0.col2 + + CAST ( col1 AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
10234
15743
9506

query I rowsort
SELECT - ( cor0.col0 ) * + col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT - cor0.col1 * col2 + + 88 AS col0 FROM tab2 AS cor0
----
-1446
-558
-749

query I rowsort
SELECT - col2 + col0 * + 27 * + col0 FROM tab2 AS cor0
----
1296
164242
168469

query I rowsort
SELECT ALL 86 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT DISTINCT + + cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + - col1 * - ( + col1 ) FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 24 * - col2 col2 FROM tab1
----
-13680
-29952
-33696

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9217
SELECT ALL col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9218
SELECT DISTINCT + col0 + - col1 DIV + 20 FROM tab1 AS cor0
----
2
64
80

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT + col0 + - col1 / + 20 FROM tab1 AS cor0
----
2
64
80

query I rowsort
SELECT col1 * ( ( col0 ) ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col0 * + col2 * + col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT + col2 + 9 FROM tab0 cor0
----
10
42
91

query I rowsort
SELECT - col1 * + ( + 13 ) FROM tab1 AS cor0
----
-130
-169
-338

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9223
SELECT - col0 / ( + col0 ) - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9223
SELECT - col0 / ( + col0 ) - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 52 - col0 AS col1 FROM tab2 cor0
----
-26
-27
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-9225
SELECT ( cor0.col2 ) DIV col0 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9225
SELECT ( cor0.col2 ) / col0 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + col1 + - 45 * - col1 FROM tab1 AS cor0
----
1196
460
598

query I rowsort
SELECT + + ( + 90 ) AS col0 FROM tab1 AS cor0
----
90
90
90

query I rowsort
SELECT ( ( col0 ) ) * col2 FROM tab0 cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-9229
SELECT 12 * 31 DIV col1 col0 FROM tab0 AS cor0
----
3
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9229
SELECT 12 * 31 / col1 col0 FROM tab0 AS cor0
----
3
4
4

query I rowsort
SELECT ALL - - ( col0 ) * + col1 AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT 24 + col1 FROM tab0 cor0
----
110
115
121

query I rowsort
SELECT ALL + + ( + col0 ) * + col0 AS col2 FROM tab2 cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-9233
SELECT DISTINCT 79 + col2 DIV col2 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9233
SELECT DISTINCT 79 + col2 / col2 FROM tab0 AS cor0
----
80

query I rowsort
SELECT DISTINCT - col0 + - 69 FROM tab1 AS cor0
----
-133
-149
-72

query I rowsort
SELECT - col0 + - 45 * cor0.col2 FROM tab0 AS cor0
----
-1509
-3779
-80

query I rowsort
SELECT ALL + + ( col2 ) * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + col0 * + col2 + + col2 * - 66 + col1 * col2 FROM tab2 AS cor0
----
-756
1140
1846

query I rowsort
SELECT DISTINCT - - col2 * + col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + 42 AS col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT 27 * + col1 AS col1 FROM tab2
----
1593
459
837

query I rowsort
SELECT ALL + - col2 * col0 + + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-9242
SELECT - col1 DIV + 54 + + col1 * 31 - + 89 DIV col1 FROM tab1
----
302
397
803

skipif mysql # not compatible
query I rowsort label-9242
SELECT - col1 / + 54 + + col1 * 31 - + 89 / col1 FROM tab1
----
302
397
803

query I rowsort
SELECT DISTINCT 86 + 33 - col2 AS col0 FROM tab2
----
81
92
93

query I rowsort
SELECT ALL col2 * col2 + - col2 * col0 + - col0 FROM tab2 AS cor0
----
-1430
-1637
533

query I rowsort
SELECT ALL + col1 + + ( - col2 ) FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL col2 + col2 * col0 AS col2 FROM tab0 cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - cor0.col0 col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - 48 + - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-4144
-57
-6448

query I rowsort
SELECT ALL - + col0 * + cor0.col2 + + col0 + + col2 * + col2 AS col2 FROM tab1 AS cor0
----
-335
1616
2757

query I rowsort
SELECT + + ( col0 ) + - col1 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT ALL col1 + cor0.col2 AS col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL 47 + 94 AS col2 FROM tab1
----
141
141
141

query I rowsort
SELECT ALL - + 93 * - col1 FROM tab1 AS cor0
----
1209
2418
930

query I rowsort
SELECT ALL + col1 - col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 * 67 - - 71 * + col1 AS col2 FROM tab2
----
2346
4278
8142

onlyif mysql # use DIV operator for integer division
query I rowsort label-9256
SELECT col1 * col0 DIV - 53 AS col0 FROM tab2
----
-25
-4
-86

skipif mysql # not compatible
query I rowsort label-9256
SELECT col1 * col0 / - 53 AS col0 FROM tab2
----
-25
-4
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-9257
SELECT + cor0.col0 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9257
SELECT + cor0.col0 / cor0.col0 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9258
SELECT col2 DIV ( col0 + + cor0.col1 ) FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9258
SELECT col2 / ( col0 + + cor0.col1 ) FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT + col2 * 18 AS col1 FROM tab2
----
468
486
684

onlyif mysql # use DIV operator for integer division
query I rowsort label-9260
SELECT + col2 + - col0 DIV - col2 col2 FROM tab1
----
54
58
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9260
SELECT + col2 + - col0 / - col2 col2 FROM tab1
----
54
58
96

query I rowsort
SELECT DISTINCT tab2.col0 * 4 * 64 FROM tab2
----
1792
19968
20224

query I rowsort
SELECT - 48 - + ( + col2 * + col2 ) AS col0 FROM tab0 AS cor0
----
-1137
-49
-6772

query I rowsort
SELECT + cor0.col2 + 1 FROM tab1 AS cor0
----
55
58
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9264
SELECT DISTINCT + col0 DIV + 93 - - col1 AS col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-9264
SELECT DISTINCT + col0 / + 93 - - col1 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL 90 AS col1 FROM tab1 AS cor0
----
90
90
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9266
SELECT - - CAST( col2 AS SIGNED ) - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-9266
SELECT - - CAST ( col2 AS INTEGER ) - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL + col2 + 77 * cor0.col0 * - 48 AS col1 FROM tab1 AS cor0
----
-11034
-236487
-295584

query I rowsort
SELECT ALL + ( col0 ) * col0 + + tab1.col2 FROM tab1
----
4153
63
6496

query I rowsort
SELECT DISTINCT 74 + - cor0.col2 AS col1 FROM tab1, tab0 AS cor0
----
-8
41
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-9270
SELECT ALL tab2.col2 DIV col1 + col0 + col0 FROM tab2
----
14
156
160

skipif mysql # not compatible
query I rowsort label-9270
SELECT ALL tab2.col2 / col1 + col0 + col0 FROM tab2
----
14
156
160

query I rowsort
SELECT DISTINCT - col2 * + col0 + col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + + 44 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
54
57
70

query I rowsort
SELECT ALL + 45 + + 46 AS col2 FROM tab1 AS cor0
----
91
91
91

query I rowsort
SELECT - + 98 - col2 * col0 FROM tab1 AS cor0
----
-260
-3746
-7778

query I rowsort
SELECT + ( cor0.col2 ) * - col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + - ( - cor0.col2 ) * - col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9277
SELECT DISTINCT CAST( NULL AS SIGNED ) * cor0.col2 * col1 - col2 * + ( col0 ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9277
SELECT DISTINCT CAST ( NULL AS INTEGER ) * cor0.col2 * col1 - col2 * + ( col0 ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9278
SELECT + 29 + - 12 DIV - col0 FROM tab1 AS cor0
----
29
29
33

skipif mysql # not compatible
query I rowsort label-9278
SELECT + 29 + - 12 / - col0 FROM tab1 AS cor0
----
29
29
33

query I rowsort
SELECT ALL col0 + 15 FROM tab0 AS cor0
----
104
39
50

query I rowsort
SELECT col2 + - col2 * + col0 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( + col1 AS REAL ) * - col1 * - cor0.col0 + - 13 FROM tab1 AS cor0
----
13507
2015
6387

query I rowsort
SELECT DISTINCT col1 * col0 + + col2 AS col2 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9283
SELECT - + CAST( NULL AS SIGNED ) * - col0 + - col1 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-9283
SELECT - + CAST ( NULL AS INTEGER ) * - col0 + - col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + + 0 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT - ( + col1 ) + tab2.col1 * 20 + tab2.col0 * col0 AS col1 FROM tab2
----
638
6564
7205

onlyif mysql # use DIV operator for integer division
query I rowsort label-9286
SELECT + 51 * + col2 + + col0 * 56 DIV + col2 col0 FROM tab0
----
1723
2011
4242

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9286
SELECT + 51 * + col2 + + col0 * 56 / + col2 col0 FROM tab0
----
1723
2011
4242

query I rowsort
SELECT DISTINCT - col1 + 57 FROM tab0
----
-29
-34
-40

query I rowsort
SELECT 0 * col0 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9289
SELECT tab2.col1 DIV ( + tab2.col1 + - 85 ) FROM tab2
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9289
SELECT tab2.col1 / ( + tab2.col1 + - 85 ) FROM tab2
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 + - col0 * + col1 col0 FROM tab0
----
-2036
-3367
-8071

query I rowsort
SELECT ALL - col1 * + 36 + col1 AS col2 FROM tab0 AS cor0
----
-3010
-3185
-3395

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col1 AS REAL ) * + col1 * 69 FROM tab0
----
-510324
-571389
-649221

query I rowsort
SELECT DISTINCT - ( - 22 ) * col1 AS col1 FROM tab0 cor0
----
1892
2002
2134

query I rowsort
SELECT + col2 - - 5 FROM tab0 AS cor0
----
38
6
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-9295
SELECT col2 - cor0.col2 * 28 DIV + cor0.col2 FROM tab0 AS cor0
----
-27
5
54

skipif mysql # not compatible
query I rowsort label-9295
SELECT col2 - cor0.col2 * 28 / + cor0.col2 FROM tab0 AS cor0
----
-27
5
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - col2 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col1 * col1 * col2 AS col1 FROM tab0 AS cor0
----
244068
679042
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 * col0 col1 FROM tab1 AS cor0
----
270
5760
7200

query I rowsort
SELECT ALL + 27 * col0 * - col0 + + col2 FROM tab1 AS cor0
----
-110535
-172704
-189

query I rowsort
SELECT - 24 * col0 FROM tab2
----
-168
-1872
-1896

onlyif mysql # use DIV operator for integer division
query I rowsort label-9301
SELECT - 50 DIV + col2 + - col0 * 53 + - col2 * col0 * + 11 FROM tab0
----
-2290
-84995
-9985

skipif mysql # not compatible
query I rowsort label-9301
SELECT - 50 / + col2 + - col0 * 53 + - col2 * col0 * + 11 FROM tab0
----
-2290
-84995
-9985

query I rowsort
SELECT 58 + - tab1.col2 + + col2 AS col0 FROM tab1
----
58
58
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-9303
SELECT - col0 - col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-9303
SELECT - col0 - col1 / - col1 AS col0 FROM tab1 AS cor0
----
-2
-63
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9304
SELECT col0 * - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9304
SELECT col0 * - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - 77 + + col0 FROM tab2 AS cor0
----
-1924
-2072
-2847

onlyif mysql # use DIV operator for integer division
query I rowsort label-9306
SELECT DISTINCT - cor0.col1 DIV ( ( - col1 ) + ( col0 ) ) FROM tab2 AS cor0
----
-3
0
1

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT - cor0.col1 / ( ( - col1 ) + ( col0 ) ) FROM tab2 AS cor0
----
-3
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9307
SELECT - col1 + + col1 DIV col2 AS col1 FROM tab0 AS cor0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-9307
SELECT - col1 + + col1 / col2 AS col1 FROM tab0 AS cor0
----
-84
-90
0

query I rowsort
SELECT + col1 * 76 FROM tab2 AS cor0
----
1292
2356
4484

query I rowsort
SELECT DISTINCT + + col1 * 31 FROM tab2 cor0
----
1829
527
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-9310
SELECT DISTINCT col0 + col0 DIV - 98 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT col0 + col0 / - 98 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 + col0 * col0 * col1 col0 FROM tab1
----
235
40961
83201

query I rowsort
SELECT DISTINCT + col1 * ( 66 ) + - cor0.col2 * 16 + - col1 FROM tab0 AS cor0
----
4603
5062
6289

onlyif mysql # use DIV operator for integer division
query I rowsort label-9313
SELECT + - col0 DIV 27 FROM tab2 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-9313
SELECT + - col0 / 27 FROM tab2 AS cor0
----
-2
-2
0

query I rowsort
SELECT DISTINCT - - col1 * cor0.col2 AS col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col0 + col0 * col2 AS col2 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT ALL cor0.col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9317
SELECT ALL - + col2 * - col1 + ( - cor0.col0 ) + + CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL - + col2 * - col1 + ( - cor0.col0 ) + + CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9318
SELECT + - 36 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-9318
SELECT + - 36 / + col1 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 64 col0 FROM tab0 AS cor0
----
-64
-64
-64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9320
SELECT ALL - 41 * - col2 + + col0 * - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL - 41 * - col2 + + col0 * - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9321
SELECT cor1.col1 + - CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9321
SELECT cor1.col1 + - CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col1 * - col2 + ( - col0 + - 58 ) * col2 FROM tab2 AS cor0
----
-2592
-5070
-5852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + tab2.col2 ) col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + col1 - ( 32 ) FROM tab0 cor0
----
54
59
65

query I rowsort
SELECT col0 + ( + 27 ) FROM tab2 AS cor0
----
105
106
34

query I rowsort
SELECT DISTINCT tab2.col1 AS col0 FROM tab2, tab1 AS cor0, tab0, tab1 AS cor1
----
17
31
59

query I rowsort
SELECT + 97 * - tab1.col0 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 2bbab9d7f893013698f87fc95573f600

query I rowsort
SELECT col0 - cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * - 33 FROM tab0 AS cor0
----
-1155
-2937
-792

query I rowsort
SELECT DISTINCT - 18 * - cor0.col0 FROM tab0 AS cor0
----
1602
432
630

query I rowsort
SELECT 71 + cor0.col0 * col1 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
1431
319
4732

query I rowsort
SELECT DISTINCT + col1 + + 78 AS col2 FROM tab1 AS cor0
----
104
88
91

query I rowsort
SELECT DISTINCT + col0 * - 90 * col1 FROM tab1 AS cor0
----
-57600
-7020
-93600

query I rowsort
SELECT ALL - ( 74 ) AS col0 FROM tab2 cor0
----
-74
-74
-74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9335
SELECT - ( cor0.col2 ) * col2 + + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-1482
-702
-756

skipif mysql # not compatible
query I rowsort label-9335
SELECT - ( cor0.col2 ) * col2 + + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT ALL tab0.col0 * ( 22 ) FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 096f342b4fdf70bfc6900c3c29e7de18

query I rowsort
SELECT + col2 * - 69 FROM tab0 cor0
----
-2277
-5658
-69

query I rowsort
SELECT - col1 * col2 + + 82 AS col2 FROM tab2 AS cor0
----
-1452
-564
-755

query I rowsort
SELECT - 46 + col0 FROM tab2 AS cor0
----
-39
32
33

query I rowsort
SELECT DISTINCT - 8 + col1 AS col2 FROM tab0 AS cor0
----
78
83
89

query I rowsort
SELECT DISTINCT + + col1 + + col0 AS col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT - - col1 * - col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-9343
SELECT - + col2 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9343
SELECT - + col2 / col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col0 + col1 * ( - col0 ) AS col2 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT + col1 * + 68 AS col2 FROM tab1 AS cor0
----
1768
680
884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - ( ( - cor0.col0 ) ) col1 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-9347
SELECT - col2 DIV - 21 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-9347
SELECT - col2 / - 21 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9348
SELECT DISTINCT - - col0 * - CAST( 61 AS SIGNED ) * - col0 + + cor0.col1 * + col2 FROM tab0 AS cor0
----
37974
490643
74822

skipif mysql # not compatible
query I rowsort label-9348
SELECT DISTINCT - - col0 * - CAST ( 61 AS INTEGER ) * - col0 + + cor0.col1 * + col2 FROM tab0 AS cor0
----
37974
490643
74822

query I rowsort
SELECT DISTINCT - cor0.col1 * col0 - + col0 FROM tab2 cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL 12 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT ALL - 87 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9

query I rowsort
SELECT - - col0 * + 20 + - col1 FROM tab1 AS cor0
----
1270
1587
34

query I rowsort
SELECT + - cor0.col2 + + 8 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 9e822ab1600f8fdf12c3eead5dd53b1b

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1, tab2 AS cor2
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2

query I rowsort
SELECT ALL - - 26 + col0 AS col1 FROM tab0 AS cor0
----
115
50
61

query I rowsort
SELECT DISTINCT - ( tab2.col1 ) * + tab2.col0 AS col2 FROM tab2, tab0, tab1 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-9357
SELECT ALL ( + col1 ) DIV col0 AS col1 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL ( + col1 ) / col0 AS col1 FROM tab0
----
1
2
3

query I rowsort
SELECT - - col1 + col2 AS col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT col0 + + col2 * - 5 * + 83 FROM tab2 cor0
----
-10712
-11198
-15691

query I rowsort
SELECT ALL + col0 * col1 * ( col2 * + col2 + col2 ) AS col1 FROM tab0 AS cor0
----
2315808
55121794
6790

onlyif mysql # use DIV operator for integer division
query I rowsort label-9361
SELECT DISTINCT col0 * - col2 + col1 DIV + 10 AS col1 FROM tab0 AS cor0
----
-26
-7289
-784

skipif mysql # not compatible
query I rowsort label-9361
SELECT DISTINCT col0 * - col2 + col1 / + 10 AS col1 FROM tab0 AS cor0
----
-26
-7289
-784

query I rowsort
SELECT ALL - 27 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT DISTINCT - ( - col2 ) * - tab0.col2 AS col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT tab0.col0 * - 92 + + col0 FROM tab0
----
-2184
-3185
-8099

query I rowsort
SELECT - col1 - col2 * - col1 AS col2 FROM tab0
----
0
2752
7371

query I rowsort
SELECT DISTINCT col0 * col0 + col2 AS col2 FROM tab2
----
6110
6279
76

query I rowsort
SELECT ALL ( 77 ) AS col1 FROM tab1 AS cor0
----
77
77
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-9368
SELECT DISTINCT - - col1 DIV - col0 + - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-34

skipif mysql # not compatible
query I rowsort label-9368
SELECT DISTINCT - - col1 / - col0 + - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-9369
SELECT ALL + col2 + 64 DIV col2 FROM tab1 AS cor0
----
55
58
96

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL + col2 + 64 / col2 FROM tab1 AS cor0
----
55
58
96

query I rowsort
SELECT ALL + 68 + col0 AS col1 FROM tab0 AS cor0
----
103
157
92

query I rowsort
SELECT - 46 * col2 FROM tab1 AS cor0
----
-2484
-2622
-4416

query I rowsort
SELECT DISTINCT - 68 * - col1 FROM tab2 cor0
----
1156
2108
4012

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9373
SELECT ALL + CAST( - col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL + CAST ( - col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-9374
SELECT + + col0 DIV - col0 + col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-9374
SELECT + + col0 / - col0 + col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT DISTINCT + - col0 * - 86 FROM tab1 AS cor0
----
258
5504
6880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 col0 FROM tab1 cor0
----
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-9377
SELECT + col1 DIV + ( - cor0.col1 ) FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9377
SELECT + col1 / + ( - cor0.col1 ) FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - ( ( + cor0.col0 ) ) + - ( col1 ) FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL + 86 + 13 * col0 * col2 FROM tab2 AS cor0
----
2543
26450
39112

query I rowsort
SELECT col0 * col1 + col1 * col1 AS col0 FROM tab1 AS cor0
----
1209
740
754

query I rowsort
SELECT ALL - ( 46 ) AS col1 FROM tab1 cor0
----
-46
-46
-46

query I rowsort
SELECT + 77 * col1 - col2 * - col1 FROM tab0 AS cor0
----
14469
7566
9460

query I rowsort
SELECT - col0 * col1 - - col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL ( + ( + col0 ) ) * + col2 * + col1 AS col0 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT - col0 * - cor0.col2 - col0 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9386
SELECT DISTINCT + CAST( ( + col1 ) AS SIGNED ) * - 48 FROM tab1 AS cor0
----
-1248
-480
-624

skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT + CAST ( ( + col1 ) AS INTEGER ) * - 48 FROM tab1 AS cor0
----
-1248
-480
-624

query I rowsort
SELECT ALL - col0 + col0 * + 89 AS col0 FROM tab2 AS cor0
----
616
6864
6952

query I rowsort
SELECT DISTINCT + cor0.col2 + col1 * 19 AS col2 FROM tab0 AS cor0
----
1667
1811
1844

query I rowsort
SELECT ALL + - col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9390
SELECT ALL - col0 DIV col0 + col2 + col2 AS col2 FROM tab1
----
107
113
191

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL - col0 / col0 + col2 + col2 AS col2 FROM tab1
----
107
113
191

query I rowsort
SELECT - 71 + - 29 + - tab0.col0 FROM tab0
----
-124
-135
-189

query I rowsort
SELECT DISTINCT + + col1 - + ( + col1 ) * - col2 AS col2 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-9393
SELECT + col0 DIV 56 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9393
SELECT + col0 / 56 AS col0 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9394
SELECT DISTINCT + - cor0.col0 DIV col1 + ( col0 ) AS col2 FROM tab2 cor0
----
7
75
77

skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT + - cor0.col0 / col1 + ( col0 ) AS col2 FROM tab2 cor0
----
7
75
77

query I rowsort
SELECT DISTINCT + 89 AS col2 FROM tab2, tab1 AS cor0
----
89

query I rowsort
SELECT DISTINCT col2 * - col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT col1 * - 8 + cor0.col0 FROM tab1 AS cor0
----
-16
-205
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + ( - col2 ) col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT - + col1 + ( + col2 ) + + cor0.col2 AS col2 FROM tab1 AS cor0
----
104
179
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9400
SELECT col0 + - 47 DIV tab0.col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-9400
SELECT col0 + - 47 / tab0.col1 FROM tab0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col2 col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL col0 + ( - col0 ) + col2 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT ( tab1.col2 ) * + tab1.col1 AS col2 FROM tab1, tab2 AS cor0
----
1248
1404
570

query I rowsort
SELECT - - 12 + - col2 AS col0 FROM tab2 AS cor0
----
-14
-15
-26

query I rowsort
SELECT col0 + - tab0.col2 * + col1 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT - 88 * col0 FROM tab1
----
-264
-5632
-7040

query I rowsort
SELECT ALL 25 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
1992
2009
206

query I rowsort
SELECT ALL col0 * - col1 + + 14 AS col2 FROM tab2
----
-1329
-203
-4588

query I rowsort
SELECT - tab2.col0 * tab2.col2 * ( col2 ) FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT tab0.col2 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL - + cor0.col2 * col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9412
SELECT + ( col2 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT + ( col2 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + col0 * 75 ) FROM tab0
----
1800
2625
6675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + - 16 col2 FROM tab2 AS cor0
----
-23
-94
-95

query I rowsort
SELECT ALL col0 * col2 + col1 * + cor0.col0 * col1 FROM tab0 AS cor0
----
178296
329350
744307

query I rowsort
SELECT ALL + col2 + - ( 32 ) FROM tab0 cor0
----
-31
1
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * 57 col1 FROM tab1 AS cor0
----
-171
-3648
-4560

onlyif mysql # use DIV operator for integer division
query I rowsort label-9418
SELECT DISTINCT cor0.col1 DIV + 40 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9418
SELECT DISTINCT cor0.col1 / + 40 FROM tab0 AS cor0
----
2

query I rowsort
SELECT col2 + + ( col0 ) * - col1 AS col0 FROM tab2 cor0
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col0 * - col1 * col1 col2 FROM tab1 AS cor0
----
13533
2054
6410

query I rowsort
SELECT - col2 * 70 + 7 AS col1 FROM tab2 AS cor0
----
-1813
-1883
-2653

query I rowsort
SELECT ALL - - 33 + col0 AS col2 FROM tab1 AS cor0
----
113
36
97

query I rowsort
SELECT DISTINCT + + cor0.col0 + + col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - col0 * - tab0.col1 - col2 FROM tab0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-9425
SELECT - 95 DIV col2 FROM tab0 AS cor0
----
-1
-2
-95

skipif mysql # not compatible
query I rowsort label-9425
SELECT - 95 / col2 FROM tab0 AS cor0
----
-1
-2
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-9426
SELECT + col1 * col0 DIV cor0.col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-9426
SELECT + col1 * col0 / cor0.col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - col0 * + 75 + 45 AS col1 FROM tab1 AS cor0
----
-180
-4755
-5955

onlyif mysql # use DIV operator for integer division
query I rowsort label-9428
SELECT cor0.col0 DIV + cor0.col0 AS col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9428
SELECT cor0.col0 / + cor0.col0 AS col1 FROM tab2 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9429
SELECT ALL - - col1 * ( col1 ) DIV col0 FROM tab1 AS cor0
----
1
2
225

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL - - col1 * ( col1 ) / col0 FROM tab1 AS cor0
----
1
2
225

query I rowsort
SELECT + col0 * 52 * col0 AS col2 FROM tab1 AS cor0
----
212992
332800
468

onlyif mysql # use DIV operator for integer division
query I rowsort label-9431
SELECT + + col2 DIV + ( col1 ) AS col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-9431
SELECT + + col2 / + ( col1 ) AS col2 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT DISTINCT + col2 + - 99 FROM tab2 AS cor0
----
-61
-72
-73

query I rowsort
SELECT col2 * - col2 - - col2 * - col1 AS col1 FROM tab0
----
-14186
-3927
-98

query I rowsort
SELECT + tab0.col1 * + tab0.col2 + - col0 FROM tab0
----
2814
62
7373

query I rowsort
SELECT DISTINCT + col0 * + tab1.col1 - col0 * - col1 AS col1 FROM tab1
----
1280
156
2080

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( + col0 / col0 )
----

query I rowsort
SELECT col2 + + col2 / - col1 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( + col0 * - col1 * - col0 - + col0 * col1 ) AND ( - col0 * col2 )
----

query I rowsort
SELECT DISTINCT - col0 * col0 - - col2 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT - col1 * col1 - tab1.col1 FROM tab1
----
-110
-182
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * col2 col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT - tab0.col0 FROM tab0 WHERE NOT NULL NOT IN ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 IN ( + col2 + col1 + col0 * col1 )
----

query I rowsort
SELECT - col1 FROM tab1 WHERE NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT + tab2.col0 + + tab2.col0 AS col2 FROM tab2
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + + col1 * col2 col0 FROM tab2
----
-2356
-494
648

query I rowsort
SELECT ALL - col0 * - col0 + + col2 AS col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NOT + col2 * - col2 > NULL
----

query I rowsort
SELECT DISTINCT - tab1.col1 * col1 + tab1.col1 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT + tab1.col1 + + col2 * + col2 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT + col0 + tab1.col0 AS col1 FROM tab1
----
128
160
6

query I rowsort
SELECT ALL - col2 * - col2 - - col0 FROM tab2
----
1523
736
754

query I rowsort
SELECT ALL tab1.col2 * - col0 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT 50 * - cor0.col2 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 899b221586721133e45ba5e5d9d37425

query I rowsort
SELECT DISTINCT ( + col0 ) + col1 * col1 * - col2 FROM tab0 AS cor0
----
-244044
-678953
-9374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9456
SELECT ALL + col1 + col0 * - cor0.col1 * + col2 + col1 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL + col1 + col0 * - cor0.col1 * + col2 + col1 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col0 * col0 * 22 - col0 AS col0 FROM tab1 AS cor0
----
140720
195
90048

query I rowsort
SELECT DISTINCT + col2 + - tab1.col2 * - col2 AS col1 FROM tab1
----
2970
3306
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 69 ) col2 FROM tab1
----
69
69
69

query I rowsort
SELECT - col0 * col2 + + col2 + - col0 * - col0 FROM tab2
----
-113
3277
4082

onlyif mysql # use DIV operator for integer division
query I rowsort label-9461
SELECT - col0 DIV + col0 + + col0 AS col2 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-9461
SELECT - col0 / + col0 + + col0 AS col2 FROM tab0
----
23
34
88

query I rowsort
SELECT DISTINCT 28 + - col2 * + col0 FROM tab0
----
-7
-7270
-764

onlyif mysql # use DIV operator for integer division
query I rowsort label-9463
SELECT DISTINCT col1 + + col2 DIV + col2 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-9463
SELECT DISTINCT col1 + + col2 / + col2 FROM tab1
----
11
14
27

query I rowsort
SELECT + 61 + col0 * - 41 * + col2 AS col2 FROM tab0 cor0
----
-1374
-299157
-32411

query I rowsort
SELECT DISTINCT col2 * col1 * 21 AS col2 FROM tab1 AS cor0
----
11970
26208
29484

query I rowsort
SELECT DISTINCT col0 * col1 + + 66 + col1 AS col2 FROM tab2 AS cor0
----
1426
314
4727

query I rowsort
SELECT ALL - col2 - + cor0.col2 * - ( 43 * col1 ) AS col0 FROM tab0 AS cor0
----
122001
320784
4170

query I rowsort
SELECT ALL - ( col2 ) - - col1 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9469
SELECT + - col0 * col0 + + ( ( - col2 ) ) / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9469
SELECT + - col0 * col0 + + ( ( - col2 ) ) / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 65 AS col0 FROM tab1 cor0
----
-65
-65
-65

query I rowsort
SELECT ALL cor0.col0 * - cor0.col2 + col1 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-9472
SELECT DISTINCT - col1 + + col2 * - cor0.col2 DIV - col2 FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT - col1 + + col2 * - cor0.col2 / - col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-9474
SELECT - col2 DIV + 29 AS col2 FROM tab1 AS cor0
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-9474
SELECT - col2 / + 29 AS col2 FROM tab1 AS cor0
----
-1
-1
-3

query I rowsort
SELECT + col2 * - col0 + 25 AS col2 FROM tab2 AS cor0
----
-164
-2003
-2977

onlyif mysql # use DIV operator for integer division
query I rowsort label-9476
SELECT col1 - 40 DIV col2 FROM tab0 cor0
----
57
85
91

skipif mysql # not compatible
query I rowsort label-9476
SELECT col1 - 40 / col2 FROM tab0 cor0
----
57
85
91

query I rowsort
SELECT DISTINCT + ( + 25 ) * col0 FROM tab2 cor0
----
175
1950
1975

query I rowsort
SELECT ALL + col0 * col1 + - col2 * 21 AS col0 FROM tab0 AS cor0
----
1371
3374
6377

query I rowsort
SELECT - 62 - cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
-1596
-708
-899

query I rowsort
SELECT 45 * col0 AS col0 FROM tab1 AS cor0
----
135
2880
3600

query I rowsort
SELECT + cor0.col0 * - 69 FROM tab2 AS cor0
----
-483
-5382
-5451

query I rowsort
SELECT - ( col0 ) * + col1 + - col0 * cor0.col2 FROM tab1 AS cor0
----
-240
-4288
-8720

query I rowsort
SELECT DISTINCT col1 * 56 + + col2 FROM tab2 AS cor0
----
1763
3330
990

query I rowsort
SELECT cor0.col1 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT ALL - - cor0.col2 * col1 * - col0 AS col0 FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + 79 * + col1 FROM tab1 AS cor0
----
1027
2054
790

query I rowsort
SELECT ALL - 42 AS col1 FROM tab1 cor0
----
-42
-42
-42

query I rowsort
SELECT - 38 * + cor0.col2 FROM tab2 AS cor0
----
-1026
-1444
-988

query I rowsort
SELECT - - ( col1 ) * cor0.col1 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-9490
SELECT DISTINCT + - col0 + + col2 * col0 + col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
160
3585
7601

skipif mysql # not compatible
query I rowsort label-9490
SELECT DISTINCT + - col0 + + col2 * col0 + col2 / + col2 AS col0 FROM tab1 AS cor0
----
160
3585
7601

query I rowsort
SELECT - + col0 * + col0 - col0 FROM tab2 cor0
----
-56
-6162
-6320

query I rowsort
SELECT ALL - + col2 * - 77 AS col1 FROM tab2 AS cor0
----
2002
2079
2926

onlyif mysql # use DIV operator for integer division
query I rowsort label-9493
SELECT ALL + + col0 DIV + col1 col0 FROM tab1 AS cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9493
SELECT ALL + + col0 / + col1 col0 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT ALL - col2 + + col0 AS col0 FROM tab2 cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9495
SELECT - CAST( NULL AS SIGNED ) + ( col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9495
SELECT - CAST ( NULL AS INTEGER ) + ( col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9496
SELECT DISTINCT + + col2 DIV 88 AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT + + col2 / 88 AS col1 FROM tab0 cor0
----
0

query I rowsort
SELECT 6 + 35 AS col2 FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT DISTINCT 89 AS col2 FROM tab1 cor0
----
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9499
SELECT - col0 + cor0.col0 DIV + col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-9499
SELECT - col0 + cor0.col0 / + col0 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT DISTINCT + col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9501
SELECT ALL - CAST( 87 AS SIGNED ) + + col1 * col1 col0 FROM tab0 AS cor0
----
7309
8194
9322

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL - CAST ( 87 AS INTEGER ) + + col1 * col1 col0 FROM tab0 AS cor0
----
7309
8194
9322

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9502
SELECT - CAST( 5 AS SIGNED ) FROM tab2
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-9502
SELECT - CAST ( 5 AS INTEGER ) FROM tab2
----
-5
-5
-5

query I rowsort
SELECT ALL + col1 * col0 + - col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT - 17 * - col1 AS col2 FROM tab0 AS cor0
----
1462
1547
1649

onlyif mysql # use DIV operator for integer division
query I rowsort label-9505
SELECT - col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9505
SELECT - col1 / + col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 25 * col0 FROM tab1 AS cor0
----
1600
2000
75

query I rowsort
SELECT ALL col1 * - col0 + - col2 AS col0 FROM tab1 AS cor0
----
-1136
-132
-697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 + - col2 col2 FROM tab1 AS cor0
----
-44
-47
-86

query I rowsort
SELECT ALL + col1 + col0 * col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT 65 * col1 + col1 FROM tab0
----
5676
6006
6402

query I rowsort
SELECT 95 - - col2 AS col0 FROM tab2
----
121
122
133

query I rowsort
SELECT ALL ( col1 ) * col0 * + col1 FROM tab1 cor0
----
13520
2028
6400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9513
SELECT DISTINCT CAST( cor1.col2 AS SIGNED ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-9513
SELECT DISTINCT CAST ( cor1.col2 AS INTEGER ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT + ( + col1 ) + - col2 AS col0 FROM tab0
----
53
9
96

query I rowsort
SELECT DISTINCT - - tab0.col2 * + cor0.col2 AS col2 FROM tab0, tab2, tab1 AS cor0
----
9 values hashing to 1e358219bf03c93d7085a65107d13cf1

query I rowsort
SELECT ALL + + col0 + + col1 + - col1 * + 26 FROM tab1 cor0
----
-186
-245
-647

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 col1 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT DISTINCT - 80 * col1 FROM tab1
----
-1040
-2080
-800

query I rowsort
SELECT ALL - tab0.col2 + + 64 AS col0 FROM tab0
----
-18
31
63

query I rowsort
SELECT DISTINCT col1 * - col1 + col1 AS col0 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT col2 + 90 AS col0 FROM tab1
----
144
147
186

query I rowsort
SELECT + col0 + - 59 AS col2 FROM tab1 AS cor0
----
-56
21
5

query I rowsort
SELECT + col2 + col2 * col0 AS col1 FROM tab2 cor0
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * - col2 + col2 col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + col2 + - 3 FROM tab0
----
-2
30
79

query I rowsort
SELECT 6 + 13 FROM tab0, tab0 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT ALL - col1 * ( - col1 ) + + col1 FROM tab1
----
110
182
702

query I rowsort
SELECT DISTINCT - col2 + - tab0.col2 * tab0.col0 * col2 FROM tab0
----
-26169
-36
-598518

query I rowsort
SELECT col2 + - ( + col0 ) + col0 AS col1 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-9530
SELECT DISTINCT - col2 DIV - 59 + col2 FROM tab0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT - col2 / - 59 + col2 FROM tab0
----
1
33
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9531
SELECT DISTINCT - col0 + + CAST( col1 AS SIGNED ) FROM tab1
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT - col0 + + CAST ( col1 AS INTEGER ) FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT - col0 + - 47 * + tab1.col1 AS col0 FROM tab1
----
-1225
-534
-691

query I rowsort
SELECT DISTINCT - col2 * col0 * col0 + + ( 86 * + col0 ) FROM tab1 cor0
----
-227968
-228
-607520

query I rowsort
SELECT ALL ( 21 ) * col1 AS col1 FROM tab2 AS cor0
----
1239
357
651

query I rowsort
SELECT + cor0.col2 + col2 AS col1 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT DISTINCT 69 * tab2.col2 FROM tab2
----
1794
1863
2622

onlyif mysql # use DIV operator for integer division
query I rowsort label-9537
SELECT ALL col1 * col0 DIV col0 - + 84 FROM tab0 AS cor0
----
13
2
7

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL col1 * col0 / col0 - + 84 FROM tab0 AS cor0
----
13
2
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9538
SELECT DISTINCT col0 DIV + cor0.col1 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT col0 / + cor0.col1 FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT ALL - ( - col2 ) + + cor0.col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - col2 * 26 AS col2 FROM tab2 AS cor0
----
-676
-702
-988

query I rowsort
SELECT DISTINCT + 54 * - ( + col1 ) AS col1 FROM tab1 cor0
----
-1404
-540
-702

query I rowsort
SELECT + - cor0.col2 * - col0 + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT + col1 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL col2 + - 61 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1864
-3573
-999

query I rowsort
SELECT ALL - + 81 + col1 AS col1 FROM tab0 AS cor0
----
10
16
5

query I rowsort
SELECT - col1 * + tab0.col1 * - col2 AS col0 FROM tab0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-9547
SELECT - 47 + cor0.col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-9547
SELECT - 47 + cor0.col2 / - col2 AS col1 FROM tab1 AS cor0
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col1 ) * - col0 col2 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-9549
SELECT + ( 82 ) DIV + col1 FROM tab1 AS cor0
----
3
6
8

skipif mysql # not compatible
query I rowsort label-9549
SELECT + ( 82 ) / + col1 FROM tab1 AS cor0
----
3
6
8

query I rowsort
SELECT cor0.col0 * + col2 * col0 AS col2 FROM tab2 AS cor0
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col1 FROM tab2 cor0
----
-5
-5
-5

query I rowsort
SELECT ALL + 28 * 92 + col1 FROM tab2 AS cor0
----
2593
2607
2635

query I rowsort
SELECT - ( cor0.col2 ) * - col1 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 34 col1 FROM tab1 AS cor0
----
-1836
-1938
-3264

query I rowsort
SELECT DISTINCT 75 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-9556
SELECT ALL - col1 * col1 DIV + 96 + 77 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1771
2597
6767

skipif mysql # not compatible
query I rowsort label-9556
SELECT ALL - col1 * col1 / + 96 + 77 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1771
2597
6767

query I rowsort
SELECT ALL - + cor0.col0 + col2 + col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - 57 + col2 FROM tab0 AS cor0
----
-24
-56
25

query I rowsort
SELECT - 48 * tab0.col0 FROM tab0
----
-1152
-1680
-4272

onlyif mysql # use DIV operator for integer division
query I rowsort label-9560
SELECT + ( tab0.col1 ) DIV col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-9560
SELECT + ( tab0.col1 ) / col2 FROM tab0
----
1
2
97

query I rowsort
SELECT DISTINCT 96 + col0 FROM tab2
----
103
174
175

query I rowsort
SELECT - + 5 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-165
-410
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-9563
SELECT + + col1 * + col0 + col2 * col2 + + 34 DIV col0 AS col0 FROM tab1 AS cor0
----
10256
3005
3889

skipif mysql # not compatible
query I rowsort label-9563
SELECT + + col1 * + col0 + col2 * col2 + + 34 / col0 AS col0 FROM tab1 AS cor0
----
10256
3005
3889

query I rowsort
SELECT col1 + col2 * 75 AS col0 FROM tab2 cor0
----
2009
2056
2867

query I rowsort
SELECT - col1 * col1 * tab1.col1 AS col1 FROM tab1
----
-1000
-17576
-2197

onlyif mysql # use DIV operator for integer division
query I rowsort label-9566
SELECT 73 DIV col1 col1 FROM tab1
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9566
SELECT 73 / col1 col1 FROM tab1
----
2
5
7

query I rowsort
SELECT - col0 * col1 * - col1 FROM tab0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-9568
SELECT 83 DIV col0 FROM tab2
----
1
1
11

skipif mysql # not compatible
query I rowsort label-9568
SELECT 83 / col0 FROM tab2
----
1
1
11

query I rowsort
SELECT DISTINCT + col1 + - col1 + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col1 + - col1 * col1 FROM tab0 cor0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL + col1 + - 82 * - 79 AS col0 FROM tab2 cor0
----
6495
6509
6537

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9572
SELECT + col0 * col2 + + col0 - cor0.col2 * CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9572
SELECT + col0 * col2 + + col0 - cor0.col2 * CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + ( 96 ) + col0 FROM tab2 AS cor0
----
1711
2983
5742

onlyif mysql # use DIV operator for integer division
query I rowsort label-9574
SELECT + col1 * col2 * - col1 + + col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
-244068
-679041
-9374

skipif mysql # not compatible
query I rowsort label-9574
SELECT + col1 * col2 * - col1 + + col0 / + col2 AS col2 FROM tab0 AS cor0
----
-244068
-679041
-9374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9575
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + cor0.col1 - 21 * - 25 AS col1 FROM tab2 AS cor0
----
542
556
584

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + col2 * col1 FROM tab0 cor0
----
15561
3492
4902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + 6 col1 FROM tab2 cor0
----
42
468
474

query I rowsort
SELECT ALL col1 + + 16 - - col0 AS col0 FROM tab2 AS cor0
----
112
153
54

query I rowsort
SELECT + col2 + 24 FROM tab0 AS cor0
----
106
25
57

query I rowsort
SELECT DISTINCT 50 FROM tab0, tab2, tab0 AS cor0
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 * - col2 * col0 - 7 col0 FROM tab0
----
-1687
-350311
-38023

query I rowsort
SELECT DISTINCT + col2 + + 69 + col2 * col0 FROM tab2
----
2123
285
3109

query I rowsort
SELECT ALL col2 + - 99 + 2 FROM tab1
----
-1
-40
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 + col0 * + col1 col2 FROM tab1
----
4736
7440
87

skipif mysql # not compatible
query I rowsort
SELECT - col0 * CAST ( - col0 AS REAL ) / cor0.col0 + col1 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col1 col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + col2 * - col1 - col1 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT 38 + + col2 FROM tab1
----
134
92
95

query I rowsort
SELECT DISTINCT + ( - 65 ) AS col0 FROM tab1
----
-65

query I rowsort
SELECT + cor0.col0 * + col1 - + col0 * - col1 FROM tab2 AS cor0
----
2686
434
9204

query I rowsort
SELECT ALL 4 - col0 FROM tab0
----
-20
-31
-85

query I rowsort
SELECT DISTINCT ( - col1 ) - + 41 FROM tab2 AS cor0
----
-100
-58
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT + cor0.col2 * + 90 FROM tab2, tab2 AS cor0
----
9 values hashing to 12ef396e43fe8422942d06abd90c3d43

query I rowsort
SELECT DISTINCT + - col1 * cor0.col0 - - col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - ( 82 ) AS col0 FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT 11 + 8 * cor0.col1 FROM tab1 AS cor0
----
115
219
91

query I rowsort
SELECT - col1 - + col1 * - 14 AS col0 FROM tab1
----
130
169
338

query I rowsort
SELECT - tab1.col0 * + col0 * 98 + col1 AS col1 FROM tab1
----
-401398
-627187
-856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 76 + col1 col1 FROM tab0 cor0
----
10
15
21

query I rowsort
SELECT DISTINCT - 1 * + cor0.col2 + - col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT + 97 * 75 + col1 FROM tab1 AS cor0
----
7285
7288
7301

query I rowsort
SELECT - col2 + - 8 * + col0 AS col0 FROM tab2
----
-650
-670
-83

query I rowsort
SELECT ALL - 35 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b

query I rowsort
SELECT 41 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT - col1 * - col0 + - col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT + - 62 AS col1 FROM tab2 cor0
----
-62
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 42 * - col0 col0 FROM tab2 AS cor0
----
294
3276
3318

query I rowsort
SELECT ALL - col2 * col1 + - cor0.col2 * - col2 FROM tab0 cor0
----
-1749
-738
-96

query I rowsort
SELECT ALL - 28 + col1 + col0 * col0 AS col0 FROM tab1 AS cor0
----
4078
6385
7

query I rowsort
SELECT ALL - - col0 + - 0 * - col0 + - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - ( - col1 ) * + col1 + - ( - col2 ) * + col0 AS col2 FROM tab0 AS cor0
----
15579
8188
9444

query I rowsort
SELECT DISTINCT + 88 + - col1 * col0 FROM tab0 AS cor0
----
-1976
-3307
-8011

query I rowsort
SELECT ALL col0 + + col1 * - col2 + col1 * + col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + ( - col2 + - 27 * + 2 ) FROM tab0
----
-136
-55
-87

query I rowsort
SELECT DISTINCT - col0 * col2 + + ( + col0 ) FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL - + ( - cor0.col1 ) - cor0.col2 * + col2 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT - + col0 * col1 - 82 AS col2 FROM tab1 cor0
----
-1122
-160
-722

query I rowsort
SELECT - 99 + + col0 * col1 FROM tab2 AS cor0
----
118
1244
4503

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 col2 FROM tab0
----
164
2
66

query I rowsort
SELECT - - cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL col0 + + col1 * - 61 AS col1 FROM tab1 AS cor0
----
-1583
-546
-713

query I rowsort
SELECT col2 * + 12 FROM tab1 AS cor0
----
1152
648
684

query I rowsort
SELECT ALL col1 * ( - col2 ) + + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT col2 + - 29 * ( col0 + ( col1 ) ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
-274307
-371315
-474938

query I rowsort
SELECT cor1.col0 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT + col2 + - ( + col2 ) + + cor0.col0 * col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + col0 + + 11 FROM tab1 AS cor0
----
14
75
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-9630
SELECT DISTINCT + col2 DIV ( - col1 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT + col2 / ( - col1 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 + - 61 FROM tab1 AS cor0
----
-125
-141
-64

query I rowsort
SELECT - 34 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT + col1 * - 37 FROM tab2
----
-1147
-2183
-629

onlyif mysql # use DIV operator for integer division
query I rowsort label-9634
SELECT - col0 + + col1 DIV - col0 + col2 AS col1 FROM tab0 AS cor0
----
-36
-8
6

skipif mysql # not compatible
query I rowsort label-9634
SELECT - col0 + + col1 / - col0 + col2 AS col1 FROM tab0 AS cor0
----
-36
-8
6

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 - col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL - cor0.col2 * + ( - col1 ) AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + col0 * 57 + - col2 FROM tab2 AS cor0
----
372
4420
4465

query I rowsort
SELECT col0 + 9 + col2 * col0 AS col0 FROM tab2 cor0
----
205
2115
3090

query I rowsort
SELECT DISTINCT 68 FROM tab2, tab0 AS cor0
----
68

query I rowsort
SELECT DISTINCT col0 * - 31 AS col1 FROM tab1
----
-1984
-2480
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9641
SELECT - + CAST( NULL AS SIGNED ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9641
SELECT - + CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col2 - 52 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6740908c24953c988b55a16f045e1a4a

onlyif mysql # use DIV operator for integer division
query I rowsort label-9643
SELECT DISTINCT + ( + col1 ) DIV CAST( col1 AS SIGNED ) + col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT + ( + col1 ) / CAST ( col1 AS INTEGER ) + col0 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT DISTINCT + - col1 + + col1 * + 27 FROM tab0 AS cor0
----
2236
2366
2522

query I rowsort
SELECT DISTINCT + ( col0 ) + - 60 FROM tab1 AS cor0
----
-57
20
4

query I rowsort
SELECT col2 * + 27 * + col2 + - tab1.col1 AS col2 FROM tab1
----
248819
78706
87713

query I rowsort
SELECT - col0 + col1 * + tab0.col0 AS col0 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT col1 * + 94 FROM tab1 cor0
----
1222
2444
940

query I rowsort
SELECT DISTINCT + 60 + + col0 AS col2 FROM tab0
----
149
84
95

query I rowsort
SELECT col1 * - col2 + ( 92 + col0 ) AS col0 FROM tab1
----
-1076
-1309
-414

query I rowsort
SELECT - 8 * + 7 FROM tab0
----
-56
-56
-56

query I rowsort
SELECT + cor0.col1 * cor0.col0 + col1 FROM tab1 cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-9653
SELECT col0 DIV + 37 AS col1 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9653
SELECT col0 / + 37 AS col1 FROM tab0
----
0
0
2

query I rowsort
SELECT tab0.col2 * col1 - - col0 FROM tab0
----
132
2862
7551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9655
SELECT + + CAST( NULL AS SIGNED ) + + 58 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9655
SELECT + + CAST ( NULL AS INTEGER ) + + 58 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 72 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9657
SELECT - cor0.col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-9657
SELECT - cor0.col1 / col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9658
SELECT ALL - tab1.col2 DIV 31 AS col0 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 609f34cc6c23becea58632ee49fac1d1

skipif mysql # not compatible
query I rowsort label-9658
SELECT ALL - tab1.col2 / 31 AS col0 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 609f34cc6c23becea58632ee49fac1d1

query I rowsort
SELECT - - col0 * - col1 * col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT + + col0 - - col1 AS col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT + 24 + 41 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT ALL - cor0.col2 + col1 AS col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT + col0 + - 45 FROM tab2 cor0
----
-38
33
34

query I rowsort
SELECT col1 + - 14 FROM tab0 AS cor0
----
72
77
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - 29 ) + - col2 col2 FROM tab1 AS cor0
----
-125
-83
-86

query I rowsort
SELECT - 18 + col2 * + cor0.col0 FROM tab1 AS cor0
----
144
3630
7662

query I rowsort
SELECT DISTINCT + - 32 AS col0 FROM tab0 AS cor0
----
-32

query I rowsort
SELECT DISTINCT + ( + col0 ) * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + 70 * + col2 FROM tab0 AS cor0
----
2310
5740
70

query I rowsort
SELECT - + col0 * 71 FROM tab2 AS cor0
----
-497
-5538
-5609

query I rowsort
SELECT ALL - - cor0.col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT + + col0 + 76 * + col2 FROM tab2 cor0
----
2054
2059
2967

query I rowsort
SELECT ( col1 ) * + col1 + col1 FROM tab2 cor0
----
306
3540
992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) * 59 col0 FROM tab0 AS cor0
----
-1416
-2065
-5251

query I rowsort
SELECT ALL - 18 * col2 FROM tab2 AS cor0
----
-468
-486
-684

query I rowsort
SELECT DISTINCT - 24 FROM tab0 cor0
----
-24

query I rowsort
SELECT - + 52 * col1 + col1 FROM tab0 cor0
----
-4386
-4641
-4947

query I rowsort
SELECT DISTINCT - col2 * - col0 + - col1 AS col1 FROM tab2 AS cor0
----
158
1969
2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-9679
SELECT DISTINCT - + col2 + + col1 DIV 21 - + cor0.col2 * + col0 FROM tab2 AS cor0
----
-2052
-215
-3040

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT - + col2 + + col1 / 21 - + cor0.col2 * + col0 FROM tab2 AS cor0
----
-2052
-215
-3040

query I rowsort
SELECT - 78 - col1 FROM tab0 AS cor0
----
-164
-169
-175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - col1 col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT - + cor0.col2 * col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + cor0.col2 - col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT DISTINCT + col2 + col0 * ( - col0 ) AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT - cor0.col2 * col0 + 57 * + col0 FROM tab1 AS cor0
----
-3120
0
9

query I rowsort
SELECT ALL col2 * col2 - + col0 FROM tab0
----
-34
1065
6635

onlyif mysql # use DIV operator for integer division
query I rowsort label-9687
SELECT ALL + col2 DIV tab2.col1 - - col0 AS col2 FROM tab2
----
7
78
81

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL + col2 / tab2.col1 - - col0 AS col2 FROM tab2
----
7
78
81

query I rowsort
SELECT - 58 + 20 FROM tab2
----
-38
-38
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-9689
SELECT ALL + 96 DIV col2 - col0 * col0 FROM tab0 AS cor0
----
-1129
-574
-7920

skipif mysql # not compatible
query I rowsort label-9689
SELECT ALL + 96 / col2 - col0 * col0 FROM tab0 AS cor0
----
-1129
-574
-7920

query I rowsort
SELECT - - col1 * col0 + 68 * + 25 FROM tab2 AS cor0
----
1917
3043
6302

query I rowsort
SELECT ALL + - ( - col0 ) * 97 FROM tab0 cor0
----
2328
3395
8633

query I rowsort
SELECT DISTINCT - 59 FROM tab2, tab2 AS cor0
----
-59

query I rowsort
SELECT DISTINCT - 49 FROM tab0, tab1 AS cor0
----
-49

query I rowsort
SELECT ALL + + col2 * + col1 + col0 AS col1 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT - col1 + 44 + 44 AS col1 FROM tab0 AS cor0
----
-3
-9
2

query I rowsort
SELECT ALL - col1 * ( + col1 ) - col0 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT + col1 + col2 * - col0 AS col1 FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT + - col2 + cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT + cor0.col1 * + 1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-9700
SELECT col2 DIV + 81 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9700
SELECT col2 / + 81 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 + 23 * col1 AS col0 FROM tab2 AS cor0
----
1416
408
744

query I rowsort
SELECT + col2 - ( - col1 * col1 ) FROM tab1
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-9703
SELECT tab0.col2 * - col1 - - col0 DIV + col2 AS col1 FROM tab0
----
-2838
-62
-7461

skipif mysql # not compatible
query I rowsort label-9703
SELECT tab0.col2 * - col1 - - col0 / + col2 AS col1 FROM tab0
----
-2838
-62
-7461

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9704
SELECT col0 + CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9704
SELECT col0 + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( col0 ) * - col1 + col0 * + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( - col2 ) * - col1 - cor0.col0 * cor0.col0 AS col1 FROM tab0 cor0
----
-1128
-459
2262

onlyif mysql # use DIV operator for integer division
query I rowsort label-9707
SELECT + 62 DIV + col2 + col0 * col1 * + col2 AS col1 FROM tab1 AS cor0
----
36481
4213
99840

skipif mysql # not compatible
query I rowsort label-9707
SELECT + 62 / + col2 + col0 * col1 * + col2 AS col1 FROM tab1 AS cor0
----
36481
4213
99840

query I rowsort
SELECT col0 + col0 FROM tab1 cor0 WHERE ( NULL < ( NULL ) ) AND NOT ( NULL ) IN ( - col2 + col0 + col0 ) OR + col2 <= + col0 * col0
----
128
160

query I rowsort
SELECT ALL + col0 * + col2 + - col1 FROM tab1 cor0
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-9710
SELECT - col2 * - col2 + col2 DIV col1 FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-9710
SELECT - col2 * - col2 + col2 / col1 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) * + col1 + col0 * col2 col2 FROM tab1 AS cor0
----
-514
3548
7511

query I rowsort
SELECT col2 * col0 + - cor0.col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT 3 + col1 * + col2 FROM tab2 AS cor0
----
1537
649
840

query I rowsort
SELECT DISTINCT + - col1 + col0 * col1 AS col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT - ( + col2 ) + - col2 * col1 * tab2.col2 AS col1 FROM tab2
----
-22626
-24586
-39910

query I rowsort
SELECT tab1.col2 + col0 + col0 * col1 * col2 AS col1 FROM tab1
----
100016
36601
4269

onlyif mysql # use DIV operator for integer division
query I rowsort label-9717
SELECT + col1 DIV col2 + tab1.col2 * col2 - + col0 FROM tab1
----
2913
3185
9136

skipif mysql # not compatible
query I rowsort label-9717
SELECT + col1 / col2 + tab1.col2 * col2 - + col0 FROM tab1
----
2913
3185
9136

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9718
SELECT DISTINCT CAST( NULL AS SIGNED ) + 21 * + col0 * col1 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9718
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 21 * + col0 * col1 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + ( col0 ) + + tab2.col1 AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT - ( + col2 ) * - cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT - 8 AS col1 FROM tab0 cor0
----
-8
-8
-8

query I rowsort
SELECT ALL col1 * + col0 + + col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT DISTINCT + 35 * col2 FROM tab0
----
1155
2870
35

query I rowsort
SELECT col0 * cor0.col0 + + col0 FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-9725
SELECT DISTINCT - 97 DIV - col0 + col2 AS col2 FROM tab0 AS cor0
----
3
37
83

skipif mysql # not compatible
query I rowsort label-9725
SELECT DISTINCT - 97 / - col0 + col2 AS col2 FROM tab0 AS cor0
----
3
37
83

query I rowsort
SELECT - col2 * 58 + 7 AS col1 FROM tab2
----
-1501
-1559
-2197

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9727
SELECT - col2 - - CAST( NULL AS SIGNED ) * 83 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9727
SELECT - col2 - - CAST ( NULL AS INTEGER ) * 83 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 23 col1 FROM tab2 AS cor0
----
161
1794
1817

query I rowsort
SELECT DISTINCT + - ( - col1 ) * col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT col2 * col0 + - col2 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT 66 * + col0 AS col2 FROM tab1
----
198
4224
5280

query I rowsort
SELECT ( - col1 ) + - col0 AS col2 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT ( - 17 ) * + col0 * col2 FROM tab0
----
-124066
-13464
-595

query I rowsort
SELECT - col0 * - 81 + col2 FROM tab1
----
297
5241
6576

query I rowsort
SELECT DISTINCT + col1 * col1 + + col0 AS col0 FROM tab2
----
3559
368
968

query I rowsort
SELECT - col1 - 59 AS col0 FROM tab0 AS cor0
----
-145
-150
-156

onlyif mysql # use DIV operator for integer division
query I rowsort label-9738
SELECT ALL + col2 DIV - col1 + col0 FROM tab1 AS cor0
----
1
59
73

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL + col2 / - col1 + col0 FROM tab1 AS cor0
----
1
59
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 81 * ( col2 ) col0 FROM tab2 cor0
----
2106
2187
3078

query I rowsort
SELECT col2 + + 3 FROM tab1 AS cor0
----
57
60
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-9741
SELECT DISTINCT - col1 + col1 DIV col2 + + col2 col0 FROM tab0 AS cor0
----
-51
-8
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9741
SELECT DISTINCT - col1 + col1 / col2 + + col2 col0 FROM tab0 AS cor0
----
-51
-8
1

query I rowsort
SELECT DISTINCT + ( ( col1 ) ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - tab0.col2 + - col1 FROM tab0
----
-119
-173
-98

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 + col2 >= NULL
----

query I rowsort
SELECT col2 * + col2 * col1 - col1 FROM tab0 AS cor0
----
0
611793
93568

query III rowsort
SELECT * FROM tab2 WHERE NULL <= + col2
----

query I rowsort
SELECT ALL - col0 + + col0 * + col0 FROM tab0
----
1190
552
7832

query I rowsort
SELECT col0 * - col1 * + col0 + - tab0.col0 AS col1 FROM tab0
----
-118860
-49560
-720900

query I rowsort
SELECT ALL + col0 * + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) < col0 + col0
----

query I rowsort
SELECT ALL col2 * - tab2.col1 AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - col0 + cor0.col2 * col2 * col2 AS col1 FROM tab2 cor0
----
17498
19676
54793

onlyif mysql # use DIV operator for integer division
query I rowsort label-9752
SELECT DISTINCT + col1 DIV - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT + col1 / - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT col2 * - cor0.col1 AS col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - cor0.col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab0 cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9756
SELECT ALL col2 DIV col0 + 76 * - col1 FROM tab1 cor0
----
-1958
-760
-987

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL col2 / col0 + 76 * - col1 FROM tab1 cor0
----
-1958
-760
-987

query I rowsort
SELECT - - col2 - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9758
SELECT + + cor0.col1 + + col0 DIV + col1 FROM tab1 AS cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-9758
SELECT + + cor0.col1 + + col0 / + col1 FROM tab1 AS cor0
----
16
19
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-9759
SELECT col1 DIV 43 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9759
SELECT col1 / 43 FROM tab2
----
0
0
1

query I rowsort
SELECT + 98 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT ALL - + 25 AS col2 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to 6f83d63ca9889b3b99826987c718bda8

query I rowsort
SELECT + col2 * col1 * col2 - + col0 AS col0 FROM tab2 AS cor0
----
22592
24469
39806

onlyif mysql # use DIV operator for integer division
query I rowsort label-9763
SELECT - col1 * col1 DIV tab1.col1 + col2 * + col2 FROM tab1
----
2890
3239
9203

skipif mysql # not compatible
query I rowsort label-9763
SELECT - col1 * col1 / tab1.col1 + col2 * + col2 FROM tab1
----
2890
3239
9203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9764
SELECT ALL - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9764
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - 1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT DISTINCT 49 * tab2.col1 * + col2 FROM tab2
----
31654
41013
75166

query I rowsort
SELECT DISTINCT + col2 * + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT - 46 AS col2 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9

query I rowsort
SELECT DISTINCT - - cor0.col0 + - ( col1 ) FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT ALL + col1 * ( - 14 ) AS col0 FROM tab0 AS cor0
----
-1204
-1274
-1358

query I rowsort
SELECT DISTINCT col1 * cor0.col1 + - col1 * - col1 AS col0 FROM tab0 AS cor0
----
14792
16562
18818

query I rowsort
SELECT DISTINCT + - col0 + col0 * 46 FROM tab0 cor0
----
1080
1575
4005

query I rowsort
SELECT DISTINCT + - col2 * col1 - + col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT ALL - col0 * + ( + col2 * col2 ) AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL + - col1 + ( - col2 ) + + col1 AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - cor0.col1 * - 75 + - 50 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-625
3125
975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col0 col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col1 * ( col1 ) + - ( col2 ) * col0 FROM tab1 AS cor0
----
-3548
-7511
514

query I rowsort
SELECT + col0 + cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT - 31 * 68 + - col1 + col1 FROM tab2 cor0
----
-2108
-2108
-2108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) * col2 + col1 col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT - 70 * col0 FROM tab1 AS cor0
----
-210
-4480
-5600

query I rowsort
SELECT col2 * + col2 + + col0 + ( - 42 ) * col2 AS col0 FROM tab0 AS cor0
----
-273
-6
3369

query I rowsort
SELECT DISTINCT - 75 + ( col2 ) * col1 FROM tab2 AS cor0
----
1459
571
762

query I rowsort
SELECT ALL + + 9 + + 80 FROM tab0 AS cor0
----
89
89
89

query I rowsort
SELECT + + ( + col2 ) + + col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + ( 68 ) FROM tab1 cor0
----
68
68
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-9788
SELECT col0 + 30 DIV col0 AS col2 FROM tab2 cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-9788
SELECT col0 + 30 / col0 AS col2 FROM tab2 cor0
----
11
78
79

query I rowsort
SELECT ALL ( col1 ) * col2 * col0 FROM tab1 AS cor0
----
36480
4212
99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col2 col2 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT col2 + - col1 * ( - col0 ) FROM tab2 AS cor0
----
1381
244
4628

skipif mysql # not compatible
query I rowsort
SELECT col2 + - col0 + CAST ( - col2 AS REAL ) FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT 8 AS col1 FROM tab2 AS cor0
----
8

query I rowsort
SELECT ALL - col0 + + col0 * 63 FROM tab0 AS cor0
----
1488
2170
5518

query I rowsort
SELECT - 16 * 96 AS col0 FROM tab2
----
-1536
-1536
-1536

query I rowsort
SELECT DISTINCT 65 * - col1 FROM tab1
----
-1690
-650
-845

query I rowsort
SELECT col2 * 53 FROM tab1
----
2862
3021
5088

query I rowsort
SELECT + cor0.col2 FROM tab2, tab0 cor0, tab2 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - 62 + 12 AS col0 FROM tab1
----
-50
-50
-50

query I rowsort
SELECT ALL col0 * - tab1.col0 + col0 * col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + 0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9802
SELECT ALL - col2 * - col1 + + col2 DIV 89 - col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96

skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL - col2 * - col1 + + col2 / 89 - col2 AS col0 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT col0 * + 24 AS col1 FROM tab0 AS cor0
----
2136
576
840

onlyif mysql # use DIV operator for integer division
query I rowsort label-9804
SELECT - tab1.col0 * col0 DIV col1 AS col0 FROM tab1
----
-409
-492
0

skipif mysql # not compatible
query I rowsort label-9804
SELECT - tab1.col0 * col0 / col1 AS col0 FROM tab1
----
-409
-492
0

query I rowsort
SELECT ( ( - cor0.col2 ) ) + + 88 FROM tab0 AS cor0
----
55
6
87

query I rowsort
SELECT - 15 + col0 FROM tab1 AS cor0
----
-12
49
65

query I rowsort
SELECT - 34 + cor0.col1 * + col0 AS col1 FROM tab0 AS cor0
----
2030
3361
8065

query I rowsort
SELECT - 4 - + col2 FROM tab2 AS cor0
----
-30
-31
-42

query I rowsort
SELECT DISTINCT col2 * col0 + + 74 FROM tab1 AS cor0
----
236
3722
7754

query I rowsort
SELECT ALL + ( - col2 ) * 3 AS col2 FROM tab1 AS cor0
----
-162
-171
-288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col2 col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT col1 + - 84 * - col1 AS col2 FROM tab1
----
1105
2210
850

query I rowsort
SELECT + 98 * + col0 AS col1 FROM tab0
----
2352
3430
8722

query I rowsort
SELECT ( 22 ) + tab1.col2 + col2 * col1 FROM tab1
----
1366
1480
649

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9815
SELECT + + col1 + + col2 * - CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-706
-7207
62

skipif mysql # not compatible
query I rowsort label-9815
SELECT + + col1 + + col2 * - CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-9816
SELECT DISTINCT - + cor0.col0 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-9816
SELECT DISTINCT - + cor0.col0 / col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT - + col2 * + col2 * + col2 AS col2 FROM tab2 cor0
----
-17576
-19683
-54872

onlyif mysql # use DIV operator for integer division
query I rowsort label-9818
SELECT ALL + + col0 * - 83 + + ( - cor0.col2 ) DIV CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1991
-2905
-7387

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL + + col0 * - 83 + + ( - cor0.col2 ) / CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1991
-2905
-7387

onlyif mysql # use DIV operator for integer division
query I rowsort label-9819
SELECT + col1 DIV + ( - col1 ) FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9819
SELECT + col1 / + ( - col1 ) FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col2 * + 47 FROM tab0 cor0
----
-1551
-3854
-47

query I rowsort
SELECT ALL + col1 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 + + 18 FROM tab2 AS cor0
----
25
96
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + col1 * ( cor0.col1 * ( - 81 ) ) col2 FROM tab1 AS cor0
----
-1423656
-177957
-81000

query I rowsort
SELECT + col2 * + ( - ( col2 ) ) * 52 FROM tab1 AS cor0
----
-151632
-168948
-479232

query I rowsort
SELECT DISTINCT + - col2 + 74 * + col2 AS col0 FROM tab0 AS cor0
----
2409
5986
73

query I rowsort
SELECT DISTINCT col0 * 20 FROM tab2 AS cor0
----
140
1560
1580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 33 * cor0.col2 col1 FROM tab0 cor0
----
-1089
-2706
-33

query I rowsort
SELECT ALL + 16 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 9ffb4aaf972de606a4957894645b6216

query I rowsort
SELECT - - ( cor1.col1 ) * + 76 + + 29 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b3d9243e768f1e7af7d916986f1e7910

query I rowsort
SELECT tab2.col1 * + 82 - col2 * col0 AS col2 FROM tab2
----
-1608
2353
2810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9831
SELECT + CAST( NULL AS SIGNED ) + + 88 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9831
SELECT + CAST ( NULL AS INTEGER ) + + 88 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9832
SELECT - 15 + col1 * col2 DIV CAST( col1 + col2 * + col0 AS SIGNED ) FROM tab1 cor0
----
-15
-15
-8

skipif mysql # not compatible
query I rowsort label-9832
SELECT - 15 + col1 * col2 / CAST ( col1 + col2 * + col0 AS INTEGER ) FROM tab1 cor0
----
-15
-15
-8

query I rowsort
SELECT - + col2 + - col1 * col1 AS col2 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT - ( - col1 ) * col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + 66 + - col0 AS col0 FROM tab2 AS cor0
----
-12
-13
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9836
SELECT ALL + CAST( NULL AS SIGNED ) + ( + col0 ) * tab1.col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9836
SELECT ALL + CAST ( NULL AS INTEGER ) + ( + col0 ) * tab1.col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 10 + col1 AS col0 FROM tab2
----
27
41
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9838
SELECT - CAST( NULL AS DECIMAL ) * - col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9838
SELECT - CAST ( NULL AS REAL ) * - col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + 75 + + col1 ) * col0 * - tab2.col1 FROM tab2
----
-123556
-23002
-616668

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9840
SELECT - col2 + CAST( + 81 AS SIGNED ) * col0 * 12 FROM tab1 cor0
----
2862
62151
77664

skipif mysql # not compatible
query I rowsort label-9840
SELECT - col2 + CAST ( + 81 AS INTEGER ) * col0 * 12 FROM tab1 cor0
----
2862
62151
77664

query I rowsort
SELECT DISTINCT - 7 + cor0.col1 * - col1 AS col0 FROM tab1 AS cor0
----
-107
-176
-683

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9842
SELECT + col1 + + CAST( NULL AS SIGNED ) / - ( - col0 + col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9842
SELECT + col1 + + CAST ( NULL AS INTEGER ) / - ( - col0 + col0 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * + 39 FROM tab2 AS cor0
----
-273
-3042
-3081

query I rowsort
SELECT cor0.col0 * - 96 FROM tab0, tab0 AS cor0
----
9 values hashing to e946d8b1bcfb0a244ea9f0b5247019ab

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT + 69 AS col0 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT + col2 - tab2.col1 * 15 AS col2 FROM tab2
----
-217
-438
-859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 col0 FROM tab0 AS cor0
----
86

query I rowsort
SELECT DISTINCT + + 15 AS col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT + + 48 * col0 FROM tab1 AS cor0
----
144
3072
3840

query I rowsort
SELECT ( - col1 ) * + ( 80 * + col0 ) AS col1 FROM tab1 AS cor0
----
-51200
-6240
-83200

query I rowsort
SELECT col1 * ( col2 ) AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT col1 * - 55 FROM tab2 AS cor0
----
-1705
-3245
-935

query I rowsort
SELECT ALL col0 + 59 FROM tab0 AS cor0
----
148
83
94

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
24
35
89

query I rowsort
SELECT ALL + col0 - - 75 FROM tab1 AS cor0
----
139
155
78

query I rowsort
SELECT ALL cor1.col1 * - cor1.col1 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0456bcedc217ad4d7d255310d4eb4931

query I rowsort
SELECT col1 * tab1.col1 * - tab1.col0 AS col0 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT ALL + 5 * - cor0.col1 * col2 FROM tab1 AS cor0
----
-2850
-6240
-7020

onlyif mysql # use DIV operator for integer division
query I rowsort label-9860
SELECT ALL - col2 * col2 DIV - col0 AS col1 FROM tab1
----
115
50
972

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL - col2 * col2 / - col0 AS col1 FROM tab1
----
115
50
972

query I rowsort
SELECT 26 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT col2 * 5 FROM tab0
----
165
410
5

query I rowsort
SELECT ALL - 68 * + col0 AS col1 FROM tab2 AS cor0
----
-476
-5304
-5372

onlyif mysql # use DIV operator for integer division
query I rowsort label-9864
SELECT ALL + 71 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL + 71 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9865
SELECT DISTINCT col0 + + 77 DIV - col0 + - col2 col2 FROM tab0
----
-12
32
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT col0 + + 77 / - col0 + - col2 col2 FROM tab0
----
-12
32
7

query I rowsort
SELECT DISTINCT + ( + col0 ) + tab1.col0 FROM tab1
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-9867
SELECT ALL col2 DIV - col1 + + col0 AS col2 FROM tab2
----
7
77
78

skipif mysql # not compatible
query I rowsort label-9867
SELECT ALL col2 / - col1 + + col0 AS col2 FROM tab2
----
7
77
78

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2, tab0, tab2 cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9869
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - ( + col1 ) col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9869
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - ( + col1 ) col1 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9870
SELECT DISTINCT + ( col1 ) + col2 DIV - col0 FROM tab1
----
10
12
8

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT + ( col1 ) + col2 / - col0 FROM tab1
----
10
12
8

query I rowsort
SELECT ALL 61 * + cor0.col2 + - col1 AS col0 FROM tab2 AS cor0
----
1527
1616
2301

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 27 + + col1 col0 FROM tab1 AS cor0
----
-1
-14
-17

query I rowsort
SELECT ALL - 39 * - col1 FROM tab0 AS cor0
----
3354
3549
3783

query I rowsort
SELECT DISTINCT col0 + col1 * 34 AS col2 FROM tab1 AS cor0
----
404
522
887

onlyif mysql # use DIV operator for integer division
query I rowsort label-9875
SELECT DISTINCT + col1 * col1 DIV + ( + col1 ) 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-9875
SELECT DISTINCT + col1 * col1 / + ( + col1 ) col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT 83 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 002a717a3d902d97220759065fb107c3

onlyif mysql # use DIV operator for integer division
query I rowsort label-9877
SELECT - col0 DIV col2 AS col2 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9877
SELECT - col0 / col2 AS col2 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT ALL + + 92 FROM tab2 cor0
----
92
92
92

query I rowsort
SELECT + - 32 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 7106326ae056e78044adc0aef747ef08

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9880
SELECT ALL + col2 - - CAST( 87 AS SIGNED ) * + col2 * + col1 AS col2 FROM tab0
----
246939
649276
8440

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL + col2 - - CAST ( 87 AS INTEGER ) * + col2 * + col1 AS col2 FROM tab0
----
246939
649276
8440

onlyif mysql # use DIV operator for integer division
query I rowsort label-9881
SELECT ALL - col1 * - 65 - col1 DIV col2 AS col1 FROM tab1
----
1690
650
845

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL - col1 * - 65 - col1 / col2 AS col1 FROM tab1
----
1690
650
845

onlyif mysql # use DIV operator for integer division
query I rowsort label-9882
SELECT DISTINCT col2 * col2 + cor0.col0 DIV col1 + - 32 AS col2 FROM tab1 AS cor0
----
2884
3223
9190

skipif mysql # not compatible
query I rowsort label-9882
SELECT DISTINCT col2 * col2 + cor0.col0 / col1 + - 32 AS col2 FROM tab1 AS cor0
----
2884
3223
9190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 * - col0 - col2 * + col2 col1 FROM tab0
----
-14823
-3153
-3396

query I rowsort
SELECT - tab0.col1 + col2 * col2 + col0 FROM tab0
----
-61
1027
6722

onlyif mysql # use DIV operator for integer division
query I rowsort label-9885
SELECT DISTINCT 2 DIV col0 col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9885
SELECT DISTINCT 2 / col0 col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col2 * col2 + + col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL + 77 + + 38 - + cor0.col0 AS col0 FROM tab1 AS cor0
----
112
35
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-9888
SELECT ALL - 0 DIV + col0 + - col2 * CAST( - ( col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL - 0 / + col0 + - col2 * CAST ( - ( col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + + 35 AS col1 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT DISTINCT + 51 * + col2 - col1 FROM tab2 AS cor0
----
1267
1346
1921

query I rowsort
SELECT ALL + tab1.col2 * + col0 + - col2 FROM tab1
----
108
3591
7584

query I rowsort
SELECT ALL + cor0.col1 + 46 + col2 FROM tab1 AS cor0
----
113
126
155

onlyif mysql # use DIV operator for integer division
query I rowsort label-9893
SELECT DISTINCT - - col1 DIV - 88 + - col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-9893
SELECT DISTINCT - - col1 / - 88 + - col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + + 34 * - col0 + - cor0.col0 * - ( col1 ) FROM tab1 AS cor0
----
-1536
-1680
-24

query I rowsort
SELECT + + 81 * + 1 - - col2 AS col0 FROM tab2 AS cor0
----
107
108
119

query I rowsort
SELECT ALL + + col2 + - col1 * col1 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT DISTINCT + + 79 + - 68 * - col2 AS col0 FROM tab2 AS cor0
----
1847
1915
2663

query I rowsort
SELECT - - 42 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
106
122
45

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + col1 AS REAL ) FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9900
SELECT - + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-9900
SELECT - + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9901
SELECT - 54 DIV + 98 + col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-9901
SELECT - 54 / + 98 + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL ( - col1 ) + - col2 * + col1 + - cor0.col0 FROM tab2 AS cor0
----
-1671
-742
-875

query I rowsort
SELECT col2 + 42 AS col1 FROM tab2 AS cor0
----
68
69
80

query I rowsort
SELECT ALL + cor0.col0 + + col2 * cor0.col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT 87 + - col1 FROM tab0 cor0
----
-10
-4
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT col2 - + 40 * + col0 AS col1 FROM tab1 AS cor0
----
-2503
-3104
-66

query I rowsort
SELECT DISTINCT + col1 * 70 - col0 AS col1 FROM tab2 AS cor0
----
1111
2163
4052

query I rowsort
SELECT ALL col1 * cor0.col1 + - cor0.col1 * col2 + col1 AS col0 FROM tab1 AS cor0
----
-1066
-460
-702

query I rowsort
SELECT DISTINCT - col1 - + cor0.col0 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT - - col1 * ( 99 ) + - col1 AS col1 FROM tab0 AS cor0
----
8428
8918
9506

query I rowsort
SELECT ALL col0 + - ( ( - col0 ) + col1 ) * - col1 AS col1 FROM tab1 AS cor0
----
-476
-791
601

query I rowsort
SELECT ALL col0 * + cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - - col1 + col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT ALL - cor0.col0 * 53 + - 22 FROM tab0 AS cor0
----
-1294
-1877
-4739

onlyif mysql # use DIV operator for integer division
query I rowsort label-9916
SELECT ALL + - cor0.col0 + 75 + - col1 DIV col2 AS col0 FROM tab1 AS cor0
----
-5
11
72

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL + - cor0.col0 + 75 + - col1 / col2 AS col0 FROM tab1 AS cor0
----
-5
11
72

query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT DISTINCT + col0 * - 37 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-23680
-2886
-38480

query I rowsort
SELECT + ( col1 * col2 ) + col0 * col1 AS col2 FROM tab0
----
15561
3492
4902

onlyif mysql # use DIV operator for integer division
query I rowsort label-9920
SELECT DISTINCT 84 DIV + 76 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9920
SELECT DISTINCT 84 / + 76 AS col1 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + col2 col1 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9922
SELECT + col1 DIV 25 + + cor0.col1 + - 36 FROM tab2 AS cor0
----
-19
-4
25

skipif mysql # not compatible
query I rowsort label-9922
SELECT + col1 / 25 + + cor0.col1 + - 36 FROM tab2 AS cor0
----
-19
-4
25

query I rowsort
SELECT ( col0 ) + + col1 * ( ( - col0 ) ) FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL col1 * - 19 + - col1 * - col2 AS col2 FROM tab2 AS cor0
----
248
323
413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + ( col1 ) ) col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + 75 + col1 * - col2 - - col1 * - 64 AS col0 FROM tab2 AS cor0
----
-1659
-2746
-5235

query I rowsort
SELECT + col0 + - ( col0 * + col0 ) AS col2 FROM tab2 AS cor0
----
-42
-6006
-6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 + - col1 col0 FROM tab0 cor0
----
-62
-67
-73

query I rowsort
SELECT DISTINCT - - 9 + - col1 FROM tab0 AS cor0
----
-77
-82
-88

query I rowsort
SELECT 35 + - col1 AS col0 FROM tab1 AS cor0
----
22
25
9

query I rowsort
SELECT DISTINCT - col1 * col0 + - col2 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT + + col0 + col1 AS col0 FROM tab1 cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9933
SELECT cor0.col1 DIV col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9933
SELECT cor0.col1 / col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9934
SELECT tab0.col0 * cor1.col2 DIV - cor0.col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 298e1a6e944e69a6fab730ec74ec25a2

skipif mysql # not compatible
query I rowsort label-9934
SELECT tab0.col0 * cor1.col2 / - cor0.col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 298e1a6e944e69a6fab730ec74ec25a2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 + 30 col1 FROM tab1 AS cor0
----
-1218
-1374
-540

query I rowsort
SELECT + col2 + cor0.col0 * + col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - ( + col2 ) * 80 * cor0.col1 FROM tab0 AS cor0
----
-227040
-596960
-7760

query I rowsort
SELECT - 27 * - col1 FROM tab2 cor0
----
1593
459
837

query I rowsort
SELECT ALL 8 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT - col0 * - 30 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT - ( - 0 ) + + col0 AS col2 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 * col0 col0 FROM tab1 cor0
----
1728
2160
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col0 col1 FROM tab1
----
128
160
6

query I rowsort
SELECT - col0 + + col1 + + tab2.col1 AS col1 FROM tab2
----
-45
40
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-9945
SELECT DISTINCT - 6 DIV + cor1.col1 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9945
SELECT DISTINCT - 6 / + cor1.col1 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
0

query I rowsort
SELECT col1 * + col1 + col0 + 41 FROM tab0
----
7461
8411
9485

query I rowsort
SELECT DISTINCT - ( - col0 * tab0.col2 ) FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT - 40 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-120
-2560
-3200

query I rowsort
SELECT DISTINCT 98 + col2 + - col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-524
25
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9950
SELECT - CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-9950
SELECT - CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + 90 FROM tab0, tab2 AS cor0
----
90

query I rowsort
SELECT ALL 90 * col2 AS col1 FROM tab2
----
2340
2430
3420

query I rowsort
SELECT DISTINCT + - 16 AS col2 FROM tab1, tab2, tab2 cor0
----
-16

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to 48b1d5d88e8ac6a6daea5a8e5606f112

query I rowsort
SELECT - col1 * - col2 * col1 AS col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT + col0 * col0 + + col2 AS col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL - col0 + col2 * col2 FROM tab1
----
2913
3185
9136

query I rowsort
SELECT DISTINCT + col1 * - col0 + - col2 AS col0 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT - col2 * 41 + - col2 FROM tab1 AS cor0
----
-2268
-2394
-4032

query I rowsort
SELECT 19 * + 2 AS col2 FROM tab0 cor0
----
38
38
38

query I rowsort
SELECT DISTINCT cor0.col2 + 17 AS col1 FROM tab0 cor0
----
18
50
99

query I rowsort
SELECT DISTINCT + - col0 * + col0 + col0 + + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-6065
-6179
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9963
SELECT ALL - CAST( NULL AS DECIMAL ) * col2 + - col2 - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL - CAST ( NULL AS REAL ) * col2 + - col2 - - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9964
SELECT DISTINCT col2 * + 44 + col0 DIV col0 FROM tab2 AS cor0
----
1145
1189
1673

skipif mysql # not compatible
query I rowsort label-9964
SELECT DISTINCT col2 * + 44 + col0 / col0 FROM tab2 AS cor0
----
1145
1189
1673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 + - col2 + + col0 col0 FROM tab0 cor0
----
-20
-36
7

query I rowsort
SELECT - 92 + + col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-254
-3740
-7772

query I rowsort
SELECT tab2.col0 * - tab2.col2 AS col2 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT 93 - col1 FROM tab0
----
-4
2
7

query I rowsort
SELECT + - col1 - + col0 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT - + col0 + - 87 + cor0.col1 * col1 AS col0 FROM tab0 cor0
----
7285
8105
9287

query I rowsort
SELECT ALL col0 * ( cor0.col1 ) AS col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT col2 * 6 + 90 FROM tab2 AS cor0
----
246
252
318

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9973
SELECT DISTINCT + col1 * + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-9973
SELECT DISTINCT + col1 * + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + - col1 * + 95 * col2 FROM tab1 AS cor0
----
-118560
-133380
-54150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 col1 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-9976
SELECT + col1 * + col1 + 94 + col2 * + ( col1 ) DIV - col1 FROM tab0 cor0
----
7457
8293
9502

skipif mysql # not compatible
query I rowsort label-9976
SELECT + col1 * + col1 + 94 + col2 * + ( col1 ) / - col1 FROM tab0 cor0
----
7457
8293
9502

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - ( col1 ) col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - col2 * - 5 FROM tab0 AS cor0
----
165
410
5

query I rowsort
SELECT ALL + 20 * col2 FROM tab0
----
1640
20
660

query I rowsort
SELECT ALL - col1 * 95 * col1 FROM tab0 AS cor0
----
-702620
-786695
-893855

query I rowsort
SELECT ALL - + col1 * + col1 + - ( - col1 ) AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT DISTINCT 92 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
92

query I rowsort
SELECT DISTINCT + col2 * ( - cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT col1 * - col0 * - col0 AS col1 FROM tab2 cor0
----
106097
1519
358956

query I rowsort
SELECT ALL + - col1 + - 6 * - ( + col0 ) * col2 AS col1 FROM tab0 AS cor0
----
113
43697
4666

query I rowsort
SELECT ALL col1 + 87 + col1 * col2 AS col1 FROM tab0
----
281
3011
7640

query I rowsort
SELECT col0 * + col2 * 95 + col2 * col0 - col0 AS col0 FROM tab1
----
15549
350144
737200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9988
SELECT ALL - + CAST( NULL AS SIGNED ) / - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL - + CAST ( NULL AS INTEGER ) / - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * 57 AS col0 FROM tab0 AS cor0
----
4902
5187
5529

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9990
SELECT - CAST( - 14 AS SIGNED ) + col1 * + ( + col0 * col2 ) col0 FROM tab2 AS cor0
----
119666
51048
5873

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9990
SELECT - CAST ( - 14 AS INTEGER ) + col1 * + ( + col0 * col2 ) col0 FROM tab2 AS cor0
----
119666
51048
5873

query I rowsort
SELECT + ( + ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - tab0.col1 + + col2 * col1 FROM tab0
----
0
2752
7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * col0 + col1 col2 FROM tab2
----
6221
6337
87

query I rowsort
SELECT ALL + col2 + col2 * 32 + col1 AS col0 FROM tab0
----
1175
130
2797

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9995
SELECT DISTINCT col1 + - CAST( col1 * col1 AS SIGNED ) FROM tab1
----
-156
-650
-90

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT col1 + - CAST ( col1 * col1 AS INTEGER ) FROM tab1
----
-156
-650
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 51 col2 FROM tab1
----
61
64
77

query I rowsort
SELECT tab2.col2 * 96 + + col2 + col2 FROM tab2
----
2548
2646
3724

query I rowsort
SELECT DISTINCT - - col2 * col2 - + col2 * col1 FROM tab0 AS cor0
----
-1749
-738
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9999
SELECT ALL - + col1 + - col2 DIV - col0 FROM tab2 AS cor0
----
-17
-28
-59

skipif mysql # not compatible
query I rowsort label-9999
SELECT ALL - + col1 + - col2 / - col0 FROM tab2 AS cor0
----
-17
-28
-59