hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 45 * + col0 + 44 * cor0.col2 FROM tab1 AS cor0
----
-372
2241
624

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

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

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

query I rowsort
SELECT ALL - 54 + col0 * 33 AS col0 FROM tab2 cor0
----
177
2520
2553

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

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

query I rowsort
SELECT - 27 + tab0.col0 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 1b0ec3f11005982c86b664a851f619fd

query I rowsort
SELECT ALL + ( + 54 ) + col2 * + 97 + tab0.col0 AS col0 FROM tab0
----
186
3279
8097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 83 * - col2 col2 FROM tab0
----
2715
48
6717

onlyif mysql # use DIV operator for integer division
query I rowsort label-8
SELECT - 10 + - col2 DIV 40 AS col0 FROM tab2 AS cor0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-8
SELECT - 10 + - col2 / 40 AS col0 FROM tab2 AS cor0
----
-10
-10
-10

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

query I rowsort
SELECT DISTINCT - col1 * 89 + col1 * col1 FROM tab1 AS cor0
----
-1638
-790
-988

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-12
SELECT - col1 DIV 3 + + col2 * - col2 FROM tab1
----
-2924
-3252
-9220

skipif mysql # not compatible
query I rowsort label-12
SELECT - col1 / 3 + + col2 * - col2 FROM tab1
----
-2924
-3252
-9220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 - + cor0.col1 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 36ef6617b7a1434cc7ca8101d1c8e6bd

query I rowsort
SELECT DISTINCT ( + 3 ) + - col0 AS col0 FROM tab0
----
-21
-32
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-15
SELECT tab0.col1 DIV 28 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

skipif mysql # not compatible
query I rowsort label-15
SELECT tab0.col1 / 28 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 * col2 * + 27 - - ( col2 ) * - 63 col0 FROM tab0 AS cor0
----
191798
19272
881

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

query I rowsort
SELECT ALL + tab1.col0 * 55 AS col1 FROM tab1
----
165
3520
4400

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

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

query I rowsort
SELECT + 9 AS col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

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

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

skipif mysql # not compatible
query I rowsort label-26
SELECT DISTINCT + CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 * tab0.col0 col0 FROM tab0
----
1848
2695
6853

query I rowsort
SELECT DISTINCT ( + col0 ) + - col2 FROM tab1
----
-16
-51
7

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

query I rowsort
SELECT 88 * 79 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7e291dad988968168933e1078394638f

query I rowsort
SELECT DISTINCT - - ( 76 ) * + col1 + 97 - + col1 AS col0 FROM tab2 AS cor0
----
1372
2422
4522

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-33
SELECT DISTINCT + ( col2 ) * + 73 + col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
2409
5986
73

skipif mysql # not compatible
query I rowsort label-33
SELECT DISTINCT + ( col2 ) * + 73 + col2 / + col1 AS col2 FROM tab0 AS cor0
----
2409
5986
73

query I rowsort
SELECT ALL - 74 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
6364
6734
7178

query I rowsort
SELECT + cor0.col2 * col2 + + col2 * 89 FROM tab2 AS cor0
----
2990
3132
4826

query I rowsort
SELECT + 55 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-34
20
31

query I rowsort
SELECT - col0 * col2 + 36 * cor0.col2 FROM tab0 AS cor0
----
-4346
1
396

onlyif mysql # use DIV operator for integer division
query I rowsort label-38
SELECT ALL - col1 * col0 DIV + CAST( tab0.col0 AS SIGNED ) + - col1 * col0 col1 FROM tab0
----
-2150
-3492
-8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-38
SELECT ALL - col1 * col0 / + CAST ( tab0.col0 AS INTEGER ) + - col1 * col0 col1 FROM tab0
----
-2150
-3492
-8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-39
SELECT DISTINCT - col0 DIV - col0 + + col0 AS col2 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-39
SELECT DISTINCT - col0 / - col0 + + col0 AS col2 FROM tab0
----
25
36
90

query I rowsort
SELECT - + col0 * 32 + col1 * col1 AS col2 FROM tab0 AS cor0
----
5433
6628
8289

query I rowsort
SELECT DISTINCT + col1 + 12 * cor0.col2 FROM tab2 cor0
----
355
371
473

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

query I rowsort
SELECT DISTINCT + col1 + ( - cor0.col1 * cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT ALL + + col2 + col2 * cor0.col2 * col1 FROM tab2 AS cor0
----
22626
24586
39910

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

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

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

query I rowsort
SELECT + + col2 + col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT + col1 * 2 * col2 AS col0 FROM tab2 AS cor0
----
1292
1674
3068

query I rowsort
SELECT + col1 * - 81 + - col1 FROM tab2 AS cor0
----
-1394
-2542
-4838

query I rowsort
SELECT ALL + 63 * + tab2.col0 FROM tab2
----
441
4914
4977

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-52
SELECT ALL col1 DIV 73 - - cor0.col2 col0 FROM tab2 cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-52
SELECT ALL col1 / 73 - - cor0.col2 col0 FROM tab2 cor0
----
26
27
38

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

query I rowsort
SELECT ALL col2 + + ( 79 ) AS col0 FROM tab1 AS cor0
----
133
136
175

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

query I rowsort
SELECT DISTINCT - + col2 * - cor0.col2 * + col0 AS col1 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT - - col2 * + cor0.col1 + + col2 * col1 - - 80 AS col0 FROM tab0 cor0
----
15004
274
5756

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

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

query I rowsort
SELECT - - 67 - 9 AS col2 FROM tab2 AS cor0
----
58
58
58

query I rowsort
SELECT - col1 + 45 FROM tab2 AS cor0
----
-14
14
28

query I rowsort
SELECT col2 * - col2 + + tab0.col1 FROM tab0
----
-1003
-6633
96

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

query I rowsort
SELECT + 7 * col1 + col2 AS col0 FROM tab2 AS cor0
----
157
244
439

query I rowsort
SELECT DISTINCT + - 86 + - col0 FROM tab0 AS cor0
----
-110
-121
-175

query I rowsort
SELECT ALL + - 47 * 99 AS col2 FROM tab1 cor0
----
-4653
-4653
-4653

query I rowsort
SELECT ALL 94 * 39 AS col2 FROM tab0
----
3666
3666
3666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - col0 * ( + 60 ) col2 FROM tab2 AS cor0
----
-389
-4621
-4723

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

query I rowsort
SELECT ALL tab1.col1 + - 5 FROM tab1
----
21
5
8

query I rowsort
SELECT ALL col1 * + 93 + 26 FROM tab2
----
1607
2909
5513

onlyif mysql # use DIV operator for integer division
query I rowsort label-71
SELECT ALL col0 + col2 * col0 + + col0 DIV - col0 FROM tab1 AS cor0
----
164
3711
7759

skipif mysql # not compatible
query I rowsort label-71
SELECT ALL col0 + col2 * col0 + + col0 / - col0 FROM tab1 AS cor0
----
164
3711
7759

query I rowsort
SELECT ALL + - 88 + + col0 - col2 FROM tab1 cor0
----
-104
-139
-81

query I rowsort
SELECT DISTINCT + col2 - - 92 AS col1 FROM tab2 AS cor0
----
118
119
130

query I rowsort
SELECT DISTINCT - ( + 4 ) + - col0 FROM tab0 AS cor0
----
-28
-39
-93

query I rowsort
SELECT - + col1 + + 22 + - col0 FROM tab1 AS cor0
----
-52
-7
-71

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

query I rowsort
SELECT ALL 73 * col1 + col1 AS col1 FROM tab0 cor0
----
6364
6734
7178

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

query I rowsort
SELECT tab0.col1 + + 85 FROM tab0
----
171
176
182

query I rowsort
SELECT DISTINCT - col1 + + 18 AS col2 FROM tab1
----
-8
5
8

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

query I rowsort
SELECT + 72 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

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

query I rowsort
SELECT col0 + - col1 * + col0 + col1 FROM tab2 AS cor0
----
-1247
-179
-4465

query I rowsort
SELECT DISTINCT - col0 + + cor0.col2 + + col1 AS col2 FROM tab0 AS cor0
----
63
84
95

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

query I rowsort
SELECT + 83 * 1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
161
162
90

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

skipif mysql # not compatible
query I rowsort label-88
SELECT - CAST ( - cor0.col1 AS INTEGER ) + col1 FROM tab2 AS cor0
----
118
34
62

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

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

query I rowsort
SELECT ALL + ( + 15 ) * - col1 FROM tab1 cor0
----
-150
-195
-390

query I rowsort
SELECT DISTINCT ( + ( col1 ) ) + 77 FROM tab0 AS cor0
----
163
168
174

query I rowsort
SELECT 52 * col1 + + col2 AS col0 FROM tab1 AS cor0
----
1406
577
772

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

query I rowsort
SELECT DISTINCT + col1 + + col2 + col0 * 71 * col1 FROM tab2 AS cor0
----
15465
326827
95408

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

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

query I rowsort
SELECT DISTINCT + - 22 + 56 * col0 + col1 AS col1 FROM tab1 AS cor0
----
172
3572
4471

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

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

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

query I rowsort
SELECT + 35 * 71 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5da0ade79295242630150fa3ee5a6961

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-104
SELECT ALL col2 + + CAST ( col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT col1 - + col2 * - col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT + col2 * - 12 FROM tab0 AS cor0
----
-12
-396
-984

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

query I rowsort
SELECT ALL + col0 * ( 59 ) FROM tab1 AS cor0
----
177
3776
4720

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

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

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

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

query I rowsort
SELECT col2 * 69 FROM tab2 cor0
----
1794
1863
2622

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

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

query I rowsort
SELECT - 21 + + col0 FROM tab0 cor0
----
14
3
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * 78 col2 FROM tab2 AS cor0
----
2028
2106
2964

query I rowsort
SELECT tab1.col2 + tab1.col0 FROM tab1, tab2 cor0
----
9 values hashing to 8733ba2dd568938e338b27ad757d3e3b

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

skipif mysql # not compatible
query I rowsort label-119
SELECT col2 + CAST ( NULL AS REAL ) + 25 * col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 3 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
3

query I rowsort
SELECT DISTINCT 72 * cor0.col1 FROM tab2, tab2 cor0
----
1224
2232
4248

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

query I rowsort
SELECT 22 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT ALL 77 + 75 * col1 AS col0 FROM tab1
----
1052
2027
827

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

query I rowsort
SELECT - cor0.col0 + - cor0.col0 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to f695e8ac4bda97d478d6d74ae91ee549

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 * tab0.col0 col0 FROM tab0
----
1440
2100
5340

query I rowsort
SELECT DISTINCT - ( + col0 ) * ( 48 ) FROM tab1 AS cor0
----
-144
-3072
-3840

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

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

skipif mysql # not compatible
query I rowsort label-130
SELECT 14 / col0 AS col0 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT + 60 + - cor0.col0 * + col0 * 62 AS col1 FROM tab2 AS cor0
----
-2978
-377148
-386882

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

query I rowsort
SELECT ALL col2 * - 65 + col2 FROM tab1 AS cor0
----
-3456
-3648
-6144

onlyif mysql # use DIV operator for integer division
query I rowsort label-134
SELECT - + CAST( ( + col1 ) AS SIGNED ) + cor0.col2 DIV - col1 FROM tab2 AS cor0
----
-19
-31
-59

skipif mysql # not compatible
query I rowsort label-134
SELECT - + CAST ( ( + col1 ) AS INTEGER ) + cor0.col2 / - col1 FROM tab2 AS cor0
----
-19
-31
-59

query I rowsort
SELECT DISTINCT col2 + + 86 * col2 * col1 AS col1 FROM tab2 AS cor0
----
131950
55594
72009

onlyif mysql # use DIV operator for integer division
query I rowsort label-136
SELECT ALL + 12 * cor0.col0 DIV + col0 FROM tab2 AS cor0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-136
SELECT ALL + 12 * cor0.col0 / + col0 FROM tab2 AS cor0
----
12
12
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-137
SELECT + - ( + 57 ) * col1 DIV col1 + col1 FROM tab2 AS cor0
----
-26
-40
2

skipif mysql # not compatible
query I rowsort label-137
SELECT + - ( + 57 ) * col1 / col1 + col1 FROM tab2 AS cor0
----
-26
-40
2

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

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

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

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

query I rowsort
SELECT DISTINCT + - col1 * col0 + + 40 FROM tab0 AS cor0
----
-2024
-3355
-8059

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

query I rowsort
SELECT + + 18 * - col1 FROM tab1 cor0
----
-180
-234
-468

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0 CROSS JOIN tab0 AS cor1
----
243 values hashing to 74e36edda45186a5c45856859d8e21f0

query I rowsort
SELECT - 0 * cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT col2 * 54 + 68 FROM tab0 AS cor0
----
122
1850
4496

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-148
SELECT col1 DIV 11 FROM tab2
----
1
2
5

skipif mysql # not compatible
query I rowsort label-148
SELECT col1 / 11 FROM tab2
----
1
2
5

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

query I rowsort
SELECT DISTINCT - col0 * + 92 AS col2 FROM tab1
----
-276
-5888
-7360

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

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

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 43f0c51511c8642d19190fd4dfcf905a

onlyif mysql # use DIV operator for integer division
query I rowsort label-154
SELECT ( cor0.col2 ) + col0 DIV + col0 AS col2 FROM tab0 cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-154
SELECT ( cor0.col2 ) + col0 / + col0 AS col2 FROM tab0 cor0
----
2
34
83

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-156
SELECT ALL col0 + - col0 * col1 * + CAST( + col2 + col0 AS SIGNED ) FROM tab0
----
-117624
-122185
-1384840

skipif mysql # not compatible
query I rowsort label-156
SELECT ALL col0 + - col0 * col1 * + CAST ( + col2 + col0 AS INTEGER ) FROM tab0
----
-117624
-122185
-1384840

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

query I rowsort
SELECT + 36 * + 43 AS col0 FROM tab0
----
1548
1548
1548

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-160
SELECT ALL + col0 DIV col0 + col0 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-160
SELECT ALL + col0 / col0 + col0 FROM tab2
----
79
8
80

query I rowsort
SELECT DISTINCT + col1 * 80 * col0 FROM tab2 AS cor0
----
107440
17360
368160

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

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

query I rowsort
SELECT DISTINCT + col2 * col0 * col2 AS col1 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT 40 * - cor0.col1 - + col0 AS col0 FROM tab0 AS cor0
----
-3464
-3729
-3915

query I rowsort
SELECT - tab1.col2 * tab1.col0 - - ( - col0 ) FROM tab1
----
-165
-3712
-7760

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

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

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

skipif mysql # not compatible
query I rowsort label-168
SELECT col0 / + 39 FROM tab2 cor0
----
0
2
2

query I rowsort
SELECT + col2 + 73 * 57 AS col1 FROM tab1 AS cor0
----
4215
4218
4257

query I rowsort
SELECT DISTINCT + + cor0.col1 * + 7 + - 34 * + col1 AS col0 FROM tab2 AS cor0
----
-1593
-459
-837

query I rowsort
SELECT + col0 * - 6 - col1 * + col2 AS col2 FROM tab0
----
-2982
-307
-7996

query I rowsort
SELECT col1 * - 61 FROM tab1 AS cor0
----
-1586
-610
-793

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col0 * col0 * - 71 + cor0.col1 AS col2 FROM tab1 AS cor0
----
290826
454413
665

query I rowsort
SELECT + col1 * - 98 AS col2 FROM tab0 AS cor0
----
-8428
-8918
-9506

query I rowsort
SELECT - ( col2 ) * - col0 - - col2 * + col1 AS col2 FROM tab0 AS cor0
----
132
14760
3630

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

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

query I rowsort
SELECT ALL + 99 * - 46 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 56c96f1ffe7162fc8030b63da8c05962

query I rowsort
SELECT ALL 5 * col0 AS col0 FROM tab2 AS cor0
----
35
390
395

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

skipif mysql # not compatible
query I rowsort label-185
SELECT - col2 + - ( col2 ) / col0 AS col1 FROM tab1 AS cor0
----
-57
-72
-97

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-187
SELECT + col1 * - CAST( 27 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-1619
-497
-864

skipif mysql # not compatible
query I rowsort label-187
SELECT + col1 * - CAST ( 27 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-1619
-497
-864

query I rowsort
SELECT ALL + col0 + - col2 + + col0 AS col1 FROM tab0
----
15
69
96

query I rowsort
SELECT ALL - col0 * - tab1.col2 * - tab1.col0 + col0 FROM tab1
----
-233408
-483
-614320

query I rowsort
SELECT ( 4 ) * + cor1.col1 AS col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to d6867d656f89cb593982719f4a7ed24d

query I rowsort
SELECT DISTINCT - col2 * tab1.col1 + - col2 * 18 FROM tab1
----
-1596
-2376
-2976

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

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

query I rowsort
SELECT + - 68 AS col0 FROM tab0 cor0
----
-68
-68
-68

query I rowsort
SELECT ALL - 13 + col1 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
2825
7449
84

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

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

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

query I rowsort
SELECT DISTINCT col2 * 36 AS col2 FROM tab1
----
1944
2052
3456

query I rowsort
SELECT - 32 FROM tab2, tab0 AS cor0, tab1, tab1 cor1
----
81 values hashing to 54c3a9a1fd8612641b43985c0c2f59cd

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

query I rowsort
SELECT ALL + 65 * - col2 AS col0 FROM tab2
----
-1690
-1755
-2470

query I rowsort
SELECT DISTINCT - col1 * - 92 + col1 FROM tab0 AS cor0
----
7998
8463
9021

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

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-209
SELECT ALL - 20 DIV + col0 FROM tab1
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL - 20 / + col0 FROM tab1
----
-6
0
0

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

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

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

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

query I rowsort
SELECT DISTINCT 21 * + col2 * - 21 FROM tab1 AS cor0
----
-23814
-25137
-42336

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

query I rowsort
SELECT - 99 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 29 + - cor0.col0 col0 FROM tab2 cor0
----
-107
-108
-36

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

query I rowsort
SELECT ALL 73 + + 7 FROM tab2, tab1 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT col2 + col1 * col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT col1 * + cor0.col0 + col1 - - col1 * col1 FROM tab1 AS cor0
----
1222
750
780

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

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

query I rowsort
SELECT DISTINCT - col2 * + 6 AS col0 FROM tab0 AS cor0
----
-198
-492
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-225
SELECT col1 DIV 49 + cor0.col1 * col1 FROM tab0 AS cor0
----
7397
8282
9410

skipif mysql # not compatible
query I rowsort label-225
SELECT col1 / 49 + cor0.col1 * col1 FROM tab0 AS cor0
----
7397
8282
9410

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

query I rowsort
SELECT ALL + - col0 + - ( 40 ) - cor0.col1 AS col0 FROM tab0 cor0
----
-150
-172
-220

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

query I rowsort
SELECT ALL - col2 + ( - col2 * col0 + - ( + 48 ) ) AS col1 FROM tab1 AS cor0
----
-264
-3753
-7824

query I rowsort
SELECT col2 + + col1 * col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1057
17630
2293

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 - + 25 col0 FROM tab0 AS cor0
----
-122
-2863
-7487

onlyif mysql # use DIV operator for integer division
query I rowsort label-232
SELECT ALL - - col2 DIV - 1 + + 64 FROM tab0 cor0
----
-18
31
63

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL - - col2 / - 1 + + 64 FROM tab0 cor0
----
-18
31
63

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

query I rowsort
SELECT col2 + 45 AS col1 FROM tab0 AS cor0
----
127
46
78

query I rowsort
SELECT DISTINCT + col1 + 23 FROM tab1 AS cor0
----
33
36
49

query I rowsort
SELECT DISTINCT + + col2 + + 7 * - col1 AS col2 FROM tab2 cor0
----
-190
-387
-81

query I rowsort
SELECT 45 * 17 AS col2 FROM tab2 AS cor0
----
765
765
765

onlyif mysql # use DIV operator for integer division
query I rowsort label-238
SELECT ALL + + 86 DIV col0 - - col0 DIV 16 FROM tab1 AS cor0
----
28
5
6

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL + + 86 / col0 - - col0 / 16 FROM tab1 AS cor0
----
28
5
6

query I rowsort
SELECT DISTINCT + cor2.col0 AS col1 FROM tab0 cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab1 AS cor2
----
3
64
80

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

query I rowsort
SELECT ALL + + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT - 70 + tab1.col1 * tab1.col2 - + col0 FROM tab1
----
1098
1331
436

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

query I rowsort
SELECT - 93 + - col0 FROM tab1 cor0
----
-157
-173
-96

query I rowsort
SELECT ( - col2 ) + col1 + col2 * col1 AS col1 FROM tab0 AS cor0
----
193
2891
7471

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

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

query I rowsort
SELECT - 87 * - col0 + cor0.col1 AS col1 FROM tab1 cor0
----
287
5578
6973

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

query I rowsort
SELECT + cor0.col2 * - col2 + + col0 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT ALL - + col1 + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1475
629
806

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

query I rowsort
SELECT + 63 * cor0.col2 FROM tab0 cor0
----
2079
5166
63

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

query I rowsort
SELECT - 74 * col0 AS col0 FROM tab0 AS cor0
----
-1776
-2590
-6586

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-259
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT col0 DIV - col2 IN ( col0 + - col0 )
----
1
82

skipif mysql # not compatible
query I rowsort label-259
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT col0 / - col2 IN ( col0 + - col0 )
----
1
82

query I rowsort
SELECT DISTINCT col0 + + col0 - + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 * col0 IN ( col1 )
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-261
SELECT col2 * col0 DIV + col1 AS col1 FROM tab1
----
364
590
6

skipif mysql # not compatible
query I rowsort label-261
SELECT col2 * col0 / + col1 AS col1 FROM tab1
----
364
590
6

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

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

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

query I rowsort
SELECT ALL - col0 * col1 * + col0 + col1 FROM tab2
----
-106080
-1488
-358897

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-267
SELECT tab1.col0 * col2 DIV col2 + - col0 * col0 * - col2 AS col1 FROM tab1
----
233536
489
614480

skipif mysql # not compatible
query I rowsort label-267
SELECT tab1.col0 * col2 / col2 + - col0 * col0 * - col2 AS col1 FROM tab1
----
233536
489
614480

onlyif mysql # use DIV operator for integer division
query I rowsort label-268
SELECT - col1 DIV cor0.col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-268
SELECT - col1 / cor0.col1 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col2 / col0 AS col0 FROM tab2 WHERE NOT col0 - - col2 NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT - col1 + - tab1.col0 + - col1 FROM tab1
----
-106
-55
-84

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-273
SELECT col0 - + col1 DIV tab1.col1 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-273
SELECT col0 - + col1 / tab1.col1 FROM tab1
----
2
63
79

query I rowsort
SELECT DISTINCT + - col0 + + col2 * col1 * - col1 AS col1 FROM tab2 AS cor0
----
-11061
-25954
-90584

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

query I rowsort
SELECT ALL + + col1 * - col2 * col1 - + col2 FROM tab1 AS cor0
----
-16320
-36558
-5757

query I rowsort
SELECT - tab1.col0 * + col1 * col1 + col0 * - col0 AS col1 FROM tab1
----
-10496
-19920
-2037

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * ( col2 ) * - col2 col2 FROM tab0
----
-1
-35937
-551368

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

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

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

query I rowsort
SELECT + col1 + 30 * + col1 FROM tab1 AS cor0
----
310
403
806

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 * tab2.col0 * - 44 col2 FROM tab2
----
-2156
-267696
-274604

query I rowsort
SELECT + col2 + - 92 FROM tab0
----
-10
-59
-91

query I rowsort
SELECT tab1.col1 * - ( + col2 ) + + col0 FROM tab1
----
-1168
-1401
-506

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

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

query I rowsort
SELECT + col1 * - cor0.col0 + - col1 + - col1 FROM tab2 cor0
----
-1377
-279
-4720

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

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

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

query I rowsort
SELECT ALL - 36 * - col2 FROM tab0 AS cor0
----
1188
2952
36

query I rowsort
SELECT + 52 + - col2 * + 1 AS col0 FROM tab1 AS cor0
----
-2
-44
-5

query I rowsort
SELECT DISTINCT 56 FROM tab2 cor0
----
56

query I rowsort
SELECT 90 + cor0.col0 + - 43 * + ( cor0.col1 * 72 ) FROM tab0 AS cor0
----
-266142
-281557
-300187

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

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

query I rowsort
SELECT ALL + col0 + - col1 + + tab0.col1 * col0 AS col2 FROM tab0
----
2002
3333
8097

query I rowsort
SELECT ALL + 52 + - col2 + + col2 FROM tab1
----
52
52
52

query I rowsort
SELECT ALL + 67 + col1 FROM tab2
----
126
84
98

query I rowsort
SELECT ALL 7 AS col2 FROM tab2 AS cor0
----
7
7
7

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-306
SELECT - 5 + - cor0.col1 DIV col0 + - 4 FROM tab2 AS cor0
----
-13
-9
-9

skipif mysql # not compatible
query I rowsort label-306
SELECT - 5 + - cor0.col1 / col0 + - 4 FROM tab2 AS cor0
----
-13
-9
-9

query I rowsort
SELECT ALL - 9 + col0 FROM tab0 cor0
----
15
26
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 61 * col2 col0 FROM tab0 AS cor0
----
2013
5002
61

query I rowsort
SELECT ALL ( 62 ) * - col1 AS col1 FROM tab0
----
-5332
-5642
-6014

query I rowsort
SELECT col0 + - col1 * 13 FROM tab1
----
-335
-66
-89

query I rowsort
SELECT + col2 * + ( 14 ) AS col0 FROM tab2 AS cor0
----
364
378
532

query I rowsort
SELECT - 91 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT col2 * 31 FROM tab2 AS cor0
----
1178
806
837

query I rowsort
SELECT - col1 * tab1.col1 + 35 FROM tab1
----
-134
-641
-65

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-316
SELECT ALL cor0.col2 DIV 18 FROM tab2, tab2 AS cor0
----
9 values hashing to c08e3956186780709ba0eab5eede7b9c

skipif mysql # not compatible
query I rowsort label-316
SELECT ALL cor0.col2 / 18 FROM tab2, tab2 AS cor0
----
9 values hashing to c08e3956186780709ba0eab5eede7b9c

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

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

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

query I rowsort
SELECT ALL + col2 + 3 * + 80 FROM tab0 AS cor0
----
241
273
322

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

skipif mysql # not compatible
query I rowsort label-320
SELECT + col2 * + CAST ( - 19 AS INTEGER ) FROM tab0 AS cor0
----
-1558
-19
-627

query I rowsort
SELECT - 70 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT ALL col2 + + col1 * 45 AS col0 FROM tab2 AS cor0
----
1422
2681
803

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

query I rowsort
SELECT + 33 * col2 + tab1.col2 * 44 * + col0 + - col0 FROM tab1
----
162329
341008
8907

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

query I rowsort
SELECT ALL + ( col2 ) * - col0 * 41 + - col2 FROM tab1 AS cor0
----
-149625
-314976
-6696

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

skipif mysql # not compatible
query I rowsort label-327
SELECT ALL - CAST ( - ( + col1 ) AS INTEGER ) * + cor0.col1 - col2 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT DISTINCT + ( col2 ) + col2 * col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT DISTINCT + 83 + col2 * - col0 + 73 * col0 AS col2 FROM tab2 AS cor0
----
2848
3749
405

query I rowsort
SELECT DISTINCT - - 33 + tab1.col2 FROM tab1, tab1 AS cor0, tab2, tab0 AS cor1
----
129
87
90

query I rowsort
SELECT 98 * - col1 AS col1 FROM tab1 AS cor0
----
-1274
-2548
-980

query I rowsort
SELECT DISTINCT + - 67 + col2 * col0 FROM tab0 AS cor0
----
-32
7231
725

query I rowsort
SELECT - + 53 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT + col2 * col2 + - 15 AS col0 FROM tab1 cor0
----
2901
3234
9201

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

query I rowsort
SELECT ALL 87 + + col0 AS col1 FROM tab1 AS cor0
----
151
167
90

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

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

skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT + col0 + col0 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL ( + col0 ) * ( - 23 ) + - cor0.col2 FROM tab0 AS cor0
----
-2129
-585
-806

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

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

query I rowsort
SELECT ALL cor0.col2 * col0 * + ( col2 ) + + cor0.col1 * col0 + 26 AS col1 FROM tab0 AS cor0
----
28226
3456
606561

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

query I rowsort
SELECT ( 73 * - col1 ) AS col2 FROM tab0
----
-6278
-6643
-7081

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - col2 * + 86 col1 FROM tab1 AS cor0
----
-4590
-4845
-8160

query I rowsort
SELECT DISTINCT tab1.col1 * col0 + col2 * + col0 - + col0 * col0 FROM tab1
----
192
231
2320

query I rowsort
SELECT + + col0 * 12 + col1 AS col0 FROM tab0 AS cor0
----
1159
374
517

query I rowsort
SELECT - col1 + - 3 * 2 * + col0 AS col0 FROM tab2 AS cor0
----
-491
-527
-73

query I rowsort
SELECT ALL - + 47 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 - + col1 * - col2 * - ( + col0 * col2 ) col0 FROM tab2
----
-158143
-1939242
-3110902

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

skipif mysql # not compatible
query I rowsort label-352
SELECT DISTINCT CAST ( - 32 AS INTEGER ) AS col2 FROM tab1
----
-32

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

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

query I rowsort
SELECT - col0 * - col1 * col1 + ( + col0 ) * col1 AS col0 FROM tab0 cor0
----
179568
332710
745108

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

query I rowsort
SELECT DISTINCT + col0 * - 49 FROM tab0 cor0
----
-1176
-1715
-4361

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-361
SELECT ALL col2 * ( col1 ) DIV + col1 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
157
265
730

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL col2 * ( col1 ) / + col1 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
157
265
730

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

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

skipif mysql # not compatible
query I rowsort label-363
SELECT ALL + - cor0.col0 * - col1 - col2 * + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-620
3068
697

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 * col0 + - col1 col2 FROM tab1 AS cor0
----
208
40950
83187

query I rowsort
SELECT DISTINCT - cor0.col1 + col2 * + col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT - col0 + + cor0.col1 * ( - col0 + cor0.col2 ) FROM tab1 AS cor0
----
-134
128
1323

query I rowsort
SELECT DISTINCT - + 16 - - col2 FROM tab2 AS cor0
----
10
11
22

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

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

query I rowsort
SELECT ( 5 + tab2.col1 * - tab2.col1 ) AS col0 FROM tab2
----
-284
-3476
-956

query I rowsort
SELECT ALL col2 + col0 * col0 FROM tab2 cor0
----
6110
6279
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-372
SELECT DISTINCT + col0 * + ( + col2 ) DIV col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-372
SELECT DISTINCT + col0 * + ( + col2 ) / col2 FROM tab0 AS cor0
----
24
35
89

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

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

query I rowsort
SELECT ALL col1 + ( + 32 ) FROM tab0 cor0
----
118
123
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

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

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

query I rowsort
SELECT col2 * - 57 AS col1 FROM tab1
----
-3078
-3249
-5472

onlyif mysql # use DIV operator for integer division
query I rowsort label-379
SELECT - + 85 DIV - 77 + col1 AS col1 FROM tab1 cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-379
SELECT - + 85 / - 77 + col1 AS col1 FROM tab1 cor0
----
11
14
27

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-383
SELECT ALL + tab1.col2 + CAST( 74 AS SIGNED ) DIV - col1 AS col0 FROM tab1
----
50
52
91

skipif mysql # not compatible
query I rowsort label-383
SELECT ALL + tab1.col2 + CAST ( 74 AS INTEGER ) / - col1 AS col0 FROM tab1
----
50
52
91

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

query I rowsort
SELECT col2 * 53 AS col2 FROM tab1
----
2862
3021
5088

query I rowsort
SELECT col2 * - col1 + tab2.col1 FROM tab2
----
-1475
-629
-806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT 84 + 70 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 7cf925cdea37533e5028b2ea0c580358

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

query I rowsort
SELECT ALL - tab0.col2 + + 9 AS col1 FROM tab0, tab1, tab1 AS cor0, tab1 AS cor1
----
81 values hashing to a6414799a36f2fe2460cc36b7f86a313

query I rowsort
SELECT + ( - cor0.col0 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT ALL + tab2.col2 + - 65 * - col0 FROM tab2
----
482
5096
5173

onlyif mysql # use DIV operator for integer division
query I rowsort label-393
SELECT 81 DIV 20 + + tab1.col2 FROM tab1
----
100
58
61

skipif mysql # not compatible
query I rowsort label-393
SELECT 81 / 20 + + tab1.col2 FROM tab1
----
100
58
61

query I rowsort
SELECT - tab0.col2 - tab0.col2 * - tab0.col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2ab4b530b8673694687256a7b86830dc

query I rowsort
SELECT DISTINCT 78 + tab0.col1 FROM tab0
----
164
169
175

query I rowsort
SELECT ALL ( col0 * col2 ) + - col2 * - ( col0 ) AS col0 FROM tab1
----
15360
324
7296

query I rowsort
SELECT ALL + - 71 + - 44 * - col2 * 69 AS col0 FROM tab2 cor0
----
115297
78865
81901

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

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

skipif mysql # not compatible
query I rowsort label-400
SELECT + 74 - col2 * cor0.col2 * - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
17650
19757
54946

query I rowsort
SELECT + ( + ( + col1 ) ) * cor0.col1 - ( + col0 ) * ( col0 ) AS col1 FROM tab1 AS cor0
----
-3996
-6231
667

query I rowsort
SELECT - + col0 * cor0.col2 + - 60 * 30 FROM tab0 AS cor0
----
-1835
-2592
-9098

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

query I rowsort
SELECT DISTINCT - + 80 - + col1 AS col0 FROM tab0 AS cor0
----
-166
-171
-177

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

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

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT + col2 + - cor0.col0 * + CAST ( - col1 * col0 AS INTEGER ) - col0 AS col1 FROM tab0 AS cor0
----
118791
49545
720804

query I rowsort
SELECT DISTINCT + + 50 * - col0 + + cor0.col1 FROM tab0 AS cor0
----
-1114
-1653
-4359

query I rowsort
SELECT ALL col1 + 97 FROM tab2
----
114
128
156

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-410
SELECT 12 + col0 DIV ( - 30 ) FROM tab2 AS cor0
----
10
10
12

skipif mysql # not compatible
query I rowsort label-410
SELECT 12 + col0 / ( - 30 ) FROM tab2 AS cor0
----
10
10
12

query I rowsort
SELECT cor0.col1 * - col1 + 83 AS col0 FROM tab0 AS cor0
----
-7313
-8198
-9326

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 * - col1 col1 FROM tab0 cor0
----
-7912
-8372
-8924

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

query I rowsort
SELECT - ( - 86 ) * col0 AS col0 FROM tab0 AS cor0
----
2064
3010
7654

query I rowsort
SELECT - col0 + 90 AS col2 FROM tab1
----
10
26
87

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

query I rowsort
SELECT + ( col0 ) + + tab1.col1 + + ( - 83 ) FROM tab1
----
-54
-9
10

query I rowsort
SELECT - 44 * 42 * - col1 FROM tab1 AS cor0
----
18480
24024
48048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * 48 col1 FROM tab1 AS cor0
----
2592
2736
4608

query I rowsort
SELECT col2 + ( + col2 ) FROM tab2 AS cor0
----
52
54
76

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

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

query I rowsort
SELECT - col1 * col2 + col1 + - cor0.col0 FROM tab0 AS cor0
----
-2776
-35
-7460

query I rowsort
SELECT ALL - cor0.col0 * + ( + 75 * - col0 + + 84 ) FROM tab1 AS cor0
----
301824
423
473280

query I rowsort
SELECT + col1 * - ( col1 ) AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL cor0.col1 * col1 AS col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT - col0 + 25 * 23 AS col2 FROM tab0 AS cor0
----
486
540
551

query I rowsort
SELECT ALL + 15 * - col1 FROM tab0
----
-1290
-1365
-1455

query I rowsort
SELECT DISTINCT + - cor0.col1 * col0 * col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 4 col0 FROM tab2 AS cor0
----
28
312
316

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

query I rowsort
SELECT 35 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT - 14 + tab1.col2 AS col2 FROM tab1
----
40
43
82

query I rowsort
SELECT + 91 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 8a48d0ac75792561e233f0311a8872fd

query I rowsort
SELECT - + 36 * - col0 AS col2 FROM tab2 AS cor0
----
252
2808
2844

query I rowsort
SELECT + 73 + tab1.col0 + + col2 FROM tab1
----
130
194
249

query I rowsort
SELECT - 9 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-443
SELECT ALL - - col2 + - col1 DIV 22 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-443
SELECT ALL - - col2 + - col1 / 22 FROM tab2 AS cor0
----
24
26
38

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

query I rowsort
SELECT ALL col2 + col0 * 76 FROM tab2 AS cor0
----
559
5954
6042

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT + + cor0.col1 * - 67 + + ( + col0 ) AS col2 FROM tab0 AS cor0
----
-5738
-6008
-6464

query I rowsort
SELECT col0 * + 17 - - col1 AS col0 FROM tab0 AS cor0
----
1604
494
692

query I rowsort
SELECT - col0 + col1 - - col1 FROM tab1
----
-44
-54
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-450
SELECT ALL CAST( - col1 AS SIGNED ) - tab1.col2 * - col0 FROM tab1
----
136
3638
7667

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL CAST ( - col1 AS INTEGER ) - tab1.col2 * - col0 FROM tab1
----
136
3638
7667

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

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

query I rowsort
SELECT - 88 FROM tab0, tab1 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT 96 * + col0 AS col1 FROM tab0 AS cor0
----
2304
3360
8544

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-454
SELECT + CAST( - col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-454
SELECT + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
-54
-57
-96

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-456
SELECT ALL cor0.col0 + + col0 * - CAST( NULL AS DECIMAL ) 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-456
SELECT ALL cor0.col0 + + col0 * - CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 77 * col1 col2 FROM tab2 AS cor0
----
1309
2387
4543

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

query I rowsort
SELECT ALL - 28 * col0 + + 18 + col0 * - col0 * col2 FROM tab0 AS cor0
----
-19662
-2187
-651996

query I rowsort
SELECT ALL 48 * + col0 + + cor0.col2 + col1 FROM tab1 AS cor0
----
224
3139
3949

query I rowsort
SELECT DISTINCT + 87 * col2 + + ( + col0 ) FROM tab2 AS cor0
----
2340
2356
3385

query I rowsort
SELECT ALL - + 28 + - col1 FROM tab0 AS cor0
----
-114
-119
-125

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

query I rowsort
SELECT + 77 * col1 * col0 AS col1 FROM tab1
----
49280
6006
80080

query I rowsort
SELECT + 95 * + tab1.col0 + - col0 + + 14 FROM tab1
----
296
6030
7534

query I rowsort
SELECT 1 * + col0 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL col1 * col0 + 41 FROM tab0 AS cor0
----
2105
3436
8140

query I rowsort
SELECT DISTINCT ( + col2 ) * 6 * col0 + col2 AS col1 FROM tab2 AS cor0
----
1161
12194
18050

query I rowsort
SELECT + col1 * - tab1.col0 * + col1 AS col1 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT - + col1 + ( - col2 ) + + 75 AS col2 FROM tab0 AS cor0
----
-23
-44
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-471
SELECT ( col0 ) 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-471
SELECT ( col0 ) / - col1 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + 67 + col2 AS col0 FROM tab2
----
101
171
184

onlyif mysql # use DIV operator for integer division
query I rowsort label-473
SELECT tab2.col0 * col2 DIV - 25 AS col0 FROM tab2
----
-120
-7
-81

skipif mysql # not compatible
query I rowsort label-473
SELECT tab2.col0 * col2 / - 25 AS col0 FROM tab2
----
-120
-7
-81

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

query I rowsort
SELECT tab1.col1 * ( - col2 ) * col2 + + ( + 69 ) * - col2 + - 53 * ( - col0 ) FROM tab1
----
-122192
-33031
-79383

onlyif mysql # use DIV operator for integer division
query I rowsort label-476
SELECT DISTINCT ( - col2 ) DIV tab1.col1 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-476
SELECT DISTINCT ( - col2 ) / tab1.col1 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT ( - 38 * + col2 ) FROM tab1
----
-2052
-2166
-3648

query I rowsort
SELECT - 12 * col1 * tab0.col0 AS col2 FROM tab0
----
-24768
-40740
-97188

query I rowsort
SELECT DISTINCT - col1 + - 55 + col1 AS col1 FROM tab2
----
-55

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

query I rowsort
SELECT + 90 + - col2 * - col1 FROM tab0 AS cor0
----
187
2928
7552

query I rowsort
SELECT DISTINCT - 97 * + col1 FROM tab0
----
-8342
-8827
-9409

query I rowsort
SELECT + 93 + + col1 FROM tab2
----
110
124
152

query I rowsort
SELECT - col2 - + 75 FROM tab2 AS cor0
----
-101
-102
-113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + tab2.col0 + + col0 col1 FROM tab2
----
1422
224
4680

query I rowsort
SELECT + 95 - col2 AS col2 FROM tab0
----
13
62
94

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

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

query I rowsort
SELECT - - cor0.col2 + - 95 AS col0 FROM tab0 AS cor0
----
-13
-62
-94

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

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

query I rowsort
SELECT + col1 + - ( 17 * + col1 ) AS col0 FROM tab1 AS cor0
----
-160
-208
-416

query I rowsort
SELECT ALL + 10 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT - col2 + 39 FROM tab0 cor0
----
-43
38
6

query I rowsort
SELECT ALL + col0 + + 16 FROM tab0 AS cor0
----
105
40
51

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

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

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL + col0 * CAST ( - 43 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-301
-3354
-3397

query I rowsort
SELECT + - col0 * - ( col2 ) + - col1 * col1 AS col1 FROM tab0 cor0
----
-6604
-9374
-983

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-501
SELECT col0 + - ( + cor0.col2 ) DIV col0 AS col1 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-501
SELECT col0 + - ( + cor0.col2 ) / col0 AS col1 FROM tab2 AS cor0
----
4
78
79

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-503
SELECT ALL - col1 * 32 DIV - 95 + - col1 FROM tab2
----
-12
-21
-40

skipif mysql # not compatible
query I rowsort label-503
SELECT ALL - col1 * 32 / - 95 + - col1 FROM tab2
----
-12
-21
-40

query I rowsort
SELECT ALL col1 + - cor0.col0 * ( col2 ) - - col2 AS col1 FROM tab1 AS cor0
----
-3581
-7571
-82

query I rowsort
SELECT col2 * 7 FROM tab2 AS cor0
----
182
189
266

query I rowsort
SELECT - col1 * + 6 * - col0 FROM tab2 AS cor0
----
1302
27612
8058

query I rowsort
SELECT ALL - col1 + + 56 FROM tab2 AS cor0
----
-3
25
39

query I rowsort
SELECT - 19 - col2 AS col2 FROM tab0 AS cor0
----
-101
-20
-52

query I rowsort
SELECT - + 69 * col1 + col0 FROM tab1 AS cor0
----
-1791
-626
-817

onlyif mysql # use DIV operator for integer division
query I rowsort label-510
SELECT + 86 + col0 DIV col0 AS col1 FROM tab0 AS cor0
----
87
87
87

skipif mysql # not compatible
query I rowsort label-510
SELECT + 86 + col0 / col0 AS col1 FROM tab0 AS cor0
----
87
87
87

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 + ( col1 ) * col0 * + cor0.col1 col1 FROM tab0 AS cor0
----
177577
329388
737082

query I rowsort
SELECT - - 32 * - col1 AS col0 FROM tab2 AS cor0
----
-1888
-544
-992

query I rowsort
SELECT DISTINCT col0 * cor0.col2 - - col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT - 48 FROM tab1, tab1 AS cor0
----
-48

query I rowsort
SELECT + - 73 * - col1 + - col1 FROM tab2 AS cor0
----
1224
2232
4248

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

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

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

query I rowsort
SELECT ALL + - 61 * col1 FROM tab1 cor0
----
-1586
-610
-793

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 + - ( - 42 ) FROM tab1 AS cor0
----
35
58
93

query I rowsort
SELECT + + 53 + col0 * col0 FROM tab1 AS cor0
----
4149
62
6453

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 * - cor0.col1 + col1 * - col1 col1 FROM tab0 AS cor0
----
-18818
-251464
-687323

query I rowsort
SELECT DISTINCT + 45 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1170
1215
1710

query I rowsort
SELECT ALL ( + 3 * col2 ) + col1 * col0 FROM tab1
----
1328
240
811

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

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

query I rowsort
SELECT + col0 * 54 FROM tab1 AS cor0
----
162
3456
4320

query I rowsort
SELECT - - col0 * 17 * col0 FROM tab2 AS cor0
----
103428
106097
833

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-530
SELECT ALL CAST( + col2 AS SIGNED ) + col1 DIV + col0 FROM tab2
----
26
31
38

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL CAST ( + col2 AS INTEGER ) + col1 / + col0 FROM tab2
----
26
31
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-531
SELECT ALL + CAST( - 87 AS SIGNED ) + + col1 * col0 FROM tab1
----
-9
553
953

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL + CAST ( - 87 AS INTEGER ) + + col1 * col0 FROM tab1
----
-9
553
953

query I rowsort
SELECT ALL - 27 * col0 + + col1 FROM tab2
----
-158
-2047
-2116

query I rowsort
SELECT DISTINCT + col2 + tab0.col1 * + col0 AS col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT ALL 13 + col2 * col2 FROM tab2
----
1457
689
742

query I rowsort
SELECT ALL + ( + col1 ) * - col0 * tab0.col0 + - col0 * tab0.col1 AS col0 FROM tab0
----
-122220
-51600
-728910

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

skipif mysql # not compatible
query I rowsort label-536
SELECT + col2 * col2 / col0 + - col2 AS col2 FROM tab1 AS cor0
----
-7
19
918

query I rowsort
SELECT ALL - 27 * + 41 FROM tab2 AS cor0
----
-1107
-1107
-1107

query I rowsort
SELECT DISTINCT + ( - col0 ) + + col1 * col2 * col0 AS col2 FROM tab2 AS cor0
----
119574
50955
5852

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

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

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

query I rowsort
SELECT - + col0 * col0 + + col2 * + col2 * col2 AS col0 FROM tab2 cor0
----
11492
19634
48631

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

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

query I rowsort
SELECT DISTINCT 85 - cor0.col1 * col1 FROM tab0 cor0
----
-7311
-8196
-9324

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 * col0 - col2 col0 FROM tab2 cor0
----
183
2314
2332

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 26 ) col1 FROM tab2
----
-26

query I rowsort
SELECT + 64 * col2 FROM tab0
----
2112
5248
64

query I rowsort
SELECT ALL col2 * col1 + col2 * col1 AS col1 FROM tab2 cor0
----
1292
1674
3068

onlyif mysql # use DIV operator for integer division
query I rowsort label-549
SELECT col1 DIV 25 - + ( col1 + col1 ) AS col2 FROM tab0 AS cor0
----
-169
-179
-191

skipif mysql # not compatible
query I rowsort label-549
SELECT col1 / 25 - + ( col1 + col1 ) AS col2 FROM tab0 AS cor0
----
-169
-179
-191

onlyif mysql # use DIV operator for integer division
query I rowsort label-550
SELECT + + col1 * col0 + - cor0.col0 DIV col2 + col2 * - col1 FROM tab1 AS cor0
----
-1326
-208
69

skipif mysql # not compatible
query I rowsort label-550
SELECT + + col1 * col0 + - cor0.col0 / col2 + col2 * - col1 FROM tab1 AS cor0
----
-1326
-208
69

query I rowsort
SELECT + col1 * + col2 + - 9 * col1 FROM tab1 AS cor0
----
1131
1170
480

query I rowsort
SELECT + col2 + ( col0 ) * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

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

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

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

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

query I rowsort
SELECT + 93 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT DISTINCT + 30 + ( + cor0.col1 * + col2 + col2 ) AS col1 FROM tab0 AS cor0
----
128
2901
7574

query I rowsort
SELECT ALL col1 * col2 * col2 + - col0 + col2 FROM tab1 AS cor0
----
119824
32483
75867

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL - col1 / + col0 FROM tab1 cor0
----
-8
0
0

query I rowsort
SELECT + col2 * + col1 * col1 + col1 - col2 AS col2 FROM tab1
----
16141
36476
5653

onlyif mysql # use DIV operator for integer division
query I rowsort label-566
SELECT - tab1.col1 * col0 DIV + tab1.col2 AS col0 FROM tab1
----
-1
-10
-11

skipif mysql # not compatible
query I rowsort label-566
SELECT - tab1.col1 * col0 / + tab1.col2 AS col0 FROM tab1
----
-1
-10
-11

query I rowsort
SELECT - col1 * + col2 + col1 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT + col2 + col1 - - col2 FROM tab0
----
152
255
99

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

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

skipif mysql # not compatible
query I rowsort label-570
SELECT DISTINCT col1 - - col2 / - col0 AS col0 FROM tab2
----
17
28
59

query I rowsort
SELECT col0 + - col1 + col2 FROM tab1
----
111
163
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-572
SELECT DISTINCT col0 + col2 DIV tab2.col0 + col2 AS col0 FROM tab2
----
104
117
37

skipif mysql # not compatible
query I rowsort label-572
SELECT DISTINCT col0 + col2 / tab2.col0 + col2 AS col0 FROM tab2
----
104
117
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-573
SELECT ALL col2 DIV + col2 + + col0 * col0 DIV col2 + + col0 AS col2 FROM tab1
----
136
147
4

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL col2 / + col2 + + col0 * col0 / col2 + + col0 AS col2 FROM tab1
----
136
147
4

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

query I rowsort
SELECT - tab0.col2 * - col0 + - col0 + - col2 FROM tab0
----
-1
7127
735

query I rowsort
SELECT col1 + + tab1.col1 * col1 + col1 AS col0 FROM tab1
----
120
195
728

query I rowsort
SELECT col1 - col1 * + col0 * col0 FROM tab2 AS cor0
----
-106080
-1488
-358897

onlyif mysql # use DIV operator for integer division
query I rowsort label-578
SELECT + col2 + - col1 - + col1 DIV + cor0.col0 AS col0 FROM tab2 AS cor0
----
-33
-8
21

skipif mysql # not compatible
query I rowsort label-578
SELECT + col2 + - col1 - + col1 / + cor0.col0 AS col0 FROM tab2 AS cor0
----
-33
-8
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 + + col2 col2 FROM tab1
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-580
SELECT col1 DIV + col0 + - col0 * - col2 col0 FROM tab1
----
170
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-580
SELECT col1 / + col0 + - col0 * - col2 col0 FROM tab1
----
170
3648
7680

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

query I rowsort
SELECT ALL col2 * - col2 + col1 FROM tab1
----
-2890
-3239
-9203

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

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

query I rowsort
SELECT ALL ( + tab2.col2 + - col0 ) * col2 * col1 FROM tab2
----
-26486
-79768
16740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col1 * - col1 col2 FROM tab0
----
-636056
-753571
-912673

query I rowsort
SELECT + col2 - col1 * col1 FROM tab0
----
-7363
-8199
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-588
SELECT DISTINCT - cor0.col0 DIV - col2 + + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2064
-3360
-8098

skipif mysql # not compatible
query I rowsort label-588
SELECT DISTINCT - cor0.col0 / - col2 + + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2064
-3360
-8098

query I rowsort
SELECT cor0.col0 + - col2 * + 86 + - ( col2 ) FROM tab0 AS cor0
----
-2847
-52
-7045

query I rowsort
SELECT - 84 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 * col0 + cor0.col1 col0 FROM tab2 cor0
----
-18
-487
-536

query I rowsort
SELECT ALL + 47 + + col1 AS col1 FROM tab2 AS cor0
----
106
64
78

query I rowsort
SELECT DISTINCT - col2 * - col2 + - ( - col1 ) FROM tab2 AS cor0
----
1461
735
760

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

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

query I rowsort
SELECT ALL + col2 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
108
114
192

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

query I rowsort
SELECT - cor0.col0 + 15 AS col0 FROM tab0 AS cor0
----
-20
-74
-9

query I rowsort
SELECT col1 + + col1 + 14 * col0 AS col0 FROM tab1
----
1146
916
94

query I rowsort
SELECT 11 * + cor2.col0 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 415b1aa80d0e0bf8929951d66348d626

query I rowsort
SELECT + + 22 * cor0.col1 AS col2 FROM tab0 AS cor0
----
1892
2002
2134

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

query I rowsort
SELECT DISTINCT 91 * col2 FROM tab1
----
4914
5187
8736

query I rowsort
SELECT + 75 FROM tab0, tab0 cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

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

query I rowsort
SELECT ALL tab1.col1 * - 41 FROM tab1
----
-1066
-410
-533

query I rowsort
SELECT + 9 AS col2 FROM tab0 cor0
----
9
9
9

query I rowsort
SELECT + 43 * col1 AS col2 FROM tab0 AS cor0
----
3698
3913
4171

query I rowsort
SELECT - cor0.col2 * cor0.col1 + cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 70bce2b4e9f8e0bf9452e943dc91b756

query I rowsort
SELECT + col1 + col2 * - 3 AS col1 FROM tab1 AS cor0
----
-136
-161
-275

query I rowsort
SELECT - 33 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

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

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

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

query I rowsort
SELECT 80 * - col0 - col2 FROM tab0
----
-1953
-2801
-7202

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-615
SELECT col0 * CAST( + 36 AS SIGNED ) AS col2 FROM tab2
----
252
2808
2844

skipif mysql # not compatible
query I rowsort label-615
SELECT col0 * CAST ( + 36 AS INTEGER ) AS col2 FROM tab2
----
252
2808
2844

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-618
SELECT DISTINCT tab0.col1 DIV col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-618
SELECT DISTINCT tab0.col1 / col2 FROM tab0
----
1
2
97

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

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

query I rowsort
SELECT ALL 76 * + 26 FROM tab1 cor0
----
1976
1976
1976

onlyif mysql # use DIV operator for integer division
query I rowsort label-622
SELECT - - ( col0 ) + col0 DIV + cor0.col2 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-622
SELECT - - ( col0 ) + col0 / + cor0.col2 FROM tab1 AS cor0
----
3
65
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 16 + + col2 * + col1 col0 FROM tab1 cor0
----
1264
1420
586

query I rowsort
SELECT DISTINCT 12 + + ( + col0 ) * ( - 90 + col0 ) FROM tab1 AS cor0
----
-1652
-249
-788

query I rowsort
SELECT + ( col2 ) + col2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT + 25 + + 57 + col0 AS col0 FROM tab1 AS cor0
----
146
162
85

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

query I rowsort
SELECT - ( col2 ) * cor0.col0 * + col0 AS col1 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT + cor0.col1 * 68 FROM tab0 AS cor0
----
5848
6188
6596

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

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

query I rowsort
SELECT col2 * - col1 - 32 FROM tab2 AS cor0
----
-1566
-678
-869

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-633
SELECT DISTINCT col1 + + CAST( + 67 AS SIGNED ) - - col1 FROM tab2
----
101
129
185

skipif mysql # not compatible
query I rowsort label-633
SELECT DISTINCT col1 + + CAST ( + 67 AS INTEGER ) - - col1 FROM tab2
----
101
129
185

query I rowsort
SELECT - 51 + - 85 * col0 AS col0 FROM tab0 AS cor0
----
-2091
-3026
-7616

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-637
SELECT DISTINCT + 60 DIV 46 AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-637
SELECT DISTINCT + 60 / 46 AS col1 FROM tab2 AS cor0
----
1

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

query I rowsort
SELECT 18 * col1 + - col0 FROM tab1 AS cor0
----
116
154
465

query I rowsort
SELECT + col2 * 63 + col2 + col2 * - col2 FROM tab0 AS cor0
----
-1476
1023
63

query I rowsort
SELECT + + 76 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1976
760
988

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-646
SELECT + cor0.col2 DIV 75 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-646
SELECT + cor0.col2 / 75 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

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

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

query I rowsort
SELECT ALL col0 + + ( col0 ) * + col0 * + col2 AS col1 FROM tab1 cor0
----
233536
489
614480

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

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL col1 + CAST ( ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + col1 + - 66 FROM tab1 AS cor0
----
-40
-53
-56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-652
SELECT DISTINCT col0 * - CAST( + 52 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-156
-3328
-4160

skipif mysql # not compatible
query I rowsort label-652
SELECT DISTINCT col0 * - CAST ( + 52 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-156
-3328
-4160

query I rowsort
SELECT ALL - col0 * 42 + - 47 FROM tab1 cor0
----
-173
-2735
-3407

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

query I rowsort
SELECT DISTINCT col1 * 10 AS col2 FROM tab1 AS cor0
----
100
130
260

query I rowsort
SELECT DISTINCT cor0.col0 * + col0 - 88 * col1 AS col2 FROM tab0 cor0
----
-6992
-7311
-87

query I rowsort
SELECT DISTINCT - - col1 * col1 * col2 + + col1 * 72 AS col1 FROM tab1 AS cor0
----
17160
38376
6420

query I rowsort
SELECT ALL - - cor0.col0 + col0 - + 84 * + col1 AS col0 FROM tab1 AS cor0
----
-2178
-712
-932

query I rowsort
SELECT DISTINCT + + 6 + + cor0.col2 FROM tab2 AS cor0
----
32
33
44

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

query I rowsort
SELECT DISTINCT cor0.col0 * 7 + - col0 FROM tab2 AS cor0
----
42
468
474

query I rowsort
SELECT + col0 + + ( - 20 ) FROM tab1
----
-17
44
60

query I rowsort
SELECT DISTINCT cor0.col2 * col1 * col1 + + col0 AS col0 FROM tab0 AS cor0
----
244092
679131
9444

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

query I rowsort
SELECT DISTINCT col2 + col2 * 79 + ( col0 ) * - ( 59 + col2 ) FROM tab0 AS cor0
----
-2020
-5989
432

onlyif mysql # use DIV operator for integer division
query I rowsort label-666
SELECT + + 68 DIV col2 + col2 + + col1 AS col2 FROM tab1 AS cor0
----
109
68
81

skipif mysql # not compatible
query I rowsort label-666
SELECT + + 68 / col2 + col2 + + col1 AS col2 FROM tab1 AS cor0
----
109
68
81

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0 CROSS JOIN tab0, tab2 cor1
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3

query I rowsort
SELECT DISTINCT 56 + - col1 FROM tab2
----
-3
25
39

query I rowsort
SELECT 72 * col1 * col2 FROM tab0
----
204336
537264
6984

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-671
SELECT col0 DIV col1 - + 31 FROM tab1
----
-25
-25
-31

skipif mysql # not compatible
query I rowsort label-671
SELECT col0 / col1 - + 31 FROM tab1
----
-25
-25
-31

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

query I rowsort
SELECT + 61 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1464
2135
5429

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

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

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

query I rowsort
SELECT ALL col0 * - col0 * col2 + + col0 FROM tab2
----
-1316
-158106
-237079

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

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

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

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

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

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NULL = col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 + col0 col0 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL 24 * + col1 + col0 FROM tab2 cor0
----
1494
487
751

query I rowsort
SELECT ALL + ( - col2 ) + - col0 + col2 * - col0 AS col0 FROM tab0 cor0
----
-71
-7469
-849

query I rowsort
SELECT col2 * col2 + + ( - 98 ) FROM tab0 AS cor0
----
-97
6626
991

query I rowsort
SELECT ( - 53 ) * cor1.col2 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 73be17ec1249fa32922c12c8dfc30700

query I rowsort
SELECT DISTINCT - - col2 * col1 + - col2 + + 61 * col2 AS col1 FROM tab0 AS cor0
----
12382
157
4818

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

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 ) = col2 + + col1 - - col0
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE NULL > col1 * col0
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = cor0.col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 col2 FROM tab2 AS cor0
----
-289
-3481
-961

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col2 + col1 col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT - col0 IN ( - col0 * - col2 )
----
-1
-33
-82

query III rowsort
SELECT * FROM tab2 WHERE col1 >= NULL
----

query I rowsort
SELECT DISTINCT col2 * - col2 - col2 FROM tab0
----
-1122
-2
-6806

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN NULL AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + tab0.col0 col0 FROM tab0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-705
SELECT + col0 * col1 + - col1 * col1 DIV + col0 + col1 DIV col1 AS col1 FROM tab1
----
-146
1039
640

skipif mysql # not compatible
query I rowsort label-705
SELECT + col0 * col1 + - col1 * col1 / + col0 + col1 / col1 AS col1 FROM tab1
----
-146
1039
640

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

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

skipif mysql # not compatible
query I rowsort label-707
SELECT - col1 + col1 + col0 / - 10 AS col2 FROM tab1 AS cor0
----
-6
-8
0

query I rowsort
SELECT + ( 6 ) * + col1 FROM tab2 cor0
----
102
186
354

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - ( - ( + col2 ) ) + + col2 AS col2 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-713
SELECT - - col0 + + cor0.col1 DIV - col1 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-713
SELECT - - col0 + + cor0.col1 / - col1 FROM tab1 AS cor0
----
2
63
79

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

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

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

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

query I rowsort
SELECT + col2 + - col0 * 38 AS col1 FROM tab0 AS cor0
----
-1329
-3300
-879

onlyif mysql # use DIV operator for integer division
query I rowsort label-719
SELECT ALL 22 + col1 * tab0.col2 DIV + col2 AS col2 FROM tab0
----
108
113
119

skipif mysql # not compatible
query I rowsort label-719
SELECT ALL 22 + col1 * tab0.col2 / + col2 AS col2 FROM tab0
----
108
113
119

query I rowsort
SELECT + col2 * col0 + col2 * - col1 FROM tab1 AS cor0
----
-1242
3078
6432

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

query I rowsort
SELECT - + col0 + 41 FROM tab0 AS cor0
----
-48
17
6

query I rowsort
SELECT ALL - col1 * + col0 + + col0 FROM tab1
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-724
SELECT cor0.col0 DIV - CAST( - 7 AS SIGNED ) FROM tab0 AS cor0
----
12
3
5

skipif mysql # not compatible
query I rowsort label-724
SELECT cor0.col0 / - CAST ( - 7 AS INTEGER ) FROM tab0 AS cor0
----
12
3
5

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

skipif mysql # not compatible
query I rowsort label-725
SELECT cor0.col1 - col0 / col1 AS col2 FROM tab0 AS cor0
----
86
91
97

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-728
SELECT DISTINCT 43 DIV + col2 - + col1 AS col0 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-728
SELECT DISTINCT 43 / + col2 - + col1 AS col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT - ( + tab0.col0 ) FROM tab0, tab1, tab1 cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL + 84 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT + 10 + + col0 FROM tab2
----
17
88
89

query I rowsort
SELECT DISTINCT ( - col0 ) * + ( + ( col2 ) ) * col2 - 41 AS col1 FROM tab1
----
-207977
-737321
-8789

query I rowsort
SELECT ( + col2 ) + + col2 - + tab0.col0 AS col1 FROM tab0
----
-33
42
75

query I rowsort
SELECT DISTINCT + - cor0.col0 + + 84 FROM tab2 AS cor0
----
5
6
77

query I rowsort
SELECT DISTINCT 55 * + col2 - col1 AS col2 FROM tab2
----
1371
1454
2073

query I rowsort
SELECT ALL col2 * + col2 + + ( col2 ) * + col2 * - tab1.col2 - 89 * + col0 FROM tab1
----
-154815
-187640
-882640

query I rowsort
SELECT ALL 70 + - 98 FROM tab2, tab0 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT 89 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 5 col2 FROM tab1 AS cor0
----
15
320
400

query I rowsort
SELECT DISTINCT - ( + col0 ) * - col1 + ( col0 * col2 ) + 16 * - col1 AS col2 FROM tab1 cor0
----
-176
4128
8512

query I rowsort
SELECT DISTINCT + ( col1 ) + - col0 * 28 FROM tab0 AS cor0
----
-2401
-586
-883

query I rowsort
SELECT 17 + + col2 + col2 AS col2 FROM tab2 cor0
----
69
71
93

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

skipif mysql # not compatible
query I rowsort label-744
SELECT CAST ( 42 AS INTEGER ) FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT ALL - - 19 * ( col0 + + col0 ) AS col1 FROM tab1 AS cor0
----
114
2432
3040

query I rowsort
SELECT ( - cor0.col0 ) * - col0 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-747
SELECT ALL - CAST( - 36 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
1116
2124
612

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL - CAST ( - 36 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
1116
2124
612

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

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

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

query I rowsort
SELECT 62 * ( - col0 ) + + 59 AS col1 FROM tab0
----
-1429
-2111
-5459

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-751
SELECT DISTINCT + CAST( - 73 * + col1 AS SIGNED ) AS col0 FROM tab1
----
-1898
-730
-949

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT + CAST ( - 73 * + col1 AS INTEGER ) AS col0 FROM tab1
----
-1898
-730
-949

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

query I rowsort
SELECT DISTINCT - 52 * 58 + + col1 AS col0 FROM tab1 AS cor0
----
-2990
-3003
-3006

query I rowsort
SELECT DISTINCT - ( 53 ) + col1 AS col0 FROM tab2 AS cor0
----
-22
-36
6

query I rowsort
SELECT col1 * - 64 + tab1.col0 AS col1 FROM tab1
----
-1661
-576
-752

query I rowsort
SELECT ALL + 88 * - col1 + + col1 FROM tab0 cor0
----
-7482
-7917
-8439

query I rowsort
SELECT DISTINCT - - 33 * col2 FROM tab0 AS cor0
----
1089
2706
33

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-759
SELECT DISTINCT - col0 DIV col0 + 66 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT - col0 / col0 + 66 FROM tab1 AS cor0
----
65

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

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

query I rowsort
SELECT ALL 76 * - col1 FROM tab1 cor0
----
-1976
-760
-988

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

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

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

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

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

query I rowsort
SELECT ALL 63 * col1 FROM tab0 AS cor0
----
5418
5733
6111

query I rowsort
SELECT ALL - 3 AS col2 FROM tab0 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 cor2
----
81 values hashing to 0982dc7d0db8187bbb77550a76766104

query I rowsort
SELECT DISTINCT + col1 * + 77 AS col1 FROM tab1 AS cor0
----
1001
2002
770

query I rowsort
SELECT ALL col2 * + 78 * - col1 + + col1 AS col1 FROM tab2
----
-119593
-50371
-65255

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

query I rowsort
SELECT ALL + col1 * - 20 FROM tab0 cor0
----
-1720
-1820
-1940

query I rowsort
SELECT DISTINCT + + col1 * - col2 + + cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
-1139
-1324
-503

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

query I rowsort
SELECT DISTINCT - col2 * + col2 + - 65 + + col1 AS col1 FROM tab2 AS cor0
----
-1492
-682
-763

query I rowsort
SELECT DISTINCT + col2 * - col1 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

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

query I rowsort
SELECT cor0.col0 + 55 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1667
780
899

query I rowsort
SELECT - col2 * 80 + - col1 AS col1 FROM tab2 cor0
----
-2139
-2191
-3057

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

query I rowsort
SELECT ALL cor0.col0 + col2 + 51 FROM tab0 AS cor0
----
108
222
87

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

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

query I rowsort
SELECT DISTINCT - col1 + + 93 AS col1 FROM tab2 AS cor0
----
34
62
76

query I rowsort
SELECT ALL - 13 * col2 + col0 * col1 FROM tab1 AS cor0
----
-101
-208
-624

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 * col0 * + col2 - col0 col1 FROM tab0 AS cor0
----
1540
328321
35616

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + - 68 - - col0 * col0 col0 FROM tab2 AS cor0
----
-12
6094
6252

onlyif mysql # use DIV operator for integer division
query I rowsort label-789
SELECT col2 * + cor0.col1 + col1 DIV 31 AS col2 FROM tab0 AS cor0
----
100
2840
7464

skipif mysql # not compatible
query I rowsort label-789
SELECT col2 * + cor0.col1 + col1 / 31 AS col2 FROM tab0 AS cor0
----
100
2840
7464

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

query I rowsort
SELECT ALL - col2 * col2 + + col2 * + 48 FROM tab0 AS cor0
----
-2788
47
495

query I rowsort
SELECT DISTINCT cor0.col1 + cor1.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
9 values hashing to 74faab35697b5ea1753f372919d97975

query I rowsort
SELECT - ( col0 ) * - ( + 14 ) FROM tab2
----
1092
1106
98

query I rowsort
SELECT + 75 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

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

query I rowsort
SELECT 44 + col1 * ( 45 + - tab2.col2 ) * - col0 AS col0 FROM tab2
----
-3862
-87394
-9357

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

query I rowsort
SELECT - 27 FROM tab1, tab2 cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT cor0.col2 * + 66 FROM tab0, tab1 AS cor0
----
9 values hashing to 08947d915aab150cea9ea45d94d4263b

query I rowsort
SELECT + col2 + + 54 FROM tab1 AS cor0
----
108
111
150

query I rowsort
SELECT DISTINCT + 78 FROM tab1, tab2 AS cor0, tab1 cor1
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + - 84 * col1 col1 FROM tab1 AS cor0
----
-1079
-2158
-830

query I rowsort
SELECT DISTINCT + col1 + col1 * + tab2.col0 * + ( ( col1 ) ) AS col0 FROM tab2
----
22848
271577
6758

query I rowsort
SELECT tab1.col1 * + ( col1 ) AS col2 FROM tab1
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-805
SELECT + ( 87 + col0 ) DIV col2 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-805
SELECT + ( 87 + col0 ) / col2 FROM tab1
----
1
1
2

query I rowsort
SELECT + 29 + - col0 - - col0 AS col0 FROM tab0
----
29
29
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-807
SELECT - - col2 DIV 3 FROM tab1 AS cor0
----
18
19
32

skipif mysql # not compatible
query I rowsort label-807
SELECT - - col2 / 3 FROM tab1 AS cor0
----
18
19
32

query I rowsort
SELECT DISTINCT + col1 + 59 AS col2 FROM tab0 AS cor0
----
145
150
156

query I rowsort
SELECT ALL + 12 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

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

query I rowsort
SELECT - cor0.col2 + col1 + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-73
20
95

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

query I rowsort
SELECT + 40 * + col2 FROM tab0 AS cor0
----
1320
3280
40

query I rowsort
SELECT DISTINCT + 84 * cor0.col0 * 29 AS col1 FROM tab1 AS cor0
----
155904
194880
7308

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

query I rowsort
SELECT - tab1.col2 * 37 FROM tab1, tab1 AS cor0
----
9 values hashing to cdb0f9d0ea5da1d07affc20c839dce2a

onlyif mysql # use DIV operator for integer division
query I rowsort label-817
SELECT 86 DIV col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-817
SELECT 86 / col1 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT + cor1.col0 * + 52 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
364
4056
4108

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-821
SELECT + cor0.col2 DIV + 88 + 92 FROM tab2 cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-821
SELECT + cor0.col2 / + 88 + 92 FROM tab2 cor0
----
92
92
92

query I rowsort
SELECT - col2 + 14 FROM tab1 cor0
----
-40
-43
-82

query I rowsort
SELECT ALL - + 66 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT DISTINCT + - cor0.col2 * + 39 FROM tab1 AS cor0
----
-2106
-2223
-3744

query I rowsort
SELECT DISTINCT - + cor0.col0 * - 52 FROM tab1 AS cor0
----
156
3328
4160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-826
SELECT ALL + CAST( + 80 AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

skipif mysql # not compatible
query I rowsort label-826
SELECT ALL + CAST ( + 80 AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT ALL + col1 * + col0 + col1 * + col2 AS col1 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT + col0 * - ( col1 * col1 ) + col0 * 17 FROM tab1 cor0
----
-12160
-1977
-5312

query I rowsort
SELECT DISTINCT - col1 + 81 AS col0 FROM tab0 AS cor0
----
-10
-16
-5

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

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

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

query I rowsort
SELECT + 46 + - cor0.col1 FROM tab2 AS cor0
----
-13
15
29

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

query I rowsort
SELECT ALL - ( cor0.col1 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

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

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

query I rowsort
SELECT 28 * - col0 * - ( 78 ) - cor0.col1 AS col2 FROM tab1 AS cor0
----
139766
174707
6526

onlyif mysql # use DIV operator for integer division
query I rowsort label-837
SELECT DISTINCT + 29 + - col2 * - col2 DIV col2 AS col1 FROM tab0 AS cor0
----
111
30
62

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT + 29 + - col2 * - col2 / col2 AS col1 FROM tab0 AS cor0
----
111
30
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-838
SELECT ALL - ( + ( - col1 ) ) DIV + col1 + col1 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL - ( + ( - col1 ) ) / + col1 + col1 FROM tab0
----
87
92
98

query I rowsort
SELECT + - col0 * cor0.col0 - - 69 FROM tab0 AS cor0
----
-1156
-507
-7852

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

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

query I rowsort
SELECT + col1 * - col2 * - 14 AS col2 FROM tab2 AS cor0
----
11718
21476
9044

query I rowsort
SELECT DISTINCT col0 * 61 AS col1 FROM tab1
----
183
3904
4880

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

query I rowsort
SELECT - 13 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to c1f69f44d01359fc0e746ef339d6e2c0

query I rowsort
SELECT DISTINCT + + cor0.col0 + + 13 + col2 FROM tab0 AS cor0
----
184
49
70

query I rowsort
SELECT ALL + col0 + + 75 AS col0 FROM tab1 AS cor0
----
139
155
78

query I rowsort
SELECT ALL col2 - + 54 * - 84 * col2 FROM tab2 AS cor0
----
117962
122499
172406

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-850
SELECT - - CAST( + 34 AS SIGNED ) + + col2 FROM tab1 cor0
----
130
88
91

skipif mysql # not compatible
query I rowsort label-850
SELECT - - CAST ( + 34 AS INTEGER ) + + col2 FROM tab1 cor0
----
130
88
91

query I rowsort
SELECT ALL + col0 * + ( - col2 * col2 + col1 * 27 ) FROM tab0
----
-379763
29592
91630

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

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

query I rowsort
SELECT DISTINCT - 38 + - ( col1 ) AS col2 FROM tab0 cor0
----
-124
-129
-135

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

query I rowsort
SELECT col0 + 26 AS col1 FROM tab2
----
104
105
33

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

skipif mysql # not compatible
query I rowsort label-856
SELECT - 44 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0

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 ALL col1 * col2 + cor0.col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - - 40 + col2 AS col0 FROM tab2 cor0
----
66
67
78

query I rowsort
SELECT DISTINCT 84 * col1 AS col1 FROM tab2
----
1428
2604
4956

query I rowsort
SELECT col0 * 55 FROM tab1
----
165
3520
4400

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

query I rowsort
SELECT DISTINCT col2 * - 41 FROM tab0
----
-1353
-3362
-41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-864
SELECT ALL - - 24 * col0 * CAST( 56 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
104832
106176
9408

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL - - 24 * col0 * CAST ( 56 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
104832
106176
9408

query I rowsort
SELECT - col0 * - 90 FROM tab2
----
630
7020
7110

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

query I rowsort
SELECT col2 + - cor0.col1 * 69 AS col1 FROM tab2 cor0
----
-1135
-2112
-4045

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-870
SELECT ALL 29 * col0 DIV + 17 + - col0 AS col2 FROM tab1
----
2
45
56

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL 29 * col0 / + 17 + - col0 AS col2 FROM tab1
----
2
45
56

query I rowsort
SELECT - col1 * - tab2.col2 + ( - col1 ) FROM tab2
----
1475
629
806

query I rowsort
SELECT DISTINCT + col1 + - 18 FROM tab1 AS cor0
----
-5
-8
8

query I rowsort
SELECT + col2 * 86 + + 52 AS col2 FROM tab0 AS cor0
----
138
2890
7104

query I rowsort
SELECT DISTINCT - + col1 + 81 * + col1 FROM tab0 AS cor0
----
6880
7280
7760

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

query I rowsort
SELECT ALL - col0 + - col1 * col1 AS col0 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT DISTINCT - + col2 + + 38 * - col2 AS col2 FROM tab2 AS cor0
----
-1014
-1053
-1482

onlyif mysql # use DIV operator for integer division
query I rowsort label-878
SELECT ALL tab1.col2 DIV col1 + 70 FROM tab1
----
72
75
77

skipif mysql # not compatible
query I rowsort label-878
SELECT ALL tab1.col2 / col1 + 70 FROM tab1
----
72
75
77

query I rowsort
SELECT + 95 + - tab0.col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to a367a860b16f0573654f1fae194876b1

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

query I rowsort
SELECT - 15 + - 65 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * 29 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 288fc7d28c48b2575dc0f7c6af6028b3

query I rowsort
SELECT + ( cor0.col0 ) * tab1.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to eb103eabe531563e672e54874d056f9f

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

query I rowsort
SELECT ALL - + col1 + + 1 * cor0.col2 FROM tab1 cor0
----
28
47
83

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

skipif mysql # not compatible
query I rowsort label-886
SELECT col0 + + CAST ( col1 AS INTEGER ) * - col2 FROM tab2 cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT cor0.col2 + 84 AS col1 FROM tab1 AS cor0
----
138
141
180

query I rowsort
SELECT ALL col2 * - 60 AS col0 FROM tab2 AS cor0
----
-1560
-1620
-2280

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

query I rowsort
SELECT DISTINCT - + col1 + - col2 * 48 FROM tab1 AS cor0
----
-2618
-2746
-4621

query I rowsort
SELECT ALL + col2 * - 66 + col1 AS col0 FROM tab2 AS cor0
----
-1657
-1751
-2491

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

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

query I rowsort
SELECT ALL col2 * 98 FROM tab1 AS cor0
----
5292
5586
9408

query I rowsort
SELECT ALL ( - col0 ) * col2 * + col0 + col0 FROM tab2 AS cor0
----
-1316
-158106
-237079

query I rowsort
SELECT + + 90 AS col0 FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT ALL + ( 45 ) + col0 FROM tab0 AS cor0
----
134
69
80

query I rowsort
SELECT ALL + col2 * col0 + + col1 FROM tab0 cor0
----
132
7389
878

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

query I rowsort
SELECT ALL - col0 * + cor0.col2 * col0 + col0 * + 96 AS col1 FROM tab2 cor0
----
-150696
-229574
-651

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

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

query I rowsort
SELECT - 40 - col0 AS col2 FROM tab0 AS cor0
----
-129
-64
-75

query I rowsort
SELECT DISTINCT + 60 * + col0 + - col1 * - col0 AS col0 FROM tab1 AS cor0
----
258
4480
5840

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

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

query I rowsort
SELECT ALL - col2 - 6 AS col2 FROM tab0
----
-39
-7
-88

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-907
SELECT - + 20 * col1 DIV + col0 + + 4 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
-173
-3
-3

skipif mysql # not compatible
query I rowsort label-907
SELECT - + 20 * col1 / + col0 + + 4 / cor0.col1 AS col0 FROM tab1 AS cor0
----
-173
-3
-3

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

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

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

query I rowsort
SELECT + + cor0.col0 * 19 AS col1 FROM tab2 AS cor0
----
133
1482
1501

onlyif mysql # use DIV operator for integer division
query I rowsort label-911
SELECT col2 * ( cor0.col2 ) DIV ( - 95 ) FROM tab1 AS cor0
----
-30
-34
-97

skipif mysql # not compatible
query I rowsort label-911
SELECT col2 * ( cor0.col2 ) / ( - 95 ) FROM tab1 AS cor0
----
-30
-34
-97

query I rowsort
SELECT + ( - 58 ) + - col0 * 29 + col2 FROM tab2 cor0
----
-2294
-2311
-234

query I rowsort
SELECT DISTINCT + - cor0.col0 * 78 + col0 FROM tab2 AS cor0
----
-539
-6006
-6083

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

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

query I rowsort
SELECT + - 59 + + col1 * col2 AS col1 FROM tab0 AS cor0
----
2779
38
7403

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

query I rowsort
SELECT DISTINCT - col0 + - 40 FROM tab1
----
-104
-120
-43

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

query I rowsort
SELECT - col0 + 93 * + col2 FROM tab2 AS cor0
----
2340
2504
3455

query I rowsort
SELECT ALL - 86 AS col1 FROM tab1, tab0 cor0 CROSS JOIN tab2 AS cor1
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af

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

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

query I rowsort
SELECT DISTINCT 68 * - tab2.col0 FROM tab2
----
-476
-5304
-5372

query I rowsort
SELECT DISTINCT + ( 67 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
67

query I rowsort
SELECT ALL + tab2.col0 + + col1 + - col2 AS col0 FROM tab2
----
11
111
58

query I rowsort
SELECT ALL - 99 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 761f5f1a166a00db99360141565a85da

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-929
SELECT DISTINCT col1 + 22 DIV col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-929
SELECT DISTINCT col1 + 22 / col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL cor0.col2 * + 44 AS col0 FROM tab2 AS cor0
----
1144
1188
1672

query I rowsort
SELECT + - col0 - 5 AS col2 FROM tab1 AS cor0
----
-69
-8
-85

query I rowsort
SELECT - 25 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a

onlyif mysql # use DIV operator for integer division
query I rowsort label-933
SELECT ALL - col2 + cor0.col1 * col1 - + col2 DIV - 4 FROM tab2 AS cor0
----
260
3461
940

skipif mysql # not compatible
query I rowsort label-933
SELECT ALL - col2 + cor0.col1 * col1 - + col2 / - 4 FROM tab2 AS cor0
----
260
3461
940

query I rowsort
SELECT - 26 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT col2 + + cor0.col1 - col0 * - cor0.col2 FROM tab2 AS cor0
----
2113
247
3057

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

skipif mysql # not compatible
query I rowsort
SELECT + col0 * + CAST ( col1 + - col0 * + 62 AS REAL ) FROM tab1
----
-253312
-395760
-480

onlyif mysql # use DIV operator for integer division
query I rowsort label-938
SELECT - col1 DIV - 50 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-938
SELECT - col1 / - 50 AS col2 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL 74 - - tab0.col1 * - col2 FROM tab0
----
-23
-2764
-7388

query I rowsort
SELECT ( + col2 ) + tab1.col1 + col2 FROM tab1
----
124
134
205

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

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

query I rowsort
SELECT tab2.col2 - - 34 FROM tab2
----
60
61
72

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

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

query I rowsort
SELECT - + col1 + + 60 AS col1 FROM tab2 AS cor0
----
1
29
43

query I rowsort
SELECT + 4 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 3347a3237b37ed63205e9440d8818a46

onlyif mysql # use DIV operator for integer division
query I rowsort label-947
SELECT - 39 DIV - 17 AS col0 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-947
SELECT - 39 / - 17 AS col0 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT + + 98 * col2 AS col0 FROM tab0 AS cor0
----
3234
8036
98

query I rowsort
SELECT DISTINCT - 48 + + col2 FROM tab2 AS cor0
----
-10
-21
-22

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

query I rowsort
SELECT ALL - 66 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112

query I rowsort
SELECT + 63 * + col2 + col0 AS col2 FROM tab0 AS cor0
----
2103
5255
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-953
SELECT ALL + - col1 * + col0 + 46 DIV + ( col0 ) AS col2 FROM tab2 AS cor0
----
-1343
-211
-4602

skipif mysql # not compatible
query I rowsort label-953
SELECT ALL + - col1 * + col0 + 46 / + ( col0 ) AS col2 FROM tab2 AS cor0
----
-1343
-211
-4602

query I rowsort
SELECT + col0 + - 62 FROM tab1 cor0
----
-59
18
2

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

skipif mysql # not compatible
query I rowsort label-955
SELECT - + col0 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-957
SELECT tab1.col0 DIV tab1.col0 + col0 AS col2 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-957
SELECT tab1.col0 / tab1.col0 + col0 AS col2 FROM tab1
----
4
65
81

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

query I rowsort
SELECT DISTINCT 80 + col0 AS col2 FROM tab2
----
158
159
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + col2 col0 FROM tab2
----
6110
6279
76

query I rowsort
SELECT - col0 * 57 AS col1 FROM tab1 AS cor0
----
-171
-3648
-4560

query I rowsort
SELECT + col2 + 51 FROM tab2
----
77
78
89

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

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL + col2 + col0 / col0 AS col0 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT - + col0 * col2 + ( col1 ) + col2 AS col0 FROM tab1 AS cor0
----
-3581
-7571
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-965
SELECT ALL - - col2 * CAST( col2 AS SIGNED ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
207936
737280
8748

skipif mysql # not compatible
query I rowsort label-965
SELECT ALL - - col2 * CAST ( col2 AS INTEGER ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL + col1 * + 92 * - col1 + + col2 + + col0 FROM tab2 AS cor0
----
-26471
-320148
-88378

query I rowsort
SELECT + 99 * - cor0.col0 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 31adfa9f44a58b0c6a01a62cc0a3bce7

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-970
SELECT ALL CAST( + 97 AS SIGNED ) - col0 AS col2 FROM tab1
----
17
33
94

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL CAST ( + 97 AS INTEGER ) - col0 AS col2 FROM tab1
----
17
33
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-971
SELECT DISTINCT - 88 - + tab2.col0 * col1 DIV tab2.col0 FROM tab2
----
-105
-119
-147

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT - 88 - + tab2.col0 * col1 / tab2.col0 FROM tab2
----
-105
-119
-147

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

skipif mysql # not compatible
query I rowsort label-972
SELECT - CAST ( NULL AS INTEGER ) + col2 / + col1 - 44 / ( - col2 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 85 * cor0.col1 col0 FROM tab1 AS cor0
----
1105
2210
850

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

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

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

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 - col0 * col0 + col2 col0 FROM tab1 cor0
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT + - 93 + - col2 * 77 AS col0 FROM tab1 AS cor0
----
-4251
-4482
-7485

query I rowsort
SELECT + - 85 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-3
-52
-84

query I rowsort
SELECT DISTINCT - 96 + + cor0.col2 * 70 + cor0.col0 FROM tab2 cor0
----
1801
1802
2643

query I rowsort
SELECT ALL - - col2 * + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-984
SELECT DISTINCT - col0 + col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
-5
-69
-87

skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT - col0 + col2 / - col1 AS col1 FROM tab1 AS cor0
----
-5
-69
-87

query I rowsort
SELECT - 26 * - col1 * col0 FROM tab1
----
16640
2028
27040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 14 + + col2 col2 FROM tab0
----
185
50
71

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

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

query I rowsort
SELECT + 89 * - col1 + + ( + 82 ) * - col2 FROM tab1 cor0
----
-5564
-6742
-9029

query I rowsort
SELECT tab0.col2 * + 77 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d4e52df6a5ae2d813759c6c942d529c3

query I rowsort
SELECT + 65 * col0 - - cor0.col1 FROM tab1 AS cor0
----
221
4170
5213

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

query I rowsort
SELECT DISTINCT 62 - - col0 AS col1 FROM tab1 AS cor0
----
126
142
65

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-995
SELECT ALL 92 - + cor0.col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
90
92
92

skipif mysql # not compatible
query I rowsort label-995
SELECT ALL 92 - + cor0.col2 / + col1 AS col0 FROM tab2 AS cor0
----
90
92
92

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

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

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

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

query I rowsort
SELECT + col1 * col2 + - 98 + + col0 FROM tab0 AS cor0
----
2764
34
7453

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

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

query I rowsort
SELECT DISTINCT + 23 + tab0.col1 FROM tab0
----
109
114
120

query I rowsort
SELECT - + 4 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6

query I rowsort
SELECT - col2 * 22 AS col0 FROM tab0 AS cor0
----
-1804
-22
-726

onlyif mysql # use DIV operator for integer division
query I rowsort label-1005
SELECT ALL + + 8 DIV 90 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-1005
SELECT ALL + + 8 / 90 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( 10 ) AS col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT + 55 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1320
1925
4895

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

query I rowsort
SELECT DISTINCT 89 * + col2 FROM tab2 AS cor0
----
2314
2403
3382

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

skipif mysql # not compatible
query I rowsort label-1010
SELECT DISTINCT - - col2 / - col0 AS col0 FROM tab2 AS cor0
----
-3
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1012
SELECT col1 * col2 + + 2 DIV col0 AS col0 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-1012
SELECT col1 * col2 + + 2 / col0 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL 94 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT DISTINCT + 47 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
47

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

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

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

query I rowsort
SELECT ALL ( 93 ) + col0 * + ( col1 + col2 ) AS col2 FROM tab0 cor0
----
15490
2949
3523

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

skipif mysql # not compatible
query I rowsort label-1018
SELECT ALL + cor0.col2 * 68 / col2 AS col1 FROM tab0 cor0
----
68
68
68

query I rowsort
SELECT DISTINCT col2 + 91 FROM tab0 AS cor0
----
124
173
92

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 36 col1 FROM tab0 AS cor0
----
-1188
-2952
-36

query I rowsort
SELECT + 47 * + ( + col0 ) AS col2 FROM tab1 cor0
----
141
3008
3760

query I rowsort
SELECT DISTINCT + cor0.col2 * 5 + col1 * + col1 FROM tab2 AS cor0
----
1096
3611
479

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

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

query I rowsort
SELECT ALL + col1 + + col2 + + col1 * - col1 AS col2 FROM tab1
----
-33
-596
-60

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

query I rowsort
SELECT - col2 * - col2 + - col2 * + col1 - - col1 AS col2 FROM tab1
----
1538
2689
7981

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1031
SELECT DISTINCT - col1 + - col2 DIV + col1 + tab1.col2 col2 FROM tab1
----
26
42
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1031
SELECT DISTINCT - col1 + - col2 / + col1 + tab1.col2 col2 FROM tab1
----
26
42
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1032
SELECT col2 + + col1 DIV + tab2.col0 FROM tab2
----
26
31
38

skipif mysql # not compatible
query I rowsort label-1032
SELECT col2 + + col1 / + tab2.col0 FROM tab2
----
26
31
38

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1034
SELECT DISTINCT tab2.col2 * col2 DIV tab2.col1 FROM tab2
----
11
23
84

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT tab2.col2 * col2 / tab2.col1 FROM tab2
----
11
23
84

query I rowsort
SELECT col0 - + col1 * + tab2.col1 FROM tab2
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT col2 * col1 + - tab2.col2 + tab2.col0 * - col1 FROM tab2
----
-3094
-735
593

query I rowsort
SELECT ALL tab2.col0 * col2 * - col1 FROM tab2
----
-119652
-51034
-5859

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

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

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

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

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

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

query I rowsort
SELECT tab1.col0 + - col2 + col0 * + col0 AS col0 FROM tab1
----
-42
4103
6384

query I rowsort
SELECT ALL - col2 * col1 + tab0.col0 + - col2 * col2 AS col1 FROM tab0
----
-14097
-3903
-63

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

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

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

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

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

query I rowsort
SELECT ALL cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT - + col0 + col1 * col1 FROM tab2 AS cor0
----
210
3403
954

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1052
SELECT - - col1 / col2 + col0 col1 FROM tab1 AS cor0
----
3
64
80

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

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NULL <> NULL
----

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

query I rowsort
SELECT ALL + col2 * + col0 FROM tab0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT col1 * + ( + col2 * - col2 ) AS col1 FROM tab0 AS cor0
----
-611884
-93654
-97

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

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

skipif mysql # not compatible
query I rowsort label-1059
SELECT + - cor0.col2 + + cor0.col0 * CAST ( NULL AS REAL ) FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

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

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

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

query I rowsort
SELECT - 97 * col0 FROM tab0 AS cor0
----
-2328
-3395
-8633

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 37 col2 FROM tab0 AS cor0
----
1295
3293
888

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

query I rowsort
SELECT - col0 * + col2 + 64 FROM tab0 AS cor0
----
-7234
-728
29

query I rowsort
SELECT - col0 * - col0 + col2 + col1 AS col0 FROM tab0 AS cor0
----
1323
695
8094

query I rowsort
SELECT col2 * tab0.col0 + + col1 AS col0 FROM tab0
----
132
7389
878

query I rowsort
SELECT + col2 FROM tab0 WHERE ( + col2 ) IN ( - col2 )
----

query I rowsort
SELECT - col2 + col0 AS col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT - col1 * col2 - + col2 * + col1 AS col2 FROM tab1
----
-1140
-2496
-2808

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

query I rowsort
SELECT ALL + col0 * + col0 + col2 FROM tab1
----
4153
63
6496

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

query I rowsort
SELECT ( 92 ) AS col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

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

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

query I rowsort
SELECT ALL + ( 47 ) + + col0 AS col1 FROM tab2 AS cor0
----
125
126
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * 39 + - cor0.col0 col0 FROM tab2 AS cor0
----
-1216
-2379
-742

query I rowsort
SELECT DISTINCT + col2 + - col2 * + tab2.col0 * col1 - + col0 FROM tab2
----
-119704
-51075
-5839

query I rowsort
SELECT col0 * ( 52 + + col1 ) AS col1 FROM tab2
----
5451
581
8658

onlyif mysql # use DIV operator for integer division
query I rowsort label-1083
SELECT DISTINCT - CAST( - col0 AS SIGNED ) + + col0 DIV ( - col2 ) AS col2 FROM tab0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) + + col0 / ( - col2 ) AS col2 FROM tab0
----
0
24
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1084
SELECT DISTINCT - - CAST( 49 AS SIGNED ) AS col0 FROM tab0, tab2, tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-1084
SELECT DISTINCT - - CAST ( 49 AS INTEGER ) AS col0 FROM tab0, tab2, tab1 AS cor0
----
49

query I rowsort
SELECT - col2 - - 33 * col2 FROM tab2
----
1216
832
864

query I rowsort
SELECT ALL 47 + + col2 AS col1 FROM tab1 cor0
----
101
104
143

query I rowsort
SELECT + - 5 * 45 AS col2 FROM tab2 cor0
----
-225
-225
-225

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

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

query I rowsort
SELECT 48 - + col2 AS col0 FROM tab0
----
-34
15
47

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1091
SELECT DISTINCT - tab2.col2 / + col0 col0 FROM tab2
----
-3
0

query I rowsort
SELECT + col1 + + tab0.col1 * + col1 * ( + col2 ) FROM tab0
----
244154
679133
9506

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

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

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

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

query I rowsort
SELECT ALL col1 * 48 * + col2 AS col2 FROM tab1 AS cor0
----
27360
59904
67392

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT - col0 / + col0 + + col0 AS col0 FROM tab2 AS cor0
----
6
77
78

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

query I rowsort
SELECT ALL - + cor0.col0 + col0 * - 6 + col2 FROM tab0 AS cor0
----
-135
-244
-541

query I rowsort
SELECT DISTINCT + + cor0.col1 + - 56 * + 33 FROM tab2 AS cor0
----
-1789
-1817
-1831

onlyif mysql # use DIV operator for integer division
query I rowsort label-1103
SELECT ALL cor0.col0 DIV 84 + cor0.col0 FROM tab0 AS cor0
----
24
35
90

skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL cor0.col0 / 84 + cor0.col0 FROM tab0 AS cor0
----
24
35
90

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

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL - col0 * - 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-1105
SELECT ALL + cor0.col1 DIV - col2 + 99 FROM tab1 AS cor0
----
99
99
99

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1106
SELECT ALL 89 DIV 83 + col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-1106
SELECT ALL 89 / 83 + col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT - - 8 * col1 + + cor0.col2 * col1 FROM tab2 AS cor0
----
1085
2006
782

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

query I rowsort
SELECT - + ( + 79 ) * col0 - - 28 FROM tab1 AS cor0
----
-209
-5028
-6292

query I rowsort
SELECT - + 86 - col1 FROM tab0 AS cor0
----
-172
-177
-183

query I rowsort
SELECT ALL + col2 * col0 * col1 + col1 + cor0.col0 FROM tab2 AS cor0
----
119789
51130
5897

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

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

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

query I rowsort
SELECT ALL + 67 AS col1 FROM tab0 cor0
----
67
67
67

query I rowsort
SELECT DISTINCT + 40 + + col0 AS col2 FROM tab0 AS cor0
----
129
64
75

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1117
SELECT + col2 DIV ( + 69 ) + col1 * ( + col0 ) FROM tab1
----
1041
640
78

skipif mysql # not compatible
query I rowsort label-1117
SELECT + col2 / ( + 69 ) + col1 * ( + col0 ) FROM tab1
----
1041
640
78

query I rowsort
SELECT col0 + + tab0.col0 * - 92 AS col1 FROM tab0
----
-2184
-3185
-8099

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

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

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

query I rowsort
SELECT - 77 + cor0.col0 FROM tab2 cor0
----
-70
1
2

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1124
SELECT DISTINCT 80 - + col0 DIV + ( 38 ) FROM tab0 AS cor0
----
78
80

skipif mysql # not compatible
query I rowsort label-1124
SELECT DISTINCT 80 - + col0 / + ( 38 ) FROM tab0 AS cor0
----
78
80

query I rowsort
SELECT col1 + + cor0.col1 * + col0 * cor0.col1 FROM tab2 AS cor0
----
22848
271577
6758

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

query I rowsort
SELECT - + 46 * col1 FROM tab0 AS cor0
----
-3956
-4186
-4462

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

query I rowsort
SELECT DISTINCT col0 + 22 FROM tab2
----
100
101
29

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

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

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

query I rowsort
SELECT + 53 + cor0.col2 * + col1 FROM tab0 AS cor0
----
150
2891
7515

query I rowsort
SELECT col1 + col0 * + ( + 63 ) AS col2 FROM tab2 AS cor0
----
472
4973
4994

query I rowsort
SELECT ALL + + 21 * cor0.col1 + + ( col2 ) FROM tab0 AS cor0
----
1839
1993
2038

query I rowsort
SELECT ALL + + col1 * col1 - - col2 * 24 * - col1 FROM tab0 cor0
----
-170807
-60716
7081

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

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

query I rowsort
SELECT col1 + tab0.col1 * col0 * - 15 FROM tab0
----
-121394
-30874
-50828

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1138
SELECT DISTINCT - - col0 * CAST( col1 AS SIGNED ) + - col1 + + 17 AS col2 FROM tab2 AS cor0
----
1343
203
4560

skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT - - col0 * CAST ( col1 AS INTEGER ) + - col1 + + 17 AS col2 FROM tab2 AS cor0
----
1343
203
4560

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

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

query I rowsort
SELECT ALL + + col1 + cor0.col0 * + cor0.col2 + + col0 FROM tab1 AS cor0
----
191
3722
7773

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col2 FROM tab0, tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - 91 + tab2.col0 FROM tab2, tab1, tab0 AS cor0
----
-12
-13
-84

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

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

query I rowsort
SELECT DISTINCT + 93 * - col1 * - col0 FROM tab2 AS cor0
----
124899
20181
427986

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

query I rowsort
SELECT ALL 34 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT ( + tab0.col0 ) * + cor0.col0 * 3 FROM tab0, tab0 AS cor0
----
9 values hashing to e339428341a9e253dc3d99e5da383ac2

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1152
SELECT ALL + cor0.col0 DIV CAST( + 33 AS SIGNED ) + + col2 AS col2 FROM tab1 AS cor0
----
54
58
98

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL + cor0.col0 / CAST ( + 33 AS INTEGER ) + + col2 AS col2 FROM tab1 AS cor0
----
54
58
98

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

query I rowsort
SELECT ALL cor0.col2 * - col0 + + col0 * - col1 - 70 FROM tab1 AS cor0
----
-310
-4358
-8790

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

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

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

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

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

query I rowsort
SELECT - - ( 24 ) AS col2 FROM tab1 AS cor0
----
24
24
24

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

query I rowsort
SELECT DISTINCT + + 84 * - 31 FROM tab0 AS cor0
----
-2604

onlyif mysql # use DIV operator for integer division
query I rowsort label-1162
SELECT - cor0.col2 + + 28 DIV + col0 FROM tab1 AS cor0
----
-45
-57
-96

skipif mysql # not compatible
query I rowsort label-1162
SELECT - cor0.col2 + + 28 / + col0 FROM tab1 AS cor0
----
-45
-57
-96

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

query I rowsort
SELECT + + ( + ( + col0 ) ) * col2 + + col0 + + col1 * 60 FROM tab0 AS cor0
----
12847
5890
5976

query I rowsort
SELECT + ( - cor0.col1 ) * + col1 + 34 FROM tab2 AS cor0
----
-255
-3447
-927

query I rowsort
SELECT 55 + col2 AS col0 FROM tab0 AS cor0
----
137
56
88

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

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

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

query I rowsort
SELECT ALL - 13 * ( + col1 ) + + col1 * col0 AS col0 FROM tab0 AS cor0
----
2134
6916
946

onlyif mysql # use DIV operator for integer division
query I rowsort label-1170
SELECT + - 97 DIV 24 + - col2 FROM tab0 AS cor0
----
-37
-5
-86

skipif mysql # not compatible
query I rowsort label-1170
SELECT + - 97 / 24 + - col2 FROM tab0 AS cor0
----
-37
-5
-86

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1172
SELECT ALL col0 + col2 DIV 13 FROM tab0 AS cor0
----
26
35
95

skipif mysql # not compatible
query I rowsort label-1172
SELECT ALL col0 + col2 / 13 FROM tab0 AS cor0
----
26
35
95

query I rowsort
SELECT DISTINCT 61 * col1 * 65 - col0 * col1 AS col0 FROM tab2 cor0
----
122698
229333
66062

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 * + 10 * cor0.col2 col1 FROM tab1 AS cor0
----
-12400
-14037
-5636

query I rowsort
SELECT + ( - cor0.col2 * cor0.col2 ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8c9123b78bd6939e7be59da36c5c5c77

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

query I rowsort
SELECT - 24 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT ALL + cor0.col1 - 51 * col2 FROM tab2 AS cor0
----
-1267
-1346
-1921

query I rowsort
SELECT DISTINCT + col2 - ( 60 ) * + col1 * col0 AS col1 FROM tab1
----
-38343
-4626
-62304

query I rowsort
SELECT col0 * 36 - - col2 * - col2 AS col0 FROM tab1 cor0
----
-2808
-6336
-945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 92 col0 FROM tab0
----
2208
3220
8188

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

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

query I rowsort
SELECT ALL + + cor0.col2 * col1 * 13 - + cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
10832
13858
2157

query I rowsort
SELECT DISTINCT 34 + col1 AS col1 FROM tab0 AS cor0
----
120
125
131

query I rowsort
SELECT DISTINCT + ( + col2 ) + + 67 * + col2 AS col2 FROM tab1 AS cor0
----
3672
3876
6528

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1187
SELECT ALL + 87 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL + 87 / cor0.col1 AS col2 FROM tab2 AS cor0
----
1
2
5

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * + cor0.col2 + ( - cor0.col0 * col2 + + 58 ) col1 FROM tab1 AS cor0
----
-15302
-266
-7238

onlyif mysql # use DIV operator for integer division
query I rowsort label-1191
SELECT ALL - + 92 + col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL - + 92 + col1 / col1 AS col1 FROM tab1 AS cor0
----
-91
-91
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-1192
SELECT ALL - col0 DIV col1 - col1 col1 FROM tab2 AS cor0
----
-21
-31
-60

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

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

query I rowsort
SELECT + 80 * - cor0.col1 FROM tab0 AS cor0
----
-6880
-7280
-7760

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

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

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

skipif mysql # not compatible
query I rowsort label-1196
SELECT col1 + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + col1 + col0 + col2 AS col1 FROM tab0
----
133
143
262

query I rowsort
SELECT ALL + col1 - - col2 * - 64 AS col2 FROM tab2
----
-1605
-1697
-2415

query I rowsort
SELECT ( - cor1.col0 ) * + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f921d4cdc13dc0e8c0388ccf3f81ffc1

query I rowsort
SELECT DISTINCT - 17 * col2 * + col1 AS col2 FROM tab0 AS cor0
----
-126854
-1649
-48246

query I rowsort
SELECT ALL ( 17 ) + cor0.col2 * 57 FROM tab0 AS cor0
----
1898
4691
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-1202
SELECT ALL + + col2 DIV - cor0.col1 + + col1 AS col0 FROM tab1 AS cor0
----
24
5
6

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL + + col2 / - cor0.col1 + + col1 AS col0 FROM tab1 AS cor0
----
24
5
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 * 0 col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 60 * 62 FROM tab1 cor0
----
-3720

query I rowsort
SELECT DISTINCT col2 + - 72 FROM tab1
----
-15
-18
24

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

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

query I rowsort
SELECT + 92 + 82 * - col1 FROM tab1
----
-2040
-728
-974

query I rowsort
SELECT DISTINCT ( 34 + + col0 ) FROM tab1
----
114
37
98

query I rowsort
SELECT - ( - 48 ) FROM tab0
----
48
48
48

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1212
SELECT CAST( 21 AS SIGNED ) DIV - col1 + - col2 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-1212
SELECT CAST ( 21 AS INTEGER ) / - col1 + - col2 FROM tab0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * + 96 - + 94 col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 2cb00e40ef6a3302bf83502f602e5b34

query I rowsort
SELECT ALL - col1 + - 78 AS col1 FROM tab0 AS cor0
----
-164
-169
-175

query I rowsort
SELECT ( 44 + - col1 * 84 ) FROM tab2
----
-1384
-2560
-4912

query I rowsort
SELECT + ( + 29 ) FROM tab1
----
29
29
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-1217
SELECT DISTINCT + 98 * 94 DIV + col0 AS col2 FROM tab2
----
116
118
1316

skipif mysql # not compatible
query I rowsort label-1217
SELECT DISTINCT + 98 * 94 / + col0 AS col2 FROM tab2
----
116
118
1316

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 8 AS REAL ) + + col2 FROM tab0
----
-7
25
74

query I rowsort
SELECT DISTINCT cor1.col0 * ( - 11 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-77
-858
-869

onlyif mysql # use DIV operator for integer division
query I rowsort label-1220
SELECT - ( + 42 ) DIV - tab0.col2 + - ( col2 ) col1 FROM tab0
----
-32
-82
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1220
SELECT - ( + 42 ) / - tab0.col2 + - ( col2 ) col1 FROM tab0
----
-32
-82
41

query I rowsort
SELECT - 73 * - cor0.col1 FROM tab1 AS cor0
----
1898
730
949

query I rowsort
SELECT ALL 39 * tab0.col0 * - ( - ( tab0.col1 ) ) FROM tab0
----
132405
315861
80496

query I rowsort
SELECT ALL 12 + - col1 * col1 FROM tab2 AS cor0
----
-277
-3469
-949

query I rowsort
SELECT ALL - + 65 * col2 AS col1 FROM tab2 AS cor0
----
-1690
-1755
-2470

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1226
SELECT ALL col2 * + col2 + + col0 DIV + col0 FROM tab0
----
1090
2
6725

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL col2 * + col2 + + col0 / + col0 FROM tab0
----
1090
2
6725

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1228
SELECT ALL col0 DIV + 16 + 91 AS col2 FROM tab0
----
92
93
96

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL col0 / + 16 + 91 AS col2 FROM tab0
----
92
93
96

query I rowsort
SELECT DISTINCT - col1 + 30 FROM tab2
----
-1
-29
13

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1232
SELECT ALL col2 DIV - 79 + col1 AS col2 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-1232
SELECT ALL col2 / - 79 + col1 AS col2 FROM tab2
----
17
31
59

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

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

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

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

query I rowsort
SELECT col1 * + col1 * ( + col2 ) + col1 FROM tab1
----
16237
36530
5710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + 18 col1 FROM tab2 AS cor0
----
-44
-45
-56

query I rowsort
SELECT DISTINCT col2 + 57 * col0 AS col2 FROM tab2 AS cor0
----
426
4472
4541

query I rowsort
SELECT ( + col1 ) * col0 + - col2 + col1 * - col1 FROM tab1 AS cor0
----
-652
483
775

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

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

skipif mysql # not compatible
query I rowsort label-1241
SELECT DISTINCT - CAST ( NULL AS REAL ) * - ( col2 ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT ALL 9 + + col2 * cor0.col2 * + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-22590
-24539
-39875

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 * 94 col1 FROM tab0 AS cor0
----
2256
3290
8366

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1247
SELECT - ( - col2 ) + - cor0.col0 DIV - col0 + + col0 * + col1 FROM tab2 AS cor0
----
1382
245
4629

skipif mysql # not compatible
query I rowsort label-1247
SELECT - ( - col2 ) + - cor0.col0 / - col0 + + col0 * + col1 FROM tab2 AS cor0
----
1382
245
4629

query I rowsort
SELECT ALL - col1 * - ( - ( col1 ) ) * + col0 + 64 + col2 * col1 FROM tab2
----
-22121
-269920
-5826

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

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

query I rowsort
SELECT 99 * ( col0 ) + - ( - 55 + col1 ) FROM tab2 AS cor0
----
717
7718
7859

query I rowsort
SELECT + col1 + - 21 FROM tab0 cor0
----
65
70
76

query I rowsort
SELECT ALL - + 51 * cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 55134eee1cfff0fa65d36a8a3f1f64dd

query I rowsort
SELECT - col0 * 81 + - col1 FROM tab1 AS cor0
----
-269
-5194
-6493

query I rowsort
SELECT ALL + ( - 51 ) AS col2 FROM tab1 AS cor0
----
-51
-51
-51

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 + - col2 col1 FROM tab2 AS cor0
----
-114
-115
-126

query I rowsort
SELECT - + col1 + 23 * col1 FROM tab1 AS cor0
----
220
286
572

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

query I rowsort
SELECT + 97 FROM tab0, tab1 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT ALL + 61 + col2 AS col2 FROM tab0
----
143
62
94

query I rowsort
SELECT ( col1 ) + + 70 AS col2 FROM tab1 AS cor0
----
80
83
96

query I rowsort
SELECT + 99 * col1 + col1 FROM tab2 AS cor0
----
1700
3100
5900

query I rowsort
SELECT ALL + 13 * col2 * col0 FROM tab0
----
10296
455
94874

query I rowsort
SELECT + 56 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT col1 + 72 + col1 FROM tab1
----
124
92
98

query I rowsort
SELECT - - 68 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT + - 32 + col1 * cor0.col2 FROM tab1 AS cor0
----
1216
1372
538

onlyif mysql # use DIV operator for integer division
query I rowsort label-1269
SELECT - col2 * + col1 DIV - ( + col1 ) + - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-1269
SELECT - col2 * + col1 / - ( + col1 ) + - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - col1 * col1 + - 14 * + col2 FROM tab1 AS cor0
----
-1432
-1513
-898

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

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

query I rowsort
SELECT 20 + col1 FROM tab1 AS cor0
----
30
33
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 * - col0 col2 FROM tab0 AS cor0
----
-2232
-3255
-8277

query I rowsort
SELECT - col1 * col1 + - ( 11 ) AS col0 FROM tab0 AS cor0
----
-7407
-8292
-9420

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

query I rowsort
SELECT - 79 * col2 + 55 * col2 AS col0 FROM tab0
----
-1968
-24
-792

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

query I rowsort
SELECT ALL ( col0 ) * - 74 FROM tab0
----
-1776
-2590
-6586

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

query I rowsort
SELECT - 50 * + tab0.col0 FROM tab0
----
-1200
-1750
-4450

query I rowsort
SELECT col2 + + tab1.col0 + ( col2 ) FROM tab1
----
111
178
272

onlyif mysql # use DIV operator for integer division
query I rowsort label-1283
SELECT col0 * col1 + col1 DIV - col2 AS col1 FROM tab0 AS cor0
----
2062
3298
8098

skipif mysql # not compatible
query I rowsort label-1283
SELECT col0 * col1 + col1 / - col2 AS col1 FROM tab0 AS cor0
----
2062
3298
8098

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

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

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

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

query I rowsort
SELECT - col1 + - 14 AS col2 FROM tab2 AS cor0
----
-31
-45
-73

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

skipif mysql # not compatible
query I rowsort
SELECT ALL cor0.col2 * + CAST ( - col2 AS REAL ) FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + col1 * col0 - - cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
1280
156
2080

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

query I rowsort
SELECT + - cor0.col0 * col0 * + col0 + + col0 FROM tab0 AS cor0
----
-13800
-42840
-704880

query I rowsort
SELECT + + col1 * + 15 FROM tab0 AS cor0
----
1290
1365
1455

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

query I rowsort
SELECT DISTINCT + col1 * + col2 * col0 + - col2 FROM tab2 AS cor0
----
119626
50996
5832

query I rowsort
SELECT + ( 14 ) * col2 FROM tab2 AS cor0
----
364
378
532

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

query I rowsort
SELECT + + col1 * + 65 FROM tab1 AS cor0
----
1690
650
845

query I rowsort
SELECT + col1 + 23 * + col2 FROM tab1 AS cor0
----
1268
1321
2221

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1299
SELECT + col1 * - CAST( col2 AS SIGNED ) * col0 - col2 AS col0 FROM tab2
----
-119678
-51072
-5886

skipif mysql # not compatible
query I rowsort label-1299
SELECT + col1 * - CAST ( col2 AS INTEGER ) * col0 - col2 AS col0 FROM tab2
----
-119678
-51072
-5886

query I rowsort
SELECT + 39 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * + ( - 73 ) + col1 * + col0 AS col2 FROM tab0 cor0
----
-3686
-4214
1456

onlyif mysql # use DIV operator for integer division
query I rowsort label-1307
SELECT DISTINCT - - cor0.col1 DIV - 22 - - col1 * col1 FROM tab2 AS cor0
----
289
3479
960

skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT - - cor0.col1 / - 22 - - col1 * col1 FROM tab2 AS cor0
----
289
3479
960

query I rowsort
SELECT DISTINCT col0 * - col0 * + col2 - + col0 AS col2 FROM tab1 AS cor0
----
-233536
-489
-614480

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1311
SELECT DISTINCT cor0.col0 DIV - 63 + cor0.col2 AS col1 FROM tab1 AS cor0
----
54
56
95

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT cor0.col0 / - 63 + cor0.col2 AS col1 FROM tab1 AS cor0
----
54
56
95

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

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + cor0.col0 AS REAL ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + 24 * col2 FROM tab1 AS cor0
----
1296
1368
2304

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

query I rowsort
SELECT ALL - + 71 * + 24 AS col1 FROM tab1 AS cor0
----
-1704
-1704
-1704

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1319
SELECT ALL ( + cor0.col0 ) DIV + cor0.col2 + - col2 FROM tab0 AS cor0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL ( + cor0.col0 ) / + cor0.col2 + - col2 FROM tab0 AS cor0
----
-33
-81
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-1320
SELECT DISTINCT - + 69 DIV - col2 + - 5 FROM tab0 AS cor0
----
-3
-5
64

skipif mysql # not compatible
query I rowsort label-1320
SELECT DISTINCT - + 69 / - col2 + - 5 FROM tab0 AS cor0
----
-3
-5
64

query I rowsort
SELECT - 16 * col0 FROM tab1
----
-1024
-1280
-48

skipif mysql # not compatible
query I rowsort
SELECT - + cor0.col1 * - col2 + CAST ( cor0.col1 AS REAL ) AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL 54 + col0 AS col0 FROM tab1 AS cor0
----
118
134
57

query I rowsort
SELECT DISTINCT - 2 + - col2 FROM tab1 cor0
----
-56
-59
-98

query I rowsort
SELECT - col0 + + ( 85 ) AS col1 FROM tab1 cor0
----
21
5
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-1326
SELECT DISTINCT cor0.col0 DIV col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1326
SELECT DISTINCT cor0.col0 / col0 FROM tab2 cor0
----
1

query I rowsort
SELECT DISTINCT + col2 * + ( ( col1 ) ) + col2 * col1 FROM tab2 AS cor0
----
1292
1674
3068

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL + col1 / col0 + + col2 col0 FROM tab1 AS cor0
----
57
62
96

query I rowsort
SELECT DISTINCT col0 * col2 + + col0 * - col0 FROM tab1 AS cor0
----
-448
1280
153

query I rowsort
SELECT DISTINCT + + col0 * - 14 AS col1 FROM tab2 cor0
----
-1092
-1106
-98

query I rowsort
SELECT ALL 54 * + col2 + + ( - col1 ) FROM tab1
----
2890
3068
5171

query I rowsort
SELECT + col1 * - col0 + 41 + col2 * col2 FROM tab2
----
-3885
142
553

query I rowsort
SELECT 15 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

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

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

query I rowsort
SELECT 76 + + col1 FROM tab0
----
162
167
173

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1338
SELECT - tab0.col1 * - col1 DIV - tab0.col1 + - tab0.col0 FROM tab0
----
-110
-132
-180

skipif mysql # not compatible
query I rowsort label-1338
SELECT - tab0.col1 * - col1 / - tab0.col1 + - tab0.col0 FROM tab0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-1339
SELECT ALL + + col2 * - col1 + col1 DIV col1 FROM tab2 AS cor0
----
-1533
-645
-836

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL + + col2 * - col1 + col1 / col1 FROM tab2 AS cor0
----
-1533
-645
-836

query I rowsort
SELECT - - col0 + - cor0.col1 * col1 FROM tab1 cor0
----
-36
-673
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1341
SELECT DISTINCT + CAST( - col0 AS SIGNED ) * col2 DIV col0 AS col0 FROM tab0
----
-1
-33
-82

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * col2 + - col0 * col1 * col1 - + col1 col0 FROM tab0 AS cor0
----
-175709
-329355
-732426

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 * - col1 + cor0.col2 col1 FROM tab2 AS cor0
----
-1740
-3337
-931

query I rowsort
SELECT - ( col2 * col0 ) + + col2 AS col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT ( + 14 ) + col2 AS col2 FROM tab2
----
40
41
52

query I rowsort
SELECT DISTINCT - 21 * 88 FROM tab2 AS cor0
----
-1848

query I rowsort
SELECT - - 70 * 95 AS col2 FROM tab0 AS cor0
----
6650
6650
6650

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

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

query I rowsort
SELECT DISTINCT + col2 * + col2 + col0 + col0 * + col2 FROM tab0 AS cor0
----
14111
1905
71

query I rowsort
SELECT DISTINCT + 8 * tab1.col1 + col2 + + col0 AS col1 FROM tab1
----
201
265
280

query I rowsort
SELECT ALL + tab2.col0 + + col1 + col1 AS col2 FROM tab2
----
113
196
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 66 * - col2 + cor0.col2 col0 FROM tab2 AS cor0
----
-1690
-1755
-2470

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

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

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT DISTINCT 50 * + col2 FROM tab2 cor0
----
1300
1350
1900

onlyif mysql # use DIV operator for integer division
query I rowsort label-1358
SELECT DISTINCT + 70 DIV col0 FROM tab2 AS cor0
----
0
10

skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT + 70 / col0 FROM tab2 AS cor0
----
0
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 - col0 col1 FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT ALL 85 * - col1 * col2 + + col0 + col2 * col2 AS col1 FROM tab2 AS cor0
----
-129636
-53387
-70409

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE ( NULL ) > ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1362
SELECT + col2 DIV + 16 + col0 col1 FROM tab0 AS cor0
----
26
35
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1362
SELECT + col2 / + 16 + col0 col1 FROM tab0 AS cor0
----
26
35
94

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

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

query I rowsort
SELECT + col2 * col1 * tab2.col0 FROM tab2
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-1366
SELECT DISTINCT + 97 DIV col0 FROM tab0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-1366
SELECT DISTINCT + 97 / col0 FROM tab0
----
1
2
4

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 * + col0 col2 FROM tab2
----
105
1170
1185

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

skipif mysql # not compatible
query I rowsort label-1370
SELECT - CAST ( + 34 AS INTEGER ) FROM tab1
----
-34
-34
-34

query I rowsort
SELECT ALL - col0 * - col0 - col2 AS col1 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT + - ( tab0.col1 ) FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

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

query I rowsort
SELECT DISTINCT - 50 AS col1 FROM tab2
----
-50

query I rowsort
SELECT col1 + cor0.col0 * - 16 FROM tab0 AS cor0
----
-1333
-298
-463

query I rowsort
SELECT DISTINCT 52 * tab2.col1 FROM tab2
----
1612
3068
884

query I rowsort
SELECT - col2 * + 89 * + col1 FROM tab1
----
-111072
-124956
-50730

query I rowsort
SELECT DISTINCT + tab2.col0 + - col0 * - tab2.col0 FROM tab2
----
56
6162
6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1379
SELECT CAST( col2 AS SIGNED ) col1 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1379
SELECT CAST ( col2 AS INTEGER ) col1 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * 47 col2 FROM tab0
----
4042
4277
4559

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1382
SELECT ALL - col2 * ( ( col2 ) ) + col1 DIV col0 FROM tab0 cor0
----
-1086
-6723
1

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL - col2 * ( ( col2 ) ) + col1 / col0 FROM tab0 cor0
----
-1086
-6723
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1383
SELECT + col0 DIV 2 AS col0 FROM tab1
----
1
32
40

skipif mysql # not compatible
query I rowsort label-1383
SELECT + col0 / 2 AS col0 FROM tab1
----
1
32
40

query I rowsort
SELECT 95 * 1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT ALL + 61 * cor0.col2 FROM tab0 cor0
----
2013
5002
61

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

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL 20 / - col2 FROM tab1 cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT col2 + col2 / cor0.col2 AS col0 FROM tab0 AS cor0
----
2
34
83

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

query I rowsort
SELECT - 24 + - col0 FROM tab0
----
-113
-48
-59

query I rowsort
SELECT - 62 + 22 * col1 - 59 * - col2 FROM tab1 AS cor0
----
3521
3696
5888

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

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

query I rowsort
SELECT - - col0 + 32 FROM tab2 AS cor0
----
110
111
39

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

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

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

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

query I rowsort
SELECT col2 + + ( col0 ) * cor0.col0 FROM tab1 cor0
----
4153
63
6496

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - col2 * - col1 + + col2 * col0 FROM tab1 cor0
----
1566
4218
8928

query I rowsort
SELECT + cor0.col0 * + 46 FROM tab1 AS cor0
----
138
2944
3680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1403
SELECT + col1 DIV col0 + col2 + + 98 FROM tab1
----
155
160
194

skipif mysql # not compatible
query I rowsort label-1403
SELECT + col1 / col0 + col2 + + 98 FROM tab1
----
155
160
194

query I rowsort
SELECT ALL 72 + - col0 * tab0.col2 FROM tab0
----
-720
-7226
37

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1406
SELECT DISTINCT 28 DIV + cor0.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
0
28

skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT 28 / + cor0.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
0
28

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

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

query I rowsort
SELECT + + cor0.col0 * 30 + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-1728
-5280
-72

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

skipif mysql # not compatible
query I rowsort label-1409
SELECT - + col2 * + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - col1 * 48 - col1 * col1 AS col0 FROM tab1 AS cor0
----
-1924
-580
-793

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

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

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

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

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

query I rowsort
SELECT ALL + col1 + - col1 * col1 * + col0 FROM tab1 AS cor0
----
-13507
-2002
-6390

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

query I rowsort
SELECT DISTINCT tab1.col1 + + col0 - tab1.col2 FROM tab1
----
-25
-3
17

query I rowsort
SELECT ALL 50 - col2 * col1 AS col2 FROM tab0
----
-2788
-47
-7412

query I rowsort
SELECT DISTINCT - 27 * - 83 FROM tab0 cor0
----
2241

query I rowsort
SELECT DISTINCT 37 + + 41 * col0 + col1 FROM tab0 AS cor0
----
1107
1569
3777

query I rowsort
SELECT ( - 11 ) AS col2 FROM tab2 cor0
----
-11
-11
-11

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1422
SELECT + col0 DIV 79 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1422
SELECT + col0 / 79 FROM tab2 AS cor0
----
0
0
1

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT - 25 / - col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 + cor0.col2 col1 FROM tab2 AS cor0
----
54
55
66

query I rowsort
SELECT ALL - 33 + + col0 * - 72 FROM tab2
----
-537
-5649
-5721

onlyif mysql # use DIV operator for integer division
query I rowsort label-1430
SELECT ALL tab1.col1 - col1 DIV col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL tab1.col1 - col1 / col2 FROM tab1
----
10
13
26

query I rowsort
SELECT + - col0 + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT DISTINCT + 75 * - cor0.col1 + + col1 AS col1 FROM tab2 AS cor0
----
-1258
-2294
-4366

query I rowsort
SELECT 91 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT - ( + col2 ) * + 77 FROM tab2
----
-2002
-2079
-2926

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

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

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

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

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

query I rowsort
SELECT ALL + col0 * - col2 + 62 FROM tab1 AS cor0
----
-100
-3586
-7618

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1441
SELECT - + col0 + 92 + cor0.col1 DIV col2 FROM tab1 AS cor0
----
12
28
89

skipif mysql # not compatible
query I rowsort label-1441
SELECT - + col0 + 92 + cor0.col1 / col2 FROM tab1 AS cor0
----
12
28
89

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1443
SELECT + CAST( + 27 AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

skipif mysql # not compatible
query I rowsort label-1443
SELECT + CAST ( + 27 AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT - col0 * ( - 67 + col2 ) AS col0 FROM tab0 AS cor0
----
-1335
2310
816

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

query I rowsort
SELECT ( + 73 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT - col1 * 51 + cor0.col2 FROM tab0 AS cor0
----
-4353
-4559
-4946

query I rowsort
SELECT ALL + 66 - 97 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
2588
2685
3752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 78 col0 FROM tab2 AS cor0
----
104
105
116

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

query I rowsort
SELECT + 95 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT 55 + - col0 AS col1 FROM tab2
----
-23
-24
48

query I rowsort
SELECT ( + 24 * + col0 ) + 74 FROM tab0
----
2210
650
914

query I rowsort
SELECT + 39 + + col2 FROM tab0 AS cor0
----
121
40
72

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

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

query I rowsort
SELECT - tab2.col1 + 93 * tab2.col0 FROM tab2
----
620
7195
7330

query I rowsort
SELECT ALL ( - 28 ) * col2 FROM tab1 AS cor0
----
-1512
-1596
-2688

query I rowsort
SELECT ALL 45 FROM tab2, tab0 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 * + col2 col1 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT DISTINCT - col0 * - 69 - - col2 AS col2 FROM tab0
----
1689
2416
6223

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

skipif mysql # not compatible
query I rowsort label-1463
SELECT + - CAST ( cor0.col1 AS INTEGER ) + col0 * 79 FROM tab1 AS cor0
----
211
5046
6307

query I rowsort
SELECT + + cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

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

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

query I rowsort
SELECT col1 * col1 - - col1 * 40 FROM tab2
----
2201
5841
969

query I rowsort
SELECT - + 10 + 58 AS col1 FROM tab1 cor0
----
48
48
48

query I rowsort
SELECT ALL - 12 + - cor0.col0 FROM tab2 AS cor0
----
-19
-90
-91

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

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

query I rowsort
SELECT + cor0.col0 * 45 AS col2 FROM tab1 AS cor0
----
135
2880
3600

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

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

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

query I rowsort
SELECT ALL col0 * 21 * - col1 FROM tab2
----
-28203
-4557
-96642

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

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

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

query I rowsort
SELECT col1 + 43 * col2 AS col0 FROM tab2 AS cor0
----
1177
1192
1651

query I rowsort
SELECT DISTINCT col2 + ( + 4 ) * + col2 AS col2 FROM tab0 AS cor0
----
165
410
5

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

query I rowsort
SELECT ALL + + ( col0 ) + - col1 * 94 * + ( col1 ) AS col0 FROM tab0 AS cor0
----
-695200
-778325
-884411

query I rowsort
SELECT DISTINCT 87 * + cor0.col1 FROM tab0 AS cor0
----
7482
7917
8439

onlyif mysql # use DIV operator for integer division
query I rowsort label-1484
SELECT ALL + col2 DIV ( col0 ) + col1 * - col0 * + col0 FROM tab1 cor0
----
-216
-40960
-83199

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL + col2 / ( col0 ) + col1 * - col0 * + col0 FROM tab1 cor0
----
-216
-40960
-83199

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

query I rowsort
SELECT - 41 + + 67 AS col1 FROM tab0 cor0
----
26
26
26

query I rowsort
SELECT DISTINCT 6 * + col1 FROM tab2 AS cor0
----
102
186
354

onlyif mysql # use DIV operator for integer division
query I rowsort label-1488
SELECT - 91 DIV 75 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1488
SELECT - 91 / 75 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1489
SELECT ALL - 77 DIV + ( + col0 ) + + col2 DIV + col0 + col2 AS col0 FROM tab1 cor0
----
47
56
97

skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL - 77 / + ( + col0 ) + + col2 / + col0 + col2 AS col0 FROM tab1 cor0
----
47
56
97

query I rowsort
SELECT - cor0.col1 + + 62 * + col0 FROM tab0 AS cor0
----
1402
2073
5427

query I rowsort
SELECT + col2 - col0 * col0 * col0 FROM tab0
----
-13791
-42874
-704887

query I rowsort
SELECT + col2 * col2 + - 18 FROM tab2
----
1426
658
711

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1495
SELECT DISTINCT - 53 DIV col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1495
SELECT DISTINCT - 53 / col2 FROM tab1 cor0
----
0

query I rowsort
SELECT + + col1 * + cor0.col1 * col1 FROM tab1 AS cor0
----
1000
17576
2197

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1501
SELECT 99 * + col0 DIV col0 AS col0 FROM tab1
----
99
99
99

skipif mysql # not compatible
query I rowsort label-1501
SELECT 99 * + col0 / col0 AS col0 FROM tab1
----
99
99
99

query I rowsort
SELECT - 92 * - 20 FROM tab1
----
1840
1840
1840

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

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

query I rowsort
SELECT + + 90 + col0 FROM tab2 AS cor0
----
168
169
97

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

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

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

query I rowsort
SELECT DISTINCT + col1 * 22 + - col2 * - col0 - col2 FROM tab2 AS cor0
----
3300
3338
844

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

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

query I rowsort
SELECT DISTINCT cor0.col0 - + ( col1 * 72 ) AS col2 FROM tab1 cor0
----
-1869
-656
-856

query I rowsort
SELECT + - col2 + - 22 - - col1 AS col2 FROM tab1 AS cor0
----
-105
-50
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1513
SELECT ALL CAST( col0 AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL CAST ( col0 AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

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

query I rowsort
SELECT DISTINCT - col2 * + col2 + col0 + + col0 FROM tab1 cor0
----
-2910
-3121
-9056

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

query I rowsort
SELECT ALL + ( col0 ) + - col2 * 32 AS col2 FROM tab2 AS cor0
----
-1137
-754
-857

query I rowsort
SELECT ALL ( ( - col0 ) ) * - 28 + + ( col0 * - col2 ) FROM tab1 cor0
----
-1856
-5440
-78

query I rowsort
SELECT ALL + ( + col1 ) * + cor0.col1 - - ( 9 ) * col0 * col0 FROM tab1 AS cor0
----
36964
57769
757

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col1 - CAST ( + col2 AS REAL ) * col1 AS col2 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT col0 * - 33 * 21 AS col2 FROM tab1
----
-2079
-44352
-55440

query I rowsort
SELECT + col0 * 63 + ( col1 ) + - col2 FROM tab2
----
445
4947
4956

onlyif mysql # use DIV operator for integer division
query I rowsort label-1523
SELECT DISTINCT - ( - col0 ) + col1 DIV col1 AS col0 FROM tab1 cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT - ( - col0 ) + col1 / col1 AS col0 FROM tab1 cor0
----
4
65
81

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

query I rowsort
SELECT 18 * - col2 * - col1 FROM tab2
----
11628
15066
27612

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 * col0 + col0 * + 26 col0 FROM tab0
----
-1152
-1680
-4272

query I rowsort
SELECT + col0 + + 74 FROM tab1 AS cor0
----
138
154
77

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

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL - CAST ( + col1 AS INTEGER ) + col0 * col0 AS col2 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT DISTINCT ( 31 ) + col1 FROM tab2 AS cor0
----
48
62
90

query I rowsort
SELECT ALL + - 97 * cor0.col0 FROM tab2 AS cor0
----
-679
-7566
-7663

query I rowsort
SELECT ALL - 31 FROM tab0, tab1 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT - + col2 + col0 * col0 * col0 AS col1 FROM tab2 AS cor0
----
316
474526
493001

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f

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

skipif mysql # not compatible
query I rowsort label-1537
SELECT DISTINCT col1 / 30 FROM tab1 cor0
----
0

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 88 * - cor1.col1 - cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 0efd1f5ecd1e17665d0bb08c8145c02f

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 59 ) col0 FROM tab0, tab2 AS cor0
----
-59

query I rowsort
SELECT ALL 7 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

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

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

query I rowsort
SELECT DISTINCT + col1 * - 45 * col0 + col0 * - col2 + + col2 FROM tab2 AS cor0
----
-209092
-63399
-9927

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

query I rowsort
SELECT ALL + col1 * - 91 AS col0 FROM tab2 cor0
----
-1547
-2821
-5369

onlyif mysql # use DIV operator for integer division
query I rowsort label-1552
SELECT ALL - + col0 DIV 15 AS col0 FROM tab0 AS cor0
----
-1
-2
-5

skipif mysql # not compatible
query I rowsort label-1552
SELECT ALL - + col0 / 15 AS col0 FROM tab0 AS cor0
----
-1
-2
-5

query I rowsort
SELECT DISTINCT - + col0 * + 65 FROM tab0 AS cor0
----
-1560
-2275
-5785

query I rowsort
SELECT DISTINCT col1 * + 91 + 14 AS col1 FROM tab1 cor0
----
1197
2380
924

query I rowsort
SELECT DISTINCT - col0 * - 23 * col1 AS col2 FROM tab0 AS cor0
----
186277
47472
78085

query I rowsort
SELECT - - 85 AS col2 FROM tab0 cor0
----
85
85
85

query I rowsort
SELECT DISTINCT + 1 * col2 AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT + 29 + + col1 FROM tab2 cor0
----
46
60
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col1 ) * - 23 * + col1 col2 FROM tab1 AS cor0
----
15548
2300
3887

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

query I rowsort
SELECT ALL + + 51 * + col2 + 28 FROM tab2 AS cor0
----
1354
1405
1966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 col0 FROM tab0
----
77
77
77

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

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

query I rowsort
SELECT DISTINCT col2 * cor0.col2 + - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-108
-858
798

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

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

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

query I rowsort
SELECT ALL - 8 - + cor0.col2 AS col1 FROM tab2 AS cor0
----
-34
-35
-46

query I rowsort
SELECT + 61 * + col0 AS col0 FROM tab1 AS cor0
----
183
3904
4880

query I rowsort
SELECT - 1 + col1 AS col1 FROM tab0 AS cor0
----
85
90
96

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1573
SELECT + + col1 DIV 14 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1573
SELECT + + col1 / 14 FROM tab1 AS cor0
----
0
0
1

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

query I rowsort
SELECT + 2 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

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

query I rowsort
SELECT - 53 + + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2863
3196
9163

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

query I rowsort
SELECT ALL - 16 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1580
SELECT - tab0.col0 + 16 * col1 + - col1 * - col1 DIV - ( - col1 ) AS col0 FROM tab0
----
1438
1458
1614

skipif mysql # not compatible
query I rowsort label-1580
SELECT - tab0.col0 + 16 * col1 + - col1 * - col1 / - ( - col1 ) AS col0 FROM tab0
----
1438
1458
1614

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

query I rowsort
SELECT + cor0.col1 + - 84 FROM tab1 AS cor0
----
-58
-71
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 19 col1 FROM tab2
----
-494
-513
-722

query I rowsort
SELECT - col1 * + ( + tab2.col2 ) * col0 FROM tab2
----
-119652
-51034
-5859

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + 27 AS REAL ) + + col0 + ( + 64 ) col0 FROM tab0 cor0
----
115
126
180

query I rowsort
SELECT + 97 + - col0 * + col1 FROM tab1 AS cor0
----
-543
-943
19

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

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

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

query I rowsort
SELECT ALL col2 * ( col0 ) + - ( - col2 ) FROM tab0
----
36
7380
825

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

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

query I rowsort
SELECT + col2 + col0 + - col2 AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - - 38 + - cor0.col2 + 39 FROM tab0 AS cor0
----
-5
44
76

query I rowsort
SELECT + + 73 * + col0 AS col1 FROM tab1 AS cor0
----
219
4672
5840

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1597
SELECT - 59 + col0 * - CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1284
-635
-7980

skipif mysql # not compatible
query I rowsort label-1597
SELECT - 59 + col0 * - CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1284
-635
-7980

query I rowsort
SELECT DISTINCT + 20 + + col2 * + ( col0 ) AS col0 FROM tab1 AS cor0
----
182
3668
7700

onlyif mysql # use DIV operator for integer division
query I rowsort label-1599
SELECT + - 68 DIV - col1 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-1599
SELECT + - 68 / - col1 FROM tab2 AS cor0
----
1
2
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

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

query I rowsort
SELECT - - 28 * col2 * - 69 AS col2 FROM tab1 AS cor0
----
-104328
-110124
-185472

query I rowsort
SELECT ALL cor0.col1 * - col2 + col2 * + 47 AS col0 FROM tab0 AS cor0
----
-1287
-3608
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * col1 + 2 col2 FROM tab0 AS cor0
----
2066
3397
8101

onlyif mysql # use DIV operator for integer division
query I rowsort label-1605
SELECT ALL - - col1 DIV + col1 + cor0.col1 col2 FROM tab0 AS cor0
----
87
92
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL - - col1 / + col1 + cor0.col1 col2 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL col2 * col2 * - 44 + 45 AS col2 FROM tab2 AS cor0
----
-29699
-32031
-63491

query I rowsort
SELECT + col0 * - col2 * - col2 - cor0.col2 FROM tab0 AS cor0
----
26103
34
598354

query I rowsort
SELECT + col1 + 2 AS col2 FROM tab0 cor0
----
88
93
99

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

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

query I rowsort
SELECT - + col0 * + col1 + + 71 AS col0 FROM tab0 AS cor0
----
-1993
-3324
-8028

onlyif mysql # use DIV operator for integer division
query I rowsort label-1611
SELECT DISTINCT col2 DIV - 40 FROM tab1 cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT col2 / - 40 FROM tab1 cor0
----
-1
-2

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

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

query I rowsort
SELECT ALL + cor0.col0 + + 94 FROM tab2 AS cor0
----
101
172
173

onlyif mysql # use DIV operator for integer division
query I rowsort label-1615
SELECT - col0 DIV - ( + 8 ) + - col2 AS col2 FROM tab2 cor0
----
-17
-27
-29

skipif mysql # not compatible
query I rowsort label-1615
SELECT - col0 / - ( + 8 ) + - col2 AS col2 FROM tab2 cor0
----
-17
-27
-29

query I rowsort
SELECT DISTINCT + col1 * - 72 FROM tab2 AS cor0
----
-1224
-2232
-4248

query I rowsort
SELECT ALL + col1 * - 3 + col0 * col1 + - col1 FROM tab2 AS cor0
----
1275
4366
93

query I rowsort
SELECT 7 FROM tab0, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT ALL + + cor0.col0 + 97 * col2 + ( 74 ) FROM tab0 AS cor0
----
206
3299
8117

query I rowsort
SELECT 7 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

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

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

query I rowsort
SELECT 58 * cor0.col0 FROM tab0 cor0
----
1392
2030
5162

query I rowsort
SELECT ALL - col1 + + 55 * - col2 * ( 15 ) FROM tab0 AS cor0
----
-27311
-67741
-922

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

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

query I rowsort
SELECT ALL 78 * + col0 + cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
12640
243
9088

onlyif mysql # use DIV operator for integer division
query I rowsort label-1627
SELECT ALL - - col1 * cor0.col2 + 24 DIV 46 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-1627
SELECT ALL - - col1 * cor0.col2 + 24 / 46 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-1628
SELECT ALL + - 14 * + col0 + - 27 DIV - ( col0 ) FROM tab1 AS cor0
----
-1120
-33
-896

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL + - 14 * + col0 + - 27 / - ( col0 ) FROM tab1 AS cor0
----
-1120
-33
-896

query I rowsort
SELECT DISTINCT + + col0 * + col1 + 75 FROM tab0 cor0
----
2139
3470
8174

query I rowsort
SELECT - + 49 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1274
-490
-637

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

query I rowsort
SELECT DISTINCT - col1 * + 56 * - 52 FROM tab2 AS cor0
----
171808
49504
90272

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

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

query I rowsort
SELECT ALL + col2 * + ( - 95 ) AS col2 FROM tab1 AS cor0
----
-5130
-5415
-9120

query I rowsort
SELECT - col1 * 8 + + col1 FROM tab1 AS cor0
----
-182
-70
-91

query I rowsort
SELECT ALL - col0 * - ( + 58 * col0 ) FROM tab2 AS cor0
----
2842
352872
361978

query I rowsort
SELECT col0 * - col0 + col1 * tab2.col0 AS col0 FROM tab2
----
-1482
-4898
168

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1640
SELECT + + cor0.col1 + ( + col0 ) * col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
2
62
62

skipif mysql # not compatible
query I rowsort label-1640
SELECT + + cor0.col1 + ( + col0 ) * col0 / - col0 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - - col1 + col1 - + 53 FROM tab1 AS cor0
----
-1
-27
-33

query I rowsort
SELECT ALL - 68 * + col2 + - col1 FROM tab0 cor0
----
-165
-2330
-5667

query I rowsort
SELECT + + col0 + 60 AS col2 FROM tab2 AS cor0
----
138
139
67

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

skipif mysql # not compatible
query I rowsort label-1644
SELECT ALL + cor0.col2 + + ( + col2 ) / col0 FROM tab0 AS cor0
----
1
34
82

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

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

query I rowsort
SELECT - 10 + + col2 FROM tab2 AS cor0
----
16
17
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 + col1 + col0 col0 FROM tab0 cor0
----
134
167
269

query I rowsort
SELECT + 29 + + cor0.col0 * col2 AS col2 FROM tab0 AS cor0
----
64
7327
821

query I rowsort
SELECT ALL col0 * 50 FROM tab0 cor0
----
1200
1750
4450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) + - col0 * 44 col2 FROM tab0 AS cor0
----
-1032
-1505
-3827

onlyif mysql # use DIV operator for integer division
query I rowsort label-1651
SELECT DISTINCT + - 70 DIV 90 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1651
SELECT DISTINCT + - 70 / 90 AS col2 FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT DISTINCT + + 84 * + 38 + col0 AS col0 FROM tab2 AS cor0
----
3199
3270
3271

query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col2 * col2 - - cor0.col1 FROM tab2 AS cor0
----
-22568
-24531
-39825

query I rowsort
SELECT DISTINCT col2 + - col0 * + col0 FROM tab2
----
-22
-6058
-6203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 + + tab0.col2 col0 FROM tab0
----
2871
7544
98

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

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

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

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

query I rowsort
SELECT ALL 56 + + col0 * col0 * + 49 FROM tab2 AS cor0
----
2457
298172
305865

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

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

query I rowsort
SELECT DISTINCT - + ( + 54 ) - cor0.col0 FROM tab0 AS cor0
----
-143
-78
-89

query I rowsort
SELECT ALL + + 66 + col0 * + col1 FROM tab2 AS cor0
----
1409
283
4668

query I rowsort
SELECT - - cor0.col1 * col0 + - col2 * - col1 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT ALL - cor1.col0 AS col0 FROM tab1, tab1 cor0, tab2, tab0 AS cor1
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d

onlyif mysql # use DIV operator for integer division
query I rowsort label-1667
SELECT + 17 + col1 DIV col1 AS col1 FROM tab0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-1667
SELECT + 17 + col1 / col1 AS col1 FROM tab0
----
18
18
18

query I rowsort
SELECT cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT 59 FROM tab0, tab2 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT ( col2 ) * col0 * tab2.col2 + - tab2.col2 FROM tab2
----
114038
5076
52702

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

query I rowsort
SELECT DISTINCT 36 * + col0 AS col2 FROM tab0 cor0
----
1260
3204
864

query I rowsort
SELECT DISTINCT cor1.col1 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
86
91
97

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1675
SELECT DISTINCT + col2 * tab1.col1 DIV + col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT + col2 * tab1.col1 / + col1 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL col1 + - cor0.col0 * - 47 FROM tab1 AS cor0
----
167
3018
3773

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

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

skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT + col1 + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL + col2 + 87 * col1 * + cor0.col0 + col2 AS col1 FROM tab2 cor0
----
116917
18933
400426

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

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

query I rowsort
SELECT DISTINCT ( - 21 + + col2 ) FROM tab2
----
17
5
6

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1685
SELECT ALL CAST( col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL CAST ( col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ( cor0.col1 ) + - col1 * + col0 * + col2 FROM tab2 AS cor0
----
-119593
-51017
-5828

onlyif mysql # use DIV operator for integer division
query I rowsort label-1687
SELECT - 48 + - col2 DIV + col0 FROM tab1 cor0
----
-48
-49
-66

skipif mysql # not compatible
query I rowsort label-1687
SELECT - 48 + - col2 / + col0 FROM tab1 cor0
----
-48
-49
-66

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1689
SELECT col0 DIV + 22 + 22 * col1 + col1 * - col1 FROM tab1 AS cor0
----
-104
120
122

skipif mysql # not compatible
query I rowsort label-1689
SELECT col0 / + 22 + 22 * col1 + col1 * - col1 FROM tab1 AS cor0
----
-104
120
122

onlyif mysql # use DIV operator for integer division
query I rowsort label-1690
SELECT + col1 DIV col1 + col1 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-1690
SELECT + col1 / col1 + col1 FROM tab0
----
87
92
98

query I rowsort
SELECT - + 15 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col1 * + 85 * + col2 col0 FROM tab0 cor0
----
241316
634361
8342

query I rowsort
SELECT - col1 + + 16 FROM tab0 AS cor0
----
-70
-75
-81

query I rowsort
SELECT ALL - cor0.col1 + - 6 FROM tab1 AS cor0
----
-16
-19
-32

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1696
SELECT + - col1 * + 60 + 54 * col1 DIV col2 AS col2 FROM tab1 AS cor0
----
-1534
-591
-773

skipif mysql # not compatible
query I rowsort label-1696
SELECT + - col1 * + 60 + 54 * col1 / col2 AS col2 FROM tab1 AS cor0
----
-1534
-591
-773

query I rowsort
SELECT + 53 * - col2 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
1855
386794
41976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1698
SELECT DISTINCT + CAST( col2 AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT + CAST ( col2 AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + 80 * - ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-560
-6240
-6320

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

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

query I rowsort
SELECT 86 * + col2 AS col0 FROM tab0 AS cor0
----
2838
7052
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * - col0 * - col1 col0 FROM tab2
----
106097
1519
358956

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col2 + + 78 AS col1 FROM tab2 AS cor0
----
40
51
52

query I rowsort
SELECT ALL + 21 AS col2 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

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

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

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

query I rowsort
SELECT DISTINCT + 72 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
72

query I rowsort
SELECT ALL + col2 + ( - 27 + col2 ) AS col2 FROM tab2
----
25
27
49

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

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

query I rowsort
SELECT - col2 * 89 + + 52 AS col1 FROM tab2 AS cor0
----
-2262
-2351
-3330

onlyif mysql # use DIV operator for integer division
query I rowsort label-1719
SELECT DISTINCT + + col1 + col2 * col1 DIV col2 AS col2 FROM tab0 AS cor0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-1719
SELECT DISTINCT + + col1 + col2 * col1 / col2 AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT + 13 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
13

query I rowsort
SELECT - col1 + + col2 * - tab0.col0 FROM tab0
----
-132
-7389
-878

query I rowsort
SELECT ALL ( col2 ) * - col1 * - tab2.col1 FROM tab2
----
10982
25947
90506

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

query I rowsort
SELECT - ( tab1.col1 ) * col0 + - 88 FROM tab1
----
-1128
-166
-728

query I rowsort
SELECT + 47 AS col1 FROM tab0, tab2, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to 5c7a6f591fb2a38893dafe56c4b9b97f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1726
SELECT + 79 * + col1 + CAST( 94 AS SIGNED ) - + col1 FROM tab0 cor0
----
6802
7192
7660

skipif mysql # not compatible
query I rowsort label-1726
SELECT + 79 * + col1 + CAST ( 94 AS INTEGER ) - + col1 FROM tab0 cor0
----
6802
7192
7660

onlyif mysql # use DIV operator for integer division
query I rowsort label-1727
SELECT DISTINCT - col2 * col1 DIV CAST( - col0 + col1 AS SIGNED ) FROM tab2 cor0
----
-34
10
80

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT - col2 * col1 / CAST ( - col0 + col1 AS INTEGER ) FROM tab2 cor0
----
-34
10
80

query I rowsort
SELECT + 98 + - col0 * col0 FROM tab1 cor0
----
-3998
-6302
89

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

query I rowsort
SELECT DISTINCT - col2 * - col1 * 79 AS col1 FROM tab1 cor0
----
110916
45030
98592

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

query I rowsort
SELECT DISTINCT - + 82 FROM tab2 cor0
----
-82

query I rowsort
SELECT ALL - 49 AS col2 FROM tab1 AS cor0
----
-49
-49
-49

query I rowsort
SELECT 87 + - col0 AS col1 FROM tab0
----
-2
52
63

query I rowsort
SELECT DISTINCT 34 * col1 FROM tab1
----
340
442
884

query I rowsort
SELECT - col0 - + 67 AS col1 FROM tab0
----
-102
-156
-91

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 9b60cb1db2fb2fa5700b0e572b4b6546

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 * + col2 col0 FROM tab1 AS cor0
----
-1728
-1824
-3072

query I rowsort
SELECT ALL 52 * + 77 + - col1 * 98 AS col0 FROM tab2 AS cor0
----
-1778
2338
966

query I rowsort
SELECT ALL cor0.col1 + 25 AS col2 FROM tab1 AS cor0
----
35
38
51

query I rowsort
SELECT 16 * col1 + + col1 FROM tab0
----
1462
1547
1649

query I rowsort
SELECT 65 + + col0 FROM tab1
----
129
145
68

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

query I rowsort
SELECT + tab2.col0 * - 16 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 1edb8a2658c5112a4bc49ebb84bb164e

query I rowsort
SELECT + col1 * + col2 * + col0 + - col1 FROM tab1
----
36470
4186
99827

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

query I rowsort
SELECT - + 78 * col1 AS col1 FROM tab2 AS cor0
----
-1326
-2418
-4602

query I rowsort
SELECT ( - col0 ) + - cor0.col2 * 75 * col2 AS col1 FROM tab0 cor0
----
-110
-504389
-81699

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

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

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

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

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

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

query I rowsort
SELECT ALL + col1 * + ( + 14 ) AS col2 FROM tab0 AS cor0
----
1204
1274
1358

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

query I rowsort
SELECT DISTINCT + + col2 * + 26 * 93 - col1 FROM tab2 AS cor0
----
62809
65255
91867

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

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

query I rowsort
SELECT ALL col1 * - col0 + 75 + - col0 AS col2 FROM tab0 cor0
----
-2013
-3355
-8113

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

query I rowsort
SELECT ALL - col2 + + col2 + - col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - cor0.col0 * - 72 AS col0 FROM tab1 AS cor0
----
216
4608
5760

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( col2 * + col1 ) + 16 col0 FROM tab0 AS cor0
----
114
2887
7560

onlyif mysql # use DIV operator for integer division
query I rowsort label-1768
SELECT ALL col1 DIV - ( col1 ) + col0 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL col1 / - ( col1 ) + col0 FROM tab1
----
2
63
79

query I rowsort
SELECT DISTINCT col1 * - 23 + + col0 FROM tab1
----
-166
-219
-595

query I rowsort
SELECT + cor0.col0 * - 87 + col1 FROM tab1 AS cor0
----
-235
-5558
-6947

query I rowsort
SELECT DISTINCT - ( 77 ) * cor0.col2 + cor0.col0 FROM tab2 AS cor0
----
-1924
-2072
-2847

query I rowsort
SELECT - 60 + + cor0.col0 FROM tab1 AS cor0
----
-57
20
4

query I rowsort
SELECT DISTINCT - - 66 + col1 FROM tab2 AS cor0
----
125
83
97

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

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

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

query I rowsort
SELECT + 55 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT col2 * col0 + + cor0.col1 * 84 FROM tab2 cor0
----
2793
4430
6984

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col2 col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT + CAST ( col1 * + col2 AS INTEGER ) col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - cor1.col2 + + 8 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to de1d1ac53797e73e58cc3f63e3f1f215

query I rowsort
SELECT DISTINCT ( - 41 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 * 36 col2 FROM tab2
----
1123
2202
691

query I rowsort
SELECT ALL tab1.col1 + col2 * + 38 AS col2 FROM tab1
----
2078
2176
3661

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

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

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

query I rowsort
SELECT ALL - - col0 * - 95 - col0 * col0 AS col2 FROM tab1 cor0
----
-10176
-14000
-294

query I rowsort
SELECT ALL - + col1 * col0 + 18 * + col0 AS col0 FROM tab1 cor0
----
-24
400
512

query I rowsort
SELECT DISTINCT - col2 * col1 - col2 * col2 * + col2 FROM tab1
----
-158868
-185763
-885984

query III rowsort
SELECT * FROM tab2 WHERE col2 NOT IN ( col1 + col0 + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

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

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

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

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

query I rowsort
SELECT + cor0.col1 * + col1 - - col0 AS col0 FROM tab0 AS cor0
----
7420
8370
9444

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND NULL
----

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1801
SELECT - tab1.col2 DIV + col0 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-1801
SELECT - tab1.col2 / + col0 FROM tab1
----
-1
-18
0

query I rowsort
SELECT DISTINCT col0 FROM tab0 cor0 WHERE ( NULL ) = col0 + col1 + + col0
----

query I rowsort
SELECT + col1 * col0 * - col0 AS col2 FROM tab0 AS cor0
----
-118825
-49536
-720811

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( - col0 * col2 ) AND NULL NOT IN ( tab0.col0 * + col0 )
----

query I rowsort
SELECT - col2 * col0 - col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-240
-4288
-8720

query I rowsort
SELECT + - col2 + - col2 * col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT - col2 * + col1 * + col1 + - col2 FROM tab2 AS cor0
----
-11020
-25974
-90532

query I rowsort
SELECT ALL + 57 - - col0 AS col0 FROM tab2 AS cor0
----
135
136
64

query I rowsort
SELECT ALL - col0 + col0 * + col0 AS col0 FROM tab1
----
4032
6
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 col0 FROM tab2 AS cor0
----
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-1811
SELECT + tab0.col0 DIV + 38 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e1e0cfc6d15933eb424ade504a2163bc

skipif mysql # not compatible
query I rowsort label-1811
SELECT + tab0.col0 / + 38 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e1e0cfc6d15933eb424ade504a2163bc

query I rowsort
SELECT DISTINCT + col0 - col2 * - col2 AS col2 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT col0 * - col1 - 64 FROM tab2
----
-1407
-281
-4666

query I rowsort
SELECT ALL + ( + col1 ) + col1 FROM tab1
----
20
26
52

query I rowsort
SELECT + col1 * col2 * cor0.col1 - + ( cor0.col1 * + cor0.col2 ) FROM tab0 AS cor0
----
241230
671580
9312

query I rowsort
SELECT + col0 * - col2 + col2 * tab0.col2 AS col0 FROM tab0
----
-34
-574
297

query I rowsort
SELECT col2 * + col2 AS col2 FROM tab1 WHERE NOT + col0 * - col1 * - col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 + col1 * - col1 col1 FROM tab0
----
-10234
-15743
-9506

query I rowsort
SELECT DISTINCT - col1 - + tab1.col1 * col1 AS col0 FROM tab1
----
-110
-182
-702

query I rowsort
SELECT ALL col0 * + tab0.col1 * + col1 AS col0 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT tab2.col2 + col0 * col0 AS col2 FROM tab2
----
6110
6279
76

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NULL IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col1 * col0 * tab2.col0 col0 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT tab1.col2 + col2 * tab1.col0 + col2 AS col2 FROM tab1
----
270
3762
7872

query I rowsort
SELECT ALL + col2 * + col1 * col1 - tab0.col2 FROM tab0
----
244035
678960
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - - col1 col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NULL IN ( col2 - - col1 * col0 * col2 )
----

query I rowsort
SELECT ALL + col0 + col1 * col1 * col2 FROM tab0
----
244092
679131
9444

query I rowsort
SELECT + col1 * col1 - + col2 FROM tab1
----
43
622
73

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * + col1 NOT IN ( + col0 )
----

query I rowsort
SELECT ALL + col1 * - tab2.col0 * col2 AS col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( col2 * col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1833
SELECT DISTINCT col1 DIV + col1 + + col2 * tab2.col0 AS col2 FROM tab2
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT col1 / + col1 + + col2 * tab2.col0 AS col2 FROM tab2
----
190
2029
3003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab2.col0 col1 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-1835
SELECT ALL col1 DIV - col0 + col2 AS col0 FROM tab2
----
23
26
38

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL col1 / - col0 + col2 AS col0 FROM tab2
----
23
26
38

query I rowsort
SELECT DISTINCT + tab2.col0 * - col0 + + col1 AS col2 FROM tab2 WHERE + col2 NOT IN ( - col2 * col1 / - col0 )
----
-18
-6025
-6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-1837
SELECT ALL - tab2.col0 * tab2.col1 DIV + col1 + + col2 FROM tab2
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL - tab2.col0 * tab2.col1 / + col1 + + col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT + col1 * + tab2.col0 FROM tab2 WHERE NOT NULL BETWEEN - col1 * col2 - - col0 AND NULL
----

query I rowsort
SELECT tab0.col1 + - col2 * + col2 AS col2 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT + col0 * col1 AS col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN col2 * - col1 AND + col1 + col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1841
SELECT DISTINCT col0 + + tab1.col0 DIV col1 FROM tab1
----
3
70
86

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT col0 + + tab1.col0 / col1 FROM tab1
----
3
70
86

query I rowsort
SELECT DISTINCT + col2 - + col2 AS col2 FROM tab2
----
0

query I rowsort
SELECT + - col1 + ( cor0.col1 ) * + col0 FROM tab2 AS cor0
----
1326
186
4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1844
SELECT ALL cor0.col2 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * col2 + - col2 + col0 * + col0 AS col0 FROM tab1
----
15520
2871
7288

query I rowsort
SELECT + + col1 * - col1 + 83 AS col2 FROM tab1 AS cor0
----
-17
-593
-86

query I rowsort
SELECT DISTINCT 22 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
22

query I rowsort
SELECT - tab0.col1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

onlyif mysql # use DIV operator for integer division
query I rowsort label-1849
SELECT DISTINCT + col2 DIV - 9 col2 FROM tab1 AS cor0
----
-10
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT + col2 / - 9 col2 FROM tab1 AS cor0
----
-10
-6

query I rowsort
SELECT - col1 * 20 * ( + col1 ) AS col0 FROM tab2 AS cor0
----
-19220
-5780
-69620

query I rowsort
SELECT + col2 * ( + col2 ) * + 85 AS col2 FROM tab2
----
122740
57460
61965

query I rowsort
SELECT DISTINCT 57 - + col0 FROM tab1
----
-23
-7
54

query I rowsort
SELECT DISTINCT + 8 - + col1 * col2 FROM tab0
----
-2830
-7454
-89

query I rowsort
SELECT DISTINCT col2 * + 30 - - col0 AS col2 FROM tab2
----
1219
817
858

query I rowsort
SELECT col1 * - 21 + + col2 + col0 * + col1 AS col1 FROM tab1
----
-414
487
863

query I rowsort
SELECT ALL ( + col0 ) * - col2 FROM tab1
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1857
SELECT + ( - col0 ) DIV - col1 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-1857
SELECT + ( - col0 ) / - col1 FROM tab2
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-1858
SELECT col1 + - 34 DIV + col2 AS col1 FROM tab0
----
63
85
91

skipif mysql # not compatible
query I rowsort label-1858
SELECT col1 + - 34 / + col2 AS col1 FROM tab0
----
63
85
91

query I rowsort
SELECT DISTINCT + - col1 - cor0.col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL + - col1 * cor0.col2 + + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT col2 + - col1 - + 74 FROM tab2 AS cor0
----
-107
-53
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-1862
SELECT + cor0.col1 DIV + col0 + + ( + col0 * - col1 ) AS col2 FROM tab2 AS cor0
----
-1343
-213
-4602

skipif mysql # not compatible
query I rowsort label-1862
SELECT + cor0.col1 / + col0 + + ( + col0 * - col1 ) AS col2 FROM tab2 AS cor0
----
-1343
-213
-4602

query I rowsort
SELECT DISTINCT + cor0.col1 * + cor0.col2 + - ( - cor0.col1 ) AS col1 FROM tab0 AS cor0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 * + col2 col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT col0 * - cor0.col0 - col1 * 78 FROM tab1 AS cor0
----
-2037
-4876
-7414

query I rowsort
SELECT - 30 * + col0 + col1 * - 12 FROM tab2 AS cor0
----
-2574
-3048
-582

query I rowsort
SELECT ALL col1 * col0 * 82 FROM tab2
----
110126
17794
377364

onlyif mysql # use DIV operator for integer division
query I rowsort label-1868
SELECT 38 DIV col1 FROM tab1 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1868
SELECT 38 / col1 FROM tab1 AS cor0
----
1
2
3

query I rowsort
SELECT + col2 * - ( cor0.col1 ) + cor0.col1 * col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + col0 * 54 FROM tab1 cor0
----
-162
-3456
-4320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1871
SELECT ALL - col0 - - CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL - col0 - - CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - 9 + col1 AS col2 FROM tab1
----
-104
-208
-80

query I rowsort
SELECT - col2 + - ( 38 ) FROM tab2 AS cor0
----
-64
-65
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col2 FROM tab0
----
-52
-52
-52

query I rowsort
SELECT - col0 * + cor0.col2 - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT + - col1 * ( - col2 ) + + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT - + 12 * + col2 FROM tab2 cor0
----
-312
-324
-456

query I rowsort
SELECT ALL + - ( 45 ) * - cor0.col1 FROM tab0 AS cor0
----
3870
4095
4365

query I rowsort
SELECT + ( - col2 ) * col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT - + cor0.col1 + col0 * + col0 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT ALL 57 + + ( + col1 ) AS col0 FROM tab1 AS cor0
----
67
70
83

query I rowsort
SELECT - ( ( cor0.col1 ) ) AS col2 FROM tab1 cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-1883
SELECT 18 DIV - 93 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1883
SELECT 18 / - 93 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 90 AS col0 FROM tab0 cor0
----
90
90
90

query I rowsort
SELECT 55 * col1 FROM tab1 AS cor0
----
1430
550
715

query I rowsort
SELECT DISTINCT - 5 FROM tab1, tab2 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col0 col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
7
78
79

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab1, tab2 cor1
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed

query I rowsort
SELECT ALL - col1 * 32 AS col1 FROM tab1 AS cor0
----
-320
-416
-832

onlyif mysql # use DIV operator for integer division
query I rowsort label-1890
SELECT DISTINCT + cor0.col1 DIV + col0 + col2 AS col0 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-1890
SELECT DISTINCT + cor0.col1 / + col0 + col2 AS col0 FROM tab2 AS cor0
----
26
31
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1891
SELECT ALL - col1 * + col2 + cor0.col2 DIV + col2 FROM tab0 AS cor0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL - col1 * + col2 + cor0.col2 / + col2 FROM tab0 AS cor0
----
-2837
-7461
-96

query I rowsort
SELECT DISTINCT + col2 * col0 - + col2 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT - ( + 9 ) AS col2 FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT col2 - cor0.col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL - 19 + - col1 FROM tab0 AS cor0
----
-105
-110
-116

onlyif mysql # use DIV operator for integer division
query I rowsort label-1896
SELECT col2 DIV - col1 - - col2 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-1896
SELECT col2 / - col1 - - col2 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + cor0.col1 col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col1 * + 18 - col2 AS col2 FROM tab2 AS cor0
----
1036
268
531

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col1 ) * col1 col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - + col2 + - col2 + col1 AS col2 FROM tab1 AS cor0
----
-104
-179
-82

query I rowsort
SELECT - - cor0.col1 - + col1 * + col0 * + 64 FROM tab1 AS cor0
----
-40950
-4966
-66547

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1902
SELECT ALL CAST( cor0.col2 AS SIGNED ) + - cor0.col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL CAST ( cor0.col2 AS INTEGER ) + - cor0.col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - cor0.col2 * cor0.col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL + col2 * + 90 FROM tab0
----
2970
7380
90

query I rowsort
SELECT + 98 + + col2 AS col2 FROM tab2
----
124
125
136

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1906
SELECT ALL CAST( NULL AS SIGNED ) - + col2 * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1906
SELECT ALL CAST ( NULL AS INTEGER ) - + col2 * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab0.col0 - + col2 * - col2 AS col2 FROM tab0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-1908
SELECT ALL 75 - + col1 DIV + col2 FROM tab1
----
75
75
75

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL 75 - + col1 / + col2 FROM tab1
----
75
75
75

query I rowsort
SELECT cor0.col1 * 53 - col2 * - 24 * - col0 FROM tab0 AS cor0
----
-14450
-170329
4301

query I rowsort
SELECT col2 + col1 * - col2 FROM tab0 AS cor0
----
-2805
-7380
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - col2 + col0 col2 FROM tab2 AS cor0
----
11
111
58

query I rowsort
SELECT - 48 * - col2 AS col0 FROM tab2 AS cor0
----
1248
1296
1824

query I rowsort
SELECT + - col2 * - col1 + + col2 * ( + col0 ) + ( 42 ) * - col2 FROM tab2 AS cor0
----
-108
2052
2470

onlyif mysql # use DIV operator for integer division
query I rowsort label-1914
SELECT 74 DIV + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

skipif mysql # not compatible
query I rowsort label-1914
SELECT 74 / + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

query I rowsort
SELECT DISTINCT - 0 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
0

query I rowsort
SELECT + 75 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

query I rowsort
SELECT DISTINCT - col1 * ( col2 + col0 ) FROM tab1
----
-1210
-1482
-2288

query I rowsort
SELECT ALL + col2 * 80 FROM tab2 AS cor0
----
2080
2160
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT col0 * + cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
106097
1519
358956

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to d0428a2939e158628acd4bd449471d5b

query I rowsort
SELECT DISTINCT + + cor0.col2 + col0 * 24 AS col2 FROM tab2 cor0
----
1898
1934
195

query I rowsort
SELECT ALL col1 + 25 AS col2 FROM tab1 AS cor0
----
35
38
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + - 44 col0 FROM tab1 AS cor0
----
-54
-57
-70

query I rowsort
SELECT - cor0.col0 * + 96 + 26 AS col2 FROM tab0 AS cor0
----
-2278
-3334
-8518

onlyif mysql # use DIV operator for integer division
query I rowsort label-1926
SELECT - col1 + 58 DIV - col0 FROM tab1 AS cor0
----
-10
-13
-45

skipif mysql # not compatible
query I rowsort label-1926
SELECT - col1 + 58 / - col0 FROM tab1 AS cor0
----
-10
-13
-45

query I rowsort
SELECT ALL col1 + + ( + ( + col1 ) ) * - 85 AS col2 FROM tab2 AS cor0
----
-1428
-2604
-4956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1928
SELECT DISTINCT + - CAST( + col0 AS SIGNED ) * cor0.col0 col2 FROM tab2 cor0
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1928
SELECT DISTINCT + - CAST ( + col0 AS INTEGER ) * cor0.col0 col2 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL - ( 45 ) FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT DISTINCT col0 * 72 + - col1 AS col0 FROM tab2 AS cor0
----
473
5557
5671

query I rowsort
SELECT ALL - col2 - + 66 AS col1 FROM tab2 AS cor0
----
-104
-92
-93

query I rowsort
SELECT 80 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT DISTINCT col0 * 60 * - ( tab1.col1 * ( 99 ) ) FROM tab1
----
-3801600
-463320
-6177600

query I rowsort
SELECT ALL + - 11 AS col0 FROM tab2 cor0
----
-11
-11
-11

query I rowsort
SELECT col0 - + col1 * 77 FROM tab2
----
-1230
-2380
-4465

query I rowsort
SELECT ALL 56 * col2 AS col0 FROM tab1 AS cor0
----
3024
3192
5376

query I rowsort
SELECT ALL + col2 + col0 * - ( 60 + + col2 ) FROM tab0 AS cor0
----
-12556
-2134
-2199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 col1 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-1939
SELECT + col2 DIV col0 + + 67 AS col1 FROM tab1 AS cor0
----
67
68
85

skipif mysql # not compatible
query I rowsort label-1939
SELECT + col2 / col0 + + 67 AS col1 FROM tab1 AS cor0
----
67
68
85

query I rowsort
SELECT ALL + 43 + col2 + cor0.col0 * ( + col1 * col0 ) AS col0 FROM tab1 AS cor0
----
331
41060
83339

query I rowsort
SELECT - col1 * col2 * + col0 AS col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT + - col2 * 82 FROM tab2 AS cor0
----
-2132
-2214
-3116

query I rowsort
SELECT - col2 + - ( 6 ) * + col2 AS col1 FROM tab1 AS cor0
----
-378
-399
-672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - col1 + 47 + col2 * + ( + col1 ) col0 FROM tab1 AS cor0
----
1257
1529
2335

query I rowsort
SELECT ALL + + col2 + - 55 * col0 AS col2 FROM tab0 cor0
----
-1287
-1924
-4813

onlyif mysql # use DIV operator for integer division
query I rowsort label-1946
SELECT DISTINCT + cor0.col2 + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT + cor0.col2 + col2 / col0 AS col1 FROM tab1 AS cor0
----
57
72
97

query I rowsort
SELECT col2 + - cor0.col0 + cor0.col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + 2 * - col2 + - col2 FROM tab1
----
-162
-171
-288

query I rowsort
SELECT ALL col1 + - col0 * 43 FROM tab2
----
-270
-3295
-3380

query I rowsort
SELECT 35 + + tab0.col1 * 57 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 836fd59d7b8685aa1654596ef349d909

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1951
SELECT ALL - ( tab0.col0 ) * - CAST( NULL AS DECIMAL ) + - 6 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL - ( tab0.col0 ) * - CAST ( NULL AS REAL ) + - 6 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1952
SELECT DISTINCT 89 + + tab0.col0 * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1952
SELECT DISTINCT 89 + + tab0.col0 * CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1953
SELECT DISTINCT + col0 DIV ( col2 * + col0 ) + - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1224
-576
-7921

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT + col0 / ( col2 * + col0 ) + - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1224
-576
-7921

query I rowsort
SELECT ALL ( col0 ) * col0 * 6 FROM tab0 AS cor0
----
3456
47526
7350

query I rowsort
SELECT ALL cor0.col2 + 37 * col1 AS col0 FROM tab1 AS cor0
----
1016
427
577

query I rowsort
SELECT DISTINCT col1 * + 60 AS col0 FROM tab0 AS cor0
----
5160
5460
5820

query I rowsort
SELECT 2 * col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - col2 * cor0.col1 - col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT - + ( col2 ) * + cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + + col0 + col1 + + col1 AS col0 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT + tab0.col1 * - cor0.col2 + 68 FROM tab0, tab1 AS cor0
----
9 values hashing to db17bb05a7f60d11fe70b57c2538a67c

query I rowsort
SELECT col1 * 82 + col2 FROM tab1
----
1162
2186
877

query I rowsort
SELECT col1 * + tab1.col0 + col2 AS col1 FROM tab1
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-1965
SELECT DISTINCT + CAST( col0 AS SIGNED ) + - tab0.col1 + + col1 DIV - col1 FROM tab0
----
-3
-63

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + - tab0.col1 + + col1 / - col1 FROM tab0
----
-3
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-1966
SELECT + col1 DIV + col0 + - 52 col1 FROM tab0 AS cor0
----
-49
-50
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1966
SELECT + col1 / + col0 + - 52 col1 FROM tab0 AS cor0
----
-49
-50
-51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1967
SELECT ALL + CAST( NULL AS SIGNED ) * col2 * tab0.col1 + - col0 * + col2 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL + CAST ( NULL AS INTEGER ) * col2 * tab0.col1 + - col0 * + col2 * col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + col1 + + tab1.col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT 37 + col0 AS col0 FROM tab2
----
115
116
44

query I rowsort
SELECT DISTINCT + col2 * col1 + col0 - - col0 FROM tab1 AS cor0
----
1408
1410
698

query I rowsort
SELECT DISTINCT + col2 + col1 * + 74 * col0 FROM tab2 AS cor0
----
16085
340574
99420

query I rowsort
SELECT ALL col0 + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-1973
SELECT DISTINCT - col2 * 67 + + col2 DIV + col1 FROM tab2 AS cor0
----
-1742
-1809
-2544

skipif mysql # not compatible
query I rowsort label-1973
SELECT DISTINCT - col2 * 67 + + col2 / + col1 FROM tab2 AS cor0
----
-1742
-1809
-2544

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1974
SELECT - - col2 * - CAST( col0 AS SIGNED ) + + col2 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759

skipif mysql # not compatible
query I rowsort label-1974
SELECT - - col2 * - CAST ( col0 AS INTEGER ) + + col2 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL + col0 * ( 10 ) FROM tab0 cor0
----
240
350
890

query I rowsort
SELECT ALL col1 * 99 + - col0 AS col2 FROM tab0 AS cor0
----
8490
8920
9568

query I rowsort
SELECT DISTINCT - 43 * tab0.col2 FROM tab0
----
-1419
-3526
-43

query I rowsort
SELECT DISTINCT - 72 FROM tab0, tab1, tab0 AS cor0
----
-72

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab2 AS cor0, tab0 cor1
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9

query I rowsort
SELECT DISTINCT + col2 * tab0.col1 * - col2 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT tab1.col1 * - col0 * + col2 + + tab1.col1 FROM tab1
----
-36470
-4186
-99827

onlyif mysql # use DIV operator for integer division
query I rowsort label-1982
SELECT ALL col2 + col0 DIV - 75 AS col2 FROM tab0 cor0
----
1
33
81

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL col2 + col0 / - 75 AS col2 FROM tab0 cor0
----
1
33
81

query I rowsort
SELECT DISTINCT + col0 * 62 AS col0 FROM tab2 AS cor0
----
434
4836
4898

query I rowsort
SELECT + col1 * 74 AS col2 FROM tab0 cor0
----
6364
6734
7178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1986
SELECT DISTINCT + tab0.col1 * CAST( NULL AS DECIMAL ) col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1986
SELECT DISTINCT + tab0.col1 * CAST ( NULL AS REAL ) col0 FROM tab0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1987
SELECT + col1 * + CAST( - ( col0 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-1987
SELECT + col1 * + CAST ( - ( col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + + cor0.col1 - - col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + col0 * ( - col0 ) FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT ( col1 ) * + cor0.col2 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT col0 * - ( col1 ) + tab1.col1 FROM tab1
----
-1027
-52
-630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1992
SELECT ALL - col2 * + CAST( NULL AS DECIMAL ) / - 98 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1992
SELECT ALL - col2 * + CAST ( NULL AS REAL ) / - 98 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * 89 AS col2 FROM tab0
----
-2937
-7298
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + col1 * + cor0.col0 col1 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT col0 * 50 FROM tab1
----
150
3200
4000

query I rowsort
SELECT - - 94 * col1 AS col0 FROM tab2 AS cor0
----
1598
2914
5546

query I rowsort
SELECT + 43 * col2 * - col2 AS col1 FROM tab2 AS cor0
----
-29068
-31347
-62092

query I rowsort
SELECT + 79 * - col2 AS col0 FROM tab1 cor0
----
-4266
-4503
-7584

query I rowsort
SELECT - ( + col1 ) + - ( col1 ) AS col0 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2000
SELECT ALL col0 DIV + col1 + - 92 * + col2 + + col2 FROM tab1 AS cor0
----
-4914
-5181
-8730

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL col0 / + col1 + - 92 * + col2 + + col2 FROM tab1 AS cor0
----
-4914
-5181
-8730

query I rowsort
SELECT - 70 * col1 + - col2 AS col1 FROM tab2 AS cor0
----
-1228
-2197
-4156

query I rowsort
SELECT DISTINCT cor0.col2 * col1 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL 10 + + col2 * + col1 AS col2 FROM tab0 AS cor0
----
107
2848
7472

onlyif mysql # use DIV operator for integer division
query I rowsort label-2004
SELECT + + 76 + col0 + col2 DIV 88 AS col2 FROM tab1 cor0
----
140
157
79

skipif mysql # not compatible
query I rowsort label-2004
SELECT + + 76 + col0 + col2 / 88 AS col2 FROM tab1 cor0
----
140
157
79

query I rowsort
SELECT DISTINCT + col2 * - cor0.col2 + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2006
SELECT - cor0.col0 + + col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2006
SELECT - cor0.col0 + + col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * - cor0.col1 + col0 + - col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT col1 * + ( - cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL - col0 * col1 + 76 FROM tab0 AS cor0
----
-1988
-3319
-8023

query I rowsort
SELECT + 10 AS col1 FROM tab1
----
10
10
10

query I rowsort
SELECT DISTINCT - - 67 * - col2 FROM tab2 AS cor0
----
-1742
-1809
-2546

query I rowsort
SELECT ALL 56 + + col2 FROM tab1 AS cor0
----
110
113
152

query I rowsort
SELECT + + col1 + - col2 * ( ( col0 ) ) AS col0 FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL - cor0.col1 * - col1 FROM tab2 cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-2015
SELECT ALL - + col1 + + cor0.col2 DIV ( - col1 ) + - cor0.col1 FROM tab1 AS cor0
----
-25
-33
-54

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL - + col1 + + cor0.col2 / ( - col1 ) + - cor0.col1 FROM tab1 AS cor0
----
-25
-33
-54

query I rowsort
SELECT DISTINCT - col1 * col0 * - ( - col1 ) - - col1 AS col0 FROM tab2 AS cor0
----
-22814
-271459
-6696

query I rowsort
SELECT - 74 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT col0 * - 88 FROM tab0 cor0
----
-2112
-3080
-7832

query I rowsort
SELECT + - ( + 76 ) + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-109
-158
-77

query I rowsort
SELECT ALL - col1 - ( - cor0.col0 ) FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT + 7 + cor0.col0 FROM tab2 AS cor0
----
14
85
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-2022
SELECT DISTINCT col2 * col1 + col2 DIV col0 AS col2 FROM tab1 AS cor0
----
1249
1422
570

skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT col2 * col1 + col2 / col0 AS col2 FROM tab1 AS cor0
----
1249
1422
570

query I rowsort
SELECT ALL - col0 * 55 + col0 FROM tab0
----
-1296
-1890
-4806

onlyif mysql # use DIV operator for integer division
query I rowsort label-2024
SELECT ALL col0 + + col1 DIV - col2 AS col0 FROM tab0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL col0 + + col1 / - col2 AS col0 FROM tab0
----
-62
22
88

query I rowsort
SELECT ALL - ( col0 ) + col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT + - cor0.col1 * 0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + cor0.col1 * col0 + col1 * + col2 * col2 AS col0 FROM tab2 AS cor0
----
22816
25891
44486

query I rowsort
SELECT + - ( 36 ) + col1 FROM tab1 AS cor0
----
-10
-23
-26

query I rowsort
SELECT ( - col0 ) * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col1 * + 7 + - col2 FROM tab2
----
190
387
81

query I rowsort
SELECT + 37 + col2 AS col0 FROM tab1
----
133
91
94

query I rowsort
SELECT col2 * col2 + - col1 + col0 * - col0 FROM tab1 AS cor0
----
-857
2803
2881

query I rowsort
SELECT DISTINCT + 58 FROM tab0 cor0
----
58

query I rowsort
SELECT DISTINCT 30 * + tab0.col0 + - tab0.col1 * + col1 FROM tab0
----
-5611
-6676
-8359

query I rowsort
SELECT ALL - tab0.col1 + - col1 * - tab0.col0 AS col2 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT - - col2 * col0 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT - col2 * col1 + - col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab1 AS cor0 WHERE + tab0.col2 <= ( NULL )
----

query I rowsort
SELECT ALL 48 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT ALL + 29 * col1 FROM tab1 AS cor0
----
290
377
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 * - col1 col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT col1 + + ( + col0 * col1 ) + tab1.col2 FROM tab1
----
1149
158
707

query I rowsort
SELECT DISTINCT col2 * - col1 + + col1 + - col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - tab1.col2 * 25 + col0 * col1 + - ( + col1 ) AS col0 FROM tab1
----
-1298
-1373
-795

query I rowsort
SELECT DISTINCT - col1 * col2 - col0 AS col1 FROM tab2
----
-1612
-725
-844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2046
SELECT ALL cor0.col2 * + CAST( NULL AS SIGNED ) * ( + col1 * - col1 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL cor0.col2 * + CAST ( NULL AS INTEGER ) * ( + col1 * - col1 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2047
SELECT ALL col2 DIV - 60 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2047
SELECT ALL col2 / - 60 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 31 FROM tab1, tab0 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT ALL 69 * + 7 AS col1 FROM tab1 cor0
----
483
483
483

query I rowsort
SELECT ALL + cor0.col0 + - ( - cor0.col0 ) AS col0 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-2051
SELECT + 45 DIV col0 col2 FROM tab1 cor0
----
0
0
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2051
SELECT + 45 / col0 col2 FROM tab1 cor0
----
0
0
15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2052
SELECT + CAST( 54 AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
1674
3186
918

skipif mysql # not compatible
query I rowsort label-2052
SELECT + CAST ( 54 AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
1674
3186
918

onlyif mysql # use DIV operator for integer division
query I rowsort label-2053
SELECT 62 + col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
62
62
65

skipif mysql # not compatible
query I rowsort label-2053
SELECT 62 + col2 / + col0 AS col1 FROM tab2 AS cor0
----
62
62
65

query I rowsort
SELECT - 73 + col0 FROM tab2 AS cor0
----
-66
5
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2055
SELECT ALL + + 79 DIV + 57 AS col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL + + 79 / + 57 AS col0 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT - col1 * + col1 + + col2 AS col0 FROM tab1 cor0
----
-43
-622
-73

query I rowsort
SELECT + + 31 + + cor0.col2 FROM tab1 AS cor0
----
127
85
88

query I rowsort
SELECT DISTINCT + 82 + 56 FROM tab0 AS cor0
----
138

query I rowsort
SELECT DISTINCT - 96 AS col2 FROM tab2, tab2 AS cor0
----
-96

query I rowsort
SELECT col1 + col1 + col1 * - tab0.col1 FROM tab0
----
-7224
-8099
-9215

query I rowsort
SELECT col1 + 66 AS col1 FROM tab1
----
76
79
92

query I rowsort
SELECT ALL - 92 FROM tab0, tab1 cor0, tab1 cor1
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 + + col0 - - tab2.col1 * 15 col1 FROM tab2
----
-1009
-3639
255

query I rowsort
SELECT col1 - 52 FROM tab1
----
-26
-39
-42

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col2 AS REAL ) * + col0 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2066
SELECT + 17 DIV col1 - + col0 AS col2 FROM tab1 cor0
----
-3
-63
-79

skipif mysql # not compatible
query I rowsort label-2066
SELECT + 17 / col1 - + col0 AS col2 FROM tab1 cor0
----
-3
-63
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2067
SELECT - 75 DIV 37 AS col1 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2067
SELECT - 75 / 37 AS col1 FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2068
SELECT - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2068
SELECT - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col1 + + cor0.col1 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + col2 + 99 * - col1 FROM tab0 AS cor0
----
-8481
-8927
-9602

query I rowsort
SELECT ALL + cor0.col2 * ( col0 * + col1 ) FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2072
SELECT cor0.col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2072
SELECT cor0.col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 + - 48 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9aca838dd81f22c8a0b07a74e40b0937

query I rowsort
SELECT 46 - col0 FROM tab0 cor0
----
-43
11
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL - col1 * - ( col0 ) FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT 17 * col2 FROM tab0 AS cor0
----
1394
17
561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + + 62 - col0 * - 54 col0 FROM tab2 AS cor0
----
4333
4345
471

query I rowsort
SELECT ALL + 48 * col0 AS col0 FROM tab1 AS cor0
----
144
3072
3840

query I rowsort
SELECT ALL - - 90 + col1 FROM tab2 AS cor0
----
107
121
149

query I rowsort
SELECT DISTINCT col0 * - col1 * 78 FROM tab2 cor0
----
-104754
-16926
-358956

query I rowsort
SELECT DISTINCT 77 + + cor2.col2 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
103
104
115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 38 * col0 col0 FROM tab0 AS cor0
----
-1329
-3300
-879

query I rowsort
SELECT + col1 * 15 AS col1 FROM tab0 AS cor0
----
1290
1365
1455

onlyif mysql # use DIV operator for integer division
query I rowsort label-2085
SELECT DISTINCT - - cor0.col1 DIV 25 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT - - cor0.col1 / 25 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT - col0 * 61 FROM tab0 AS cor0
----
-1464
-2135
-5429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col0 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT ALL - 5 * col1 FROM tab2
----
-155
-295
-85

query I rowsort
SELECT cor0.col0 * 83 FROM tab1, tab0 AS cor0
----
9 values hashing to f980d4e2f74c8c64695d98b0a1ffc6ce

query I rowsort
SELECT DISTINCT - + cor0.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2091
SELECT + - col1 * + col1 + col1 DIV col1 FROM tab1 AS cor0
----
-168
-675
-99

skipif mysql # not compatible
query I rowsort label-2091
SELECT + - col1 * + col1 + col1 / col1 FROM tab1 AS cor0
----
-168
-675
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-2092
SELECT + + col1 DIV col1 + col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-2092
SELECT + + col1 / col1 + col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT DISTINCT col1 * ( + tab2.col1 ) AS col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT + ( - 70 ) * - col1 * + col1 AS col0 FROM tab1 AS cor0
----
11830
47320
7000

query I rowsort
SELECT ALL - col1 + + 98 + - col1 AS col2 FROM tab1 AS cor0
----
46
72
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2096
SELECT ALL + - CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL + - CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2097
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT - CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 38 ) col1 FROM tab2, tab2 AS cor0
----
38

query I rowsort
SELECT + 45 + + tab1.col0 AS col2 FROM tab1
----
109
125
48

query I rowsort
SELECT + col2 * col0 * + 0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + 95 + col0 * 7 FROM tab2 AS cor0
----
144
641
648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2102
SELECT + col0 / - cor0.col0 + CAST( NULL AS SIGNED ) * 78 - - col2 / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2102
SELECT + col0 / - cor0.col0 + CAST ( NULL AS INTEGER ) * 78 - - col2 / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + col1 * col0 AS col0 FROM tab0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-2104
SELECT CAST( - ( col0 ) AS SIGNED ) DIV + 45 + + 12 + - col2 AS col0 FROM tab1
----
-42
-46
-85

skipif mysql # not compatible
query I rowsort label-2104
SELECT CAST ( - ( col0 ) AS INTEGER ) / + 45 + + 12 + - col2 AS col0 FROM tab1
----
-42
-46
-85

query I rowsort
SELECT ALL 94 + col1 FROM tab0
----
180
185
191

query I rowsort
SELECT + - cor0.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 + 11 + col0 col0 FROM tab0 AS cor0
----
100
35
46

query I rowsort
SELECT ALL + col0 + tab2.col2 + col1 AS col0 FROM tab2
----
134
163
65

query I rowsort
SELECT ALL - tab2.col0 * - col0 + tab2.col2 FROM tab2
----
6110
6279
76

query I rowsort
SELECT ALL - col0 + col1 * col1 FROM tab0
----
7372
8192
9374

query I rowsort
SELECT ALL col1 * col1 + col2 + col0 * col1 * - col0 AS col2 FROM tab2
----
-105770
-355449
-531

query I rowsort
SELECT - col2 + col1 * - col0 FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL - tab0.col1 + + tab0.col2 AS col0 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT - - col2 + col1 + col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT - - col0 * col2 + - col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 * + col1 col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL + cor0.col2 * cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to e1120e7b687b32270ef70393236e7341

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * + col1 col1 FROM tab2 AS cor0
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-2119
SELECT DISTINCT col2 DIV - col2 + col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT col2 / - col2 + col1 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT ALL col2 + col1 * col0 AS col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT + + cor0.col2 * col0 + col1 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-2122
SELECT DISTINCT + col0 DIV col0 col1 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2122
SELECT DISTINCT + col0 / col0 col1 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 * col2 col1 FROM tab2
----
-22599
-24548
-39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-2124
SELECT ALL + - cor0.col2 DIV + col1 col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL + - cor0.col2 / + col1 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col2 * col2 + + col0 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2126
SELECT - + col1 * col0 + col0 DIV - col1 + col0 * + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-1540
-162787
-238505

skipif mysql # not compatible
query I rowsort label-2126
SELECT - + col1 * col0 + col0 / - col1 + col0 * + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-1540
-162787
-238505

query I rowsort
SELECT 30 + col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
65
7328
822

query I rowsort
SELECT - - col2 * + col0 + + col2 AS col2 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT ALL + 55 * cor0.col2 FROM tab2 AS cor0
----
1430
1485
2090

query I rowsort
SELECT + + col1 - col0 * - cor0.col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL - - col2 + col2 * col2 * col0 AS col1 FROM tab1 cor0
----
207993
737376
8802

query I rowsort
SELECT ALL - 46 + - col1 FROM tab1 AS cor0
----
-56
-59
-72

query I rowsort
SELECT - + cor0.col1 * col2 - + col0 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL + col0 * col1 + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT 13 * col2 + - col2 FROM tab2 AS cor0
----
312
324
456

query I rowsort
SELECT - col0 + col1 * col1 * - col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-22872
-271570
-6707

query I rowsort
SELECT DISTINCT - col2 + col2 + cor0.col2 * + col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT col1 + - cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT ALL - col2 + - col1 * - cor0.col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 + cor0.col2 * + cor0.col2 FROM tab0 cor0
----
14823
3153
3396

query I rowsort
SELECT ALL - tab1.col2 + - col2 - col1 * tab1.col2 FROM tab1
----
-1440
-1512
-684

onlyif mysql # use DIV operator for integer division
query I rowsort label-2142
SELECT ALL 87 DIV col1 AS col0 FROM tab2
----
1
2
5

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL 87 / col1 AS col0 FROM tab2
----
1
2
5

query I rowsort
SELECT DISTINCT tab0.col1 * + col0 + col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT NULL < col1
----

query I rowsort
SELECT - col2 * col0 + col1 * + col1 AS col0 FROM tab2
----
-2713
1453
772

onlyif mysql # use DIV operator for integer division
query I rowsort label-2146
SELECT DISTINCT - col2 DIV col1 + + col1 AS col1 FROM tab2
----
15
31
59

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT - col2 / col1 + + col1 AS col1 FROM tab2
----
15
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-2147
SELECT DISTINCT - col2 DIV - col1 + + col1 AS col2 FROM tab2
----
19
31
59

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT - col2 / - col1 + + col1 AS col2 FROM tab2
----
19
31
59

query I rowsort
SELECT ALL col2 * - col1 + + tab0.col0 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT tab2.col1 * col2 * - col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - col2 + + col0 - col2 FROM tab0
----
-42
-75
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col0 + + col0 col0 FROM tab1
----
138
173
32

query I rowsort
SELECT ALL col1 + - col1 * col1 + + col2 FROM tab0
----
-7277
-8108
-9311

query I rowsort
SELECT + col0 + + col1 * + col0 + + col1 * col0 AS col2 FROM tab0 WHERE + col1 * - col2 - col0 BETWEEN col2 / col2 AND col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 - - col2 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT - tab0.col2 * - col2 + - col2 AS col0 FROM tab0
----
0
1056
6642

onlyif mysql # use DIV operator for integer division
query I rowsort label-2156
SELECT DISTINCT - col0 DIV tab1.col2 col1 FROM tab1
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT - col0 / tab1.col2 col1 FROM tab1
----
-1
0

query I rowsort
SELECT DISTINCT + col2 + col2 - - col2 FROM tab0
----
246
3
99

query III rowsort
SELECT * FROM tab2 WHERE - col1 + - col2 < NULL
----

query I rowsort
SELECT ALL + col1 + tab1.col1 * + col2 AS col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT DISTINCT tab1.col2 * tab1.col0 * - col1 AS col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + col1 * - col0 + col1 AS col2 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT col2 + + tab1.col2 * col1 * col1 FROM tab1
----
16320
36558
5757

onlyif mysql # use DIV operator for integer division
query I rowsort label-2163
SELECT + + col1 DIV col0 + col1 AS col0 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-2163
SELECT + + col1 / col0 + col1 AS col0 FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT - col1 * + tab1.col1 AS col1 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND col1 + + col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2165
SELECT col0 * + col1 + - col2 + - col0 DIV - col2 FROM tab0
----
2031
3429
8018

skipif mysql # not compatible
query I rowsort label-2165
SELECT col0 * + col1 + - col2 + - col0 / - col2 FROM tab0
----
2031
3429
8018

onlyif mysql # use DIV operator for integer division
query I rowsort label-2166
SELECT DISTINCT col0 * tab0.col1 DIV col0 + - col0 FROM tab0
----
2
62

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT col0 * tab0.col1 / col0 + - col0 FROM tab0
----
2
62

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT ( NULL ) IN ( + col2 * tab0.col1 )
----

query I rowsort
SELECT ALL col1 * + col1 * col1 + col0 * - col1 AS col2 FROM tab2
----
200777
29574
3570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * tab0.col2 * col2 col2 FROM tab0
----
611884
93654
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND + col2 * + col2 + + col2 * - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 + + col2 <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2172
SELECT DISTINCT tab2.col0 + col2 DIV + col1 + - col1 col2 FROM tab2
----
-24
19
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2172
SELECT DISTINCT tab2.col0 + col2 / + col1 + - col1 col2 FROM tab2
----
-24
19
64

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT NULL > ( col0 / - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2174
SELECT ALL - col1 - - cor0.col0 DIV col2 col0 FROM tab0 AS cor0
----
-62
-86
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2174
SELECT ALL - col1 - - cor0.col0 / col2 col0 FROM tab0 AS cor0
----
-62
-86
-90

query I rowsort
SELECT ALL - tab0.col1 + col1 + col2 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT col2 - - col1 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - col0 * + cor0.col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - col2 < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2179
SELECT ALL - col0 * col0 - - col2 DIV col1 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL - col0 * col0 - - col2 / col1 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + col1 NOT IN ( col0 * + col1 + col1 )
----

query I rowsort
SELECT - - 47 * + col2 * 93 FROM tab1 AS cor0
----
236034
249147
419616

query I rowsort
SELECT DISTINCT 78 AS col1 FROM tab1, tab0 cor0, tab1 AS cor1
----
78

query I rowsort
SELECT - 1 * + col0 + - 48 AS col2 FROM tab0 AS cor0
----
-137
-72
-83

query I rowsort
SELECT ALL - cor0.col2 FROM tab0, tab1, tab0 AS cor0, tab0 AS cor1
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query I rowsort
SELECT - cor0.col2 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - - cor0.col1 * + col1 + + col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT + 46 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 086e8f56201fbf4c0ce74087e710811d

query I rowsort
SELECT DISTINCT col1 + - col1 - col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + col0 * - col1 * + col1 + col0 - - cor0.col1 FROM tab2 cor0
----
-22735
-271381
-6689

query I rowsort
SELECT ALL col2 * + col0 + col1 * - col0 FROM tab0 AS cor0
----
-1272
-3360
-801

query I rowsort
SELECT ALL + col1 + + 61 * col0 * - col0 FROM tab1
----
-249846
-390387
-523

query I rowsort
SELECT + 92 AS col0 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

onlyif mysql # use DIV operator for integer division
query I rowsort label-2193
SELECT ALL - col0 DIV - 12 AS col1 FROM tab1 AS cor0
----
0
5
6

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - col0 / - 12 AS col1 FROM tab1 AS cor0
----
0
5
6

query I rowsort
SELECT ALL ( 32 ) FROM tab2, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # use DIV operator for integer division
query I rowsort label-2195
SELECT - col2 DIV CAST( + 59 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2195
SELECT - col2 / CAST ( + 59 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col2 + cor0.col0 * + col1 FROM tab1 cor0
----
24
583
944

query I rowsort
SELECT - cor0.col2 * - 78 FROM tab2, tab2 AS cor0
----
9 values hashing to 95d1109847e67be229d50cd76253dc34

query I rowsort
SELECT ALL - col0 + ( col0 ) * - col0 FROM tab2 cor0
----
-56
-6162
-6320

query I rowsort
SELECT ALL 15 + cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 0291fa0421bf18712af339e6997789e9

query I rowsort
SELECT DISTINCT + - cor0.col1 * ( col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - + col1 + + 20 * - col0 FROM tab1 AS cor0
----
-1290
-1613
-86

query I rowsort
SELECT DISTINCT cor0.col1 + + 32 + col2 FROM tab0 AS cor0
----
130
151
205

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 - 86 col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + - cor0.col0 * col0 * col1 + col0 AS col1 FROM tab2 AS cor0
----
-106018
-1512
-358878

query I rowsort
SELECT ALL col0 * + col2 - - col2 FROM tab2 cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT + + 58 + - col0 FROM tab0 AS cor0
----
-31
23
34

query I rowsort
SELECT - 44 + col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
34
596
996

query I rowsort
SELECT DISTINCT - 91 * + 48 AS col2 FROM tab2 AS cor0
----
-4368

query I rowsort
SELECT ALL - - ( 21 ) * + col1 FROM tab0 cor0
----
1806
1911
2037

query I rowsort
SELECT ALL + cor0.col1 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL - col2 + 94 AS col0 FROM tab1 AS cor0
----
-2
37
40

query I rowsort
SELECT DISTINCT + + ( col0 ) * - col0 + + col2 * + cor0.col1 FROM tab2 AS cor0
----
-4550
-5595
788

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2213
SELECT ALL - + CAST( NULL AS SIGNED ) - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL - + CAST ( NULL AS INTEGER ) - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * 82 + - col2 FROM tab1 AS cor0
----
2078
763
970

query I rowsort
SELECT col0 + + col2 * - 4 + tab2.col0 FROM tab2
----
-94
52
6

query I rowsort
SELECT ALL 12 * cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 4d11d73bea933b26450aca686f453b51

query I rowsort
SELECT - ( col0 ) * col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + 20 + + cor0.col2 * col1 FROM tab2 AS cor0
----
1554
666
857

query I rowsort
SELECT tab2.col2 * - col2 * col2 FROM tab2
----
-17576
-19683
-54872

query I rowsort
SELECT DISTINCT + 68 * cor0.col1 FROM tab2, tab2 AS cor0
----
1156
2108
4012

onlyif mysql # use DIV operator for integer division
query I rowsort label-2221
SELECT - 36 DIV col0 + + col1 * + col0 AS col1 FROM tab1 AS cor0
----
1040
640
66

skipif mysql # not compatible
query I rowsort label-2221
SELECT - 36 / col0 + + col1 * + col0 AS col1 FROM tab1 AS cor0
----
1040
640
66

query I rowsort
SELECT + col2 + cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT 83 * - col0 FROM tab1 AS cor0
----
-249
-5312
-6640

query I rowsort
SELECT - + ( 29 ) + + col2 AS col1 FROM tab2 AS cor0
----
-2
-3
9

query I rowsort
SELECT ( + col2 ) + - cor0.col1 + - 23 AS col0 FROM tab2 AS cor0
----
-2
-27
-56

query I rowsort
SELECT - col1 + - cor0.col2 + + col0 FROM tab2 AS cor0
----
-51
-7
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2227
SELECT ALL CAST( 56 AS SIGNED ) FROM tab2
----
56
56
56

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL CAST ( 56 AS INTEGER ) FROM tab2
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) * tab0.col0 * + col1 col1 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT - 99 * 54 FROM tab1
----
-5346
-5346
-5346

query I rowsort
SELECT - col1 + - col0 * 27 * - col0 FROM tab1 AS cor0
----
110582
172787
217

query I rowsort
SELECT ALL - 81 * cor0.col1 AS col1 FROM tab2 cor0
----
-1377
-2511
-4779

query I rowsort
SELECT col2 * col1 * col2 AS col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT ALL - col1 * ( col1 * - col1 ) FROM tab1 cor0
----
1000
17576
2197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - ( + col0 ) col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * - 73 + col0 FROM tab1 AS cor0
----
-1895
-666
-869

query I rowsort
SELECT + col0 * + ( col1 ) * + col0 + col2 FROM tab1 AS cor0
----
288
41017
83296

query I rowsort
SELECT col2 * - 53 AS col2 FROM tab0 cor0
----
-1749
-4346
-53

query I rowsort
SELECT - col1 * + 67 AS col1 FROM tab0
----
-5762
-6097
-6499

query I rowsort
SELECT - 2 * - col1 + + col0 AS col2 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT ALL cor1.col1 + cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b8b62762005dc0d7237145d0538edb34

query I rowsort
SELECT col1 * 68 + + tab1.col1 + col0 AS col0 FROM tab1
----
1797
754
977

query I rowsort
SELECT DISTINCT tab0.col2 + + col2 + - col2 * col2 FROM tab0
----
-1023
-6560
1

query I rowsort
SELECT DISTINCT - cor0.col0 + + cor0.col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT + col0 * col2 - - col2 AS col2 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-2245
SELECT col1 DIV + 64 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2245
SELECT col1 / + 64 AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT 53 * + col2 AS col0 FROM tab0
----
1749
4346
53

query I rowsort
SELECT 4 * col2 AS col2 FROM tab0
----
132
328
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2248
SELECT DISTINCT + col2 * cor0.col0 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
0
80
9

skipif mysql # not compatible
query I rowsort label-2248
SELECT DISTINCT + col2 * cor0.col0 / cor0.col1 AS col2 FROM tab0 AS cor0
----
0
80
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2249
SELECT cor0.col0 DIV + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2249
SELECT cor0.col0 / + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2250
SELECT DISTINCT - col1 * col2 DIV col0 AS col1 FROM tab1
----
-15
-468
-8

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT - col1 * col2 / col0 AS col1 FROM tab1
----
-15
-468
-8

query I rowsort
SELECT 22 - + col0 * + ( - col2 ) * + col2 FROM tab0
----
26158
57
598458

onlyif mysql # use DIV operator for integer division
query I rowsort label-2252
SELECT ALL 43 DIV col1 + col0 * col1 AS col0 FROM tab2
----
1345
218
4602

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL 43 / col1 + col0 * col1 AS col0 FROM tab2
----
1345
218
4602

query I rowsort
SELECT ( - tab0.col0 ) * + ( col2 ) AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT 93 + - tab2.col0 - - col0 FROM tab2
----
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2255
SELECT + col2 + + CAST( ( + col2 ) * 89 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2340
2430
3420

skipif mysql # not compatible
query I rowsort label-2255
SELECT + col2 + + CAST ( ( + col2 ) * 89 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2340
2430
3420

query I rowsort
SELECT + - col1 * + cor0.col0 + 60 * cor0.col1 FROM tab0 cor0
----
-2639
2425
3096

query I rowsort
SELECT - cor0.col0 + 78 FROM tab1 AS cor0
----
-2
14
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-2258
SELECT - col0 DIV col1 + + cor0.col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2258
SELECT - col0 / col1 + + cor0.col0 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col1 + + col1 col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - + col2 * - ( 36 ) + col0 AS col0 FROM tab1 AS cor0
----
1947
2116
3536

onlyif mysql # use DIV operator for integer division
query I rowsort label-2261
SELECT ALL - - col0 DIV + ( cor0.col2 ) FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL - - col0 / + ( cor0.col2 ) FROM tab1 cor0
----
0
0
1

query I rowsort
SELECT - 14 + col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1054
-654
-92

query I rowsort
SELECT - + 33 * + col1 AS col0 FROM tab2 AS cor0
----
-1023
-1947
-561

onlyif mysql # use DIV operator for integer division
query I rowsort label-2264
SELECT + 25 DIV 64 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2264
SELECT + 25 / 64 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2265
SELECT DISTINCT - ( + col0 ) + + CAST( NULL AS SIGNED ) * - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2265
SELECT DISTINCT - ( + col0 ) + + CAST ( NULL AS INTEGER ) * - col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 61 AS col1 FROM tab0 AS cor0
----
61
61
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-2267
SELECT - 30 DIV + cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2267
SELECT - 30 / + cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 50 * cor0.col1 FROM tab1, tab2 cor0
----
1550
2950
850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 52 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT ( - col0 + col0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 38 + + col0 + 37 FROM tab1 AS cor0
----
139
155
78

query I rowsort
SELECT ALL + ( - 39 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT - cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT - - col1 + col1 AS col1 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT DISTINCT + - col0 + - col2 * col2 * + col2 FROM tab1 AS cor0
----
-157467
-185257
-884816

query I rowsort
SELECT DISTINCT + col2 * col2 + - cor0.col0 + - col1 AS col2 FROM tab2 AS cor0
----
1348
539
691

query I rowsort
SELECT ALL + + col1 + + col1 * + 15 AS col2 FROM tab1 AS cor0
----
160
208
416

query I rowsort
SELECT DISTINCT 9 + col1 + - ( col1 + - col2 ) FROM tab2 cor0
----
35
36
47

query I rowsort
SELECT ALL 38 * - col2 AS col0 FROM tab2 AS cor0
----
-1026
-1444
-988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2280
SELECT DISTINCT + col0 * col1 + + CAST( NULL AS DECIMAL ) / + col2 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT + col0 * col1 + + CAST ( NULL AS REAL ) / + col2 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 49 + col0 FROM tab1 AS cor0
----
113
129
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 36 + col1 col2 FROM tab1 AS cor0
----
46
49
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 96 * col2 + col1 col1 FROM tab1 cor0
----
279962
311914
884749

query I rowsort
SELECT - col1 + 71 * col2 FROM tab2 AS cor0
----
1787
1886
2681

query I rowsort
SELECT - col2 * + 55 + cor0.col1 FROM tab1 AS cor0
----
-2944
-3125
-5267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 68 col0 FROM tab2 AS cor0
----
106
94
95

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab0 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 76903cfa3a27727fd541d9dcdf362a4c

query I rowsort
SELECT ALL - col1 + + 42 AS col1 FROM tab2 cor0
----
-17
11
25

query I rowsort
SELECT DISTINCT - - cor0.col0 * cor0.col0 - col0 * + col0 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + cor0.col0 * + col0 * col1 FROM tab0 AS cor0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-2291
SELECT ALL - + col1 + col1 DIV + col0 + - col0 AS col2 FROM tab2 AS cor0
----
-137
-34
-96

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL - + col1 + col1 / + col0 + - col0 AS col2 FROM tab2 AS cor0
----
-137
-34
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2292
SELECT ALL - 24 * col2 * - col2 - + col1 DIV 69 AS col0 FROM tab0 AS cor0
----
161375
23
26135

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL - 24 * col2 * - col2 - + col1 / 69 AS col0 FROM tab0 AS cor0
----
161375
23
26135

query I rowsort
SELECT DISTINCT - col1 + col0 * - col2 * ( col2 * col2 ) AS col1 FROM tab0 AS cor0
----
-132
-49071843
-862574

query I rowsort
SELECT ALL 76 * 66 FROM tab2, tab0 AS cor0
----
9 values hashing to 197090422f4f7e9b4d11dbf5ff4d16c5

query I rowsort
SELECT DISTINCT - 25 * 72 AS col1 FROM tab0 AS cor0
----
-1800

onlyif mysql # use DIV operator for integer division
query I rowsort label-2296
SELECT DISTINCT + ( 31 ) DIV tab2.col0 AS col1 FROM tab2
----
0
4

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT + ( 31 ) / tab2.col0 AS col1 FROM tab2
----
0
4

query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab1
----
34

query I rowsort
SELECT ALL + 79 * col2 * col2 FROM tab1
----
230364
256671
728064

query I rowsort
SELECT DISTINCT - - ( - col2 ) + + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2300
SELECT DISTINCT CAST( NULL AS SIGNED ) + - cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2301
SELECT ALL - 89 DIV + col2 - col2 AS col0 FROM tab1 AS cor0
----
-55
-58
-96

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL - 89 / + col2 - col2 AS col0 FROM tab1 AS cor0
----
-55
-58
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2302
SELECT CAST( NULL AS DECIMAL ) + - 47 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2302
SELECT CAST ( NULL AS REAL ) + - 47 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * col0 + 51 + + col0 * 69 FROM tab1 AS cor0
----
11971
267
8563

query I rowsort
SELECT + - col1 * + ( 50 ) + - col1 + + col2 FROM tab2 AS cor0
----
-1554
-2983
-829

query I rowsort
SELECT ALL - - col0 * 33 + - col1 + + col2 AS col0 FROM tab1 AS cor0
----
127
2159
2723

onlyif mysql # use DIV operator for integer division
query I rowsort label-2306
SELECT + - col1 - + ( col2 + col1 ) DIV + 57 col0 FROM tab0 AS cor0
----
-88
-94
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2306
SELECT + - col1 - + ( col2 + col1 ) / + 57 col0 FROM tab0 AS cor0
----
-88
-94
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2307
SELECT DISTINCT tab2.col0 + - CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT tab2.col0 + - CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
NULL

query I rowsort
SELECT + cor0.col0 * col0 + col1 * + cor0.col0 + 63 FROM tab1 AS cor0
----
150
4799
7503

query I rowsort
SELECT ALL + - 65 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT - - ( - 72 ) * col0 AS col0 FROM tab0 AS cor0
----
-1728
-2520
-6408

query I rowsort
SELECT + 95 * - cor0.col2 FROM tab2 AS cor0
----
-2470
-2565
-3610

query I rowsort
SELECT col2 * col2 + - 97 * 97 FROM tab1 AS cor0
----
-193
-6160
-6493

query I rowsort
SELECT ALL + 18 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595

query I rowsort
SELECT + 30 * - col2 - + cor0.col2 FROM tab0 AS cor0
----
-1023
-2542
-31

query I rowsort
SELECT + 40 * col2 * + ( col0 * tab0.col0 + + ( - 70 ) ) AS col2 FROM tab0
----
25751280
46200
667920

query I rowsort
SELECT ALL - col2 * - ( col2 ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + col0 + - ( 38 + - col0 ) FROM tab1 AS cor0
----
-32
122
90

query I rowsort
SELECT + tab1.col1 + ( + tab1.col2 ) FROM tab1
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( - col1 ) * - col1 * col1 col2 FROM tab0
----
636142
753662
912770

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2320
SELECT + col0 * CAST( 30 AS SIGNED ) + + col1 AS col1 FROM tab1 AS cor0
----
116
1930
2413

skipif mysql # not compatible
query I rowsort label-2320
SELECT + col0 * CAST ( 30 AS INTEGER ) + + col1 AS col1 FROM tab1 AS cor0
----
116
1930
2413

query I rowsort
SELECT ALL - col0 * - 15 AS col0 FROM tab0 AS cor0
----
1335
360
525

query I rowsort
SELECT DISTINCT 55 * - col0 FROM tab2
----
-385
-4290
-4345

query I rowsort
SELECT 19 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 cor2
----
81 values hashing to 39241ace4c29d5a55052e1665aa36823

query I rowsort
SELECT + ( - col2 ) * + 39 AS col1 FROM tab0 AS cor0
----
-1287
-3198
-39

query I rowsort
SELECT DISTINCT + 42 + + col0 * col1 AS col1 FROM tab0 AS cor0
----
2106
3437
8141

onlyif mysql # use DIV operator for integer division
query I rowsort label-2326
SELECT DISTINCT + 74 + - col1 DIV col0 AS col2 FROM tab0 AS cor0
----
71
72
73

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT + 74 + - col1 / col0 AS col2 FROM tab0 AS cor0
----
71
72
73

query I rowsort
SELECT ALL ( - 12 ) + col0 FROM tab0 AS cor0
----
12
23
77

query I rowsort
SELECT 84 + - col0 AS col0 FROM tab1 AS cor0
----
20
4
81

query I rowsort
SELECT col0 + + 76 * 81 FROM tab2
----
6163
6234
6235

query I rowsort
SELECT - 58 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query I rowsort
SELECT DISTINCT - - cor0.col2 * 65 AS col0 FROM tab1 cor0
----
3510
3705
6240

query I rowsort
SELECT 40 + col1 AS col0 FROM tab1 AS cor0
----
50
53
66

query I rowsort
SELECT tab2.col2 * - col2 + col2 FROM tab2
----
-1406
-650
-702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2334
SELECT col2 + + 91 + col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT col2 + + 91 + col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2335
SELECT - CAST( 78 AS SIGNED ) + col2 DIV 32 + - col0 * + col1 FROM tab2
----
-1420
-295
-4680

skipif mysql # not compatible
query I rowsort label-2335
SELECT - CAST ( 78 AS INTEGER ) + col2 / 32 + - col0 * + col1 FROM tab2
----
-1420
-295
-4680

query I rowsort
SELECT + 58 + col1 AS col0 FROM tab0 AS cor0
----
144
149
155

onlyif mysql # use DIV operator for integer division
query I rowsort label-2337
SELECT ALL 75 DIV + col1 + ( + col0 ) AS col0 FROM tab2 AS cor0
----
79
83
9

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL 75 / + col1 + ( + col0 ) AS col0 FROM tab2 AS cor0
----
79
83
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2338
SELECT + CAST( + col1 AS SIGNED ) + + col2 AS col1 FROM tab2
----
55
58
85

skipif mysql # not compatible
query I rowsort label-2338
SELECT + CAST ( + col1 AS INTEGER ) + + col2 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL tab0.col2 * + col0 - - col1 * + col1 FROM tab0
----
15579
8188
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-2340
SELECT ALL + col2 DIV + col2 + col1 DIV col0 FROM tab1
----
1
1
9

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL + col2 / + col2 + col1 / col0 FROM tab1
----
1
1
9

query I rowsort
SELECT - - cor0.col2 - + cor0.col0 * col1 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT col2 + ( col0 ) * 7 AS col2 FROM tab1
----
505
656
75

query I rowsort
SELECT DISTINCT 10 + 80 - col2 AS col2 FROM tab1
----
-6
33
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2344
SELECT DISTINCT + col1 + - col2 + + col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2344
SELECT DISTINCT + col1 + - col2 + + col0 * CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - 74 * tab2.col1 FROM tab2
----
-1258
-2294
-4366

query I rowsort
SELECT DISTINCT ( 37 ) FROM tab0, tab2, tab0 cor0
----
37

query I rowsort
SELECT - ( + 60 ) FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1

query I rowsort
SELECT ALL + ( + 9 ) + + tab1.col1 AS col2 FROM tab1
----
19
22
35

query I rowsort
SELECT - cor0.col2 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT ALL col1 * + col1 - 28 FROM tab1 AS cor0
----
141
648
72

query I rowsort
SELECT DISTINCT + - col2 * col2 + + 6 FROM tab1 AS cor0
----
-2910
-3243
-9210

query I rowsort
SELECT DISTINCT - + col1 + 18 AS col2 FROM tab2 AS cor0
----
-13
-41
1

query I rowsort
SELECT ALL - cor0.col2 * 43 - + cor0.col1 FROM tab0 AS cor0
----
-140
-1505
-3617

query I rowsort
SELECT + - col1 + ( 2 ) FROM tab0 AS cor0
----
-84
-89
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - cor0.col2 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + 28 * + col1 + tab0.col1 AS col1 FROM tab0
----
2494
2639
2813

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to 6dd6930689f177711fda407b5ce0d072

query I rowsort
SELECT ALL + - col0 * + col1 + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT + cor0.col1 * - col1 + - 24 FROM tab2 AS cor0
----
-313
-3505
-985

query I rowsort
SELECT ALL col1 - - 20 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1054
-1130
-1907

query I rowsort
SELECT DISTINCT - - cor0.col0 + + 28 FROM tab2 AS cor0
----
106
107
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2362
SELECT - - cor0.col1 + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT - - cor0.col1 + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT - col0 + col2 * + ( col1 ) AS col1 FROM tab0
----
2814
62
7373

query I rowsort
SELECT DISTINCT + 46 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
46

query I rowsort
SELECT ALL col1 * ( + col0 + col2 * - col1 ) FROM tab0
----
-242004
-6014
-670943

query I rowsort
SELECT DISTINCT + col1 * 59 AS col0 FROM tab0 cor0
----
5074
5369
5723

query I rowsort
SELECT ALL col0 * 1 * 27 AS col0 FROM tab1 AS cor0
----
1728
2160
81

query I rowsort
SELECT DISTINCT - col0 * + 85 FROM tab1 AS cor0
----
-255
-5440
-6800

query I rowsort
SELECT col1 * + 94 AS col1 FROM tab0
----
8084
8554
9118

query I rowsort
SELECT ALL - col0 * - col1 * + col1 FROM tab2 cor0
----
22831
271518
6727

query I rowsort
SELECT 43 AS col2 FROM tab1 cor0
----
43
43
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-2373
SELECT DISTINCT - 29 DIV + col0 col1 FROM tab0 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT - 29 / + col0 col1 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT ALL - ( cor0.col1 ) * - col0 * - cor0.col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT - ( col1 ) * col2 * col0 + + cor0.col2 * + col1 AS col1 FROM tab0 AS cor0
----
-3298
-65274
-656656

query I rowsort
SELECT DISTINCT + + col2 * - 96 AS col2 FROM tab1 cor0
----
-5184
-5472
-9216

query I rowsort
SELECT DISTINCT - - 77 + cor0.col1 AS col2 FROM tab1 AS cor0
----
103
87
90

query I rowsort
SELECT ALL + 65 * + cor0.col1 + col0 - - cor0.col1 AS col2 FROM tab1 AS cor0
----
1719
724
938

query I rowsort
SELECT DISTINCT + 18 AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
18

query I rowsort
SELECT DISTINCT - 49 * - col2 AS col1 FROM tab2
----
1274
1323
1862

query I rowsort
SELECT - + 48 + + col2 * col2 FROM tab0 cor0
----
-47
1041
6676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2382
SELECT DISTINCT - CAST( - 68 AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
103
157
92

skipif mysql # not compatible
query I rowsort label-2382
SELECT DISTINCT - CAST ( - 68 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
103
157
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2383
SELECT ALL - ( - 48 ) + col1 * - CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1200
-1356
-522

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL - ( - 48 ) + col1 * - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1200
-1356
-522

onlyif mysql # use DIV operator for integer division
query I rowsort label-2384
SELECT ALL - 21 DIV + col0 - col1 FROM tab1 AS cor0
----
-10
-13
-33

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL - 21 / + col0 - col1 FROM tab1 AS cor0
----
-10
-13
-33

query I rowsort
SELECT DISTINCT 87 * cor0.col0 * cor0.col0 AS col1 FROM tab1 cor0
----
356352
556800
783

query I rowsort
SELECT ( + 44 ) + col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1292
1448
614

onlyif mysql # use DIV operator for integer division
query I rowsort label-2387
SELECT col2 DIV col2 + - col0 * + col0 FROM tab1 AS cor0
----
-4095
-6399
-8

skipif mysql # not compatible
query I rowsort label-2387
SELECT col2 / col2 + - col0 * + col0 FROM tab1 AS cor0
----
-4095
-6399
-8

query I rowsort
SELECT DISTINCT + - 42 * col2 * + 61 FROM tab0 AS cor0
----
-210084
-2562
-84546

query I rowsort
SELECT + 46 * + col1 FROM tab2 AS cor0
----
1426
2714
782

query I rowsort
SELECT cor1.col0 * - cor1.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 151b2942c50caff563eede8bd3674ac1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 4 + - col1 col1 FROM tab2 AS cor0
----
-21
-35
-63

query I rowsort
SELECT + + col0 * + col1 - ( - 9 ) FROM tab0 AS cor0
----
2073
3404
8108

query I rowsort
SELECT ALL + 60 * col1 AS col0 FROM tab0 AS cor0
----
5160
5460
5820

query I rowsort
SELECT ALL - 61 * col2 + 24 * - col0 FROM tab0 cor0
----
-2589
-7138
-901

onlyif mysql # use DIV operator for integer division
query I rowsort label-2395
SELECT col0 * + cor0.col2 + 51 DIV col0 AS col1 FROM tab2 AS cor0
----
196
2028
3002

skipif mysql # not compatible
query I rowsort label-2395
SELECT col0 * + cor0.col2 + 51 / col0 AS col1 FROM tab2 AS cor0
----
196
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2396
SELECT DISTINCT - col0 + col1 DIV cor0.col0 AS col1 FROM tab2 cor0
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT - col0 + col1 / cor0.col0 AS col1 FROM tab2 cor0
----
-3
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2397
SELECT + - cor0.col2 + col1 DIV + ( 54 ) + + col0 * - 7 col1 FROM tab0 AS cor0
----
-200
-245
-704

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2397
SELECT + - cor0.col2 + col1 / + ( 54 ) + + col0 * - 7 col1 FROM tab0 AS cor0
----
-200
-245
-704

query I rowsort
SELECT DISTINCT - - col2 * col1 + - 38 FROM tab0 AS cor0
----
2800
59
7424

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 25 * col1 * + col0 + + col0 col0 FROM tab2 AS cor0
----
-114972
-33496
-5418

query I rowsort
SELECT ALL + 94 * + col0 + ( 43 ) * - col2 FROM tab2 AS cor0
----
-503
5792
6214

query I rowsort
SELECT DISTINCT 34 FROM tab2, tab0 AS cor0
----
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2402
SELECT DISTINCT - col1 DIV ( + col1 * - col0 ) + - CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT - col1 / ( + col1 * - col0 ) + - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * 68 col0 FROM tab1 AS cor0
----
-1768
-680
-884

query I rowsort
SELECT - - col0 + + col0 + - col1 FROM tab1 AS cor0
----
-20
118
147

query I rowsort
SELECT DISTINCT + col0 + + 71 FROM tab0 cor0
----
106
160
95

query I rowsort
SELECT - - col1 * ( col2 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + cor0.col2 * ( + col2 ) FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT tab1.col2 * col0 + 12 AS col0 FROM tab1
----
174
3660
7692

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 * - col0 col1 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT ALL col0 + 71 * - col0 FROM tab2 cor0
----
-490
-5460
-5530

onlyif mysql # use DIV operator for integer division
query I rowsort label-2411
SELECT + tab2.col0 DIV - tab2.col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2411
SELECT + tab2.col0 / - tab2.col0 FROM tab2
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2412
SELECT - 27 DIV - col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2412
SELECT - 27 / - col0 FROM tab2
----
0
0
3

query I rowsort
SELECT 9 + col1 AS col0 FROM tab2 AS cor0
----
26
40
68

query I rowsort
SELECT col1 * col1 * + col2 + col1 FROM tab0 AS cor0
----
244154
679133
9506

query I rowsort
SELECT ALL + 59 * cor0.col2 AS col2 FROM tab2 cor0
----
1534
1593
2242

query I rowsort
SELECT + - col2 + - col0 - col0 FROM tab2 AS cor0
----
-182
-196
-41

onlyif mysql # use DIV operator for integer division
query I rowsort label-2417
SELECT - col0 + + col2 DIV col0 col1 FROM tab1 AS cor0
----
-64
-79
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2417
SELECT - col0 + + col2 / col0 col1 FROM tab1 AS cor0
----
-64
-79
15

query I rowsort
SELECT - - col2 + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2862
-3192
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-2419
SELECT + - 15 + col1 * col0 DIV 71 AS col0 FROM tab2 AS cor0
----
-12
3
49

skipif mysql # not compatible
query I rowsort label-2419
SELECT + - 15 + col1 * col0 / 71 AS col0 FROM tab2 AS cor0
----
-12
3
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-2420
SELECT col0 DIV - col2 + + 14 * col2 col0 FROM tab0 AS cor0
----
-21
1147
462

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2420
SELECT col0 / - col2 + + 14 * col2 col0 FROM tab0 AS cor0
----
-21
1147
462

query I rowsort
SELECT - ( tab0.col2 ) AS col2 FROM tab0, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + - cor0.col2 * 31 col1 FROM tab2 AS cor0
----
-1257
-844
-884

query I rowsort
SELECT ALL + - col1 + - 67 * - col2 AS col1 FROM tab2 AS cor0
----
1683
1778
2529

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2424
SELECT - col2 + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2424
SELECT - col2 + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * cor0.col2 * col0 + col1 AS col1 FROM tab2 AS cor0
----
1354
158243
237175

query I rowsort
SELECT - 11 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 83 col1 FROM tab1 cor0
----
137
140
179

query I rowsort
SELECT DISTINCT col2 * + col1 - 26 FROM tab2 AS cor0
----
1508
620
811

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2429
SELECT + CAST( NULL AS SIGNED ) + - 43 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2429
SELECT + CAST ( NULL AS INTEGER ) + - 43 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + 38 * col0 * 50 + col2 FROM tab1
----
121657
152096
5754

query I rowsort
SELECT ALL - col0 + 50 FROM tab1 cor0
----
-14
-30
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-2432
SELECT DISTINCT + col2 * ( col1 ) + + col2 DIV 92 AS col0 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT + col2 * ( col1 ) + + col2 / 92 AS col0 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2433
SELECT ALL + col0 * ( - col2 ) DIV col1 FROM tab2
----
-176
-34
-6

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL + col0 * ( - col2 ) / col1 FROM tab2
----
-176
-34
-6

query I rowsort
SELECT - 60 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT DISTINCT 42 * 2 FROM tab0
----
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2436
SELECT ALL - CAST( col0 + col2 * - col0 AS SIGNED ) FROM tab1
----
159
3584
7600

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL - CAST ( col0 + col2 * - col0 AS INTEGER ) FROM tab1
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT DISTINCT - ( tab1.col1 + 46 ) * - tab1.col1 * col0 AS col2 FROM tab1
----
35840
5616
61360

query I rowsort
SELECT + + col0 + - 62 AS col0 FROM tab1 AS cor0
----
-59
18
2

query I rowsort
SELECT ALL tab2.col1 * ( - 88 ) FROM tab2
----
-1496
-2728
-5192

query I rowsort
SELECT - + col1 + col1 * + col2 FROM tab1 AS cor0
----
1235
1378
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 80 + + col2 col1 FROM tab0 cor0
----
1953
2801
7202

query I rowsort
SELECT + col1 * - 60 AS col1 FROM tab1 AS cor0
----
-1560
-600
-780

query I rowsort
SELECT ALL - ( + 10 ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0

query I rowsort
SELECT ALL - 53 * + col0 FROM tab1 AS cor0
----
-159
-3392
-4240

query I rowsort
SELECT ALL + + ( + col1 ) * ( + 20 ) + - col1 AS col0 FROM tab2 AS cor0
----
1121
323
589

query I rowsort
SELECT - 76 + col1 FROM tab2 AS cor0
----
-17
-45
-59

query I rowsort
SELECT DISTINCT 50 * + col2 * col1 + 61 FROM tab0 AS cor0
----
141961
373161
4911

query I rowsort
SELECT col2 + + col2 * col1 AS col2 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-2450
SELECT DISTINCT + col1 * col0 + col0 DIV - col0 FROM tab1 AS cor0
----
1039
639
77

skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT + col1 * col0 + col0 / - col0 FROM tab1 AS cor0
----
1039
639
77

query I rowsort
SELECT DISTINCT col1 * - 25 AS col0 FROM tab0 AS cor0
----
-2150
-2275
-2425

query I rowsort
SELECT ALL + - col2 * 8 AS col0 FROM tab1 AS cor0
----
-432
-456
-768

query I rowsort
SELECT DISTINCT + col0 * - 22 AS col1 FROM tab1 AS cor0
----
-1408
-1760
-66

query I rowsort
SELECT ALL + cor0.col0 * - col1 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2455
SELECT + - col0 + 17 DIV col2 FROM tab1 cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2455
SELECT + - col0 + 17 / col2 FROM tab1 cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2456
SELECT DISTINCT + 79 DIV tab0.col0 AS col1 FROM tab0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT + 79 / tab0.col0 AS col1 FROM tab0
----
0
2
3

query I rowsort
SELECT ALL - 36 * + col0 * col2 AS col1 FROM tab2
----
-108072
-6804
-73008

query I rowsort
SELECT col0 + - 26 * col0 AS col0 FROM tab2 cor0
----
-175
-1950
-1975

onlyif mysql # use DIV operator for integer division
query I rowsort label-2459
SELECT - 14 * col1 DIV col0 FROM tab1 AS cor0
----
-121
-2
-2

skipif mysql # not compatible
query I rowsort label-2459
SELECT - 14 * col1 / col0 FROM tab1 AS cor0
----
-121
-2
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 + ( + col1 ) * ( + col1 ) col0 FROM tab0 cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT ( col2 ) + cor0.col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT col2 + + 63 * col1 FROM tab2 cor0
----
1109
1980
3743

query I rowsort
SELECT DISTINCT - 53 + + col1 * + col0 * - col0 FROM tab2 AS cor0
----
-106150
-1572
-359009

query I rowsort
SELECT ALL 73 AS col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT DISTINCT + col1 * + col1 + col0 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT - 89 * col2 + + col1 FROM tab2 AS cor0
----
-2255
-2372
-3365

query I rowsort
SELECT ALL + col2 * col0 + cor0.col1 AS col2 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT - + cor0.col1 * 72 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 3ca427a46e2fa7c910cbe9ccb1206f1f

query I rowsort
SELECT + col0 * 22 + + col1 AS col0 FROM tab2
----
1755
1775
185

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2470
SELECT + CAST( + 25 AS SIGNED ) * - col1 FROM tab2 cor0
----
-1475
-425
-775

skipif mysql # not compatible
query I rowsort label-2470
SELECT + CAST ( + 25 AS INTEGER ) * - col1 FROM tab2 cor0
----
-1475
-425
-775

onlyif mysql # use DIV operator for integer division
query I rowsort label-2471
SELECT 34 DIV col0 + + col2 * + col1 AS col2 FROM tab2
----
1534
646
841

skipif mysql # not compatible
query I rowsort label-2471
SELECT 34 / col0 + + col2 * + col1 AS col2 FROM tab2
----
1534
646
841

query I rowsort
SELECT DISTINCT col2 + + col1 * col0 AS col0 FROM tab1
----
1136
132
697

query I rowsort
SELECT + cor0.col1 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2474
SELECT DISTINCT 46 DIV + cor0.col2 FROM tab1, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT 46 / + cor0.col2 FROM tab1, tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2475
SELECT DISTINCT CAST( NULL AS SIGNED ) * + tab0.col2 + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + tab0.col2 + col2 FROM tab0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2476
SELECT col1 * col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2476
SELECT col1 * col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - ( - col2 ) * - 6 - col0 FROM tab1 AS cor0
----
278
321
496

query I rowsort
SELECT DISTINCT 98 * col2 FROM tab1 AS cor0
----
5292
5586
9408

query I rowsort
SELECT 53 + - cor0.col0 FROM tab1 AS cor0
----
-11
-27
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2480
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1, tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1, tab2, tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2481
SELECT ALL col1 * + 55 * col1 + - 90 DIV col2 AS col1 FROM tab1
----
37179
5499
9295

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL col1 * + 55 * col1 + - 90 / col2 AS col1 FROM tab1
----
37179
5499
9295

query I rowsort
SELECT ALL + 16 + cor0.col0 * 64 + 65 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to 5fe42aafafd7741732ecb5469898a536

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2483
SELECT - CAST( NULL AS SIGNED ) * tab1.col0 + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2483
SELECT - CAST ( NULL AS INTEGER ) * tab1.col0 + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 28 + col0 + ( col2 ) FROM tab1 cor0
----
148
29
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2485
SELECT ALL + - col0 DIV col1 - + col1 col2 FROM tab2 AS cor0
----
-21
-31
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL + - col0 / col1 - + col1 col2 FROM tab2 AS cor0
----
-21
-31
-60

query I rowsort
SELECT DISTINCT + 19 + col1 * - ( cor0.col2 ) FROM tab0 AS cor0
----
-2819
-7443
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2487
SELECT ALL + col1 * col2 + + col2 * - col0 + cor0.col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL + col1 * col2 + + col2 * - col0 + cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2488
SELECT DISTINCT - 22 + col2 DIV col0 AS col2 FROM tab1 cor0
----
-21
-22
-4

skipif mysql # not compatible
query I rowsort label-2488
SELECT DISTINCT - 22 + col2 / col0 AS col2 FROM tab1 cor0
----
-21
-22
-4

query I rowsort
SELECT DISTINCT - 21 - - col1 FROM tab1 cor0
----
-11
-8
5

query I rowsort
SELECT ALL - col1 * + col0 * + col0 + col1 * ( tab1.col0 ) - - col0 * + col2 FROM tab1
----
-36672
-74480
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col2 col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT - - 37 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
37

query I rowsort
SELECT ALL - col0 + 56 FROM tab2 cor0
----
-22
-23
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2494
SELECT - + col0 + + CAST( NULL AS SIGNED ) - + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2494
SELECT - + col0 + + CAST ( NULL AS INTEGER ) - + col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 * 91 FROM tab0 AS cor0
----
-3003
-7462
-91

query I rowsort
SELECT ALL + + col2 + + cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - + col1 * 72 AS col1 FROM tab0 AS cor0
----
-6192
-6552
-6984

query I rowsort
SELECT DISTINCT - col1 * + 66 + 98 AS col1 FROM tab2 AS cor0
----
-1024
-1948
-3796

onlyif mysql # use DIV operator for integer division
query I rowsort label-2499
SELECT ALL - col1 DIV 78 + + col0 DIV col1 + + col1 AS col0 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL - col1 / 78 + + col0 / col1 + + col1 AS col0 FROM tab0
----
85
90
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2500
SELECT ALL + + CAST( NULL AS SIGNED ) + + ( + col0 * col1 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL + + CAST ( NULL AS INTEGER ) + + ( + col0 * col1 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2501
SELECT 71 DIV 84 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-2501
SELECT 71 / 84 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 28 * col1 FROM tab1 AS cor0
----
280
364
728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 12 + col1 - + col1 col2 FROM tab0 AS cor0
----
1068
288
420

query I rowsort
SELECT 40 + + 92 AS col0 FROM tab0 AS cor0
----
132
132
132

query I rowsort
SELECT DISTINCT + 96 + - cor0.col2 FROM tab1 AS cor0
----
0
39
42

query I rowsort
SELECT ALL + col1 * - 67 - - col1 FROM tab2
----
-1122
-2046
-3894

query I rowsort
SELECT ALL + - 72 + ( - col2 ) FROM tab0 AS cor0
----
-105
-154
-73

query I rowsort
SELECT - col0 * + cor0.col0 * - col1 + cor0.col1 FROM tab0 AS cor0
----
118922
49622
720902

query I rowsort
SELECT ALL + 31 FROM tab1 cor0
----
31
31
31

query I rowsort
SELECT DISTINCT - 93 * col2 FROM tab0 AS cor0
----
-3069
-7626
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - cor0.col2 + - col1 col1 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT col1 + + 28 * col1 FROM tab1 AS cor0
----
290
377
754

query I rowsort
SELECT + - ( - cor0.col0 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - 59 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT - col2 * + col0 + 5 + - col0 * col2 AS col0 FROM tab2 cor0
----
-373
-4051
-5999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 * - col0 col1 FROM tab0 AS cor0
----
-1032
-1505
-3827

query I rowsort
SELECT DISTINCT 69 FROM tab2, tab2 cor0, tab1 cor1
----
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-2520
SELECT - col0 DIV 78 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2520
SELECT - col0 / 78 AS col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT col1 + 65 AS col1 FROM tab0 AS cor0
----
151
156
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 col1 FROM tab2, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT col1 * ( - col2 ) + col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT col2 * + 79 AS col2 FROM tab0 AS cor0
----
2607
6478
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2525
SELECT ALL + + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL + + col2 / col1 AS col0 FROM tab1 AS cor0
----
2
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2526
SELECT DISTINCT col1 + + col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT col1 + + col0 / + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + + col1 + + 97 + - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-6536
-906
193

query I rowsort
SELECT DISTINCT - - col2 * + col1 - col0 AS col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT - + 87 AS col1 FROM tab2 AS cor0
----
-87
-87
-87

query I rowsort
SELECT + 80 + + col1 * col2 AS col1 FROM tab1 AS cor0
----
1328
1484
650

query I rowsort
SELECT DISTINCT + tab0.col1 + cor1.col0 AS col0 FROM tab0, tab1 cor0, tab0 AS cor1
----
110
115
121
126
132
175
180
186

query I rowsort
SELECT - + col2 * - col2 + + col0 + col1 AS col2 FROM tab2 AS cor0
----
1540
767
813

query I rowsort
SELECT DISTINCT + 36 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
36

query I rowsort
SELECT cor0.col1 * col1 + col0 AS col1 FROM tab2 cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT col1 + + cor0.col1 * ( - col1 + - col2 ) AS col0 FROM tab2 AS cor0
----
-1767
-4956
-918

query I rowsort
SELECT ALL 59 * col1 AS col1 FROM tab1 AS cor0
----
1534
590
767

onlyif mysql # use DIV operator for integer division
query I rowsort label-2537
SELECT + col0 * + col1 DIV col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2537
SELECT + col0 * + col1 / col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2538
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-2538
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col1 * - col0 * col1 AS col2 FROM tab0
----
-177504
-329315
-737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * 37 col0 FROM tab1 AS cor0
----
1998
2109
3552

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2541
SELECT DISTINCT CAST( cor1.col2 AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT CAST ( cor1.col2 AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT ALL - 80 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd

onlyif mysql # use DIV operator for integer division
query I rowsort label-2543
SELECT - 68 DIV tab2.col0 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 88cbcca17375aea7f0ba224ae5889fde

skipif mysql # not compatible
query I rowsort label-2543
SELECT - 68 / tab2.col0 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 88cbcca17375aea7f0ba224ae5889fde

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2544
SELECT DISTINCT col1 * - col2 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT col1 * - col2 * CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - 26 * - col1 FROM tab0
----
2236
2366
2522

query I rowsort
SELECT - 92 * - 13 + col2 FROM tab2 AS cor0
----
1222
1223
1234

query I rowsort
SELECT + - 87 + ( - col1 ) * + 37 FROM tab1 cor0
----
-1049
-457
-568

query I rowsort
SELECT ALL - + 7 AS col1 FROM tab2 AS cor0
----
-7
-7
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 * - col2 + - col0 * - col2 col1 FROM tab1
----
-3726
-456
768

query I rowsort
SELECT ALL + col2 * + col0 + + 8 + + 22 FROM tab0 AS cor0
----
65
7328
822

query I rowsort
SELECT DISTINCT col2 * col2 + col1 * + cor0.col2 FROM tab0 AS cor0
----
14186
3927
98

query I rowsort
SELECT ALL + 22 * + col0 FROM tab2 AS cor0
----
154
1716
1738

query I rowsort
SELECT + + 69 * col2 * - ( col0 ) FROM tab1 AS cor0
----
-11178
-251712
-529920

query I rowsort
SELECT DISTINCT + ( + col1 ) - + cor0.col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + cor0.col2 + + col0 * ( - col0 * - col1 ) AS col1 FROM tab2 AS cor0
----
106135
1546
358982

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2556
SELECT col0 * col1 + CAST( - col0 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
1280
156
2080

skipif mysql # not compatible
query I rowsort label-2556
SELECT col0 * col1 + CAST ( - col0 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
1280
156
2080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2557
SELECT ALL - + ( + col1 ) + CAST( NULL AS SIGNED ) + 19 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL - + ( + col1 ) + CAST ( NULL AS INTEGER ) + 19 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - 51 * + tab2.col1 + col0 * 69 AS col2 FROM tab2
----
-1091
2451
4663

query I rowsort
SELECT - col2 + + col0 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT + col1 + - 22 * col1 - + col0 AS col0 FROM tab0
----
-1830
-2000
-2072

query I rowsort
SELECT DISTINCT col1 + - col0 + + 37 AS col1 FROM tab2
----
-25
18
61

query I rowsort
SELECT - col2 + - 86 + col1 * + col0 * col0 FROM tab0
----
118738
49417
720643

query I rowsort
SELECT col2 + - ( + col1 ) FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - col2 * col2 + + 55 AS col0 FROM tab1 AS cor0
----
-2861
-3194
-9161

query I rowsort
SELECT - - cor0.col0 AS col1 FROM tab0, tab2 cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to 455e4df3bf7b0fa681c56e89df1a761f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2566
SELECT + cor0.col0 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2566
SELECT + cor0.col0 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - ( cor0.col2 ) * - col0 FROM tab2 AS cor0
----
114076
5103
52728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2568
SELECT DISTINCT + + CAST( col1 AS SIGNED ) * + col0 FROM tab2 cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) * + col0 FROM tab2 cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 97 * col1 col1 FROM tab2 AS cor0
----
-1666
-3038
-5782

onlyif mysql # use DIV operator for integer division
query I rowsort label-2570
SELECT ALL - ( col1 ) DIV - cor0.col1 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL - ( col1 ) / - cor0.col1 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + col2 * + col2 + - col2 * - col1 FROM tab0 AS cor0
----
14186
3927
98

query I rowsort
SELECT ALL 57 * - col1 AS col1 FROM tab1 AS cor0
----
-1482
-570
-741

query I rowsort
SELECT - col1 * 27 FROM tab2 AS cor0
----
-1593
-459
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2574
SELECT DISTINCT + CAST( col1 AS SIGNED ) * col0 * 20 AS col1 FROM tab1 AS cor0
----
12800
1560
20800

skipif mysql # not compatible
query I rowsort label-2574
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * col0 * 20 AS col1 FROM tab1 AS cor0
----
12800
1560
20800

onlyif mysql # use DIV operator for integer division
query I rowsort label-2575
SELECT DISTINCT ( - 19 ) + cor0.col2 DIV ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-17
-19

skipif mysql # not compatible
query I rowsort label-2575
SELECT DISTINCT ( - 19 ) + cor0.col2 / ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-17
-19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2576
SELECT col0 * + cor0.col1 + - col0 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2576
SELECT col0 * + cor0.col1 + - col0 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 col0 FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT 98 + + col1 * col0 FROM tab0 AS cor0
----
2162
3493
8197

query I rowsort
SELECT DISTINCT + - col0 * col2 * - col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT - ( + col1 ) - col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 + - ( - col0 ) col2 FROM tab1 AS cor0
----
-45
16
32

query I rowsort
SELECT ALL 48 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT tab1.col0 * 65 FROM tab1
----
195
4160
5200

query I rowsort
SELECT + col0 * 58 - - col1 AS col1 FROM tab1 cor0
----
200
3722
4653

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 col2 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 4eecc28c48bfdf162a585f11d1dd0b6c

query I rowsort
SELECT ALL + 58 + cor0.col1 * col2 AS col0 FROM tab1 AS cor0
----
1306
1462
628

query I rowsort
SELECT DISTINCT cor0.col2 * 17 AS col2 FROM tab0 AS cor0
----
1394
17
561

query I rowsort
SELECT 66 * col2 + + col1 FROM tab0 AS cor0
----
163
2264
5503

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2589
SELECT DISTINCT - CAST( 47 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
1222
470
611

skipif mysql # not compatible
query I rowsort label-2589
SELECT DISTINCT - CAST ( 47 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
1222
470
611

query I rowsort
SELECT ( col2 ) * col0 + + ( - col2 ) AS col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT - ( - cor0.col0 ) + + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT col2 + - tab1.col1 + - tab1.col1 FROM tab1
----
2
37
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2593
SELECT + ( - col2 ) DIV col0 + + col0 DIV + col2 col0 FROM tab0
----
-1
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2593
SELECT + ( - col2 ) / col0 + + col0 / + col2 col0 FROM tab0
----
-1
1
35

query I rowsort
SELECT - col0 * col1 + - 56 * + col1 + + col1 AS col1 FROM tab1 cor0
----
-1190
-1508
-1755

query I rowsort
SELECT 84 * cor0.col0 FROM tab1 cor0
----
252
5376
6720

query I rowsort
SELECT ALL + col1 + + cor0.col1 * - col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT col0 + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + col0 + + cor0.col0 col2 FROM tab0 AS cor0
----
105
267
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2599
SELECT ALL + cor0.col2 + - col2 + - col2 * - col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL + cor0.col2 + - col2 + - col2 * - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - ( + 10 ) + + col0 FROM tab2 AS cor0
----
-303
-512
-91

query I rowsort
SELECT ALL - col1 + 11 * - col2 FROM tab0 AS cor0
----
-108
-449
-993

query I rowsort
SELECT ALL - 78 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 + - 17 * + col1 AS col1 FROM tab2 AS cor0
----
-193
-489
-866

query I rowsort
SELECT DISTINCT + col1 * col1 + col0 + + col0 FROM tab0 AS cor0
----
7444
8459
9479

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 + + CAST ( 48 AS REAL ) * cor0.col2 FROM tab2 AS cor0
----
1303
1326
1903

query I rowsort
SELECT + col1 + - ( + cor0.col1 ) * - cor0.col0 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-2607
SELECT col1 DIV 45 AS col2 FROM tab0 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-2607
SELECT col1 / 45 AS col2 FROM tab0 AS cor0
----
1
2
2

query I rowsort
SELECT + + col0 + - col1 * 34 AS col0 FROM tab0 AS cor0
----
-2900
-3005
-3263

query I rowsort
SELECT + ( - col1 + + col1 ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2610
SELECT ALL - CAST( - col1 AS SIGNED ) AS col0 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL - CAST ( - col1 AS INTEGER ) AS col0 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT 85 * + 5 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
425

query I rowsort
SELECT ALL 6 AS col2 FROM tab2 AS cor0
----
6
6
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2613
SELECT DISTINCT col0 + + CAST( NULL AS DECIMAL ) + ( + col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT DISTINCT col0 + + CAST ( NULL AS REAL ) + ( + col2 ) FROM tab2
----
NULL

query I rowsort
SELECT col0 + col0 + + col1 FROM tab1
----
138
173
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-2615
SELECT col1 + col2 + + 90 DIV - col1 AS col2 FROM tab1
----
103
58
77

skipif mysql # not compatible
query I rowsort label-2615
SELECT col1 + col2 + + 90 / - col1 AS col2 FROM tab1
----
103
58
77

query I rowsort
SELECT DISTINCT - col1 + + col0 + col2 * + col1 * col2 FROM tab0
----
35
611882
93592

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2617
SELECT ALL col1 + CAST( col2 + col0 * col0 AS SIGNED ) AS col2 FROM tab2
----
107
6169
6296

skipif mysql # not compatible
query I rowsort label-2617
SELECT ALL col1 + CAST ( col2 + col0 * col0 AS INTEGER ) AS col2 FROM tab2
----
107
6169
6296

query I rowsort
SELECT ALL - - col0 * + 90 FROM tab1 AS cor0
----
270
5760
7200

query I rowsort
SELECT - + col1 * col0 + - col2 * col0 FROM tab0 AS cor0
----
-15397
-2856
-3430

onlyif mysql # use DIV operator for integer division
query I rowsort label-2620
SELECT DISTINCT - - CAST( + 59 AS SIGNED ) DIV + col0 AS col1 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT - - CAST ( + 59 AS INTEGER ) / + col0 AS col1 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2621
SELECT ALL + + col1 * - col1 DIV col1 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL + + col1 * - col1 / col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT + 42 * + ( + col1 ) AS col2 FROM tab1
----
1092
420
546

query I rowsort
SELECT - 62 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-5332
-5642
-6014

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2624
SELECT CAST( + col1 AS SIGNED ) + cor0.col2 col1 FROM tab1 cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2624
SELECT CAST ( + col1 AS INTEGER ) + cor0.col2 col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT 20 + + 12 FROM tab0 AS cor0
----
32
32
32

query I rowsort
SELECT ALL ( - col1 ) - col2 AS col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT + + col0 * + 51 - + col1 * + col1 AS col2 FROM tab0 AS cor0
----
-3742
-6172
-7624

query I rowsort
SELECT + ( + ( col0 ) ) + ( 6 ) FROM tab1 AS cor0
----
70
86
9

query I rowsort
SELECT + - 23 + col0 AS col2 FROM tab0 AS cor0
----
1
12
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2630
SELECT + 9 DIV col0 col1 FROM tab1 AS cor0
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2630
SELECT + 9 / col0 col1 FROM tab1 AS cor0
----
0
0
3

query I rowsort
SELECT DISTINCT 35 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
35

query I rowsort
SELECT - + ( 43 ) + col2 * 1 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1205
1361
527

query I rowsort
SELECT + + 39 * - col1 * + col1 AS col1 FROM tab1 AS cor0
----
-26364
-3900
-6591

query I rowsort
SELECT - 18 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e

query I rowsort
SELECT + - 99 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 761f5f1a166a00db99360141565a85da

query I rowsort
SELECT ALL - 78 + col1 + col2 AS col0 FROM tab0 AS cor0
----
20
41
95

query I rowsort
SELECT - + col2 + - col0 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT col2 * - 79 FROM tab0 AS cor0
----
-2607
-6478
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2639
SELECT - - cor0.col0 + ( col2 ) DIV + col2 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-2639
SELECT - - cor0.col0 + ( col2 ) / + col2 FROM tab0 AS cor0
----
25
36
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2640
SELECT ALL - CAST( 95 AS SIGNED ) * col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL - CAST ( 95 AS INTEGER ) * col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 col0 FROM tab1 AS cor0
----
-86
-86
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-2642
SELECT - cor0.col1 + col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
-85
-91
-97

skipif mysql # not compatible
query I rowsort label-2642
SELECT - cor0.col1 + col2 / + col0 AS col1 FROM tab0 AS cor0
----
-85
-91
-97

query I rowsort
SELECT DISTINCT + 27 + 32 + - col1 * + 88 AS col0 FROM tab1 AS cor0
----
-1085
-2229
-821

onlyif mysql # use DIV operator for integer division
query I rowsort label-2644
SELECT + - col0 DIV 79 col1 FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2644
SELECT + - col0 / 79 col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + 64 * cor0.col1 FROM tab0, tab0 cor0
----
9 values hashing to be56c593f30c9e7cba2a929d877750e7

query I rowsort
SELECT ALL col1 * ( 53 ) FROM tab1
----
1378
530
689

query I rowsort
SELECT ALL tab2.col0 + - 34 + cor0.col0 FROM tab2, tab0 cor0
----
9 values hashing to 551ab153b757b9cd7d4dd987ffa15c08

query I rowsort
SELECT - cor0.col1 + - col2 * - 40 FROM tab0 AS cor0
----
-57
1234
3189

query I rowsort
SELECT DISTINCT - - cor0.col0 * col1 + ( - col1 ) * - col0 FROM tab2 cor0
----
2686
434
9204

query I rowsort
SELECT DISTINCT - col0 * 74 FROM tab0 cor0
----
-1776
-2590
-6586

onlyif mysql # use DIV operator for integer division
query I rowsort label-2651
SELECT 81 DIV ( cor0.col1 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 36d00a2b29852f88ac26d257535464fb

skipif mysql # not compatible
query I rowsort label-2651
SELECT 81 / ( cor0.col1 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 36d00a2b29852f88ac26d257535464fb

query I rowsort
SELECT ALL - - cor0.col1 * + col2 + + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + - col1 * 22 + - col2 FROM tab0 AS cor0
----
-1925
-2084
-2135

query I rowsort
SELECT DISTINCT - cor0.col1 + ( + 60 ) + - col0 AS col2 FROM tab2 AS cor0
----
-36
-77
22

query I rowsort
SELECT + col2 * 15 + col0 AS col1 FROM tab2 AS cor0
----
412
468
649

query I rowsort
SELECT DISTINCT col2 * + ( col2 ) + - col2 FROM tab1 AS cor0
----
2862
3192
9120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2657
SELECT ALL - + CAST( - 13 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL - + CAST ( - 13 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT - - cor0.col0 FROM tab1, tab2, tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * ( + 82 ) + col0 col0 FROM tab2
----
581
6474
6557

query I rowsort
SELECT + tab0.col2 + - col2 * + tab0.col1 * + col1 FROM tab0
----
-244035
-678960
-9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 - - col1 col0 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT + col2 + - ( 19 ) AS col2 FROM tab2
----
19
7
8

query I rowsort
SELECT col0 + - col0 * col0 * + tab0.col0 AS col0 FROM tab0
----
-13800
-42840
-704880

query I rowsort
SELECT - col2 * col1 + - tab2.col0 AS col0 FROM tab2
----
-1612
-725
-844

onlyif mysql # use DIV operator for integer division
query I rowsort label-2665
SELECT ALL cor0.col2 * col2 DIV col0 + col2 * + cor0.col1 FROM tab2 AS cor0
----
1542
664
941

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL cor0.col2 * col2 / col0 + col2 * + cor0.col1 FROM tab2 AS cor0
----
1542
664
941

query I rowsort
SELECT ALL + col2 + col1 * 73 + + col2 * 73 AS col1 FROM tab2
----
4053
4261
6231

query I rowsort
SELECT ALL + 99 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT + col2 + ( 59 ) FROM tab2 cor0
----
85
86
97

query I rowsort
SELECT DISTINCT - col1 + - ( 17 ) AS col2 FROM tab1 cor0
----
-27
-30
-43

query I rowsort
SELECT 3 * - col1 + col2 FROM tab0
----
-191
-225
-290

query I rowsort
SELECT 35 + col2 FROM tab0
----
117
36
68

query I rowsort
SELECT DISTINCT ( + tab0.col1 * col0 ) FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL - 67 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT ALL 17 * + col0 FROM tab2
----
119
1326
1343

query I rowsort
SELECT 27 + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-135
-3621
-7653

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2676
SELECT - CAST( ( + col1 ) AS SIGNED ) FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2676
SELECT - CAST ( ( + col1 ) AS INTEGER ) FROM tab0
----
-86
-91
-97

query I rowsort
SELECT - 40 - cor0.col1 FROM tab2 AS cor0
----
-57
-71
-99

query I rowsort
SELECT ALL col2 + col2 * cor0.col2 FROM tab1 cor0
----
2970
3306
9312

query I rowsort
SELECT + - 73 * + cor0.col2 - 67 FROM tab2 AS cor0
----
-1965
-2038
-2841

query I rowsort
SELECT DISTINCT col1 + + col2 * ( col0 ) FROM tab2
----
2087
220
3019

query I rowsort
SELECT ( - cor0.col1 ) + 20 * col2 + + col1 FROM tab1 cor0
----
1080
1140
1920

query I rowsort
SELECT ALL + + ( + col0 ) + col1 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( col0 ) + - ( 83 ) * - col0 col0 FROM tab2 AS cor0
----
574
6396
6478

query I rowsort
SELECT DISTINCT + + ( col0 ) * + cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + - col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + 88 * col2 * + ( 1 ) - - col0 AS col2 FROM tab1 AS cor0
----
4755
5080
8528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 * + col2 + col1 col1 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT ALL col2 - cor0.col2 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 81 * - col1 + col2 AS col1 FROM tab1 AS cor0
----
-2052
-753
-957

query I rowsort
SELECT ALL - 10 AS col2 FROM tab1 cor0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT + ( col2 ) + 43 + ( + col1 * - col1 ) FROM tab2 AS cor0
----
-208
-3412
-891

query I rowsort
SELECT ALL 47 * col1 - col0 AS col1 FROM tab2 AS cor0
----
1450
2695
720

query I rowsort
SELECT + cor0.col0 * col1 + 88 FROM tab1 AS cor0
----
1128
166
728

query I rowsort
SELECT tab0.col2 + col0 * 55 FROM tab0
----
1353
1926
4977

query I rowsort
SELECT col1 * - cor0.col1 + - ( col1 ) - cor0.col0 FROM tab2 AS cor0
----
-3618
-385
-999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 75 col0 FROM tab1 AS cor0
----
-49
-62
-65

query I rowsort
SELECT + col2 * col2 * + col2 + - col2 * + col2 FROM tab0 AS cor0
----
0
34848
544644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 - 93 col1 FROM tab0 AS cor0
----
-11
-60
-92

query I rowsort
SELECT + col1 * + 15 + - col1 AS col0 FROM tab1 AS cor0
----
140
182
364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 * + col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - col0 + + col1 - + col1 FROM tab2 cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2702
SELECT DISTINCT col1 * 53 DIV + 25 col2 FROM tab1 AS cor0
----
21
27
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT col1 * 53 / + 25 col2 FROM tab1 AS cor0
----
21
27
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-2703
SELECT col2 DIV + 20 + col0 * + col0 + - ( 4 ) FROM tab1 AS cor0
----
4094
6400
7

skipif mysql # not compatible
query I rowsort label-2703
SELECT col2 / + 20 + col0 * + col0 + - ( 4 ) FROM tab1 AS cor0
----
4094
6400
7

query I rowsort
SELECT DISTINCT 84 + col1 * + col1 FROM tab2
----
1045
3565
373

query I rowsort
SELECT col0 - - ( - cor0.col2 ) * + cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - + col2 * - col2 + - col2 * col1 FROM tab1 AS cor0
----
1512
2679
7968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 - - col0 col0 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL + 59 + col1 FROM tab0 AS cor0
----
145
150
156

onlyif mysql # use DIV operator for integer division
query I rowsort label-2709
SELECT DISTINCT + + col1 * + col0 + - col1 + - cor0.col1 DIV + col2 FROM tab0 AS cor0
----
1976
3201
8007

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT + + col1 * + col0 + - col1 + - cor0.col1 / + col2 FROM tab0 AS cor0
----
1976
3201
8007

query I rowsort
SELECT ALL + 2 * col0 - col2 AS col2 FROM tab2 AS cor0
----
-13
120
130

query I rowsort
SELECT DISTINCT - - ( 19 ) FROM tab2 AS cor0
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 67 ) * - cor0.col0 col2 FROM tab0 cor0
----
1608
2345
5963

query I rowsort
SELECT + col0 + + 73 FROM tab1 AS cor0
----
137
153
76

query I rowsort
SELECT + 55 * - col2 FROM tab0 AS cor0
----
-1815
-4510
-55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2715
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2715
SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) * + col1 + + col0 col1 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT ALL + - cor0.col2 * + col1 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2718
SELECT ALL + CAST( NULL AS SIGNED ) * 28 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-2718
SELECT ALL + CAST ( NULL AS INTEGER ) * 28 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2719
SELECT + - CAST( 31 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
-28
33
49

skipif mysql # not compatible
query I rowsort label-2719
SELECT + - CAST ( 31 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
-28
33
49

query I rowsort
SELECT - col1 + - col0 * 11 AS col1 FROM tab0 AS cor0
----
-1070
-350
-482

query I rowsort
SELECT + 84 AS col2 FROM tab2, tab2 AS cor0, tab0, tab2 cor1
----
81 values hashing to 3c092ed1a99ddb5afc7049fd2b9427f9

query I rowsort
SELECT 5 * 47 AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to d4dbfae57b23d8e6d9570cc1221c04b8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2723
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - tab1.col1 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2723
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - tab1.col1 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT col0 * ( - col1 ) FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2725
SELECT DISTINCT - 27 DIV + 81 AS col1 FROM tab0, tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2725
SELECT DISTINCT - 27 / + 81 AS col1 FROM tab0, tab1 cor0
----
0

query I rowsort
SELECT DISTINCT + col2 * col1 * - 88 AS col2 FROM tab0
----
-249744
-656656
-8536

query I rowsort
SELECT - cor0.col1 * col0 + + col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT - + 14 AS col2 FROM tab1 AS cor0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT + 90 AS col0 FROM tab2 AS cor0
----
90

query I rowsort
SELECT - col1 * cor0.col0 * col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT - - col1 + + col2 * + col1 FROM tab2 AS cor0
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 79 * ( + col0 ) + + ( + col1 ) * col1 * + col2 + - col0 * + col2 col1 FROM tab2 AS cor0
----
14221
26311
94640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2733
SELECT ALL CAST( - col0 AS SIGNED ) - col2 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL CAST ( - col0 AS INTEGER ) - col2 * CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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 62 + col1 FROM tab0 AS cor0
----
148
153
159

onlyif mysql # use DIV operator for integer division
query I rowsort label-2736
SELECT cor0.col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2736
SELECT cor0.col2 / + col0 AS col1 FROM tab2 AS cor0
----
0
0
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2737
SELECT + 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-2737
SELECT + CAST ( col0 AS INTEGER ) col1 FROM tab2
----
7
78
79

query I rowsort
SELECT + - 39 * + col1 * + cor0.col0 FROM tab0 AS cor0
----
-132405
-315861
-80496

query I rowsort
SELECT ALL tab2.col0 * - col1 + col0 + + col2 * col1 FROM tab2
----
-2990
-618
627

query I rowsort
SELECT col0 * - col1 + - 99 * + 74 + - col0 * + 72 FROM tab1
----
-12574
-14126
-7620

query I rowsort
SELECT + cor0.col0 + ( + cor0.col0 ) FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT DISTINCT + 88 AS col0 FROM tab0
----
88

query I rowsort
SELECT - cor0.col0 + + col0 * cor0.col2 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-2744
SELECT 37 DIV + col1 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2744
SELECT 37 / + col1 FROM tab1
----
1
2
3

query I rowsort
SELECT ALL - cor0.col2 * - 69 + col0 AS col1 FROM tab0 AS cor0
----
104
2301
5747

query I rowsort
SELECT DISTINCT - col0 * 35 AS col1 FROM tab0 AS cor0
----
-1225
-3115
-840

query I rowsort
SELECT ALL col2 + + ( + col0 * col2 ) AS col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - cor0.col0 - 36 FROM tab0 AS cor0
----
-125
-60
-71

query I rowsort
SELECT + - cor0.col2 * 43 AS col1 FROM tab0 cor0
----
-1419
-3526
-43

query I rowsort
SELECT DISTINCT + + col2 - ( - col2 + - col2 * + col1 ) AS col2 FROM tab1 AS cor0
----
1440
1512
684

query I rowsort
SELECT ALL - tab0.col2 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT DISTINCT col1 * col0 * col1 + col2 * col1 FROM tab1 AS cor0
----
14768
3432
6970

query I rowsort
SELECT - col1 + 44 * - col0 * + col1 FROM tab0 AS cor0
----
-149477
-356447
-90902

query I rowsort
SELECT ALL col2 * 36 AS col0 FROM tab1 AS cor0
----
1944
2052
3456

query I rowsort
SELECT ALL - - col2 + + ( + ( - col1 ) ) * - col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT - - col0 * col2 * + col2 + col0 AS col2 FROM tab1 AS cor0
----
208000
737360
8751

onlyif mysql # use DIV operator for integer division
query I rowsort label-2757
SELECT col0 DIV + col1 + + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2757
SELECT col0 / + col1 + + col1 AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + col2 * ( + col1 ) FROM tab2 cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2759
SELECT ALL + col0 DIV - ( col1 ) + col0 FROM tab1 AS cor0
----
3
58
74

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL + col0 / - ( col1 ) + col0 FROM tab1 AS cor0
----
3
58
74

query I rowsort
SELECT ALL tab0.col1 + - 27 AS col2 FROM tab0
----
59
64
70

query I rowsort
SELECT ALL 53 FROM tab0, tab2 cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL - col0 - - 14 AS col2 FROM tab0
----
-10
-21
-75

query I rowsort
SELECT cor0.col1 - - cor0.col2 * - 75 AS col2 FROM tab2 AS cor0
----
-1891
-1994
-2833

query I rowsort
SELECT cor0.col1 * + col1 * - col2 + - col1 AS col0 FROM tab0 AS cor0
----
-244154
-679133
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 - - col0 col2 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT ( + cor0.col2 ) + col2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT 43 + col0 AS col1 FROM tab1
----
107
123
46

query I rowsort
SELECT + 51 + col1 * + 65 * - col2 FROM tab1 cor0
----
-36999
-81069
-91209

skipif mysql # not compatible
query I rowsort
SELECT + col2 * col0 + CAST ( col2 AS REAL ) * - col1 AS col0 FROM tab1
----
-1242
3078
6432

query I rowsort
SELECT + tab2.col1 + col2 * 54 AS col0 FROM tab2
----
1463
1489
2069

query I rowsort
SELECT DISTINCT cor0.col1 * + 30 FROM tab1, tab0 AS cor0
----
2580
2730
2910

query I rowsort
SELECT DISTINCT - 66 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-66

query I rowsort
SELECT DISTINCT + 71 + - cor0.col2 FROM tab0 AS cor0
----
-11
38
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2774
SELECT DISTINCT + + ( col2 ) DIV + col2 AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT + + ( col2 ) / + col2 AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2775
SELECT + - 0 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2775
SELECT + - 0 / + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 + + col0 * + col2 AS col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT + 18 * + col0 + + col0 AS col1 FROM tab1 cor0
----
1216
1520
57

query I rowsort
SELECT ALL 18 * col1 + cor0.col2 FROM tab1 AS cor0
----
237
330
522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2779
SELECT + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2779
SELECT + + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 97 + col1 * - col0 - + col0 FROM tab1 cor0
----
-1023
-607
16

query I rowsort
SELECT ALL + 47 + col1 AS col1 FROM tab2 AS cor0
----
106
64
78

query I rowsort
SELECT DISTINCT + 18 * + 62 FROM tab2 AS cor0
----
1116

query I rowsort
SELECT - - 69 * + 89 AS col2 FROM tab1 AS cor0
----
6141
6141
6141

query I rowsort
SELECT ALL - col0 + + 57 AS col1 FROM tab2 AS cor0
----
-21
-22
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2785
SELECT ALL - CAST( NULL AS SIGNED ) + + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL - CAST ( NULL AS INTEGER ) + + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 * - ( - col1 ) + col1 col0 FROM tab1 AS cor0
----
-1716
-660
-858

query I rowsort
SELECT ALL ( 52 ) AS col0 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT - ( col2 ) * cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2789
SELECT + CAST( NULL AS DECIMAL ) * 79 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2789
SELECT + CAST ( NULL AS REAL ) * 79 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2790
SELECT + ( - col2 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT + ( - col2 ) + + 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 * col0 col2 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2792
SELECT ( - col0 ) DIV - tab1.col1 AS col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-2792
SELECT ( - col0 ) / - tab1.col1 AS col1 FROM tab1
----
0
6
6

query I rowsort
SELECT + cor0.col0 * - 55 AS col0 FROM tab1 AS cor0
----
-165
-3520
-4400

query I rowsort
SELECT DISTINCT col0 * ( + cor0.col0 ) + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT 71 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2796
SELECT ALL + col1 DIV + 69 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL + col1 / + 69 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * col1 * col0 + col1 FROM tab0 AS cor0
----
-118728
-49450
-720720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2798
SELECT DISTINCT + col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2798
SELECT DISTINCT + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2799
SELECT ALL CAST( - 63 AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL CAST ( - 63 AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT 90 * - 91 FROM tab1, tab2 AS cor0
----
9 values hashing to 213a50125e0c8a4fde40f88a228f232d

onlyif mysql # use DIV operator for integer division
query I rowsort label-2801
SELECT ALL col1 DIV - tab2.col1 col0 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL col1 / - tab2.col1 col0 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 51 * cor0.col1 col1 FROM tab0 AS cor0
----
-4300
-4550
-4850

query I rowsort
SELECT + col2 + 94 FROM tab1
----
148
151
190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + + col2 * col2 col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT ALL + 75 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - + 98 AS col0 FROM tab1, tab2, tab1 AS cor0
----
-98

query I rowsort
SELECT DISTINCT + + col2 * + cor0.col0 + + col0 + 28 AS col1 FROM tab0 AS cor0
----
7415
844
98

query I rowsort
SELECT ( col2 ) * + col2 * col0 + + col1 * + col0 FROM tab0
----
28200
3430
606535

query I rowsort
SELECT 22 * - col0 FROM tab0 AS cor0
----
-1958
-528
-770

query I rowsort
SELECT ALL - + ( col2 ) * col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - - 67 * - col0 AS col1 FROM tab0 cor0
----
-1608
-2345
-5963

query I rowsort
SELECT DISTINCT 49 + + col2 FROM tab1 AS cor0
----
103
106
145

query I rowsort
SELECT DISTINCT tab1.col0 * - col0 + - 5 AS col1 FROM tab1
----
-14
-4101
-6405

query I rowsort
SELECT ALL - 86 * col1 FROM tab2
----
-1462
-2666
-5074

query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col1 FROM tab0, tab2, tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT col0 + - col0 * + col1 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT ALL - 19 + col2 FROM tab2
----
19
7
8

query I rowsort
SELECT 85 * col2 FROM tab1 cor0
----
4590
4845
8160

query I rowsort
SELECT DISTINCT - + 52 * col1 FROM tab1 AS cor0
----
-1352
-520
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2821
SELECT ALL - col0 + - col1 DIV 75 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL - col0 + - col1 / 75 AS col2 FROM tab2 AS cor0
----
-7
-78
-79

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-2823
SELECT ALL col2 + + cor0.col2 DIV 54 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL col2 + + cor0.col2 / 54 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + + col1 * col1 + + cor0.col2 FROM tab0 AS cor0
----
7429
8363
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 + + col2 * - cor0.col1 col2 FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT + + col1 * + 60 + + cor0.col0 FROM tab2 AS cor0
----
1099
1867
3618

query I rowsort
SELECT ALL + col0 * ( + 8 ) + col0 + 44 FROM tab0 AS cor0
----
260
359
845

query I rowsort
SELECT - col2 * col1 + cor0.col0 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2829
SELECT ALL - + col1 - CAST( cor0.col1 AS SIGNED ) col2 FROM tab0 AS cor0
----
-172
-182
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL - + col1 - CAST ( cor0.col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
-172
-182
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT col0 * + CAST ( - 44 AS REAL ) + - col2 * - 87 col2 FROM tab0 AS cor0
----
-1453
1815
3218

query I rowsort
SELECT + tab0.col2 + col0 + col2 * - tab0.col1 FROM tab0
----
-2781
-61
-7291

query I rowsort
SELECT - col2 + col1 * 62 * + col0 AS col0 FROM tab0 AS cor0
----
127935
210489
502056

query I rowsort
SELECT - col1 + + 99 AS col2 FROM tab0 AS cor0
----
13
2
8

query I rowsort
SELECT + - 21 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1

query I rowsort
SELECT ALL 88 * + col1 FROM tab2
----
1496
2728
5192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 + + col0 - + ( 14 ) * + col1 col2 FROM tab1 AS cor0
----
-325
-40
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2837
SELECT col1 + + cor0.col1 DIV 16 FROM tab2 AS cor0
----
18
32
62

skipif mysql # not compatible
query I rowsort label-2837
SELECT col1 + + cor0.col1 / 16 FROM tab2 AS cor0
----
18
32
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2838
SELECT + + col0 DIV - ( col2 * col1 ) + - col1 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2838
SELECT + + col0 / - ( col2 * col1 ) + - col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT - + col1 * col2 + - ( col0 ) FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT - + col0 + 59 FROM tab1 AS cor0
----
-21
-5
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + ( 53 ) * + col1 col2 FROM tab0 cor0
----
4582
4912
5176

query I rowsort
SELECT - col2 * + col1 * - cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
119730
51113
5866

onlyif mysql # use DIV operator for integer division
query I rowsort label-2843
SELECT DISTINCT - col2 DIV + col2 + + col2 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT - col2 / + col2 + + col2 FROM tab1
----
53
56
95

query I rowsort
SELECT ALL tab0.col1 * - col2 + tab0.col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT - col0 * col0 + - col2 AS col0 FROM tab1
----
-4153
-63
-6496

query I rowsort
SELECT ALL col0 * col1 AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 - tab1.col1 AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + - col0 col0 FROM tab2
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-2849
SELECT col0 + - tab2.col2 DIV col0 AS col1 FROM tab2
----
4
78
79

skipif mysql # not compatible
query I rowsort label-2849
SELECT col0 + - tab2.col2 / col0 AS col1 FROM tab2
----
4
78
79

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 * tab0.col1 NOT BETWEEN col2 AND + col0 * col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL col0 * + col0 AS col2 FROM tab2 WHERE NOT ( col1 / - col2 ) >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + col0 - col0 )
----

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE col0 * + col2 IN ( col1 * - col1 + + col0 )
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + col1 + - col2 * + 38 AS col1 FROM tab0 AS cor0
----
-1168
-3025
59

query I rowsort
SELECT DISTINCT + col0 * - col2 * col1 + cor0.col2 * - col2 * + col2 FROM tab0 cor0
----
-104049
-1215486
-3396

query I rowsort
SELECT ( 1 * col2 ) AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT + ( - 51 ) FROM tab1
----
-51
-51
-51

query I rowsort
SELECT ALL - 7 * - col0 FROM tab1 AS cor0
----
21
448
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-2860
SELECT DISTINCT - + cor0.col2 DIV cor0.col0 AS col2 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT - + cor0.col2 / cor0.col0 AS col2 FROM tab0 cor0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2861
SELECT col1 DIV + col0 col1 FROM tab2 cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2861
SELECT col1 / + col0 col1 FROM tab2 cor0
----
0
0
4

query I rowsort
SELECT col0 + 13 * + col2 FROM tab1 AS cor0
----
1328
705
805

query I rowsort
SELECT DISTINCT - col2 * 53 AS col0 FROM tab1 AS cor0
----
-2862
-3021
-5088

query I rowsort
SELECT DISTINCT 84 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
84

query I rowsort
SELECT + - col2 + 92 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-671
-7202
-7306

query I rowsort
SELECT col0 * + 15 FROM tab0
----
1335
360
525

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1, tab2 AS cor0, tab1 cor1
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 - col1 col2 FROM tab1 AS cor0
----
-1261
-1430
-580

onlyif mysql # use DIV operator for integer division
query I rowsort label-2869
SELECT ALL - - CAST( - 8 AS SIGNED ) DIV - col1 + 49 * 51 * col2 FROM tab0 AS cor0
----
204918
2499
82467

skipif mysql # not compatible
query I rowsort label-2869
SELECT ALL - - CAST ( - 8 AS INTEGER ) / - col1 + 49 * 51 * col2 FROM tab0 AS cor0
----
204918
2499
82467

onlyif mysql # use DIV operator for integer division
query I rowsort label-2870
SELECT - cor0.col0 + + col2 DIV + col2 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-2870
SELECT - cor0.col0 + + col2 / + col2 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT + + ( - cor0.col2 ) FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - - col2 * + col2 + cor0.col0 AS col1 FROM tab2 cor0
----
1523
736
754

query I rowsort
SELECT + col1 * - col1 + col2 * tab0.col2 AS col1 FROM tab0
----
-1557
-6307
-9408

query I rowsort
SELECT ALL ( 85 ) + - col0 AS col1 FROM tab1
----
21
5
82

query I rowsort
SELECT col1 + + col1 * tab0.col1 * - col2 FROM tab0
----
-243982
-678951
-9312

query I rowsort
SELECT 77 * + cor0.col1 + + 43 FROM tab0, tab1 AS cor0
----
9 values hashing to 8a17f90e2f075bcc61d13515ac1343e3

query I rowsort
SELECT + + ( - 87 ) AS col2 FROM tab2 AS cor0
----
-87
-87
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-2878
SELECT col2 * + col0 + + col2 DIV + col0 col2 FROM tab1
----
180
3648
7681

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2878
SELECT col2 * + col0 + + col2 / + col0 col2 FROM tab1
----
180
3648
7681

query I rowsort
SELECT + ( col2 * + col0 ) + col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL + 6 FROM tab2 cor0
----
6
6
6

query I rowsort
SELECT + cor0.col0 + + col0 * col2 + col1 AS col1 FROM tab2 AS cor0
----
2165
227
3098

query I rowsort
SELECT ALL - 89 AS col2 FROM tab2 cor0
----
-89
-89
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2883
SELECT DISTINCT + 39 + - col0 DIV col0 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-2883
SELECT DISTINCT + 39 + - col0 / col0 FROM tab0 AS cor0
----
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2884
SELECT ALL col2 DIV cor0.col2 - col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL col2 / cor0.col2 - col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT ALL 74 * cor0.col1 FROM tab2 AS cor0
----
1258
2294
4366

query I rowsort
SELECT + col1 * - col0 + cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT + col1 + col2 * col0 AS col2 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT col1 - - col1 * col0 AS col2 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-2889
SELECT col2 * col2 DIV col0 + + tab2.col0 FROM tab2
----
111
86
97

skipif mysql # not compatible
query I rowsort label-2889
SELECT col2 * col2 / col0 + + tab2.col0 FROM tab2
----
111
86
97

query I rowsort
SELECT DISTINCT + - ( - 75 ) FROM tab0 AS cor0
----
75

query I rowsort
SELECT ALL - col0 + - 35 + - cor0.col0 FROM tab1 cor0
----
-163
-195
-41

query I rowsort
SELECT ALL + col1 + - col0 * - cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
233482
512
614413

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2893
SELECT CAST( NULL AS SIGNED ) / + ( col0 * col0 ) + + col0 * col0 + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2893
SELECT CAST ( NULL AS INTEGER ) / + ( col0 * col0 ) + + col0 * col0 + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - - 92 * col2 AS col0 FROM tab0 AS cor0
----
3036
7544
92

query I rowsort
SELECT ALL col2 + col2 * col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT - cor0.col2 + + cor0.col1 * + col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT col1 * + ( - col0 * col0 ) FROM tab1
----
-234
-40960
-83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-2898
SELECT ALL + col0 DIV + tab0.col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL + col0 / + tab0.col2 FROM tab0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( col1 ) ) * col2 col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + + col2 * + col0 * col0 AS col0 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT ALL cor0.col0 + col1 + - col0 AS col0 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2902
SELECT DISTINCT - CAST( - col0 AS SIGNED ) + tab0.col2 * + col1 + + col2 FROM tab0
----
133
2895
7633

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) + tab0.col2 * + col1 + + col2 FROM tab0
----
133
2895
7633

onlyif mysql # use DIV operator for integer division
query I rowsort label-2903
SELECT ( 99 ) * col0 DIV col1 + + tab1.col2 FROM tab1
----
65
690
705

skipif mysql # not compatible
query I rowsort label-2903
SELECT ( 99 ) * col0 / col1 + + tab1.col2 FROM tab1
----
65
690
705

onlyif mysql # use DIV operator for integer division
query I rowsort label-2904
SELECT DISTINCT - col0 * col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
66
71

skipif mysql # not compatible
query I rowsort label-2904
SELECT DISTINCT - col0 * col0 / - col2 AS col2 FROM tab1 AS cor0
----
0
66
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 * - cor0.col1 + col0 col2 FROM tab2 cor0
----
-1419
-2636
-703

onlyif mysql # use DIV operator for integer division
query I rowsort label-2906
SELECT ALL 51 + + ( - tab1.col0 ) + col0 DIV col2 col0 FROM tab1
----
-12
-29
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL 51 + + ( - tab1.col0 ) + col0 / col2 col0 FROM tab1
----
-12
-29
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) + + col0 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL 38 + - tab0.col0 FROM tab0
----
-51
14
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2909
SELECT col1 + + col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-2909
SELECT col1 + + col0 / + col0 AS col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2911
SELECT ALL - col2 + + cor0.col2 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
-32
-82

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL - col2 + + cor0.col2 / col0 AS col2 FROM tab0 AS cor0
----
-1
-32
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2912
SELECT + col2 * + col0 + - col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-2912
SELECT + col2 * + col0 + - col0 / + col1 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL col1 * + col2 + col1 * + col2 * col0 AS col2 FROM tab1
----
101088
37050
5616

onlyif mysql # use DIV operator for integer division
query I rowsort label-2914
SELECT - col2 DIV col0 + - col0 AS col2 FROM tab0 AS cor0
----
-25
-35
-89

skipif mysql # not compatible
query I rowsort label-2914
SELECT - col2 / col0 + - col0 AS col2 FROM tab0 AS cor0
----
-25
-35
-89

query I rowsort
SELECT col1 + col1 + col1 AS col1 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT - tab2.col2 * tab2.col2 AS col1 FROM tab2
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 col0 FROM tab2
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2918
SELECT DISTINCT col2 * - col0 + col0 DIV tab0.col0 FROM tab0
----
-34
-7297
-791

skipif mysql # not compatible
query I rowsort label-2918
SELECT DISTINCT col2 * - col0 + col0 / tab0.col0 FROM tab0
----
-34
-7297
-791

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 - - col1 col0 FROM tab2
----
-272
-3422
-930

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 ) >= col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL > NULL
----

query I rowsort
SELECT - col1 * + col0 + col2 + tab2.col1 AS col1 FROM tab2
----
-1288
-159
-4517

query I rowsort
SELECT + col1 + - col1 + col1 * - col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + col1 + col2 * - col2 FROM tab2
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-2925
SELECT DISTINCT - tab1.col1 + tab1.col2 DIV col0 FROM tab1
----
-10
-12
-8

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT - tab1.col1 + tab1.col2 / col0 FROM tab1
----
-10
-12
-8

query I rowsort
SELECT DISTINCT - tab1.col0 + - tab1.col0 * - col2 AS col0 FROM tab1
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-2927
SELECT + col0 DIV + col1 - + col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-2927
SELECT + col0 / + col1 - + col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2928
SELECT - col0 * col1 + - col2 DIV col1 AS col0 FROM tab2 AS cor0
----
-1345
-217
-4602

skipif mysql # not compatible
query I rowsort label-2928
SELECT - col0 * col1 + - col2 / col1 AS col0 FROM tab2 AS cor0
----
-1345
-217
-4602

query I rowsort
SELECT col2 + col0 * - col1 AS col0 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT col2 * + col1 + - col1 + + col0 FROM tab0
----
2776
35
7460

query I rowsort
SELECT DISTINCT + col0 + + col0 * col1 * col2 FROM tab1
----
36544
4215
99920

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 <> ( + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL + col1 - - col1 AS col1 FROM tab1 cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - cor0.col1 + + col1 col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + cor0.col2 * - col0 - + col2 FROM tab0 AS cor0
----
-36
-7380
-825

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= col0
----

query I rowsort
SELECT - col1 * - col2 * col2 AS col1 FROM tab0
----
611884
93654
97

query I rowsort
SELECT ALL + col1 * - cor0.col2 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT ALL - + col1 * - col1 + col0 FROM tab1 AS cor0
----
164
249
679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 + col2 col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL - col0 + + col0 * col1 + col2 * col1 FROM tab2 AS cor0
----
1047
1910
6058

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + col1 col1 FROM tab2 AS cor0
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab2 cor0 WHERE NULL NOT IN ( col2 / + col2 ) OR col1 NOT IN ( cor0.col2 / + col0 )
----
7
78
79

query I rowsort
SELECT col1 + + cor0.col1 + col2 FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT DISTINCT - col2 * cor0.col2 + + col0 + col2 AS col0 FROM tab0 cor0
----
-1032
-6553
35

query I rowsort
SELECT ALL + cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + - col1 * + col2 + - cor0.col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL - ( col1 ) AS col2 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab0, tab2 cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT - cor0.col0 * 70 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 24ab5940c20b80cb61ef60e36e6d1200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 * 47 col2 FROM tab1
----
171456
360960
7614

onlyif mysql # use DIV operator for integer division
query I rowsort label-2952
SELECT ( cor0.col1 ) DIV col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2952
SELECT ( cor0.col1 ) / col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + tab0.col0 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

onlyif mysql # use DIV operator for integer division
query I rowsort label-2954
SELECT DISTINCT - + col2 + cor0.col2 DIV col2 AS col1 FROM tab1 cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-2954
SELECT DISTINCT - + col2 + cor0.col2 / col2 AS col1 FROM tab1 cor0
----
-53
-56
-95

query I rowsort
SELECT DISTINCT ( col1 ) * + col0 AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT + - col2 * + 52 FROM tab1 AS cor0
----
-2808
-2964
-4992

query I rowsort
SELECT col1 * ( - 80 ) FROM tab0 AS cor0
----
-6880
-7280
-7760

query I rowsort
SELECT - - col2 + - col0 AS col2 FROM tab0 cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2960
SELECT - col0 * CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-2960
SELECT - col0 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2961
SELECT + cor0.col1 + col0 DIV col0 col0 FROM tab1 cor0
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2961
SELECT + cor0.col1 + col0 / col0 col0 FROM tab1 cor0
----
11
14
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-2962
SELECT ALL - tab1.col0 DIV - col0 + col2 * + col0 + + ( tab1.col1 ) FROM tab1
----
189
3659
7694

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL - tab1.col0 / - col0 + col2 * + col0 + + ( tab1.col1 ) FROM tab1
----
189
3659
7694

onlyif mysql # use DIV operator for integer division
query I rowsort label-2963
SELECT DISTINCT + col0 DIV + col0 + + 80 AS col1 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT + col0 / + col0 + + 80 AS col1 FROM tab1
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - 7 col2 FROM tab0
----
-40
-8
-89

query I rowsort
SELECT ALL - col0 * col0 + - tab2.col0 FROM tab2
----
-56
-6162
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col0 col2 FROM tab0
----
110
132
180

query I rowsort
SELECT - ( ( cor0.col1 ) ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT DISTINCT + 82 + + col1 FROM tab0 AS cor0
----
168
173
179

query I rowsort
SELECT DISTINCT + cor0.col0 * 84 AS col1 FROM tab2 AS cor0
----
588
6552
6636

query I rowsort
SELECT ALL 26 FROM tab1 cor0
----
26
26
26

query I rowsort
SELECT + + 36 * 11 AS col2 FROM tab0 AS cor0
----
396
396
396

query I rowsort
SELECT ALL + ( - col1 ) + col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT + - ( - col1 ) + - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + ( cor0.col0 ) * col0 - + col1 AS col2 FROM tab0 AS cor0
----
1128
490
7830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2975
SELECT CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + 37 FROM tab2 AS cor0
----
-1
10
11

query I rowsort
SELECT - 7 + + col0 * col0 FROM tab1 AS cor0
----
2
4089
6393

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2978
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + cor0.col1 AS REAL ) * - col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 * + col1 + + col0 col0 FROM tab1 AS cor0
----
-1453
-496
-648

query I rowsort
SELECT DISTINCT 3 * col1 + col0 + - 59 AS col0 FROM tab2 cor0
----
196
41
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-2982
SELECT 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-2982
SELECT col2 / - col2 col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col2 * col0 * ( 33 + cor0.col1 * + col0 ) FROM tab2 cor0
----
4130752
47250
9399780

query I rowsort
SELECT - + cor0.col2 + + col0 * col1 * + col0 AS col2 FROM tab1 AS cor0
----
180
40903
83104

query I rowsort
SELECT DISTINCT + + col2 * + col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2986
SELECT - + 89 * - col2 + + col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
2314
2399
3382

skipif mysql # not compatible
query I rowsort label-2986
SELECT - + 89 * - col2 + + col1 / - col0 AS col1 FROM tab2 AS cor0
----
2314
2399
3382

onlyif mysql # use DIV operator for integer division
query I rowsort label-2987
SELECT ALL col0 + col1 DIV cor0.col0 FROM tab1 AS cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL col0 + col1 / cor0.col0 FROM tab1 AS cor0
----
11
64
80

query I rowsort
SELECT - 53 * - col1 + - col1 AS col0 FROM tab2 AS cor0
----
1612
3068
884

query I rowsort
SELECT DISTINCT + 44 AS col2 FROM tab0 cor0
----
44

query I rowsort
SELECT ALL + cor0.col0 + col2 * + col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + 2 * col1 * - 27 - - col1 FROM tab2 AS cor0
----
-1643
-3127
-901

query I rowsort
SELECT + + col1 + + col0 * + col1 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT col2 * ( - ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-2994
SELECT ALL + col1 DIV 36 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL + col1 / 36 AS col0 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT + 8 * - cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d10d5e742a0028a10bad2cdf8b047c8b

query I rowsort
SELECT DISTINCT col0 * - tab2.col1 + + col0 AS col2 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT col0 + - 17 FROM tab2
----
-10
61
62

query I rowsort
SELECT DISTINCT + + cor0.col1 * col2 + + 15 AS col1 FROM tab2 AS cor0
----
1549
661
852

onlyif mysql # use DIV operator for integer division
query I rowsort label-2999
SELECT ALL - + col2 * cor0.col1 DIV col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL - + col2 * cor0.col1 / col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - 58 * + col0 + col1 AS col1 FROM tab0 cor0
----
-1306
-1933
-5071

onlyif mysql # use DIV operator for integer division
query I rowsort label-3001
SELECT + 24 DIV col2 + CAST( 56 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-3001
SELECT + 24 / col2 + CAST ( 56 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
56
56
56

query I rowsort
SELECT DISTINCT 36 + col1 AS col0 FROM tab2
----
53
67
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL + 20 + col2 + col2 AS col1 FROM tab0
----
184
22
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-3005
SELECT + + col1 + - col1 DIV 36 FROM tab2 AS cor0
----
17
31
58

skipif mysql # not compatible
query I rowsort label-3005
SELECT + + col1 + - col1 / 36 FROM tab2 AS cor0
----
17
31
58

query I rowsort
SELECT DISTINCT 45 + cor0.col0 AS col0 FROM tab2 AS cor0
----
123
124
52

query I rowsort
SELECT ALL 91 * - col0 AS col1 FROM tab2 AS cor0
----
-637
-7098
-7189

query I rowsort
SELECT DISTINCT + col2 - col1 * - col0 FROM tab2
----
1381
244
4628

query I rowsort
SELECT ALL - col0 * col2 + + col1 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3010
SELECT col0 DIV + 81 + col0 AS col1 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-3010
SELECT col0 / + 81 + col0 AS col1 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3011
SELECT ALL col1 * col1 + col2 * + col2 * + CAST( NULL AS SIGNED ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL col1 * col1 + col2 * + col2 * + CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 - + cor0.col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3013
SELECT + col1 * - CAST( col0 AS SIGNED ) - - col1 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif mysql # not compatible
query I rowsort label-3013
SELECT + col1 * - CAST ( col0 AS INTEGER ) - - col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL col2 + ( col0 + - col2 * 68 ) AS col1 FROM tab0 AS cor0
----
-2187
-32
-5405

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL - col1 - - 69 * 99 FROM tab2 AS cor0
----
6772
6800
6814

onlyif mysql # use DIV operator for integer division
query I rowsort label-3017
SELECT ALL - + col1 * - col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL - + col1 * - col0 / - col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + 86 + col2 * cor0.col0 FROM tab1 AS cor0
----
248
3734
7766

query I rowsort
SELECT DISTINCT cor0.col2 + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT 37 * - col2 + + col2 * col0 FROM tab0 AS cor0
----
-2
-429
4264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3021
SELECT - CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-3021
SELECT - CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT DISTINCT - col1 + - ( col1 ) AS col2 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT + col1 * ( col2 ) AS col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT 42 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # use DIV operator for integer division
query I rowsort label-3026
SELECT + 60 + col2 DIV + col0 AS col2 FROM tab1 cor0
----
60
61
78

skipif mysql # not compatible
query I rowsort label-3026
SELECT + 60 + col2 / + col0 AS col2 FROM tab1 cor0
----
60
61
78

query I rowsort
SELECT DISTINCT - + 19 AS col1 FROM tab2 AS cor0
----
-19

query I rowsort
SELECT ALL ( + 89 ) * cor0.col1 AS col2 FROM tab1 cor0
----
1157
2314
890

query I rowsort
SELECT ( + 61 ) + + col2 AS col1 FROM tab1 cor0
----
115
118
157

onlyif mysql # use DIV operator for integer division
query I rowsort label-3030
SELECT + + 71 * - 2 + col1 DIV col1 AS col1 FROM tab2 AS cor0
----
-141
-141
-141

skipif mysql # not compatible
query I rowsort label-3030
SELECT + + 71 * - 2 + col1 / col1 AS col1 FROM tab2 AS cor0
----
-141
-141
-141

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3031
SELECT DISTINCT - CAST( 66 AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT - CAST ( 66 AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0
----
-66

query I rowsort
SELECT DISTINCT + 97 + 44 AS col2 FROM tab1, tab1 cor0
----
141

query I rowsort
SELECT col0 + tab1.col1 * col1 * col0 FROM tab1
----
13600
2031
6464

onlyif mysql # use DIV operator for integer division
query I rowsort label-3034
SELECT col1 DIV + ( col2 ) + + col0 FROM tab0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-3034
SELECT col1 / + ( col2 ) + + col0 FROM tab0
----
132
26
90

query I rowsort
SELECT - cor0.col0 * + 49 * 2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to b21186989b2ac3c69310d1afbf730649

onlyif mysql # use DIV operator for integer division
query I rowsort label-3036
SELECT ALL - col1 DIV + 71 + - 1 + - col1 * - 92 FROM tab2
----
1563
2851
5427

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL - col1 / + 71 + - 1 + - col1 * - 92 FROM tab2
----
1563
2851
5427

query I rowsort
SELECT ALL + col0 * 39 AS col0 FROM tab2
----
273
3042
3081

query I rowsort
SELECT - - ( + 50 ) FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to 6932c991110d256d3f92f3e9538f8040

query I rowsort
SELECT - ( + 76 * - col0 ) FROM tab1
----
228
4864
6080

query I rowsort
SELECT DISTINCT 90 * tab0.col0 FROM tab0
----
2160
3150
8010

query I rowsort
SELECT DISTINCT - + cor0.col2 * 16 AS col1 FROM tab2 AS cor0
----
-416
-432
-608

query I rowsort
SELECT + - cor0.col1 * ( col2 ) FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3043
SELECT + col0 + + col2 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-3043
SELECT + col0 + + col2 / cor0.col2 AS col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL + tab1.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT 61 * - col0 + col2 * - col2 FROM tab0 AS cor0
----
-12153
-2136
-2553

query I rowsort
SELECT DISTINCT + col0 * + 63 + - col2 * col1 * - ( - col2 ) FROM tab0
----
-606277
-92142
2108

query I rowsort
SELECT ALL col2 + - ( - col2 ) FROM tab1
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col1 col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL col1 + 67 FROM tab0
----
153
158
164

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3050
SELECT col0 + CAST( NULL AS SIGNED ) * + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3050
SELECT col0 + CAST ( NULL AS INTEGER ) * + col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3051
SELECT + CAST( NULL AS SIGNED ) * - 29 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3051
SELECT + CAST ( NULL AS INTEGER ) * - 29 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( + col2 + + cor0.col1 ) col1 FROM tab2 AS cor0
----
144
72
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

query I rowsort
SELECT 97 * - col2 * - col2 FROM tab2
----
140068
65572
70713

query I rowsort
SELECT ALL - 10 * col0 FROM tab1
----
-30
-640
-800

query I rowsort
SELECT DISTINCT - col1 * col1 - col2 AS col0 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT DISTINCT 50 * + cor0.col1 FROM tab0 AS cor0
----
4300
4550
4850

onlyif mysql # use DIV operator for integer division
query I rowsort label-3058
SELECT + col0 + cor0.col2 DIV 15 FROM tab2 AS cor0
----
79
8
81

skipif mysql # not compatible
query I rowsort label-3058
SELECT + col0 + cor0.col2 / 15 FROM tab2 AS cor0
----
79
8
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3059
SELECT ALL CAST( NULL AS SIGNED ) + col0 * tab0.col2 * + ( tab0.col2 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL CAST ( NULL AS INTEGER ) + col0 * tab0.col2 * + ( tab0.col2 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - + col2 * col2 AS col1 FROM tab0
----
-1175
-6815
-98

query I rowsort
SELECT - - 30 + 35 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

query I rowsort
SELECT 4 * col1 AS col2 FROM tab2
----
124
236
68

query I rowsort
SELECT + - 4 AS col1 FROM tab0 cor0
----
-4
-4
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3064
SELECT DISTINCT + col1 - + tab1.col0 DIV col1 AS col1 FROM tab1
----
26
4
7

skipif mysql # not compatible
query I rowsort label-3064
SELECT DISTINCT + col1 - + tab1.col0 / col1 AS col1 FROM tab1
----
26
4
7

query I rowsort
SELECT DISTINCT - 37 AS col1 FROM tab1, tab0, tab0 AS cor0, tab2 cor1
----
-37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3066
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * col0 + + 9 FROM tab1
----
-1031
-631
-69

skipif mysql # not compatible
query I rowsort label-3066
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * col0 + + 9 FROM tab1
----
-1031
-631
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-3067
SELECT DISTINCT col0 DIV col1 + + col2 AS col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3067
SELECT DISTINCT col0 / col1 + + col2 AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT 56 * col0 + col0 FROM tab2
----
399
4446
4503

query I rowsort
SELECT ALL + - cor0.col1 + + col0 AS col2 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-3070
SELECT + + col0 DIV cor0.col0 + ( + col1 + col1 ) col2 FROM tab0 AS cor0
----
173
183
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3070
SELECT + + col0 / cor0.col0 + ( + col1 + col1 ) col2 FROM tab0 AS cor0
----
173
183
195

query I rowsort
SELECT DISTINCT - - col1 * - cor0.col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - 78 + col1 FROM tab0 AS cor0
----
13
19
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3073
SELECT ALL ( - col0 ) * + CAST( - 67 AS SIGNED ) * col1 FROM tab0 AS cor0
----
138288
227465
542633

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL ( - col0 ) * + CAST ( - 67 AS INTEGER ) * col1 FROM tab0 AS cor0
----
138288
227465
542633

query I rowsort
SELECT - + col0 * + cor0.col1 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL + cor0.col2 * - col0 * - 84 + - 86 FROM tab1 AS cor0
----
13522
306346
645034

query I rowsort
SELECT ALL - - 37 * col1 + + ( col1 ) AS col2 FROM tab1 cor0
----
380
494
988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3077
SELECT ALL + 45 * col0 * - CAST( - cor0.col0 AS SIGNED ) - col0 * - cor0.col1 * col1 AS col0 FROM tab2 AS cor0
----
303676
545298
8932

skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL + 45 * col0 * - CAST ( - cor0.col0 AS INTEGER ) - col0 * - cor0.col1 * col1 AS col0 FROM tab2 AS cor0
----
303676
545298
8932

query I rowsort
SELECT ALL - col0 + col1 * + 91 * - col0 FROM tab1 AS cor0
----
-58304
-7101
-94720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3079
SELECT col2 * cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3079
SELECT col2 * cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 8 AS col1 FROM tab2 AS cor0
----
-8
-8
-8

query I rowsort
SELECT + 93 + cor0.col0 AS col2 FROM tab1 cor0
----
157
173
96

query I rowsort
SELECT DISTINCT + col1 * - col2 * + col0 AS col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL + + ( - cor0.col0 ) * col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + + 32 + + 19 AS col0 FROM tab2 AS cor0
----
51
51
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3085
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col0 ) col2 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT + - col0 * - ( - col1 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT tab1.col0 * - col0 * col2 AS col1 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT col2 + + 32 FROM tab0 AS cor0
----
114
33
65

query I rowsort
SELECT ALL - 59 * 76 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b1bef62d571828bfc91430d9539cf70f

query I rowsort
SELECT ALL + - col2 + col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1560
-684
-864

onlyif mysql # use DIV operator for integer division
query I rowsort label-3092
SELECT ALL - col1 DIV 65 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL - col1 / 65 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3093
SELECT DISTINCT - col0 + - col0 DIV - col1 AS col2 FROM tab2 AS cor0
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT - col0 + - col0 / - col1 AS col2 FROM tab2 AS cor0
----
-7
-75
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3094
SELECT - cor0.col0 + + ( cor0.col0 ) + col0 DIV + 11 col2 FROM tab2 AS cor0
----
0
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3094
SELECT - cor0.col0 + + ( cor0.col0 ) + col0 / + 11 col2 FROM tab2 AS cor0
----
0
7
7

query I rowsort
SELECT ALL + col1 * cor0.col2 + + 40 AS col1 FROM tab1 AS cor0
----
1288
1444
610

query I rowsort
SELECT DISTINCT + 19 * col2 * - col2 - + tab2.col1 FROM tab2
----
-12903
-13882
-27453

query I rowsort
SELECT DISTINCT 40 + 20 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
60

query I rowsort
SELECT ( col1 ) * + col1 - + 38 AS col2 FROM tab0
----
7358
8243
9371

onlyif mysql # use DIV operator for integer division
query I rowsort label-3099
SELECT ( col0 ) DIV col2 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3099
SELECT ( col0 ) / col2 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT + col2 * col2 + tab2.col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT DISTINCT - col1 + tab2.col2 * 14 AS col2 FROM tab2
----
305
347
515

query I rowsort
SELECT col1 * 28 - + 71 * - col0 FROM tab0 AS cor0
----
4112
5201
8867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 * - col2 - - col1 * 75 col0 FROM tab1
----
1320
2223
3354

query I rowsort
SELECT - col1 + + 92 FROM tab2
----
33
61
75

query I rowsort
SELECT ALL - cor0.col1 * + 37 * tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 539ec7a9635ccba690d821bb5bfd7d73

onlyif mysql # use DIV operator for integer division
query I rowsort label-3106
SELECT + + col1 + 28 DIV + col1 AS col1 FROM tab1 AS cor0
----
12
15
27

skipif mysql # not compatible
query I rowsort label-3106
SELECT + + col1 + 28 / + col1 AS col1 FROM tab1 AS cor0
----
12
15
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-3107
SELECT DISTINCT - - col0 DIV 90 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT - - col0 / 90 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 93 + 51 * + col1 AS col1 FROM tab0
----
4479
4734
5040

query I rowsort
SELECT 37 - col0 * col0 FROM tab1 AS cor0
----
-4059
-6363
28

query I rowsort
SELECT - col1 + - col0 * - ( - col1 ) + + col0 FROM tab0
----
-2126
-3457
-8101

query I rowsort
SELECT DISTINCT + 77 + + col0 FROM tab2 AS cor0
----
155
156
84

query I rowsort
SELECT ALL - 52 * col1 * + cor0.col0 FROM tab1 AS cor0
----
-33280
-4056
-54080

query I rowsort
SELECT ALL - 82 + col1 FROM tab1 AS cor0
----
-56
-69
-72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3114
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - - cor0.col2 - + col1 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL - 8 + col0 * col1 AS col2 FROM tab1 AS cor0
----
1032
632
70

query I rowsort
SELECT DISTINCT - col1 * + col1 + - 40 AS col1 FROM tab2 AS cor0
----
-1001
-329
-3521

query I rowsort
SELECT ( + col1 ) * - col2 * - col1 FROM tab1 AS cor0
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-3119
SELECT - - col2 DIV - col1 AS col2 FROM tab1 cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-3119
SELECT - - col2 / - col1 AS col2 FROM tab1 cor0
----
-2
-5
-7

query I rowsort
SELECT DISTINCT 90 + + col2 FROM tab0 AS cor0
----
123
172
91

query I rowsort
SELECT DISTINCT 8 * - tab1.col0 AS col2 FROM tab1
----
-24
-512
-640

query I rowsort
SELECT + col0 + - col0 * - ( col0 ) FROM tab2 cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT + 48 - - col0 AS col2 FROM tab0 AS cor0
----
137
72
83

query I rowsort
SELECT ALL cor0.col2 * col2 AS col0 FROM tab2 cor0
----
1444
676
729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3125
SELECT ALL + col1 * cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL + col1 * cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 16 * - col2 col2 FROM tab2 AS cor0
----
416
432
608

query I rowsort
SELECT DISTINCT + col1 * col2 - col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT ALL + + col0 + col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT ALL + col1 + - ( - cor0.col0 ) * - col0 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT col1 * - 40 + + col1 FROM tab0 AS cor0
----
-3354
-3549
-3783

query I rowsort
SELECT - cor0.col2 * - col1 + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT 68 FROM tab2, tab1 cor0, tab1 AS cor1
----
68

query I rowsort
SELECT ALL col2 * 24 FROM tab2 AS cor0
----
624
648
912

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3134
SELECT ALL CAST( NULL AS SIGNED ) * + 30 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-3134
SELECT ALL CAST ( NULL AS INTEGER ) * + 30 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 25 * + ( col0 ) + col2 + 32 FROM tab1 cor0
----
161
1689
2128

query I rowsort
SELECT + ( - 92 ) * + col2 + col1 FROM tab2 AS cor0
----
-2333
-2453
-3479

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3137
SELECT ALL CAST( - cor0.col0 AS SIGNED ) * - col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL CAST ( - cor0.col0 AS INTEGER ) * - col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - + 19 * - col1 FROM tab0 AS cor0
----
1634
1729
1843

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + cor0.col1 * 81 col0 FROM tab2 AS cor0
----
1394
2542
4838

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col1 * - col2 * + col2 col0 FROM tab1 AS cor0
----
119795
32480
75790

query I rowsort
SELECT - + ( cor0.col0 ) * col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT col2 + + 93 * - col1 AS col0 FROM tab1
----
-1113
-2364
-873

query I rowsort
SELECT DISTINCT ( + 40 ) AS col0 FROM tab0
----
40

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > ( - col0 )
----

query I rowsort
SELECT - col0 + - col0 + + col2 AS col2 FROM tab2
----
-120
-130
13

query I rowsort
SELECT - col2 + col1 - + tab0.col1 FROM tab0
----
-1
-33
-82

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + col2 * col0 AND NULL
----

query I rowsort
SELECT DISTINCT + col0 + - col0 * - col0 * col0 FROM tab2
----
350
474630
493118

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NOT NULL <> ( - col0 + + col1 )
----

query I rowsort
SELECT tab1.col1 * col2 * col2 + col1 FROM tab1
----
119821
32500
75842

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( col0 + col2 * - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 + col2 IN ( + col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3153
SELECT DISTINCT tab0.col2 DIV col2 + col2 + tab0.col0 AS col2 FROM tab0
----
172
37
58

skipif mysql # not compatible
query I rowsort label-3153
SELECT DISTINCT tab0.col2 / col2 + col2 + tab0.col0 AS col2 FROM tab0
----
172
37
58

query I rowsort
SELECT - col2 + - tab0.col0 AS col2 FROM tab0 WHERE NOT NULL > ( col0 * + col2 + - col1 )
----

query I rowsort
SELECT col0 + - col1 + + col2 * - col1 FROM tab2
----
-1515
-584
-861

query I rowsort
SELECT DISTINCT col1 + col1 * - col0 + + tab2.col2 FROM tab2
----
-1288
-159
-4517

query I rowsort
SELECT ALL + col0 + - col0 + col0 * col2 FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + tab0.col0 col1 FROM tab0
----
35
7298
792

query I rowsort
SELECT - col0 * col2 + 84 * - ( col0 * col1 ) FROM tab2 AS cor0
----
-115814
-18417
-388596

onlyif mysql # use DIV operator for integer division
query I rowsort label-3160
SELECT DISTINCT - 41 * col1 + - ( col1 ) DIV col2 AS col1 FROM tab0 AS cor0
----
-3528
-3732
-4074

skipif mysql # not compatible
query I rowsort label-3160
SELECT DISTINCT - 41 * col1 + - ( col1 ) / col2 AS col1 FROM tab0 AS cor0
----
-3528
-3732
-4074

query I rowsort
SELECT + + cor0.col1 + col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - - 92 + col1 AS col1 FROM tab1 cor0
----
102
105
118

query I rowsort
SELECT ALL + + col1 + + col0 * col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + col2 + + tab1.col1 * + col2 * col2 + - col2 FROM tab1 WHERE NOT - col0 IN ( col0 + tab1.col1 )
----
119808
32490
75816

query I rowsort
SELECT ALL col1 * + col2 - - col1 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - + ( cor0.col2 ) + - col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL cor0.col1 * - col0 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col2 + col2 * col1 * col1 AS col2 FROM tab0 AS cor0
----
244101
679124
9410

query I rowsort
SELECT + col0 + - col0 - col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - tab1.col1 * col2 AS col1 FROM tab1 WHERE NULL IN ( col1 * - col1 * col1 )
----

query I rowsort
SELECT DISTINCT col1 * + col0 FROM tab0 AS cor0 WHERE NULL IN ( - col0 + col1 )
----

query I rowsort
SELECT DISTINCT col0 * + tab0.col1 * + col1 FROM tab0
----
177504
329315
737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - col0 col0 FROM tab1
----
-121
-176
-57

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * col2 >= ( NULL )
----

query I rowsort
SELECT DISTINCT col1 * + tab0.col0 + col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT col0 + + tab1.col2 * + tab1.col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT tab2.col1 AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * - col2 * + col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE ( + col1 + - col2 ) = NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NULL NOT BETWEEN col2 AND ( + col0 )
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( col0 + col1 * + col2 )
----

query I rowsort
SELECT - col0 * col1 + - tab2.col1 AS col2 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT ALL col0 * - col1 + - cor0.col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT - ( + cor0.col2 ) AS col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - - col1 + col1 * col1 AS col1 FROM tab2 AS cor0
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-3186
SELECT - 30 DIV + 20 AS col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3186
SELECT - 30 / + 20 AS col1 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col0 * col1 * col1 AS col1 FROM tab0 cor0
----
-177504
-329315
-737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT col1 + 0 * + tab1.col1 AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT ( cor0.col0 ) * col1 + col1 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT ALL + - col1 + + 69 * col1 FROM tab0 AS cor0
----
5848
6188
6596

query I rowsort
SELECT DISTINCT - ( - 15 ) AS col2 FROM tab1 cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 85 + col1 * 5 - ( col0 ) col0 FROM tab0
----
2446
3425
7931

query I rowsort
SELECT 47 * - tab0.col0 AS col0 FROM tab0
----
-1128
-1645
-4183

query I rowsort
SELECT DISTINCT 5 + col1 AS col1 FROM tab1
----
15
18
31

query I rowsort
SELECT DISTINCT ( + col2 ) * + col0 + + tab1.col2 + col0 FROM tab1
----
219
3769
7856

query I rowsort
SELECT DISTINCT - 53 * col2 + col2 + + col0 * 62 AS col2 FROM tab1
----
-2622
-32
1004

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - 26 AS REAL ) * col0 * + col2 + col2 + col1 FROM tab1
----
199789
4292
94915

query I rowsort
SELECT - 18 * tab1.col1 + col1 * col0 AS col0 FROM tab1
----
-390
460
806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3200
SELECT ALL + + col0 * - CAST( NULL AS SIGNED ) * + ( col1 ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL + + col0 * - CAST ( NULL AS INTEGER ) * + ( col1 ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col2 * - 7 + + col2 AS col1 FROM tab1 AS cor0
----
-324
-342
-576

query I rowsort
SELECT ALL - col2 * - col1 * ( + col2 * 71 ) + - col1 FROM tab2 AS cor0
----
1604498
1742891
2831705

query I rowsort
SELECT + col1 + - 61 AS col1 FROM tab2 AS cor0
----
-2
-30
-44

query I rowsort
SELECT DISTINCT cor0.col0 + - 69 FROM tab1 AS cor0
----
-5
-66
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3205
SELECT DISTINCT col1 * + CAST( - 80 AS SIGNED ) FROM tab1 AS cor0
----
-1040
-2080
-800

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT col1 * + CAST ( - 80 AS INTEGER ) FROM tab1 AS cor0
----
-1040
-2080
-800

onlyif mysql # use DIV operator for integer division
query I rowsort label-3206
SELECT ALL + col0 DIV - 36 AS col2 FROM tab1 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL + col0 / - 36 AS col2 FROM tab1 cor0
----
-1
-2
0

query I rowsort
SELECT ALL - col0 + - col2 * + col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT 25 AS col1 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT ALL + 63 + + col0 FROM tab1
----
127
143
66

query I rowsort
SELECT col0 * col1 * + 14 - + col0 FROM tab0
----
113297
28872
47495

onlyif mysql # use DIV operator for integer division
query I rowsort label-3211
SELECT DISTINCT col2 DIV + cor0.col1 col2 FROM tab2 AS cor0
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3211
SELECT DISTINCT col2 / + cor0.col1 col2 FROM tab2 AS cor0
----
0
2

query I rowsort
SELECT + cor0.col2 * - col2 * + 58 FROM tab2 AS cor0
----
-39208
-42282
-83752

skipif mysql # not compatible
query I rowsort
SELECT + col2 + + CAST ( col1 AS REAL ) / - col1 AS col2 FROM tab2 AS cor0
----
25
26
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT ( + 87 ) + - tab2.col2 FROM tab2
----
49
60
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-3216
SELECT ( col2 ) DIV - col0 + tab0.col1 AS col0 FROM tab0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-3216
SELECT ( col2 ) / - col0 + tab0.col1 AS col0 FROM tab0
----
85
91
97

query I rowsort
SELECT ALL + 44 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT DISTINCT + col1 * cor0.col0 - col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT ALL - col2 * 55 FROM tab2 AS cor0
----
-1430
-1485
-2090

query I rowsort
SELECT cor0.col1 * cor1.col2 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c3fd7ac1d848da6e54fad73fc607f7da

query I rowsort
SELECT ALL + 58 * 7 AS col1 FROM tab0 AS cor0
----
406
406
406

query I rowsort
SELECT - 6 + cor0.col0 FROM tab1 AS cor0
----
-3
58
74

query I rowsort
SELECT ALL - 23 + + col0 * col1 * - col2 AS col2 FROM tab1 AS cor0
----
-36503
-4235
-99863

query I rowsort
SELECT DISTINCT + 12 + - col0 * col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-12
-571
-932

query I rowsort
SELECT ALL cor0.col1 * col2 + - col2 * - col1 * + col1 + - col0 FROM tab0 AS cor0
----
246882
686415
9471

query I rowsort
SELECT + + 72 * col0 - + col2 AS col0 FROM tab1 AS cor0
----
162
4551
5664

query I rowsort
SELECT - cor0.col2 * + col0 + cor0.col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL - + ( col1 ) AS col2 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT col2 * + col1 + + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL - ( 67 ) + - col0 FROM tab0
----
-102
-156
-91

query I rowsort
SELECT DISTINCT col0 * 76 + col0 AS col1 FROM tab1
----
231
4928
6160

query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col0 FROM tab0, tab1, tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - 97 + + col0 * + col1 + + col1 AS col2 FROM tab0
----
2053
3395
8093

onlyif mysql # use DIV operator for integer division
query I rowsort label-3234
SELECT DISTINCT - - col2 DIV 27 col1 FROM tab2 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT - - col2 / 27 col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT + col0 * + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT + col0 + + 68 AS col1 FROM tab1 AS cor0
----
132
148
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3237
SELECT DISTINCT - col1 * CAST( col1 + - col0 AS SIGNED ) FROM tab2 AS cor0
----
-744
1054
1121

skipif mysql # not compatible
query I rowsort label-3237
SELECT DISTINCT - col1 * CAST ( col1 + - col0 AS INTEGER ) FROM tab2 AS cor0
----
-744
1054
1121

query I rowsort
SELECT DISTINCT - - col1 * col1 AS col0 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT + - col1 + col0 * col2 * + col0 FROM tab0 AS cor0
----
1128
18922
649431

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col2 col0 FROM tab2
----
-52
-54
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3241
SELECT DISTINCT - col1 * - col0 + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3241
SELECT DISTINCT - col1 * - col0 + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3242
SELECT DISTINCT col1 * col0 DIV col0 + col2 col0 FROM tab2
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT col1 * col0 / col0 + col2 col0 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3243
SELECT - + cor0.col1 DIV col0 AS col2 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-3243
SELECT - + cor0.col1 / col0 AS col2 FROM tab2 AS cor0
----
-4
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3244
SELECT DISTINCT - + cor0.col1 + col1 DIV col1 AS col0 FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-3244
SELECT DISTINCT - + cor0.col1 + col1 / col1 AS col0 FROM tab2 AS cor0
----
-16
-30
-58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3245
SELECT - - col1 + - CAST( NULL AS DECIMAL ) + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT - - col1 + - CAST ( NULL AS REAL ) + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + 9 AS col0 FROM tab2 AS cor0
----
16
87
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-3247
SELECT col2 DIV - 56 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3247
SELECT col2 / - 56 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col0 * + 69 + col1 FROM tab0 AS cor0
----
1742
2512
6232

query I rowsort
SELECT - col1 + - ( col2 ) * + col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT + 24 AS col2 FROM tab2, tab0 cor0
----
24

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT col0 / + col2 NOT BETWEEN - col0 AND + col1 / col2 OR NULL < col0 * - col1
----
1
33
82

query I rowsort
SELECT DISTINCT col1 * col2 AS col2 FROM tab0 WHERE col0 + col2 * + col0 / col1 NOT BETWEEN ( + col1 - - col0 ) AND NULL
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col2 * + tab0.col0 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT - col1 + - col2 AS col2 FROM tab2 WHERE ( + col0 / col1 ) NOT IN ( col2 * col1 )
----
-55
-58
-85

query I rowsort
SELECT ALL col1 * + col1 + + col0 AS col2 FROM tab2
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-3256
SELECT 92 + col1 DIV col1 col1 FROM tab2 cor0
----
93
93
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3256
SELECT 92 + col1 / col1 col1 FROM tab2 cor0
----
93
93
93

query I rowsort
SELECT DISTINCT + col1 * col2 * - col1 AS col0 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT + col2 + + col1 + + tab1.col1 FROM tab1
----
106
122
77

query I rowsort
SELECT DISTINCT col0 * - col2 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1026
-3562
-3648

query I rowsort
SELECT ALL + + col0 * 42 FROM tab0 AS cor0
----
1008
1470
3738

query I rowsort
SELECT DISTINCT - col0 * - ( col2 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - - col0 * + col2 + - cor0.col2 + col1 FROM tab2 AS cor0
----
193
2061
2981

query I rowsort
SELECT - tab0.col2 + + col2 - - tab0.col2 * 9 FROM tab0
----
297
738
9

query I rowsort
SELECT ALL + 52 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT tab0.col0 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT + col2 + ( + tab0.col2 ) AS col1 FROM tab0
----
164
2
66

query I rowsort
SELECT DISTINCT col1 * + 64 * col0 AS col2 FROM tab0
----
132096
217280
518336

query I rowsort
SELECT DISTINCT + col0 * col0 + - col1 AS col0 FROM tab2
----
18
6025
6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-3269
SELECT col0 * - 73 + col2 * + col0 + tab1.col1 DIV col0 AS col2 FROM tab1
----
-1024
-49
1840

skipif mysql # not compatible
query I rowsort label-3269
SELECT col0 * - 73 + col2 * + col0 + tab1.col1 / col0 AS col2 FROM tab1
----
-1024
-49
1840

query I rowsort
SELECT - + col0 * - 19 * 66 FROM tab2 AS cor0
----
8778
97812
99066

query I rowsort
SELECT col0 + + 32 + col2 AS col0 FROM tab2 AS cor0
----
136
149
66

query I rowsort
SELECT col0 + col2 * + col0 * 97 AS col2 FROM tab1 AS cor0
----
15717
353920
745040

query I rowsort
SELECT + tab0.col0 * + 74 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to f61faf013b5ea6cb5f428c9ea685baf7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3274
SELECT cor0.col2 + cor0.col1 * CAST( NULL AS DECIMAL ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3274
SELECT cor0.col2 + cor0.col1 * CAST ( NULL AS REAL ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ( - tab1.col1 ) * + col1 + - col1 AS col2 FROM tab1
----
-110
-182
-702

query I rowsort
SELECT - 83 + + col2 * tab1.col0 AS col2 FROM tab1
----
3565
7597
79

query I rowsort
SELECT - 9 * - col0 AS col0 FROM tab2 AS cor0
----
63
702
711

query I rowsort
SELECT DISTINCT - - col1 * cor0.col0 * - cor0.col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT col2 * + col2 * 69 AS col1 FROM tab0 AS cor0
----
463956
69
75141

query I rowsort
SELECT 55 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-385
-4290
-4345

query I rowsort
SELECT DISTINCT - 79 * - col0 + ( col1 ) + + cor0.col0 AS col0 FROM tab2 AS cor0
----
591
6299
6337

query I rowsort
SELECT DISTINCT + col1 + 93 AS col0 FROM tab0 AS cor0
----
179
184
190

query I rowsort
SELECT DISTINCT col2 * 44 AS col0 FROM tab2 AS cor0
----
1144
1188
1672

query I rowsort
SELECT + - col0 + col0 * + col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT DISTINCT col2 * ( col2 + - col0 ) FROM tab0 AS cor0
----
-34
-574
297

query I rowsort
SELECT DISTINCT cor0.col0 * - ( col1 ) * col0 - - cor0.col1 FROM tab2 AS cor0
----
-106080
-1488
-358897

query I rowsort
SELECT ALL - - col1 + col2 * 60 FROM tab2 AS cor0
----
1619
1651
2297

query I rowsort
SELECT ALL + cor0.col2 + - col1 + - col0 AS col2 FROM tab0 AS cor0
----
-131
-77
-98

query I rowsort
SELECT DISTINCT + - cor0.col1 + 38 FROM tab1 cor0
----
12
25
28

query I rowsort
SELECT col2 * 23 AS col1 FROM tab0 AS cor0
----
1886
23
759

query I rowsort
SELECT DISTINCT + col0 - ( + col1 ) * - col1 * col2 AS col0 FROM tab0 AS cor0
----
244092
679131
9444

query I rowsort
SELECT ALL + col0 * 88 FROM tab2 AS cor0
----
616
6864
6952

query I rowsort
SELECT col0 + + cor0.col0 * col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT + - 82 * cor0.col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 8975d67058f123a3d7b1e6de8c03dac1

query I rowsort
SELECT - 36 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e

query I rowsort
SELECT ALL col1 + col1 + - col0 AS col0 FROM tab2 AS cor0
----
-45
40
55

query I rowsort
SELECT ALL col1 * col0 + - col2 FROM tab1 cor0
----
24
583
944

query I rowsort
SELECT - + ( + col1 ) * - cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + 16 + 60 FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT 35 * 61 AS col2 FROM tab1 AS cor0
----
2135
2135
2135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 86 + col2 + col1 col0 FROM tab0 AS cor0
----
184
2957
7225

query I rowsort
SELECT col2 + 65 + col2 AS col1 FROM tab0 AS cor0
----
131
229
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-3303
SELECT ALL col1 DIV 4 AS col1 FROM tab2
----
14
4
7

skipif mysql # not compatible
query I rowsort label-3303
SELECT ALL col1 / 4 AS col1 FROM tab2
----
14
4
7

query I rowsort
SELECT ALL + 64 FROM tab1, tab0, tab2 cor0, tab2
----
81 values hashing to 9bd8c7417aea89812d57dc6142310b3f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + col0 + col2 col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT DISTINCT 46 * col0 FROM tab2 AS cor0
----
322
3588
3634

query I rowsort
SELECT ALL + - cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-3308
SELECT DISTINCT col1 DIV + col2 + col2 FROM tab0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT col1 / + col2 + col2 FROM tab0
----
35
83
98

query I rowsort
SELECT + cor0.col2 + 54 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0245262ed0594744c28c33742d45f5c4

query I rowsort
SELECT - + col0 + - 98 * col0 AS col0 FROM tab0 AS cor0
----
-2376
-3465
-8811

query I rowsort
SELECT - - col1 + col0 + + col1 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT tab0.col2 + + 51 AS col1 FROM tab0
----
133
52
84

query I rowsort
SELECT DISTINCT - col1 + - 97 FROM tab2 AS cor0
----
-114
-128
-156

query I rowsort
SELECT ALL - col1 * - col0 + - col2 * + 0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + 88 + + col2 * + col2 FROM tab1 AS cor0
----
3004
3337
9304

query I rowsort
SELECT DISTINCT + 89 + - ( + col2 ) - ( + col2 ) FROM tab1 AS cor0
----
-103
-19
-25

query I rowsort
SELECT - ( - 18 ) * col1 AS col1 FROM tab1 AS cor0
----
180
234
468

query I rowsort
SELECT + col1 * - 10 FROM tab0 AS cor0
----
-860
-910
-970

query I rowsort
SELECT DISTINCT - 11 + + cor0.col0 + + col2 FROM tab0 AS cor0
----
160
25
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 + col1 col1 FROM tab1 AS cor0
----
12
15
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 73 col2 FROM tab2 AS cor0
----
-73
-73
-73

query I rowsort
SELECT DISTINCT + 94 + cor0.col1 FROM tab1 cor0
----
104
107
120

query I rowsort
SELECT DISTINCT - col1 - 7 AS col1 FROM tab1 AS cor0
----
-17
-20
-33

query I rowsort
SELECT DISTINCT col2 + - cor0.col0 * - col0 AS col1 FROM tab0 cor0
----
1226
609
8003

query I rowsort
SELECT + 19 * col1 + col1 FROM tab2 AS cor0
----
1180
340
620

query I rowsort
SELECT DISTINCT ( - col0 ) * ( ( col1 ) ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - + col0 + + col2 * ( + col2 ) FROM tab0 cor0
----
-34
1065
6635

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + cor0.col0 col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3329
SELECT DISTINCT - col2 DIV col2 + + col1 * + 69 FROM tab0 AS cor0
----
5933
6278
6692

skipif mysql # not compatible
query I rowsort label-3329
SELECT DISTINCT - col2 / col2 + + col1 * + 69 FROM tab0 AS cor0
----
5933
6278
6692

query I rowsort
SELECT DISTINCT - 25 * col0 * 7 - + col1 AS col2 FROM tab0 AS cor0
----
-15666
-4286
-6222

query I rowsort
SELECT col0 * + col1 + + 54 FROM tab1 AS cor0
----
1094
132
694

query I rowsort
SELECT - 91 + + col2 FROM tab0 AS cor0
----
-58
-9
-90

query I rowsort
SELECT DISTINCT + - col0 + - col0 * - col2 AS col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL - + 55 * col1 FROM tab2 AS cor0
----
-1705
-3245
-935

onlyif mysql # use DIV operator for integer division
query I rowsort label-3335
SELECT ALL + col1 + col1 DIV col0 col2 FROM tab0 AS cor0
----
89
92
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3335
SELECT ALL + col1 + col1 / col0 col2 FROM tab0 AS cor0
----
89
92
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-3336
SELECT - ( col0 ) DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3336
SELECT - ( col0 ) / + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col1 - 85 AS col2 FROM tab0 AS cor0
----
1
12
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3338
SELECT - col1 + - CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-3338
SELECT - col1 + - CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3339
SELECT ALL + - col1 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3339
SELECT ALL + - col1 + - CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3340
SELECT + - cor0.col1 + CAST( 16 AS SIGNED ) FROM tab0 AS cor0
----
-70
-75
-81

skipif mysql # not compatible
query I rowsort label-3340
SELECT + - cor0.col1 + CAST ( 16 AS INTEGER ) FROM tab0 AS cor0
----
-70
-75
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3341
SELECT ALL + col0 DIV + 47 - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-81

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL + col0 / + 47 - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-81

query I rowsort
SELECT - cor0.col0 * + 15 FROM tab1 AS cor0
----
-1200
-45
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + - col0 + + col0 col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT col1 - - col0 * col1 * + col1 FROM tab0
----
177590
329412
737100

query I rowsort
SELECT ALL - tab0.col2 * + col0 * col1 + - col2 FROM tab0
----
-3396
-664200
-68145

query I rowsort
SELECT ALL - col0 + col2 + col1 FROM tab0
----
63
84
95

query I rowsort
SELECT col2 * - 6 FROM tab2 AS cor0
----
-156
-162
-228

query I rowsort
SELECT + col2 + - col2 * 73 AS col2 FROM tab0 AS cor0
----
-2376
-5904
-72

query I rowsort
SELECT DISTINCT + 2 + col1 * - tab1.col2 + col2 AS col2 FROM tab1
----
-1150
-1348
-511

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0, tab2, tab2 AS cor0, tab1
----
26
27
38

query I rowsort
SELECT ALL col1 * - col1 + + 19 FROM tab2
----
-270
-3462
-942

query I rowsort
SELECT DISTINCT + col0 * col2 + 16 AS col2 FROM tab1
----
178
3664
7696

query I rowsort
SELECT - col0 + 4 * - col1 + - col1 FROM tab2 AS cor0
----
-162
-164
-373

query I rowsort
SELECT - - col2 + + col2 * + col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT col2 + + col2 * 51 FROM tab0 AS cor0
----
1716
4264
52

query I rowsort
SELECT + 54 * - col2 + + col0 AS col2 FROM tab2 cor0
----
-1326
-1451
-1973

query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT - ( + cor0.col2 ) AS col2 FROM tab1, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-3359
SELECT + col1 DIV + cor0.col0 col0 FROM tab1 AS cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3359
SELECT + col1 / + cor0.col0 col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT + - col0 * cor0.col1 + col1 AS col1 FROM tab0 cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + cor0.col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 cor1, tab1 AS cor2
----
3645 values hashing to 50d2eeb0c89870917ccdbb42af2b89a3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3363
SELECT DISTINCT + tab2.col0 + - 69 DIV + 23 FROM tab0, tab1, tab2 AS cor0, tab2
----
4
75
76

skipif mysql # not compatible
query I rowsort label-3363
SELECT DISTINCT + tab2.col0 + - 69 / + 23 FROM tab0, tab1, tab2 AS cor0, tab2
----
4
75
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 col2 FROM tab2
----
62
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3365
SELECT + col2 + + col0 DIV - CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
25
27
34

skipif mysql # not compatible
query I rowsort label-3365
SELECT + col2 + + col0 / - CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
25
27
34

query I rowsort
SELECT DISTINCT - 66 * + col1 FROM tab0
----
-5676
-6006
-6402

query I rowsort
SELECT DISTINCT - cor1.col2 * - 47 FROM tab1, tab0 AS cor0, tab0 cor1
----
1551
3854
47

query I rowsort
SELECT ALL - 84 * + col1 AS col2 FROM tab0 AS cor0
----
-7224
-7644
-8148

query I rowsort
SELECT ALL + + 82 AS col2 FROM tab0 AS cor0
----
82
82
82

query I rowsort
SELECT ALL + ( col1 * 34 ) AS col1 FROM tab2
----
1054
2006
578

query I rowsort
SELECT ALL 27 + col1 FROM tab0 cor0
----
113
118
124

query I rowsort
SELECT - ( 50 ) AS col0 FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT ALL + 41 AS col1 FROM tab1 AS cor0
----
41
41
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-3374
SELECT - + 54 DIV col2 FROM tab0 AS cor0
----
-1
-54
0

skipif mysql # not compatible
query I rowsort label-3374
SELECT - + 54 / col2 FROM tab0 AS cor0
----
-1
-54
0

query I rowsort
SELECT DISTINCT - + cor0.col2 + 36 * - col1 FROM tab0 cor0
----
-3129
-3358
-3493

onlyif mysql # use DIV operator for integer division
query I rowsort label-3376
SELECT DISTINCT - col2 * col0 DIV col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-3376
SELECT DISTINCT - col2 * col0 / col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + ( - 1 ) + + col1 * 91 FROM tab1 cor0
----
1182
2365
909

onlyif mysql # use DIV operator for integer division
query I rowsort label-3378
SELECT DISTINCT col2 + col1 DIV col2 AS col0 FROM tab0 cor0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-3378
SELECT DISTINCT col2 + col1 / col2 AS col0 FROM tab0 cor0
----
35
83
98

query I rowsort
SELECT DISTINCT - col2 * + col2 + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT - - cor0.col2 * - 4 AS col2 FROM tab1 cor0
----
-216
-228
-384

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3381
SELECT ALL - CAST( NULL AS SIGNED ) + + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL - CAST ( NULL AS INTEGER ) + + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 * - col2 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3383
SELECT ALL - + col0 DIV 51 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL - + col0 / 51 FROM tab2 cor0
----
-1
-1
0

query I rowsort
SELECT ALL - - 39 FROM tab1 AS cor0
----
39
39
39

query I rowsort
SELECT ALL 48 + + col0 FROM tab1 AS cor0
----
112
128
51

query I rowsort
SELECT ALL + col2 * col1 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-3387
SELECT 93 DIV 64 - + col0 AS col1 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-3387
SELECT 93 / 64 - + col0 AS col1 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT col0 + col1 + + col1 AS col2 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT ALL + + col2 * 16 * 88 FROM tab2 AS cor0
----
36608
38016
53504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

onlyif mysql # use DIV operator for integer division
query I rowsort label-3391
SELECT + col2 DIV - 36 + col0 + + col2 * + 19 FROM tab0 AS cor0
----
1645
54
651

skipif mysql # not compatible
query I rowsort label-3391
SELECT + col2 / - 36 + col0 + + col2 * + 19 FROM tab0 AS cor0
----
1645
54
651

query I rowsort
SELECT DISTINCT col0 + 90 FROM tab2 AS cor0
----
168
169
97

query I rowsort
SELECT - col0 + - 34 * cor0.col1 * + col0 AS col1 FROM tab2 AS cor0
----
-156546
-45741
-7385

query I rowsort
SELECT DISTINCT - col1 * ( - col1 ) AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + col1 * tab1.col2 + 22 FROM tab1
----
1270
1426
592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to d876bb0ae813b06a5ee497ecacf37ee6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3397
SELECT ALL - + col0 * 50 * col1 + col0 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL - + col0 * 50 * col1 + col0 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - cor0.col1 * ( - 68 ) + col2 FROM tab1 AS cor0
----
-1714
-623
-788

onlyif mysql # use DIV operator for integer division
query I rowsort label-3399
SELECT DISTINCT col2 DIV 18 + col2 DIV + col2 FROM tab0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-3399
SELECT DISTINCT col2 / 18 + col2 / + col2 FROM tab0
----
1
2
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 10 * col1 + col2 col1 FROM tab2 AS cor0
----
208
337
616

query I rowsort
SELECT DISTINCT - 75 * - col2 FROM tab0 cor0
----
2475
6150
75

query I rowsort
SELECT DISTINCT + + col1 * + col2 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3403
SELECT CAST( NULL AS SIGNED ) + - col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3403
SELECT CAST ( NULL AS INTEGER ) + - col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 24 * - col0 + col0 * - col1 + - col0 AS col2 FROM tab2 AS cor0
----
-2808
-56
474

query I rowsort
SELECT ALL + 53 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # use DIV operator for integer division
query I rowsort label-3406
SELECT + tab1.col1 DIV - col1 + col1 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-3406
SELECT + tab1.col1 / - col1 + col1 FROM tab1
----
12
25
9

query I rowsort
SELECT DISTINCT + ( + col0 ) - - cor0.col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - ( - 71 ) AS col1 FROM tab1 cor0
----
71
71
71

query I rowsort
SELECT ALL - 45 + - col0 FROM tab2 AS cor0
----
-123
-124
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 57 * cor0.col1 + col2 * ( col1 ) col2 FROM tab1 cor0
----
-78
0
507

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3411
SELECT ALL + CAST( NULL AS DECIMAL ) * + col2 + - col2 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL + CAST ( NULL AS REAL ) * + col2 + - col2 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - tab1.col2 + - col0 * + col1 + - col2 * + col2 FROM tab1
----
-10352
-3048
-3946

query I rowsort
SELECT - ( + col0 ) + 60 FROM tab1
----
-20
-4
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 + - col0 * + col0 col2 FROM tab0
----
-1194
-545
-7890

query I rowsort
SELECT col2 + - col1 + - ( 84 ) AS col1 FROM tab1
----
-1
-37
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-3416
SELECT ALL + col0 DIV - tab1.col2 + - col2 FROM tab1
----
-54
-58
-96

skipif mysql # not compatible
query I rowsort label-3416
SELECT ALL + col0 / - tab1.col2 + - col2 FROM tab1
----
-54
-58
-96

query I rowsort
SELECT + col0 * + col0 + + 43 AS col1 FROM tab2 AS cor0
----
6127
6284
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3418
SELECT ALL - - col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL - - col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3419
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) * - 59 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) * - 59 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3420
SELECT DISTINCT - col2 - CAST( NULL AS SIGNED ) / - 74 col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT - col2 - CAST ( NULL AS INTEGER ) / - 74 col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col2 + 6 AS col2 FROM tab2 AS cor0
----
32
33
44

query I rowsort
SELECT DISTINCT + - col2 - + ( col2 ) * - col2 AS col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT ALL - - col0 * - 16 + 50 AS col0 FROM tab2 AS cor0
----
-1198
-1214
-62

query I rowsort
SELECT ALL col0 + col1 - col1 * tab2.col0 AS col1 FROM tab2
----
-1247
-179
-4465

query I rowsort
SELECT ALL 91 * - col0 - col1 AS col0 FROM tab1
----
-299
-5834
-7293

query I rowsort
SELECT ALL col2 + - 36 * - col1 AS col0 FROM tab2 AS cor0
----
1143
2150
650

query I rowsort
SELECT ALL + 21 + 34 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 66 col2 FROM tab0 AS cor0
----
-66

query I rowsort
SELECT + + ( col2 ) * + 24 AS col2 FROM tab1 AS cor0
----
1296
1368
2304

query I rowsort
SELECT ALL ( 58 * col1 ) + + 66 * col0 FROM tab0
----
11152
6572
7936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3431
SELECT DISTINCT tab2.col0 * col1 + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT DISTINCT tab2.col0 * col1 + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - col1 + col1 + + 75 AS col2 FROM tab0 AS cor0
----
75
75
75

query I rowsort
SELECT 90 * + 4 AS col1 FROM tab0
----
360
360
360

query I rowsort
SELECT tab0.col2 - + 12 FROM tab0, tab0 cor0
----
9 values hashing to b3a2fe475e273fe2acec6c2ea9bb8da5

query I rowsort
SELECT - 70 AS col2 FROM tab2, tab0, tab2 cor0
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f

query I rowsort
SELECT - 80 * col2 FROM tab0 AS cor0
----
-2640
-6560
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * + col0 + col2 col0 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2, tab1, tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3439
SELECT ALL - col0 DIV col2 col2 FROM tab1
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL - col0 / col2 col2 FROM tab1
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3440
SELECT col0 + + col0 DIV col1 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3440
SELECT col0 + + col0 / col1 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - col0 * 33 + col1 * - col0 + cor0.col2 * col2 FROM tab1 cor0
----
2739
497
5536

query I rowsort
SELECT DISTINCT - col0 * - col0 - - ( col0 ) FROM tab0
----
1260
600
8010

query I rowsort
SELECT col1 + + 10 + col2 * tab1.col2 * + col2 AS col1 FROM tab1
----
157500
185213
884759

query I rowsort
SELECT - 33 FROM tab2, tab1 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT ALL col2 * col2 + + col0 * - col0 AS col1 FROM tab1
----
-847
2816
2907

query I rowsort
SELECT tab2.col0 * 36 FROM tab2
----
252
2808
2844

onlyif mysql # use DIV operator for integer division
query I rowsort label-3447
SELECT col1 DIV - 53 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3447
SELECT col1 / - 53 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 * + col1 + 36 + + col2 AS col0 FROM tab2
----
1417
280
4664

query I rowsort
SELECT - col0 + ( + col1 ) * + col0 + - tab0.col0 * col2 AS col2 FROM tab0
----
1248
3325
712

query I rowsort
SELECT + ( + 17 ) - - col1 AS col1 FROM tab0 AS cor0
----
103
108
114

onlyif mysql # use DIV operator for integer division
query I rowsort label-3451
SELECT ALL + col0 DIV 84 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3451
SELECT ALL + col0 / 84 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 + - col1 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT DISTINCT + ( ( + col1 ) ) + - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + + ( + col1 ) + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - - 8 * + col1 AS col0 FROM tab2 cor0
----
136
248
472

query I rowsort
SELECT - ( col2 ) * col2 + + ( + cor0.col0 ) * col2 FROM tab0 AS cor0
----
-297
34
574

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 col0 FROM tab2 AS cor0
----
78

query I rowsort
SELECT 95 * col1 + col2 FROM tab0 AS cor0
----
8203
8727
9216

query I rowsort
SELECT + 18 + col2 + + col1 AS col2 FROM tab2 cor0
----
103
73
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3460
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( 83 ) FROM tab0 cor0
----
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3462
SELECT CAST( NULL AS SIGNED ) * - cor0.col0 + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3462
SELECT CAST ( NULL AS INTEGER ) * - cor0.col0 + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3463
SELECT DISTINCT + - cor0.col1 * col1 DIV cor0.col1 + - col2 DIV - cor0.col1 AS col2 FROM tab2 AS cor0
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT + - cor0.col1 * col1 / cor0.col1 + - col2 / - cor0.col1 AS col2 FROM tab2 AS cor0
----
-15
-31
-59

query I rowsort
SELECT ALL + 28 * - col0 * + col0 FROM tab2 cor0
----
-1372
-170352
-174748

query I rowsort
SELECT ALL + 50 * col2 + col0 FROM tab0 AS cor0
----
1674
4189
85

query I rowsort
SELECT DISTINCT + col1 * ( cor0.col2 ) + 9 + + cor0.col1 FROM tab0 AS cor0
----
203
2933
7562

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - tab0.col1 col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - col1 * col0 + + 52 * + col2 FROM tab2 AS cor0
----
-3250
1187
633

query I rowsort
SELECT col0 + - cor0.col1 * - col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT + 75 + col2 * - 1 FROM tab1 AS cor0
----
-21
18
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3471
SELECT ALL - col1 * - col1 + - CAST( - col2 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
1150
3291
5509

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL - col1 * - col1 + - CAST ( - col2 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
1150
3291
5509

onlyif mysql # use DIV operator for integer division
query I rowsort label-3472
SELECT + col2 DIV - col0 - + col2 FROM tab1 AS cor0
----
-57
-72
-97

skipif mysql # not compatible
query I rowsort label-3472
SELECT + col2 / - col0 - + col2 FROM tab1 AS cor0
----
-57
-72
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3473
SELECT DISTINCT - col1 DIV 53 AS col2 FROM tab2 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3473
SELECT DISTINCT - col1 / 53 AS col2 FROM tab2 cor0
----
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3474
SELECT ALL - - cor0.col0 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL - - cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col2 * col0 AS col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT 10 AS col1 FROM tab0, tab1 cor0, tab1 cor1, tab2 AS cor2
----
10

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) + + col1 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT + col2 - 62 * + col0 FROM tab2 AS cor0
----
-407
-4810
-4860

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3479
SELECT + + CAST( 50 AS SIGNED ) + col1 * + 23 AS col1 FROM tab1 AS cor0
----
280
349
648

skipif mysql # not compatible
query I rowsort label-3479
SELECT + + CAST ( 50 AS INTEGER ) + col1 * + 23 AS col1 FROM tab1 AS cor0
----
280
349
648

query I rowsort
SELECT DISTINCT 51 AS col1 FROM tab0, tab0 cor0
----
51

query I rowsort
SELECT DISTINCT + tab0.col1 * + 93 FROM tab0
----
7998
8463
9021

query I rowsort
SELECT ALL - 82 FROM tab0, tab0 cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3483
SELECT + col0 * col1 + ( + 90 ) * + cor0.col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3483
SELECT + col0 * col1 + ( + 90 ) * + cor0.col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) * - col1 + col2 col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT col1 + col1 * col2 AS col0 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - col2 * col1 * - 71 + + col0 * col1 AS col2 FROM tab0 AS cor0
----
10282
203562
537901

query I rowsort
SELECT ALL + 99 + col1 FROM tab1 cor0
----
109
112
125

query I rowsort
SELECT DISTINCT - col0 + col0 + col2 * col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-3489
SELECT ALL + 3 - col0 DIV + ( - col1 ) FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL + 3 - col0 / + ( - col1 ) FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT - - 52 + col0 FROM tab1 AS cor0
----
116
132
55

query I rowsort
SELECT - + col0 + - col1 * - col1 AS col1 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT + col1 * col0 + - col2 + ( - col0 ) FROM tab0 AS cor0
----
2007
3359
7928

onlyif mysql # use DIV operator for integer division
query I rowsort label-3493
SELECT ALL - col0 DIV 61 - col0 DIV col2 FROM tab1 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL - col0 / 61 - col0 / col2 FROM tab1 AS cor0
----
-1
-2
0

query I rowsort
SELECT cor0.col1 * - ( - ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-3495
SELECT DISTINCT - col0 + - ( - col2 ) DIV - col1 FROM tab2 AS cor0
----
-7
-78
-81

skipif mysql # not compatible
query I rowsort label-3495
SELECT DISTINCT - col0 + - ( - col2 ) / - col1 FROM tab2 AS cor0
----
-7
-78
-81

query I rowsort
SELECT + + col0 * 24 AS col1 FROM tab0 AS cor0
----
2136
576
840

query I rowsort
SELECT DISTINCT + - col1 * col0 + 4 AS col0 FROM tab0 AS cor0
----
-2060
-3391
-8095

query I rowsort
SELECT ALL col1 - + 33 AS col0 FROM tab1 AS cor0
----
-20
-23
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3499
SELECT ALL col2 + 39 DIV - col0 AS col2 FROM tab1 AS cor0
----
41
57
96

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL col2 + 39 / - col0 AS col2 FROM tab1 AS cor0
----
41
57
96

query I rowsort
SELECT ALL + col0 - - cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT 17 * 50 AS col0 FROM tab2 cor0
----
850
850
850

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3502
SELECT + tab2.col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3502
SELECT + tab2.col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 30 * col1 + col1 * - 63 AS col2 FROM tab0 AS cor0
----
-2838
-3003
-3201

query I rowsort
SELECT ALL - - 7 FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT cor0.col2 * 86 + - col0 FROM tab2 AS cor0
----
2158
2315
3189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 33 ) col0 FROM tab2
----
33
33
33

query I rowsort
SELECT + 46 * col0 - - col1 AS col1 FROM tab2
----
353
3647
3651

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3508
SELECT DISTINCT - CAST( - 92 AS SIGNED ) * + col2 + + 64 + tab1.col0 AS col2 FROM tab1
----
5035
5372
8976

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT - CAST ( - 92 AS INTEGER ) * + col2 + + 64 + tab1.col0 AS col2 FROM tab1
----
5035
5372
8976

query I rowsort
SELECT DISTINCT + tab1.col2 * 31 * + col1 AS col2 FROM tab1
----
17670
38688
43524

query I rowsort
SELECT col0 * - col0 - - col0 FROM tab2
----
-42
-6006
-6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 * col1 + ( 49 + tab1.col2 ) * col1 * + 65 col0 FROM tab1
----
123645
174151
69604

query I rowsort
SELECT 42 + + ( + col2 ) AS col1 FROM tab0
----
124
43
75

query I rowsort
SELECT + col1 * - col2 + col2 + + col2 AS col0 FROM tab2 AS cor0
----
-1482
-570
-783

onlyif mysql # use DIV operator for integer division
query I rowsort label-3514
SELECT DISTINCT 86 + - col2 DIV col1 FROM tab2 AS cor0
----
84
86

skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT 86 + - col2 / col1 FROM tab2 AS cor0
----
84
86

query I rowsort
SELECT ALL - + col0 * - col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - - col1 + cor0.col2 + - col2 AS col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT + col2 * - col0 * 21 FROM tab0 AS cor0
----
-153258
-16632
-735

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + cor0.col1 + col1 col1 FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT DISTINCT + 1 AS col0 FROM tab2 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) + 2 * col2 col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - tab2.col2 + col1 + col0 AS col0 FROM tab2
----
11
111
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3522
SELECT - tab2.col1 + col2 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3522
SELECT - tab2.col1 + col2 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 26 * + col2 * + col1 AS col1 FROM tab2
----
16796
21762
39884

query I rowsort
SELECT DISTINCT 65 + - col1 AS col1 FROM tab1
----
39
52
55

query I rowsort
SELECT 32 + col0 * ( - col1 ) FROM tab2
----
-1311
-185
-4570

query I rowsort
SELECT - tab0.col2 + col1 * col2 * + col0 AS col2 FROM tab0
----
3394
664036
68079

query I rowsort
SELECT DISTINCT col2 * col0 + 70 * + 67 + col0 AS col0 FROM tab1
----
12450
4855
8402

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 * col1 col0 FROM tab2 AS cor0
----
1156
2108
4012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * 18 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to f4effa1153d8a3ab53ec76ce9d705a0d

query I rowsort
SELECT 67 * col2 AS col1 FROM tab1
----
3618
3819
6432

onlyif mysql # use DIV operator for integer division
query I rowsort label-3531
SELECT - col0 * + col0 + - col1 * col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-4153
-63
-6496

skipif mysql # not compatible
query I rowsort label-3531
SELECT - col0 * + col0 + - col1 * col2 / col1 AS col2 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT + cor0.col1 * + col1 + - cor0.col0 AS col1 FROM tab0 cor0
----
7372
8192
9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-3533
SELECT ALL + col2 * cor0.col1 DIV - col0 + ( - col1 + - col0 ) * + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-116079
-41184
-42188

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL + col2 * cor0.col1 / - col0 + ( - col1 + - col0 ) * + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-116079
-41184
-42188

query I rowsort
SELECT ALL + col1 * + col0 + - col2 AS col0 FROM tab1 cor0
----
24
583
944

query I rowsort
SELECT DISTINCT ( col1 ) * col2 + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT col2 - ( - col2 ) FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT 30 + + 98 * col0 FROM tab2 AS cor0
----
716
7674
7772

query I rowsort
SELECT + 99 - + col2 FROM tab1 cor0
----
3
42
45

query I rowsort
SELECT ALL ( col1 ) + + col2 + col0 AS col0 FROM tab2 AS cor0
----
134
163
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-3540
SELECT + col1 + - col0 DIV col1 FROM tab2
----
13
31
58

skipif mysql # not compatible
query I rowsort label-3540
SELECT + col1 + - col0 / col1 FROM tab2
----
13
31
58

query I rowsort
SELECT ALL - 87 * - 7 FROM tab1 AS cor0
----
609
609
609

query I rowsort
SELECT ALL + col1 + col0 * col2 AS col0 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT col2 - - 24 * col0 * 51 AS col0 FROM tab2 AS cor0
----
8595
95498
96734

query I rowsort
SELECT - col2 - - 66 * - col2 AS col2 FROM tab1 AS cor0
----
-3618
-3819
-6432

onlyif mysql # use DIV operator for integer division
query I rowsort label-3545
SELECT ALL ( ( col1 ) ) DIV 45 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL ( ( col1 ) ) / 45 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + cor0.col2 col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + 68 * - col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-2220
-33
-5487

query I rowsort
SELECT ALL - - col0 * + col0 * col0 + + col1 AS col1 FROM tab1 AS cor0
----
262154
512013
53

query I rowsort
SELECT DISTINCT - + col2 * col1 - cor0.col2 FROM tab1 AS cor0
----
-1344
-1458
-627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3550
SELECT ALL CAST( + col0 AS SIGNED ) + + col2 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-3550
SELECT ALL CAST ( + col0 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3551
SELECT col1 DIV - col1 - + col1 AS col1 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-3551
SELECT col1 / - col1 - + col1 AS col1 FROM tab1 AS cor0
----
-11
-14
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 col1 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + 88 * 7 + col1 FROM tab0 AS cor0
----
702
707
713

query I rowsort
SELECT ( + col0 ) + cor0.col1 * - 30 AS col2 FROM tab2 AS cor0
----
-1692
-431
-923

query I rowsort
SELECT + + col2 - col0 * - cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT cor0.col2 + - ( - 54 + col2 ) FROM tab1 AS cor0
----
54
54
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3557
SELECT + col1 * - CAST( + col1 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

skipif mysql # not compatible
query I rowsort label-3557
SELECT + col1 * - CAST ( + col1 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT + col1 + ( ( cor0.col1 ) * 70 ) FROM tab1 AS cor0
----
1846
710
923

query I rowsort
SELECT - 44 * - 14 FROM tab0 AS cor0
----
616
616
616

query I rowsort
SELECT col2 * cor0.col2 + col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT col1 * col1 + + 53 FROM tab2
----
1014
342
3534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 + col2 col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT col2 + + 95 FROM tab1
----
149
152
191

query I rowsort
SELECT + col1 * - 80 FROM tab1
----
-1040
-2080
-800

query I rowsort
SELECT + col0 * ( + col2 * col2 ) AS col0 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL + tab1.col1 + + 99 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to eae96f4b5fee6a8316f3a2fa4ca5ce65

query I rowsort
SELECT ALL - col2 + - col0 + - col2 * + col1 AS col0 FROM tab0
----
-133
-2895
-7633

onlyif mysql # use DIV operator for integer division
query I rowsort label-3568
SELECT - - cor0.col2 + - col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-3568
SELECT - - cor0.col2 + - col1 / + col2 AS col0 FROM tab0 AS cor0
----
-96
31
81

query I rowsort
SELECT + + 42 * + col2 AS col2 FROM tab2 AS cor0
----
1092
1134
1596

query I rowsort
SELECT ALL + 65 * - col2 + + col1 * col2 FROM tab2 AS cor0
----
-156
-1824
-918

query I rowsort
SELECT ALL - - col0 * + cor0.col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT + col1 + + 0 AS col0 FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-3573
SELECT ALL - tab0.col1 * col1 + - col1 * + col2 + col0 DIV 37 AS col0 FROM tab0
----
-10234
-15741
-9506

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL - tab0.col1 * col1 + - col1 * + col2 + col0 / 37 AS col0 FROM tab0
----
-10234
-15741
-9506

query I rowsort
SELECT - 29 * col1 FROM tab2 cor0
----
-1711
-493
-899

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 * + col1 col0 FROM tab0 AS cor0
----
-6278
-6643
-7081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 * col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3577
SELECT ALL - + 54 DIV col0 FROM tab2 AS cor0
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL - + 54 / col0 FROM tab2 AS cor0
----
-7
0
0

query I rowsort
SELECT 20 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT 8 + col0 * - tab1.col2 FROM tab1
----
-154
-3640
-7672

query I rowsort
SELECT col0 * - col0 + + col2 * + 50 * + col2 AS col2 FROM tab2
----
27716
36401
65959

query I rowsort
SELECT + col1 * 98 AS col1 FROM tab1 AS cor0
----
1274
2548
980

query I rowsort
SELECT DISTINCT col0 * col0 * + col2 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT - - col0 - + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 + + 1 AS col0 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT + col0 * ( + col1 ) + 44 * 42 AS col2 FROM tab2 AS cor0
----
2065
3191
6450

query I rowsort
SELECT + + col2 * + col0 * + col1 AS col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - 59 * col0 AS col0 FROM tab2 cor0
----
-413
-4602
-4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3588
SELECT - CAST( NULL AS SIGNED ) * + 82 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3588
SELECT - CAST ( NULL AS INTEGER ) * + 82 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * col2 * + col1 col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-3590
SELECT DISTINCT + col0 DIV col0 + ( - col2 ) * - cor0.col2 FROM tab2 AS cor0
----
1445
677
730

skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT + col0 / col0 + ( - col2 ) * - cor0.col2 FROM tab2 AS cor0
----
1445
677
730

query I rowsort
SELECT ALL + cor1.col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT - 59 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-59

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2, tab0 AS cor3
----
13122 values hashing to 5b1f18022e8468cce03fe56ac840a860

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - ( col0 + col0 ) FROM tab0
----
-178
-48
-70

query I rowsort
SELECT - - 45 * + cor0.col1 + col1 + col0 FROM tab0 AS cor0
----
3980
4275
4497

query I rowsort
SELECT ALL + ( cor0.col2 ) * + cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + + ( - col0 ) + - 89 + col0 * - col2 FROM tab1 AS cor0
----
-254
-3801
-7849

query I rowsort
SELECT DISTINCT - 41 * col2 FROM tab0 AS cor0
----
-1353
-3362
-41

query I rowsort
SELECT DISTINCT - - col1 * cor0.col0 + - cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
2073
3361
8092

query I rowsort
SELECT + 5 + - cor0.col2 + + 53 FROM tab2 AS cor0
----
20
31
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-3603
SELECT DISTINCT col2 + - col0 DIV - col1 FROM tab1
----
102
54
63

skipif mysql # not compatible
query I rowsort label-3603
SELECT DISTINCT col2 + - col0 / - col1 FROM tab1
----
102
54
63

query I rowsort
SELECT ALL + col1 + 37 * + col0 FROM tab2
----
290
2940
2945

query I rowsort
SELECT ( - 20 ) + + col2 * + 40 FROM tab0
----
1300
20
3260

query I rowsort
SELECT - 70 * - 86 + col2 AS col2 FROM tab2
----
6046
6047
6058

query I rowsort
SELECT ( + col0 + col0 ) * - col0 * col2 AS col0 FROM tab2
----
-2646
-316368
-474316

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3608
SELECT CAST( + col0 AS SIGNED ) - - col1 col0 FROM tab0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3608
SELECT CAST ( + col0 AS INTEGER ) - - col1 col0 FROM tab0
----
110
132
180

query I rowsort
SELECT + ( + col2 ) + col0 * + col0 FROM tab0
----
1226
609
8003

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3610
SELECT ALL - col2 + col2 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL - col2 + col2 * CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * cor0.col0 * col1 + 94 * cor0.col1 AS col2 FROM tab0 cor0
----
185588
338433
745563

query I rowsort
SELECT ALL - + 7 AS col2 FROM tab0 AS cor0
----
-7
-7
-7

query I rowsort
SELECT DISTINCT - 54 * col1 + col1 FROM tab0 AS cor0
----
-4558
-4823
-5141

onlyif mysql # use DIV operator for integer division
query I rowsort label-3614
SELECT ALL + + col0 DIV col1 - + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL + + col0 / col1 - + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3615
SELECT - cor0.col2 DIV - col2 + col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-3615
SELECT - cor0.col2 / - col2 + col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT + 23 + col1 FROM tab0 cor0
----
109
114
120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 + - col2 col0 FROM tab0 AS cor0
----
-103
-152
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-3618
SELECT ALL + col1 + col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL + col1 + col0 / - col0 AS col1 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT DISTINCT + 71 + - col1 FROM tab1 AS cor0
----
45
58
61

query I rowsort
SELECT ALL + + 77 AS col2 FROM tab0 AS cor0
----
77
77
77

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 4037d65571c1bbf6e0e7d759f858120e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 70 * + cor0.col0 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1680
2450
6230

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3623
SELECT col2 + - CAST( NULL AS SIGNED ) * tab0.col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3623
SELECT col2 + - CAST ( NULL AS INTEGER ) * tab0.col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + col0 + 93 AS col1 FROM tab2
----
127
197
210

onlyif mysql # use DIV operator for integer division
query I rowsort label-3625
SELECT DISTINCT - - col1 + 3 DIV + col2 AS col1 FROM tab0 AS cor0
----
100
86
91

skipif mysql # not compatible
query I rowsort label-3625
SELECT DISTINCT - - col1 + 3 / + col2 AS col1 FROM tab0 AS cor0
----
100
86
91

query I rowsort
SELECT col2 + + 74 AS col0 FROM tab2 AS cor0
----
100
101
112

query I rowsort
SELECT DISTINCT col0 + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT + 28 * - col2 AS col0 FROM tab0 AS cor0
----
-2296
-28
-924

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3629
SELECT col0 * + CAST( col2 AS SIGNED ) * col0 AS col0 FROM tab2
----
1323
158184
237158

skipif mysql # not compatible
query I rowsort label-3629
SELECT col0 * + CAST ( col2 AS INTEGER ) * col0 AS col0 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT ALL 73 + col2 + - col1 * + col1 FROM tab2 AS cor0
----
-178
-3382
-861

query I rowsort
SELECT ALL 39 + col2 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
39
39
39

query I rowsort
SELECT cor0.col2 + + 4 AS col1 FROM tab1 AS cor0
----
100
58
61

query I rowsort
SELECT + col1 - ( col0 ) * + col0 AS col2 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) + col2 * col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT - + 59 * + col1 + - col2 AS col0 FROM tab2 AS cor0
----
-1041
-1856
-3507

query I rowsort
SELECT DISTINCT + col1 * + 70 + col2 FROM tab1 AS cor0
----
1006
1874
757

onlyif mysql # use DIV operator for integer division
query I rowsort label-3637
SELECT ALL col0 - 45 DIV - cor0.col1 FROM tab1 AS cor0
----
4
68
83

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL col0 - 45 / - cor0.col1 FROM tab1 AS cor0
----
4
68
83

query I rowsort
SELECT ALL - + 90 FROM tab2 cor0
----
-90
-90
-90

query I rowsort
SELECT + 62 + tab0.col1 FROM tab0
----
148
153
159

query I rowsort
SELECT ALL - - col2 * col0 + - cor0.col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL - col0 * 57 FROM tab0 AS cor0
----
-1368
-1995
-5073

onlyif mysql # use DIV operator for integer division
query I rowsort label-3642
SELECT DISTINCT - col1 + 52 DIV col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-9

skipif mysql # not compatible
query I rowsort label-3642
SELECT DISTINCT - col1 + 52 / col0 AS col0 FROM tab1 AS cor0
----
-10
-13
-9

query I rowsort
SELECT DISTINCT + - col2 * - 85 AS col0 FROM tab1 AS cor0
----
4590
4845
8160

onlyif mysql # use DIV operator for integer division
query I rowsort label-3644
SELECT - 97 DIV - col1 FROM tab2 cor0
----
1
3
5

skipif mysql # not compatible
query I rowsort label-3644
SELECT - 97 / - col1 FROM tab2 cor0
----
1
3
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3645
SELECT ALL CAST( - 84 AS SIGNED ) * + cor0.col0 FROM tab1 AS cor0
----
-252
-5376
-6720

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL CAST ( - 84 AS INTEGER ) * + cor0.col0 FROM tab1 AS cor0
----
-252
-5376
-6720

query I rowsort
SELECT ALL 40 + + col2 AS col1 FROM tab1 AS cor0
----
136
94
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 57 * cor0.col2 col2 FROM tab2 AS cor0
----
-1508
-1566
-2204

query I rowsort
SELECT col1 * 21 FROM tab1 AS cor0
----
210
273
546

query I rowsort
SELECT DISTINCT 51 * col1 AS col2 FROM tab2 AS cor0
----
1581
3009
867

query I rowsort
SELECT DISTINCT - col1 * + 57 AS col1 FROM tab1 AS cor0
----
-1482
-570
-741

query I rowsort
SELECT DISTINCT 99 - + 9 * col0 * + col0 AS col0 FROM tab0
----
-10926
-5085
-71190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 * col0 col2 FROM tab2 AS cor0
----
210
2340
2370

query I rowsort
SELECT ALL 70 * cor0.col0 + col1 + + 3 AS col1 FROM tab2 cor0
----
524
5522
5550

query I rowsort
SELECT + ( col0 + col2 ) * ( col0 ) * + col2 FROM tab0
----
1247958
1260
45144

query I rowsort
SELECT ALL - cor0.col0 * - ( - ( - col1 ) ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + col1 * ( + 78 ) FROM tab2 cor0
----
1326
2418
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3657
SELECT - col1 DIV 50 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3657
SELECT - col1 / 50 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col2 * 35 FROM tab0 AS cor0
----
-1155
-2870
-35

query I rowsort
SELECT col0 * + 40 + + col0 AS col1 FROM tab2
----
287
3198
3239

onlyif mysql # use DIV operator for integer division
query I rowsort label-3660
SELECT col1 * 78 + - 13 * col1 DIV - 18 col0 FROM tab1
----
1023
2046
787

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3660
SELECT col1 * 78 + - 13 * col1 / - 18 col0 FROM tab1
----
1023
2046
787

query I rowsort
SELECT DISTINCT + col0 + - 6 AS col1 FROM tab2 AS cor0
----
1
72
73

query I rowsort
SELECT ALL + - col1 - col0 * 97 FROM tab1 AS cor0
----
-317
-6218
-7773

query I rowsort
SELECT - 67 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT ALL + + tab2.col1 + - tab2.col2 FROM tab2, tab2 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 4057a3c55ff6ba32c802a7b8a5316e16

query I rowsort
SELECT - 12 * 52 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba93f563302904ed1c23cea2c805cf97

query I rowsort
SELECT DISTINCT - 36 * + col0 + - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-11303
-2928
-4655

query I rowsort
SELECT ALL + cor0.col0 * col0 + - col2 FROM tab2 cor0
----
22
6058
6203

query I rowsort
SELECT ALL + - col0 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT + + col1 * cor0.col0 + 1 FROM tab0 AS cor0
----
2065
3396
8100

query I rowsort
SELECT + 96 * col0 * ( col0 ) FROM tab1 cor0
----
393216
614400
864

query I rowsort
SELECT + - cor0.col0 * 27 AS col0 FROM tab2 AS cor0
----
-189
-2106
-2133

onlyif mysql # use DIV operator for integer division
query I rowsort label-3672
SELECT + - col2 DIV ( + col0 ) - + col2 FROM tab0 AS cor0
----
-1
-34
-82

skipif mysql # not compatible
query I rowsort label-3672
SELECT + - col2 / ( + col0 ) - + col2 FROM tab0 AS cor0
----
-1
-34
-82

query I rowsort
SELECT DISTINCT + 91 FROM tab1, tab2 cor0
----
91

query I rowsort
SELECT - col1 * - 15 FROM tab2 AS cor0
----
255
465
885

query I rowsort
SELECT ALL tab0.col0 * - tab0.col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + col2 * - col0 + col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 17 * 5 + col2 * + col0 col0 FROM tab0 AS cor0
----
14863
2832
3010

onlyif mysql # use DIV operator for integer division
query I rowsort label-3678
SELECT ALL + col2 + col0 DIV col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL + col2 + col0 / col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3679
SELECT ALL - - col0 DIV + 33 + cor0.col1 DIV + col0 FROM tab2 AS cor0
----
2
2
4

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL - - col0 / + 33 + cor0.col1 / + col0 FROM tab2 AS cor0
----
2
2
4

query I rowsort
SELECT DISTINCT col2 * - col0 - - col0 FROM tab2 cor0
----
-182
-1950
-2923

query I rowsort
SELECT 64 + 61 * - col1 AS col1 FROM tab2 AS cor0
----
-1827
-3535
-973

query I rowsort
SELECT ALL + - col1 * col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL - 55 FROM tab1, tab0 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT - + ( - 1 ) + cor0.col0 * ( 23 ) * + col2 FROM tab2 AS cor0
----
4348
46645
69047

query I rowsort
SELECT + 92 * - 3 * col0 FROM tab1 AS cor0
----
-17664
-22080
-828

query I rowsort
SELECT - + 64 * col1 AS col0 FROM tab0 AS cor0
----
-5504
-5824
-6208

query I rowsort
SELECT + col2 + col0 * - 39 AS col2 FROM tab1 cor0
----
-2439
-3024
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 * + col2 col2 FROM tab2
----
1872
1944
2736

query I rowsort
SELECT ALL 16 * + col2 AS col1 FROM tab0
----
1312
16
528

query I rowsort
SELECT 48 + col1 + col0 AS col0 FROM tab0 AS cor0
----
158
180
228

query I rowsort
SELECT 54 + + col0 * col0 + col2 FROM tab0 cor0
----
1280
663
8057

query I rowsort
SELECT ALL + - cor0.col0 * + ( col2 ) - col2 * col2 * 6 FROM tab2 cor0
----
-11666
-4563
-6084

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3693
SELECT - col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3693
SELECT - col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 4 AS col1 FROM tab1
----
-4
-4
-4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3695
SELECT DISTINCT - col1 * + col1 + - cor0.col0 DIV col1 FROM tab1 AS cor0
----
-106
-175
-676

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT - col1 * + col1 + - cor0.col0 / col1 FROM tab1 AS cor0
----
-106
-175
-676

query I rowsort
SELECT ALL - cor0.col2 * + 64 AS col2 FROM tab2 AS cor0
----
-1664
-1728
-2432

query I rowsort
SELECT DISTINCT + + col0 * ( - cor0.col2 ) + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT col0 * - col0 + - col2 * cor0.col0 FROM tab1 AS cor0
----
-14080
-171
-7744

query I rowsort
SELECT 58 * col1 FROM tab1 AS cor0
----
1508
580
754

query I rowsort
SELECT + ( + cor0.col2 ) + + col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + col1 * + col2 * - col0 AS col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT + ( + ( + col1 ) ) * - ( 3 ) * + cor0.col2 + + col0 * col1 + + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-13846
-22568
-6305

query I rowsort
SELECT col2 + 12 * + col0 + - col1 * 14 FROM tab0 AS cor0
----
-124
-883
-937

query I rowsort
SELECT 24 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # use DIV operator for integer division
query I rowsort label-3705
SELECT - tab1.col1 DIV - 79 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3705
SELECT - tab1.col1 / - 79 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col2 AS REAL ) * col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - ( col1 ) * col0 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - col1 + ( col1 ) * + ( + col0 ) + col2 * 76 AS col2 FROM tab1 AS cor0
----
4156
4962
8323

onlyif mysql # use DIV operator for integer division
query I rowsort label-3709
SELECT - - col2 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3709
SELECT - - col2 / cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3710
SELECT ALL + col1 * CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL + col1 * CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + col2 + 60 FROM tab0 AS cor0
----
142
61
93

query I rowsort
SELECT ALL - + col1 + + 16 FROM tab0 AS cor0
----
-70
-75
-81

query I rowsort
SELECT - col0 + col0 * + 10 - - col0 * col0 AS col0 FROM tab0 AS cor0
----
1540
792
8722

query I rowsort
SELECT ALL - cor0.col0 * 86 FROM tab0 AS cor0
----
-2064
-3010
-7654

onlyif mysql # use DIV operator for integer division
query I rowsort label-3715
SELECT ALL col1 + + cor0.col1 DIV + cor0.col0 col2 FROM tab0 cor0
----
89
92
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL col1 + + cor0.col1 / + cor0.col0 col2 FROM tab0 cor0
----
89
92
99

query I rowsort
SELECT ALL + col2 * col0 + 35 FROM tab1 AS cor0
----
197
3683
7715

query I rowsort
SELECT DISTINCT + col0 * 76 AS col0 FROM tab0 cor0
----
1824
2660
6764

query I rowsort
SELECT + 78 * tab0.col2 AS col0 FROM tab0
----
2574
6396
78

query I rowsort
SELECT col1 + - 57 * - col1 AS col2 FROM tab2 AS cor0
----
1798
3422
986

query I rowsort
SELECT ALL - - col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + col0 + ( + 19 + + col0 * col1 ) AS col2 FROM tab0 AS cor0
----
2107
3449
8207

query I rowsort
SELECT DISTINCT + col0 + + 95 AS col1 FROM tab2 AS cor0
----
102
173
174

query I rowsort
SELECT + + col0 + col0 * 84 FROM tab0 AS cor0
----
2040
2975
7565

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 28412d50061391eec23a02d0efcfb3f9

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) + - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3726
SELECT 73 DIV - col1 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3726
SELECT 73 / - col1 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + cor0.col0 * + col0 FROM tab2 cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT col0 - - col2 * col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT + cor1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3730
SELECT - col0 * - tab1.col0 + + col2 DIV 85 AS col0 FROM tab1
----
4096
6401
9

skipif mysql # not compatible
query I rowsort label-3730
SELECT - col0 * - tab1.col0 + + col2 / 85 AS col0 FROM tab1
----
4096
6401
9

query I rowsort
SELECT ALL - - 66 * - cor0.col1 FROM tab1 AS cor0
----
-1716
-660
-858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 * 62 * - 36 col1 FROM tab1 AS cor0
----
142791
178464
6642

query I rowsort
SELECT DISTINCT 47 * cor0.col2 + - 56 + - col1 * col2 * - ( + col0 ) FROM tab1 AS cor0
----
104296
39103
6694

query I rowsort
SELECT DISTINCT + col0 - - col1 * col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL - - col0 * - col0 * col2 AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT 30 * + col1 FROM tab1 AS cor0
----
300
390
780

query I rowsort
SELECT col2 + 42 FROM tab2 AS cor0
----
68
69
80

query I rowsort
SELECT ALL - cor0.col1 * col0 * + col0 AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT - 10 * cor0.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-100
-130
-260

query I rowsort
SELECT ALL 57 FROM tab2 cor0
----
57
57
57

query I rowsort
SELECT - + 3 + - 21 * col1 AS col2 FROM tab0 AS cor0
----
-1809
-1914
-2040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 col1 FROM tab0, tab0 cor0
----
6

query I rowsort
SELECT DISTINCT + col0 + cor0.col2 * - col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL 59 + + col1 AS col0 FROM tab2 cor0
----
118
76
90

query I rowsort
SELECT - 86 * 25 * cor0.col1 FROM tab0 AS cor0
----
-184900
-195650
-208550

query I rowsort
SELECT ALL + + col0 + + col2 * - col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT + - 61 + + col1 FROM tab2 AS cor0
----
-2
-30
-44

onlyif mysql # use DIV operator for integer division
query I rowsort label-3748
SELECT DISTINCT - col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT - col1 / - col0 AS col2 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3749
SELECT DISTINCT - cor0.col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3749
SELECT DISTINCT - cor0.col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0
----
NULL

query I rowsort
SELECT - - ( col1 ) + ( - 38 ) FROM tab1 AS cor0
----
-12
-25
-28

query I rowsort
SELECT ALL + - 60 * + col0 - 74 AS col1 FROM tab0 cor0
----
-1514
-2174
-5414

query I rowsort
SELECT ( 10 ) AS col2 FROM tab1
----
10
10
10

query I rowsort
SELECT - 27 * + tab1.col1 + - col0 AS col1 FROM tab1
----
-334
-431
-705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 + - col2 col0 FROM tab1 AS cor0
----
-47
-5
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 9 * + col2 col2 FROM tab1 AS cor0
----
-486
-513
-864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3756
SELECT DISTINCT + - col1 * col0 + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3756
SELECT DISTINCT + - col1 * col0 + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3757
SELECT ALL - 32 DIV col2 + + 11 - col0 col1 FROM tab0 cor0
----
-13
-56
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL - 32 / col2 + + 11 - col0 col1 FROM tab0 cor0
----
-13
-56
-78

query I rowsort
SELECT DISTINCT col1 * - ( col1 ) + ( 91 ) * + col1 AS col0 FROM tab0
----
-582
0
430

query I rowsort
SELECT + ( - col0 + - col2 ) * - col1 FROM tab2
----
1054
1989
6136

query I rowsort
SELECT ALL col0 * col0 * + col0 + col0 AS col0 FROM tab0
----
13848
42910
705058

query I rowsort
SELECT 1 * + ( - col1 ) * col2 FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 + 93 col2 FROM tab0
----
-699
-7205
58

query I rowsort
SELECT DISTINCT + cor1.col2 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 * col0 col1 FROM tab1 cor0
----
-104
-1053
-650

query I rowsort
SELECT + 40 * col0 AS col1 FROM tab0 AS cor0
----
1400
3560
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-3766
SELECT DISTINCT tab0.col0 DIV + col1 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3766
SELECT DISTINCT tab0.col0 / + col1 AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL - + 49 + 62 * col1 FROM tab1 AS cor0
----
1563
571
757

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3768
SELECT ALL + CAST( NULL AS SIGNED ) * + 74 + + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL + CAST ( NULL AS INTEGER ) * + 74 + + col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3769
SELECT + CAST( - 36 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-3769
SELECT + CAST ( - 36 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-36
-36
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col0 FROM tab0, tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3771
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3772
SELECT ALL ( tab1.col1 ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL ( tab1.col1 ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 18 + col0 + col0 AS col1 FROM tab0
----
160
30
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-3774
SELECT ALL - - col0 DIV - cor0.col1 + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL - - col0 / - cor0.col1 + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + + 14 AS col2 FROM tab2 AS cor0
----
14
14
14

query I rowsort
SELECT DISTINCT + - cor0.col1 * 71 + 67 AS col1 FROM tab0 cor0
----
-6039
-6394
-6820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3777
SELECT col2 + CAST( NULL AS SIGNED ) * + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT col2 + CAST ( NULL AS INTEGER ) * + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3778
SELECT ALL + col1 * CAST( + col1 * col2 + col2 AS SIGNED ) FROM tab2 AS cor0
----
11628
26784
92040

skipif mysql # not compatible
query I rowsort label-3778
SELECT ALL + col1 * CAST ( + col1 * col2 + col2 AS INTEGER ) FROM tab2 AS cor0
----
11628
26784
92040

query I rowsort
SELECT - col0 * + 47 + - 83 FROM tab2 AS cor0
----
-3749
-3796
-412

onlyif mysql # use DIV operator for integer division
query I rowsort label-3780
SELECT - - cor0.col2 DIV - 33 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3780
SELECT - - cor0.col2 / - 33 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT - - col1 * + cor0.col1 + - col2 AS col0 FROM tab2 cor0
----
251
3455
934

onlyif mysql # use DIV operator for integer division
query I rowsort label-3782
SELECT ALL + col1 + + col1 DIV + col0 AS col2 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL + col1 + + col1 / + col0 AS col2 FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT DISTINCT + col1 * - ( + 87 ) FROM tab2 AS cor0
----
-1479
-2697
-5133

query I rowsort
SELECT - 86 * + tab2.col1 + - col1 AS col0 FROM tab2
----
-1479
-2697
-5133

query I rowsort
SELECT + col1 * - 5 FROM tab0 cor0
----
-430
-455
-485

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3786
SELECT col1 + CAST( NULL AS SIGNED ) * 91 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3786
SELECT col1 + CAST ( NULL AS INTEGER ) * 91 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3787
SELECT DISTINCT col2 + 9 DIV - col1 AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3787
SELECT DISTINCT col2 + 9 / - col1 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT col2 * + tab2.col1 + 68 FROM tab2
----
1602
714
905

query I rowsort
SELECT col2 * 24 AS col2 FROM tab1
----
1296
1368
2304

query I rowsort
SELECT ALL 99 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

onlyif mysql # use DIV operator for integer division
query I rowsort label-3791
SELECT col2 + + 3 DIV + col1 AS col0 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3791
SELECT col2 + + 3 / + col1 AS col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT + cor0.col2 * 94 FROM tab2 AS cor0
----
2444
2538
3572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 * - col0 + cor0.col0 col2 FROM tab1 AS cor0
----
135
2880
3600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 * - col2 col2 FROM tab2 AS cor0
----
2002
2079
2926

query I rowsort
SELECT DISTINCT - col2 + - cor0.col1 + + col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT 62 - col2 FROM tab2 AS cor0
----
24
35
36

query I rowsort
SELECT ALL ( - col0 ) AS col1 FROM tab2 cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3798
SELECT + ( col1 ) * - cor0.col2 + + col0 DIV - col2 AS col2 FROM tab1 cor0
----
-1248
-1404
-571

skipif mysql # not compatible
query I rowsort label-3798
SELECT + ( col1 ) * - cor0.col2 + + col0 / - col2 AS col2 FROM tab1 cor0
----
-1248
-1404
-571

query I rowsort
SELECT col0 * - col2 + col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3800
SELECT - - col1 * - cor0.col0 * CAST( - cor0.col2 AS SIGNED ) + - col1 * + 99 - + cor0.col0 FROM tab1 AS cor0
----
1635
35426
98473

skipif mysql # not compatible
query I rowsort label-3800
SELECT - - col1 * - cor0.col0 * CAST ( - cor0.col2 AS INTEGER ) + - col1 * + 99 - + cor0.col0 FROM tab1 AS cor0
----
1635
35426
98473

query I rowsort
SELECT + ( + col1 ) + ( - 5 ) FROM tab2 AS cor0
----
12
26
54

query I rowsort
SELECT - 62 * cor0.col1 FROM tab1 cor0
----
-1612
-620
-806

query I rowsort
SELECT 28 + cor0.col0 FROM tab1 AS cor0
----
108
31
92

query I rowsort
SELECT - 36 + - col0 - + 80 * - col1 FROM tab1 AS cor0
----
2041
700
924

onlyif mysql # use DIV operator for integer division
query I rowsort label-3805
SELECT DISTINCT + 95 DIV - 1 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT + 95 / - 1 FROM tab2
----
-95

query I rowsort
SELECT + col1 * + col0 + col0 * - 0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - col1 + tab2.col2 * + ( tab2.col0 ) AS col0 FROM tab2
----
158
1969
2985

query I rowsort
SELECT - tab0.col0 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL - + 30 + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1070
-108
-670

query I rowsort
SELECT ALL + cor0.col1 + - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + cor0.col2 AS REAL ) * - col0 + - col1 FROM tab0 AS cor0
----
-132
-7389
-878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 + + 71 col1 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

query I rowsort
SELECT DISTINCT + ( - 30 ) * - col0 FROM tab0 AS cor0
----
1050
2670
720

onlyif mysql # use DIV operator for integer division
query I rowsort label-3814
SELECT ALL col1 + + 77 DIV + col0 FROM tab0 AS cor0
----
89
91
99

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL col1 + + 77 / + col0 FROM tab0 AS cor0
----
89
91
99

query I rowsort
SELECT DISTINCT - 16 + - col1 * col0 FROM tab2 AS cor0
----
-1359
-233
-4618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * col2 col2 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col0 col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT + 19 AS col0 FROM tab2, tab2 AS cor0, tab0 cor1, tab0 cor2
----
19

query I rowsort
SELECT DISTINCT col0 * - cor0.col1 + - col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT - col1 + + col1 * 70 AS col0 FROM tab2 cor0
----
1173
2139
4071

query I rowsort
SELECT ALL - - col2 + - col1 * 4 FROM tab0 AS cor0
----
-282
-311
-387

query I rowsort
SELECT ALL + col1 * + col1 + - col2 AS col0 FROM tab1 AS cor0
----
43
622
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-3823
SELECT ALL - + col2 + + col2 DIV col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL - + col2 + + col2 / col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL col2 + - cor0.col0 * + col2 * col2 AS col0 FROM tab1 AS cor0
----
-207879
-737184
-8694

query I rowsort
SELECT + ( - col0 ) - - col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - cor0.col1 ) + ( 87 ) * col1 col2 FROM tab0 AS cor0
----
7396
7826
8342

query I rowsort
SELECT col0 * - col0 + - col1 * col0 * col0 AS col2 FROM tab1 AS cor0
----
-243
-45056
-89600

query I rowsort
SELECT - 27 + cor0.col0 AS col2 FROM tab0 cor0
----
-3
62
8

query I rowsort
SELECT ALL - - 81 * col2 + - cor0.col0 FROM tab1 AS cor0
----
4371
4553
7696

onlyif mysql # use DIV operator for integer division
query I rowsort label-3830
SELECT - col2 DIV + col1 + 36 FROM tab0 AS cor0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-3830
SELECT - col2 / + col1 + 36 FROM tab0 AS cor0
----
36
36
36

query I rowsort
SELECT DISTINCT + ( - tab0.col1 ) FROM tab0, tab2 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + col0 - - 18 FROM tab1
----
21
82
98

query I rowsort
SELECT DISTINCT - + 65 AS col2 FROM tab2, tab0, tab0 AS cor0
----
-65

query I rowsort
SELECT ALL cor0.col0 + cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL + + cor0.col1 * 68 FROM tab1 cor0
----
1768
680
884

onlyif mysql # use DIV operator for integer division
query I rowsort label-3836
SELECT ALL + + col2 - - 72 DIV - 6 AS col0 FROM tab2 AS cor0
----
14
15
26

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL + + col2 - - 72 / - 6 AS col0 FROM tab2 AS cor0
----
14
15
26

query I rowsort
SELECT - - col2 * - ( + 84 ) FROM tab2 AS cor0
----
-2184
-2268
-3192

query I rowsort
SELECT + cor0.col0 + - 32 FROM tab0, tab0 cor0
----
9 values hashing to aa0f09b4bc9941c8089e90a6cac53418

query I rowsort
SELECT - tab1.col2 * - tab1.col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - col1 * - 88 + - 54 + col2 FROM tab2 AS cor0
----
1480
2701
5164

query I rowsort
SELECT DISTINCT - + col2 + + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT + col2 * + col2 * ( col0 ) AS col0 FROM tab1 AS cor0
----
207936
737280
8748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3843
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * - col2 + + 96 FROM tab0 AS cor0
----
-1
-2742
-7366

skipif mysql # not compatible
query I rowsort label-3843
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * - col2 + + 96 FROM tab0 AS cor0
----
-1
-2742
-7366

query I rowsort
SELECT - col0 * + 46 FROM tab1 cor0
----
-138
-2944
-3680

query I rowsort
SELECT ( col0 ) * col1 + col0 AS col1 FROM tab0 cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-3846
SELECT + col0 - + col1 DIV - col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3846
SELECT + col0 - + col1 / - col2 FROM tab1
----
3
64
80

query I rowsort
SELECT col0 * + col2 * tab1.col1 AS col2 FROM tab1
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3848
SELECT DISTINCT col1 * col1 DIV + col0 + + col0 col0 FROM tab2
----
122
144
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3848
SELECT DISTINCT col1 * col1 / + col0 + + col0 col0 FROM tab2
----
122
144
82

query I rowsort
SELECT ALL - col2 * - ( col2 ) FROM tab0
----
1
1089
6724

query I rowsort
SELECT - ( - col1 + col0 ) AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT + - cor0.col1 AS col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT col0 * + col1 + + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + cor0.col2 * - 75 FROM tab2 AS cor0
----
-1950
-2025
-2850

query I rowsort
SELECT + 75 * col1 AS col0 FROM tab1 AS cor0
----
1950
750
975

query I rowsort
SELECT ALL - + ( 33 ) * + col0 FROM tab1 cor0
----
-2112
-2640
-99

query I rowsort
SELECT DISTINCT 79 * - 61 AS col1 FROM tab2 AS cor0
----
-4819

query I rowsort
SELECT - - 30 + + col1 AS col2 FROM tab2 cor0
----
47
61
89

query I rowsort
SELECT ALL + ( - ( + cor0.col0 ) ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT 31 + - col1 + col2 * 84 * col0 AS col2 FROM tab2 AS cor0
----
15876
170324
252182

onlyif mysql # use DIV operator for integer division
query I rowsort label-3860
SELECT ALL tab0.col0 + - tab0.col1 DIV col2 AS col2 FROM tab0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL tab0.col0 + - tab0.col1 / col2 AS col2 FROM tab0
----
-62
22
88

query I rowsort
SELECT ALL col2 * + col2 + col0 + - col2 * col0 AS col2 FROM tab2
----
-1274
-1479
547

query I rowsort
SELECT DISTINCT + + ( cor0.col0 ) * + col0 * 58 - + col2 AS col1 FROM tab1 AS cor0
----
237511
371104
468

onlyif mysql # use DIV operator for integer division
query I rowsort label-3863
SELECT - + col0 * col0 DIV - col1 + + col2 FROM tab0 AS cor0
----
13
169
39

skipif mysql # not compatible
query I rowsort label-3863
SELECT - + col0 * col0 / - col1 + + col2 FROM tab0 AS cor0
----
13
169
39

query I rowsort
SELECT + + 94 + col1 * col0 FROM tab2 cor0
----
1437
311
4696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 + - col1 * - col2 col2 FROM tab0 AS cor0
----
137
2878
7502

query I rowsort
SELECT DISTINCT 69 * col2 + + cor0.col0 + 91 AS col0 FROM tab0 AS cor0
----
195
2392
5838

query I rowsort
SELECT ALL - col0 - col0 * cor0.col0 FROM tab0 cor0
----
-1260
-600
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-3868
SELECT ALL + col0 DIV col0 + 93 * col0 FROM tab1 AS cor0
----
280
5953
7441

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL + col0 / col0 + 93 * col0 FROM tab1 AS cor0
----
280
5953
7441

query I rowsort
SELECT DISTINCT + col0 + + ( 7 ) * + col1 AS col2 FROM tab2 AS cor0
----
198
224
491

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3870
SELECT ALL - col2 * CAST( - col1 AS SIGNED ) * - col0 AS col0 FROM tab1
----
-36480
-4212
-99840

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL - col2 * CAST ( - col1 AS INTEGER ) * - col0 AS col0 FROM tab1
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + ( - col0 ) + - col2 col1 FROM tab0 AS cor0
----
-253
-37
-90

query I rowsort
SELECT + - col2 * + 96 + cor0.col2 FROM tab2 AS cor0
----
-2470
-2565
-3610

query I rowsort
SELECT ALL - - col1 + col1 * - col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL + 22 FROM tab1, tab0 cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT - 65 + cor0.col0 FROM tab2 AS cor0
----
-58
13
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 + col1 col0 FROM tab0 AS cor0
----
71
76
82

query I rowsort
SELECT + 65 * + col1 + - 0 * - col0 AS col0 FROM tab2 AS cor0
----
1105
2015
3835

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col0 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT + - ( col1 ) + ( - col2 ) FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT col1 + col1 * cor0.col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT col0 * col0 + + tab1.col1 * col2 * 51 + - col1 AS col1 FROM tab1
----
33156
70035
71587

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col0 AS REAL ) * - col0 + + tab0.col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT ( + col0 ) + col2 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + 41 + + col0 * 53 AS col0 FROM tab0 AS cor0
----
1313
1896
4758

query I rowsort
SELECT cor0.col0 * - ( - col1 ) AS col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - 67 + - 8 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-75

query I rowsort
SELECT ALL 52 * 66 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c124081233402350a46f4048c4170654

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3889
SELECT + CAST( NULL AS SIGNED ) * - 87 * - 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-3889
SELECT + CAST ( NULL AS INTEGER ) * - 87 * - col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3890
SELECT + CAST( NULL AS SIGNED ) col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3890
SELECT + CAST ( NULL AS INTEGER ) col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - ( - tab1.col0 ) * col1 FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 + col2 * + col1 col1 FROM tab2
----
1482
605
857

query I rowsort
SELECT - ( 10 ) + - col0 FROM tab0
----
-34
-45
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-3894
SELECT - + 38 DIV - ( - col1 ) AS col2 FROM tab2 cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3894
SELECT - + 38 / - ( - col1 ) AS col2 FROM tab2 cor0
----
-1
-2
0

query I rowsort
SELECT 16 AS col0 FROM tab2 cor0
----
16
16
16

query I rowsort
SELECT ALL cor1.col1 AS col0 FROM tab1, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3897
SELECT col2 * + col0 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT col2 * + col0 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 23 * + col0 - col0 FROM tab1
----
1408
1760
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3899
SELECT tab1.col1 DIV ( + tab1.col0 ) col1 FROM tab1
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3899
SELECT tab1.col1 / ( + tab1.col0 ) col1 FROM tab1
----
0
0
8

query I rowsort
SELECT DISTINCT col0 + col1 * + 14 + + tab2.col1 AS col2 FROM tab2
----
334
472
963

query I rowsort
SELECT ( col1 ) * col1 * 72 + + col1 + col2 * col0 FROM tab1
----
10858
19861
48860

query I rowsort
SELECT - 42 * col1 AS col1 FROM tab1 AS cor0
----
-1092
-420
-546

query I rowsort
SELECT tab0.col0 * col0 * 49 FROM tab0
----
28224
388129
60025

query I rowsort
SELECT ( col1 ) + + col0 + col0 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT + col1 * col2 - 89 * col2 AS col0 FROM tab0
----
-99
164
8

query I rowsort
SELECT ALL - 60 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3907
SELECT - ( + col2 ) DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3907
SELECT - ( + col2 ) / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * + 8 - + col0 FROM tab0 AS cor0
----
168
245
623

query I rowsort
SELECT - - col0 * 57 * col0 + col0 FROM tab0 AS cor0
----
32856
451586
69860

onlyif mysql # use DIV operator for integer division
query I rowsort label-3910
SELECT + 79 DIV - col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3910
SELECT + 79 / - col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT - col0 * + 42 AS col1 FROM tab1 AS cor0
----
-126
-2688
-3360

query I rowsort
SELECT DISTINCT - col0 * 76 * col1 FROM tab2
----
-102068
-16492
-349752

query I rowsort
SELECT ALL + + col2 + 13 FROM tab2 AS cor0
----
39
40
51

query I rowsort
SELECT DISTINCT 66 + 16 FROM tab0 AS cor0
----
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3915
SELECT ALL - CAST( NULL AS SIGNED ) * cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL - CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( tab2.col1 )
----

query I rowsort
SELECT col1 + - col2 + col1 FROM tab0
----
100
139
193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * tab2.col1 col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL + tab1.col1 AS col1 FROM tab1 WHERE - col1 IN ( - col0 + + col2 * + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3920
SELECT tab0.col2 DIV + tab0.col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3920
SELECT tab0.col2 / + tab0.col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3921
SELECT col1 + col1 DIV col1 col0 FROM tab1
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3921
SELECT col1 + col1 / col1 col0 FROM tab1
----
11
14
27

query I rowsort
SELECT DISTINCT col2 + + col1 * col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT + col2 + - col2 * - col2 AS col1 FROM tab2
----
1482
702
756

onlyif mysql # use DIV operator for integer division
query I rowsort label-3924
SELECT tab2.col1 DIV - col0 AS col2 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-3924
SELECT tab2.col1 / - col0 AS col2 FROM tab2
----
-4
0
0

query I rowsort
SELECT - col0 + + cor0.col2 AS col1 FROM tab0 cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 + + col1 col0 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT col1 + col0 * - col2 AS col1 FROM tab0 WHERE col1 NOT BETWEEN NULL AND ( - col2 )
----
-706
-7207
62

query I rowsort
SELECT ALL col2 * + col0 + col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT col0 * col2 > NULL
----

query I rowsort
SELECT DISTINCT col1 + col1 * col1 * tab2.col0 AS col2 FROM tab2
----
22848
271577
6758

query I rowsort
SELECT col0 * col0 AS col1 FROM tab2 WHERE ( NULL ) IN ( - col0 )
----

query I rowsort
SELECT ALL col0 * col1 + col0 * tab2.col0 AS col0 FROM tab2
----
10686
266
7584

query I rowsort
SELECT col1 + - col1 * - col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-205320
-29760
-4896

query I rowsort
SELECT + col0 * + col2 - cor0.col0 AS col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 * - cor0.col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT + col0 + + col2 * col1 AS col2 FROM tab0 AS cor0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + + col0 - cor0.col2 col2 FROM tab1 AS cor0
----
1232
1353
577

query I rowsort
SELECT col0 * col2 + - col0 - col2 AS col1 FROM tab1 AS cor0
----
105
3527
7504

onlyif mysql # use DIV operator for integer division
query I rowsort label-3939
SELECT ALL + col2 DIV cor0.col1 + cor0.col2 FROM tab2 cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL + col2 / cor0.col1 + cor0.col2 FROM tab2 cor0
----
26
27
40

query I rowsort
SELECT DISTINCT col1 * col0 - col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT - cor0.col0 * col0 + - col0 * - col2 AS col0 FROM tab1 AS cor0
----
-448
1280
153

query I rowsort
SELECT - cor0.col1 + + col0 * - col2 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT col1 IN ( col0 + col0 + - col2 * + col1 * + col2 )
----
1
33
82

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3945
SELECT ALL + col1 DIV col0 + - col2 AS col0 FROM tab1
----
-46
-57
-96

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL + col1 / col0 + - col2 AS col0 FROM tab1
----
-46
-57
-96

query I rowsort
SELECT - col2 + tab0.col1 - tab0.col1 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT ALL col2 * + col1 * col0 + - col0 FROM tab2
----
119574
50955
5852

query I rowsort
SELECT - col1 * 20 FROM tab2 AS cor0
----
-1180
-340
-620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col2 * col1 * - col2 col1 FROM tab1 AS cor0
----
-119712
-32433
-75762

query I rowsort
SELECT - - col0 + - 23 FROM tab1 AS cor0
----
-20
41
57

query I rowsort
SELECT DISTINCT - col1 + - col1 + - col2 * - col2 FROM tab1 AS cor0
----
2864
3229
9190

query I rowsort
SELECT ALL - + col1 * cor0.col0 + + col2 * col0 FROM tab1 AS cor0
----
3008
6640
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 52 col1 FROM tab2 cor0
----
364
4056
4108

query I rowsort
SELECT - col0 * - ( col0 ) FROM tab1 AS cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 63 * + col1 col0 FROM tab2 AS cor0
----
13671
289926
84609

onlyif mysql # use DIV operator for integer division
query I rowsort label-3956
SELECT ALL + col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL + col2 / - col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3957
SELECT 80 + + col1 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3957
SELECT 80 + + col1 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 15 + col1 + - col2 FROM tab1
----
-13
-32
-68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3959
SELECT + col0 * tab0.col2 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT + col0 * tab0.col2 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 - 63 * col2 FROM tab1 AS cor0
----
-3348
-3534
-5952

query I rowsort
SELECT + + col0 + 77 * - col0 * col0 AS col0 FROM tab0 AS cor0
----
-44328
-609828
-94290

query I rowsort
SELECT ALL 82 FROM tab1, tab1 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL col0 - - col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT - col1 + + col1 + - col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT col1 FROM tab1 WHERE ( col1 ) NOT BETWEEN col0 * col1 AND col0
----
10
13
26

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL col1 + + tab2.col0 AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT + col0 - - col1 * tab1.col1 FROM tab1
----
164
249
679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 WHERE NULL NOT BETWEEN + col0 + - col0 AND NULL
----

query I rowsort
SELECT ALL - col1 + tab2.col1 FROM tab2 WHERE NOT NULL NOT IN ( + col1 / - col1 )
----

query I rowsort
SELECT + col2 + col2 + col0 FROM tab1
----
111
178
272

query I rowsort
SELECT - 73 * - col1 AS col2 FROM tab0
----
6278
6643
7081

query I rowsort
SELECT ALL - 1 + col2 AS col0 FROM tab1
----
53
56
95

query I rowsort
SELECT DISTINCT + 48 * + col0 + 96 * - col1 AS col2 FROM tab0 cor0
----
-4464
-7104
-7632

query I rowsort
SELECT DISTINCT 73 + + col1 AS col0 FROM tab2
----
104
132
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3976
SELECT - 74 + + col1 + tab1.col0 * col2 DIV col1 col1 FROM tab1
----
-42
300
529

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3976
SELECT - 74 + + col1 + tab1.col0 * col2 / col1 col1 FROM tab1
----
-42
300
529

query I rowsort
SELECT ALL + + 91 + - col2 * + col2 * - 17 FROM tab1 cor0
----
156763
49663
55324

query I rowsort
SELECT DISTINCT 14 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
14

query I rowsort
SELECT ALL 25 + + cor0.col2 + - col0 FROM tab0 AS cor0
----
-9
18
34

query I rowsort
SELECT DISTINCT + + 78 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
78

query I rowsort
SELECT ALL + col0 * + 74 + col0 - - col2 FROM tab0 AS cor0
----
1833
2626
6757

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 cor2
----
972 values hashing to 3406497351e4789c89a295ee9b64b201

query I rowsort
SELECT - cor0.col1 + 93 * + ( + col2 ) * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-3352
-678805
-73742

query I rowsort
SELECT - - col2 + + col2 - - col0 AS col1 FROM tab0 AS cor0
----
253
37
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3985
SELECT ALL col0 * CAST( + col2 AS SIGNED ) + cor0.col0 + col0 * col2 FROM tab1 AS cor0
----
15440
327
7360

skipif mysql # not compatible
query I rowsort label-3985
SELECT ALL col0 * CAST ( + col2 AS INTEGER ) + cor0.col0 + col0 * col2 FROM tab1 AS cor0
----
15440
327
7360

query I rowsort
SELECT - cor0.col1 - 92 FROM tab2 AS cor0
----
-109
-123
-151

query I rowsort
SELECT + col1 * - col1 + col1 * - cor0.col1 * + col1 FROM tab1 AS cor0
----
-1100
-18252
-2366

query I rowsort
SELECT - col1 * - ( + col0 * - col1 + + col0 * + tab2.col1 ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * + ( + col2 ) * col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT + ( 53 ) FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT ( - col2 ) + - col2 * col1 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT - + 79 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2 cor1, tab0 cor2
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 * col2 + CAST ( ( - col1 ) AS REAL ) FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT + + col1 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + col1 - - cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-3997
SELECT + col1 DIV - col2 + + col2 * + col0 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-3997
SELECT + col1 / - col2 + + col2 * + col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - 76 * col0 + - col2 * col2 AS col2 FROM tab1
----
-15296
-3144
-8113

query I rowsort
SELECT 10 * - col2 FROM tab1 AS cor0
----
-540
-570
-960

query I rowsort
SELECT DISTINCT + 81 + - col1 * col1 FROM tab0
----
-7315
-8200
-9328

query I rowsort
SELECT - col2 - - 18 AS col2 FROM tab0 cor0
----
-15
-64
17

query I rowsort
SELECT + - col2 * + col0 - - col1 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - 80 * - col1 AS col0 FROM tab0
----
6880
7280
7760

query I rowsort
SELECT ALL + ( col1 ) * + col0 * - col0 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL + col1 * + col2 * - col1 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT + tab0.col0 + cor0.col2 * + cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to e0d9b1edaa77b201e304998352e773a4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4007
SELECT - col1 * tab2.col1 DIV col1 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-4007
SELECT - col1 * tab2.col1 / col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT col2 * + tab1.col0 * + col1 AS col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL - col1 - tab2.col0 FROM tab2
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 + + col0 - col1 col0 FROM tab1
----
-101
-586
-973

query I rowsort
SELECT + tab0.col1 + tab0.col1 AS col1 FROM tab0
----
172
182
194

query I rowsort
SELECT 28 FROM tab0, tab0 cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4013
SELECT ALL - 99 DIV + col2 AS col2 FROM tab0
----
-1
-3
-99

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL - 99 / + col2 AS col2 FROM tab0
----
-1
-3
-99

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( ( + col0 ) AS REAL ) * col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT - 58 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4016
SELECT + ( col0 ) DIV - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4016
SELECT + ( col0 ) / - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + 78 AS col2 FROM tab0 cor0
----
78
78
78

query I rowsort
SELECT cor0.col0 + - col0 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL 76 FROM tab1 cor0
----
76
76
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4020
SELECT ( + col0 ) + col1 DIV col0 + - 29 * col1 FROM tab2
----
-1633
-414
-888

skipif mysql # not compatible
query I rowsort label-4020
SELECT ( + col0 ) + col1 / col0 + - 29 * col1 FROM tab2
----
-1633
-414
-888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

query I rowsort
SELECT DISTINCT - col2 * + col2 * 32 AS col1 FROM tab2 AS cor0
----
-21632
-23328
-46208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col0 FROM tab2, tab0 cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT tab2.col0 * col2 * col2 + - 45 - + col0 * tab2.col0 FROM tab2
----
107790
46599
5009

query I rowsort
SELECT ALL - tab2.col2 * tab2.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to c52f276f0448e9317aa4a2c462e0bab5

query I rowsort
SELECT ALL tab2.col1 + col0 * col0 FROM tab2
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4027
SELECT col1 DIV col1 + - col2 AS col1 FROM tab2
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-4027
SELECT col1 / col1 + - col2 AS col1 FROM tab2
----
-25
-26
-37

query I rowsort
SELECT - 58 * tab0.col1 + - 90 FROM tab0
----
-5078
-5368
-5716

query I rowsort
SELECT col0 + - col1 * + 81 AS col2 FROM tab1 AS cor0
----
-2103
-746
-973

query I rowsort
SELECT - - col1 + col2 + col1 FROM tab0 AS cor0
----
195
205
264

query I rowsort
SELECT DISTINCT - + col1 * + col0 * col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-4032
SELECT DISTINCT 11 + + tab2.col0 DIV + 26 AS col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
11
14

skipif mysql # not compatible
query I rowsort label-4032
SELECT DISTINCT 11 + + tab2.col0 / + 26 AS col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
11
14

query I rowsort
SELECT ALL - col1 * 58 - + col0 AS col0 FROM tab1
----
-1511
-644
-834

query I rowsort
SELECT DISTINCT + + 86 FROM tab1 cor0
----
86

query I rowsort
SELECT + cor0.col0 * - 8 FROM tab2 cor0
----
-56
-624
-632

query I rowsort
SELECT ALL - ( + 47 ) * col0 AS col0 FROM tab2 AS cor0
----
-329
-3666
-3713

query I rowsort
SELECT ALL - 68 AS col0 FROM tab0 cor0
----
-68
-68
-68

query I rowsort
SELECT DISTINCT - 31 * - col1 FROM tab1 AS cor0
----
310
403
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-4039
SELECT ALL + col2 DIV + col1 AS col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL + col2 / + col1 AS col1 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT ALL 10 + col2 AS col2 FROM tab0
----
11
43
92

query I rowsort
SELECT DISTINCT 48 * ( col1 ) FROM tab1 AS cor0
----
1248
480
624

query I rowsort
SELECT + 13 * - 35 AS col0 FROM tab2 AS cor0
----
-455
-455
-455

query I rowsort
SELECT ALL + 8 * - col0 + - col1 AS col0 FROM tab1 AS cor0
----
-50
-522
-653

query I rowsort
SELECT + ( + col2 ) * col0 + ( - col0 ) * + col1 * - 63 FROM tab0 AS cor0
----
130824
213920
517535

query I rowsort
SELECT ALL + 31 * - cor0.col0 + - col1 * 6 FROM tab2 AS cor0
----
-2551
-2772
-403

onlyif mysql # use DIV operator for integer division
query I rowsort label-4046
SELECT cor0.col2 + - ( + col0 ) DIV - col1 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-4046
SELECT cor0.col2 + - ( + col0 ) / - col1 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL 9 + + col1 AS col2 FROM tab1 AS cor0
----
19
22
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4049
SELECT ALL - CAST( + col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT - 44 + - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1578
-690
-881

query I rowsort
SELECT DISTINCT 19 * + col1 + - col0 FROM tab2 AS cor0
----
1043
244
582

query I rowsort
SELECT + - ( + cor0.col0 ) * + cor0.col1 + cor0.col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT 40 - - col2 * - col1 FROM tab0 AS cor0
----
-2798
-57
-7422

onlyif mysql # use DIV operator for integer division
query I rowsort label-4054
SELECT col2 - - col1 DIV + col2 FROM tab0 AS cor0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-4054
SELECT col2 - - col1 / + col2 FROM tab0 AS cor0
----
35
83
98

query I rowsort
SELECT ALL - 40 + + cor0.col1 * + col2 AS col1 FROM tab1 AS cor0
----
1208
1364
530

onlyif mysql # use DIV operator for integer division
query I rowsort label-4056
SELECT ALL - col2 DIV 4 FROM tab0 AS cor0
----
-20
-8
0

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL - col2 / 4 FROM tab0 AS cor0
----
-20
-8
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL ( cor0.col0 ) + + col1 * 38 FROM tab2 AS cor0
----
1185
2320
725

onlyif mysql # use DIV operator for integer division
query I rowsort label-4059
SELECT + cor0.col0 + 52 DIV col0 FROM tab1 AS cor0
----
20
64
80

skipif mysql # not compatible
query I rowsort label-4059
SELECT + cor0.col0 + 52 / col0 FROM tab1 AS cor0
----
20
64
80

query I rowsort
SELECT 75 * col2 AS col1 FROM tab0
----
2475
6150
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4061
SELECT - CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4061
SELECT - CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + + col1 * + col0 + 28 AS col1 FROM tab2
----
1292
238
4552

query I rowsort
SELECT ALL col0 - + 15 FROM tab0 AS cor0
----
20
74
9

query I rowsort
SELECT + col0 + 71 * col0 FROM tab0 AS cor0
----
1728
2520
6408

query I rowsort
SELECT ALL 75 - - col2 AS col1 FROM tab1 AS cor0
----
129
132
171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col0 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT cor0.col1 + + 72 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 873bb6529f43374f809f415552faef9a

query I rowsort
SELECT DISTINCT - col1 - 4 AS col0 FROM tab0 AS cor0
----
-101
-90
-95

query I rowsort
SELECT ALL + 25 FROM tab2, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT ALL + col0 * col0 * - col1 AS col1 FROM tab1 AS cor0
----
-234
-40960
-83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4071
SELECT + ( col0 ) * + col2 * - ( col1 * + CAST( NULL AS SIGNED ) ) + col1 + col2 * 3 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT + ( col0 ) * + col2 * - ( col1 * + CAST ( NULL AS INTEGER ) ) + col1 + col2 * 3 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4072
SELECT ALL + 97 * - col2 + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4072
SELECT ALL + 97 * - col2 + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 29 * - cor0.col2 AS col1 FROM tab1 cor0
----
-1566
-1653
-2784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - cor0.col0 + - ( col2 + col1 ) col2 FROM tab0 AS cor0
----
-1323
-695
-8094

query I rowsort
SELECT DISTINCT 98 * col1 * col0 FROM tab0 cor0
----
202272
332710
793702

query I rowsort
SELECT 7 + - col1 * col1 AS col0 FROM tab0
----
-7389
-8274
-9402

onlyif mysql # use DIV operator for integer division
query I rowsort label-4077
SELECT ALL + tab1.col2 + col1 DIV col2 AS col2 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL + tab1.col2 + col1 / col2 AS col2 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4078
SELECT + 77 DIV - col2 - col0 FROM tab1 AS cor0
----
-4
-65
-80

skipif mysql # not compatible
query I rowsort label-4078
SELECT + 77 / - col2 - col0 FROM tab1 AS cor0
----
-4
-65
-80

query I rowsort
SELECT ALL + col2 + 39 FROM tab2 AS cor0
----
65
66
77

query I rowsort
SELECT ALL - col2 + - col2 - + 42 FROM tab2 cor0
----
-118
-94
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4081
SELECT + cor0.col1 + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4081
SELECT + cor0.col1 + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + + 86 AS col1 FROM tab2 AS cor0
----
103
117
145

query I rowsort
SELECT ALL - + col1 + + 21 FROM tab0 AS cor0
----
-65
-70
-76

query I rowsort
SELECT ALL + col2 + cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT - ( col1 * ( col0 ) ) + - col1 FROM tab0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL - + col2 * col1 + - col1 * col2 FROM tab0 AS cor0
----
-14924
-194
-5676

query I rowsort
SELECT - + col0 + + ( col2 ) * - col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT - cor0.col0 + - ( - col2 ) AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - + 80 AS col1 FROM tab2 AS cor0
----
-80
-80
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4090
SELECT + col0 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4090
SELECT + col0 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT tab0.col2 + 92 * - col1 FROM tab0
----
-7879
-8290
-8923

query I rowsort
SELECT DISTINCT - + 17 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-17

query I rowsort
SELECT tab1.col2 + - ( col2 ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab0 cor0 CROSS JOIN tab2, tab0 AS cor1
----
-24
-35
-89

query I rowsort
SELECT 51 * - 36 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4bf24425b598d8f159528c81d58cde58

query I rowsort
SELECT ALL - ( - tab2.col0 ) * - col1 * + col0 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT - - col1 + - col0 * 92 FROM tab2 AS cor0
----
-613
-7117
-7251

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4098
SELECT + + cor0.col2 + CAST( - 86 AS SIGNED ) FROM tab2 AS cor0
----
-48
-59
-60

skipif mysql # not compatible
query I rowsort label-4098
SELECT + + cor0.col2 + CAST ( - 86 AS INTEGER ) FROM tab2 AS cor0
----
-48
-59
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4099
SELECT ALL + CAST( NULL AS SIGNED ) - + 93 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL + CAST ( NULL AS INTEGER ) - + 93 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col1 * ( + 55 ) FROM tab1
----
1430
550
715

query I rowsort
SELECT ALL + tab0.col2 + 4 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to fdd1bab0ce059486d3b7c83414044e67

query I rowsort
SELECT DISTINCT 28 FROM tab2, tab0 AS cor0
----
28

query I rowsort
SELECT + + col2 * 76 + col0 FROM tab1 cor0
----
4107
4396
7376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 71 + 77 col1 FROM tab1 cor0
----
6
6
6

query I rowsort
SELECT ALL + - 36 * col0 + + col0 AS col2 FROM tab2 AS cor0
----
-245
-2730
-2765

query I rowsort
SELECT DISTINCT + col2 * + 37 AS col1 FROM tab0 cor0
----
1221
3034
37

query I rowsort
SELECT ALL - col1 + 21 AS col1 FROM tab1 AS cor0
----
-5
11
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4108
SELECT CAST( 24 AS SIGNED ) + + col1 AS col1 FROM tab2 AS cor0
----
41
55
83

skipif mysql # not compatible
query I rowsort label-4108
SELECT CAST ( 24 AS INTEGER ) + + col1 AS col1 FROM tab2 AS cor0
----
41
55
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4109
SELECT - 81 DIV + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2
-81
0

skipif mysql # not compatible
query I rowsort label-4109
SELECT - 81 / + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2
-81
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4110
SELECT + - ( col2 ) DIV + col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4110
SELECT + - ( col2 ) / + col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 58 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT DISTINCT - 46 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
-46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4113
SELECT col2 + col2 * + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
1482
702
756

skipif mysql # not compatible
query I rowsort label-4113
SELECT col2 + col2 * + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT + + col0 + col2 * - 72 * col2 AS col1 FROM tab1 AS cor0
----
-209949
-233864
-663472

query I rowsort
SELECT ALL + col2 - col1 AS col0 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT + col2 * + col2 * cor0.col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL + col0 - + cor0.col1 * - 46 FROM tab1 AS cor0
----
1199
524
678

query I rowsort
SELECT DISTINCT + 89 AS col2 FROM tab0 AS cor0
----
89

query I rowsort
SELECT 44 * + col0 + col1 * + 87 FROM tab1 AS cor0
----
2394
3686
4651

query I rowsort
SELECT ALL - + col1 + col2 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4121
SELECT + col2 DIV - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-4121
SELECT + col2 / - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + + col2 * 76 AS col1 FROM tab1 AS cor0
----
4104
4332
7296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4124
SELECT DISTINCT col1 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT DISTINCT col1 + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - cor0.col1 * col2 * col1 + + col1 FROM tab1 AS cor0
----
-16211
-36478
-5690

query I rowsort
SELECT DISTINCT - col0 * - col2 + - 67 + + col2 FROM tab1 AS cor0
----
149
3638
7709

query I rowsort
SELECT - col1 + + 40 FROM tab0 AS cor0
----
-46
-51
-57

query I rowsort
SELECT ALL - col0 * 17 FROM tab2
----
-119
-1326
-1343

query I rowsort
SELECT ALL + 92 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL + 62 + 17 AS col2 FROM tab0 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT - col1 + 79 FROM tab0 AS cor0
----
-12
-18
-7

query I rowsort
SELECT ALL + ( + 81 ) + + col0 * + ( - col2 ) * - col1 AS col2 FROM tab2 AS cor0
----
119733
51115
5940

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4133
SELECT ALL + - CAST( - col1 AS SIGNED ) * col0 FROM tab0 cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL + - CAST ( - col1 AS INTEGER ) * col0 FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) + - col1 * col2 * ( - col1 ) col0 FROM tab2 AS cor0
----
10999
25978
90565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL + 10 * col1 AS col1 FROM tab2 AS cor0
----
170
310
590

query I rowsort
SELECT DISTINCT + 12 + + col2 AS col2 FROM tab0 cor0
----
13
45
94

query I rowsort
SELECT col2 * 7 AS col0 FROM tab0
----
231
574
7

query I rowsort
SELECT ( + 60 + + col0 ) * - col2 FROM tab1
----
-13440
-3402
-7068

query I rowsort
SELECT ALL col1 * + ( + 99 ) FROM tab2 AS cor0
----
1683
3069
5841

query I rowsort
SELECT col2 + - col1 - + col2 AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - col2 * + col2 + - cor0.col0 * - col1 - - col1 FROM tab2 AS cor0
----
-481
-84
3985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col1 col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT col0 + 40 * - col0 FROM tab2 AS cor0
----
-273
-3042
-3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4145
SELECT DISTINCT + col1 * + CAST( cor0.col2 AS SIGNED ) * + cor0.col0 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT + col1 * + CAST ( cor0.col2 AS INTEGER ) * + cor0.col0 AS col1 FROM tab2 AS cor0
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 + 74 col1 FROM tab0
----
1299
650
7995

onlyif mysql # use DIV operator for integer division
query I rowsort label-4147
SELECT ALL cor0.col1 + col2 DIV col0 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL cor0.col1 + col2 / col0 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT - col0 + 91 FROM tab0 AS cor0
----
2
56
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4149
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 66 FROM tab1, tab2 cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4151
SELECT DISTINCT col2 DIV col1 + + col1 DIV col2 AS col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT col2 / col1 + + col1 / col2 AS col1 FROM tab1
----
2
5
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4152
SELECT col0 + + CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
14
156
158

skipif mysql # not compatible
query I rowsort label-4152
SELECT col0 + + CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT - col0 * + col0 + 4 AS col2 FROM tab1
----
-4092
-5
-6396

query I rowsort
SELECT DISTINCT + col2 + 52 AS col2 FROM tab2
----
78
79
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4155
SELECT DISTINCT ( + cor0.col1 ) / CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT ( + cor0.col1 ) / CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 * col2 col1 FROM tab0 AS cor0
----
2607
6478
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4157
SELECT ALL + 79 + cor0.col2 DIV 1 AS col1 FROM tab1 AS cor0
----
133
136
175

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL + 79 + cor0.col2 / 1 AS col1 FROM tab1 AS cor0
----
133
136
175

query I rowsort
SELECT ALL - col2 + + col1 * - 1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 80 col1 FROM tab2 cor0
----
80
80
80

query I rowsort
SELECT - tab1.col1 - - col2 * col0 AS col1 FROM tab1
----
136
3638
7667

query I rowsort
SELECT DISTINCT + ( col1 ) * 29 FROM tab1
----
290
377
754

query I rowsort
SELECT DISTINCT + + col1 * - col2 + + ( + col0 ) AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 * col1 col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT + - col0 + - cor0.col1 * - 32 AS col2 FROM tab1 AS cor0
----
256
336
829

onlyif mysql # use DIV operator for integer division
query I rowsort label-4165
SELECT ALL + 74 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL + 74 / - col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL + - cor0.col0 + col1 * ( + 86 ) FROM tab2 AS cor0
----
1383
2659
4996

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4167
SELECT + - col1 + col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT + - col1 + col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - cor0.col1 ) * + ( col2 ) AS col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - ( - col2 + col1 ) * ( col2 ) FROM tab1
----
1512
2679
7968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 col1 FROM tab0
----
71
71
71

query I rowsort
SELECT - + col0 * + 34 AS col2 FROM tab0 AS cor0
----
-1190
-3026
-816

query I rowsort
SELECT ALL ( cor0.col0 ) * - col0 + - col2 * - col1 + col1 AS col0 FROM tab0 cor0
----
-1031
-368
2348

onlyif mysql # use DIV operator for integer division
query I rowsort label-4173
SELECT ALL tab0.col2 DIV 17 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 2ee98119c78288c6cb10711ce24bf26c

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL tab0.col2 / 17 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 2ee98119c78288c6cb10711ce24bf26c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 col2 FROM tab0, tab1, tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT col1 * - col1 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
16224
36504
5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 5 * 60 col1 FROM tab0 AS cor0
----
-324
-335
-389

onlyif mysql # use DIV operator for integer division
query I rowsort label-4177
SELECT + col1 + - col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
24
5
6

skipif mysql # not compatible
query I rowsort label-4177
SELECT + col1 + - col2 / + col1 AS col2 FROM tab1 AS cor0
----
24
5
6

query I rowsort
SELECT ALL - col1 * cor0.col0 + - col0 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT ALL + col2 * - cor0.col2 + + col2 AS col2 FROM tab0 AS cor0
----
-1056
-6642
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + ( + col1 ) col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + col1 + - 45 * col1 FROM tab2 AS cor0
----
-1364
-2596
-748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 col0 FROM tab2 AS cor0
----
23
23
23

query I rowsort
SELECT + - col2 * col0 + col1 AS col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL + - 48 + - cor0.col0 * col1 FROM tab0 AS cor0
----
-2112
-3443
-8147

query I rowsort
SELECT + 38 + + 40 * + col0 FROM tab1 AS cor0
----
158
2598
3238

query I rowsort
SELECT DISTINCT - + col0 + ( col1 ) * - 8 FROM tab0 AS cor0
----
-712
-811
-817

onlyif mysql # use DIV operator for integer division
query I rowsort label-4187
SELECT DISTINCT + ( - 60 ) DIV col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT + ( - 60 ) / col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 94 + - 83 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT - + 38 + 46 * + cor0.col1 FROM tab2 cor0
----
1388
2676
744

query I rowsort
SELECT 16 + + col0 FROM tab0 AS cor0
----
105
40
51

query I rowsort
SELECT + + ( cor0.col1 ) * col0 + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT 83 + - col2 AS col1 FROM tab1 AS cor0
----
-13
26
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-4193
SELECT ALL - col0 DIV + 72 - cor0.col0 FROM tab2 AS cor0
----
-7
-79
-80

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL - col0 / + 72 - cor0.col0 FROM tab2 AS cor0
----
-7
-79
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 18 ) * - col2 + - cor0.col0 * + col1 col0 FROM tab0 AS cor0
----
-2658
-3413
-9575

query I rowsort
SELECT - cor0.col1 * - col2 * col1 AS col0 FROM tab2 cor0
----
10982
25947
90506

query I rowsort
SELECT ALL + col0 * col2 - col0 AS col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ALL + col1 - 90 FROM tab2 AS cor0
----
-31
-59
-73

query I rowsort
SELECT DISTINCT - - ( - 80 ) + + cor0.col1 * + col2 AS col0 FROM tab2 AS cor0
----
1454
566
757

query I rowsort
SELECT DISTINCT - col0 * - 97 + - col1 FROM tab1 AS cor0
----
265
6198
7747

query I rowsort
SELECT DISTINCT - col2 * col0 + - col0 * + cor0.col1 FROM tab0 AS cor0
----
-15397
-2856
-3430

query I rowsort
SELECT + + cor0.col0 * + cor0.col1 + - cor0.col1 FROM tab0 cor0
----
1978
3298
8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * col0 - 14 * + col0 col1 FROM tab2 AS cor0
----
119
237
3510

query I rowsort
SELECT DISTINCT + + col0 + + col2 AS col2 FROM tab0 cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col0 col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-4205
SELECT cor0.col2 DIV + col2 + 73 AS col0 FROM tab1 AS cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-4205
SELECT cor0.col2 / + col2 + 73 AS col0 FROM tab1 AS cor0
----
74
74
74

query I rowsort
SELECT ALL - + 43 FROM tab0 AS cor0
----
-43
-43
-43

query I rowsort
SELECT ALL - cor0.col0 * col2 + ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL ( - 33 ) + tab0.col0 FROM tab0
----
-9
2
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-4209
SELECT ALL + col1 DIV ( 93 ) AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL + col1 / ( 93 ) AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT + cor0.col1 + - col1 * col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - ( - col0 ) + - col1 AS col2 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT ALL + col0 * ( - col2 ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - + 90 * col2 + col0 FROM tab1 AS cor0
----
-4857
-5066
-8560

query I rowsort
SELECT ( - col1 ) * col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab0 AS cor2
----
13122 values hashing to b8901e575ef60b944fdcedea510d57f6

query I rowsort
SELECT - + 68 * - 50 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ed4b4f94eebf55626209d79952dd8c49

query I rowsort
SELECT col1 * col2 * ( - col1 ) FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT 88 + + cor0.col0 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to af798f5ce37f7c19e18927772657aa97

query I rowsort
SELECT - - 99 * col2 AS col0 FROM tab0 AS cor0
----
3267
8118
99

query I rowsort
SELECT DISTINCT + 48 * col1 AS col2 FROM tab1 AS cor0
----
1248
480
624

query I rowsort
SELECT ALL + - 83 * - col2 + - col1 FROM tab1 AS cor0
----
4456
4721
7955

query I rowsort
SELECT DISTINCT col0 * + 84 * col0 FROM tab2
----
4116
511056
524244

query I rowsort
SELECT ALL - - col2 + + cor0.col2 * + col2 AS col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT + col0 * ( - col2 ) FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT + + cor0.col1 + + 23 + 46 AS col1 FROM tab1 AS cor0
----
79
82
95

query I rowsort
SELECT + col1 + + cor0.col2 * - 77 AS col2 FROM tab1 cor0
----
-4132
-4379
-7379

query I rowsort
SELECT ALL + tab1.col1 + + ( - col1 ) AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col0 * + col1 * - ( col1 + 50 ) FROM tab1
----
-38400
-5928
-65520

onlyif mysql # use DIV operator for integer division
query I rowsort label-4229
SELECT + cor0.col1 DIV col2 + + col2 DIV col0 col0 FROM tab1 cor0
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4229
SELECT + cor0.col1 / col2 + + col2 / col0 col0 FROM tab1 cor0
----
0
1
18

query I rowsort
SELECT + col2 + - 85 AS col2 FROM tab0 AS cor0
----
-3
-52
-84

query I rowsort
SELECT col0 * cor0.col2 + - col1 * + col1 FROM tab0 AS cor0
----
-6604
-9374
-983

query I rowsort
SELECT col2 + 28 FROM tab1 AS cor0
----
124
82
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4233
SELECT - + CAST( cor0.col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-4233
SELECT - + CAST ( cor0.col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + ( + 99 ) FROM tab1 cor0
----
99

query I rowsort
SELECT + 2 + 66 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 7ff6433dda3248dce73040b2c590f3da

query I rowsort
SELECT DISTINCT - col0 + + col2 * col0 FROM tab1 cor0
----
159
3584
7600

query I rowsort
SELECT - col2 * + cor0.col0 + - col0 FROM tab0 cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL - 83 * cor0.col1 + - col2 AS col0 FROM tab1 AS cor0
----
-1175
-2212
-887

query I rowsort
SELECT + col2 + col0 * - col2 * - 29 AS col2 FROM tab1 AS cor0
----
105849
222816
4752

query I rowsort
SELECT 10 * + col0 FROM tab1 AS cor0
----
30
640
800

query I rowsort
SELECT ALL ( + col1 ) AS col1 FROM tab0 cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4242
SELECT DISTINCT - - col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT - - col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4243
SELECT ALL + + col1 + + cor0.col1 DIV + 79 AS col2 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL + + col1 + + cor0.col1 / + 79 AS col2 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT - col0 * ( + col1 ) + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - col1 + col2 * col0 * + col0 FROM tab1 AS cor0
----
233462
460
614387

query I rowsort
SELECT DISTINCT cor0.col1 + 26 + + col1 AS col2 FROM tab1 AS cor0
----
46
52
78

query I rowsort
SELECT + ( col1 ) * tab1.col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT + col1 * - 5 * - ( + col0 ) + ( col2 ) FROM tab1 cor0
----
3257
444
5296

query I rowsort
SELECT - col1 * 92 * + cor0.col2 + - col1 FROM tab0 AS cor0
----
-261182
-686595
-9021

query I rowsort
SELECT ALL - - col0 + 1 * col1 AS col2 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT + col0 + 17 * 20 AS col0 FROM tab0 AS cor0
----
364
375
429

query I rowsort
SELECT - col2 * col2 + col2 * col1 AS col2 FROM tab0
----
1749
738
96

query I rowsort
SELECT tab2.col1 AS col0 FROM tab1, tab0 cor0 CROSS JOIN tab2
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT col1 * col1 * + col0 + + tab0.col0 * + col0 FROM tab0
----
178080
330540
744930

query I rowsort
SELECT DISTINCT + - col2 - col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - col1 + - col1 * + col1 FROM tab2 AS cor0
----
-306
-3540
-992

query I rowsort
SELECT ALL col1 + col2 * - col0 + col0 FROM tab2 cor0
----
-151
-1891
-2906

query I rowsort
SELECT ALL col1 * + cor0.col1 + - col2 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT DISTINCT - + col2 * + cor0.col2 + + col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col0 * col2 col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - cor0.col1 + - cor0.col2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 076bba756c9b7eaa94a11ec2f6f251f8

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 * - col1 BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4265
SELECT ALL - cor0.col2 DIV col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL - cor0.col2 / col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT DISTINCT - col2 * col2 + col1 + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-18419
-5806
-6488

query I rowsort
SELECT DISTINCT - col1 * col0 + col1 * col0 AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 IN ( - cor0.col1 + + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4269
SELECT ALL + + cor0.col2 DIV col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL + + cor0.col2 / col1 FROM tab1 AS cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 * - col2 col0 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT ALL + - cor0.col2 - col1 * col2 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT ALL - col0 * + col2 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT col1 + col1 * cor0.col0 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT col1 * col1 + - col1 AS col0 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT ALL - col1 + col2 * - col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-2939
-3195
-9149

query I rowsort
SELECT tab1.col0 * - col0 - tab1.col0 * tab1.col1 FROM tab1
----
-4736
-7440
-87

query I rowsort
SELECT ALL + - col1 * cor0.col2 + + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT cor0.col2 + - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL col0 * col1 * col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT tab1.col2 * col2 * col0 + tab1.col2 AS col0 FROM tab1
----
207993
737376
8802

query I rowsort
SELECT tab0.col1 + - col0 AS col0 FROM tab0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 - col2 * col1 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 + + col0 + col2 AS col1 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT ALL - tab2.col1 + + tab2.col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL tab1.col1 AS col0 FROM tab1 WHERE ( NULL ) IN ( col2 * + col0 )
----

skipif mysql # not compatible
query I rowsort
SELECT - col2 * + col1 + + CAST ( + 49 * col0 + - col2 AS REAL ) AS col1 FROM tab0 AS cor0
----
-1695
-3183
1617

query I rowsort
SELECT + col0 + tab2.col2 FROM tab2 WHERE NOT col1 * + col0 + col1 NOT BETWEEN - col2 AND + col1 * - col1
----

query I rowsort
SELECT DISTINCT ( col2 * col2 ) FROM tab0
----
1
1089
6724

query I rowsort
SELECT 69 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4290
SELECT + col1 * + col1 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT + col1 * + col1 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * col1 * tab1.col1 AS col0 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT + tab0.col2 FROM tab0 WHERE NOT col2 + - col1 BETWEEN col1 + col2 / - col0 AND col0
----
1
33
82

query I rowsort
SELECT - col1 + col1 + - col0 * - col2 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT + col1 + tab1.col2 + tab1.col0 * - col0 FROM tab1
----
-4029
-6291
71

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) > ( col0 * col1 + col0 )
----

query I rowsort
SELECT tab1.col2 + - col1 + col0 * - col0 AS col2 FROM tab1
----
-4049
-6317
19

onlyif mysql # use DIV operator for integer division
query I rowsort label-4297
SELECT DISTINCT col0 * col1 * + col2 + col0 * col2 + tab0.col0 DIV + col0 FROM tab0
----
3431
671417
68905

skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT col0 * col1 * + col2 + col0 * col2 + tab0.col0 / + col0 FROM tab0
----
3431
671417
68905

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 - - col1 * col1 col1 FROM tab1
----
174
262
705

query I rowsort
SELECT tab0.col1 * + tab0.col0 FROM tab0
----
2064
3395
8099

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - col0 + col2 * + tab2.col2 )
----

query I rowsort
SELECT DISTINCT col0 * col0 * - tab1.col0 + + col0 + + col2 AS col1 FROM tab1
----
-262023
-511824
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 + - col0 ) IN ( + col0 )
----

query I rowsort
SELECT - col2 * - col1 + col1 AS col2 FROM tab2
----
1593
663
868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col0 col2 FROM tab0 WHERE NOT ( + col1 * + col0 + + col2 + + col1 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + tab1.col2 * + col1 col2 FROM tab1
----
36480
4212
99840

query III rowsort
SELECT * FROM tab1 WHERE ( col1 * - col2 ) NOT BETWEEN ( col1 ) AND NULL
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT - col1 + col0 FROM tab1 WHERE NOT ( NULL ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 * col2 + - col2 col1 FROM tab2
----
-22626
-24586
-39910

query I rowsort
SELECT col0 * + col2 * - col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - tab2.col2 + tab2.col2 * col0 FROM tab2
----
162
2002
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 + col1 col0 FROM tab0
----
172
182
194

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) >= + col1 * col0
----

query I rowsort
SELECT - col0 * col2 + col1 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT col2 * col1 + + tab0.col1 * - col1 FROM tab0
----
-4558
-819
-9312

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + col1 * tab1.col0 - + col1 * col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4316
SELECT + tab2.col2 DIV - col0 + + col1 FROM tab2
----
17
28
59

skipif mysql # not compatible
query I rowsort label-4316
SELECT + tab2.col2 / - col0 + + col1 FROM tab2
----
17
28
59

query I rowsort
SELECT DISTINCT col2 + - col2 * col0 * + col2 AS col2 FROM tab1
----
-207879
-737184
-8694

onlyif mysql # use DIV operator for integer division
query I rowsort label-4318
SELECT col0 DIV + col1 + col2 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4318
SELECT col0 / + col1 + col2 AS col2 FROM tab0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4319
SELECT DISTINCT ( col0 ) + - CAST( + col0 AS SIGNED ) * col1 AS col0 FROM tab0
----
-2040
-3360
-8010

skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT ( col0 ) + - CAST ( + col0 AS INTEGER ) * col1 AS col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT + + 44 + col2 FROM tab1 cor0
----
101
140
98

query I rowsort
SELECT ALL + col1 + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-4322
SELECT - col1 DIV + ( - col0 ) FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4322
SELECT - col1 / + ( - col0 ) FROM tab0 AS cor0
----
1
2
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4323
SELECT DISTINCT + col1 * + CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT + col1 * + CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT 73 - + cor0.col2 FROM tab2 AS cor0
----
35
46
47

query I rowsort
SELECT ( 44 ) + - col2 AS col2 FROM tab2 AS cor0
----
17
18
6

query I rowsort
SELECT - col1 * col2 - cor0.col0 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT + ( - 3 ) * col1 + - col2 FROM tab1 AS cor0
----
-132
-135
-87

query I rowsort
SELECT - + 93 AS col0 FROM tab1 cor0
----
-93
-93
-93

query I rowsort
SELECT - - 29 * - col0 + col2 AS col2 FROM tab1 AS cor0
----
-1799
-2224
-33

onlyif mysql # use DIV operator for integer division
query I rowsort label-4331
SELECT + + 51 DIV col2 + col0 AS col0 FROM tab0 AS cor0
----
25
86
89

skipif mysql # not compatible
query I rowsort label-4331
SELECT + + 51 / col2 + col0 AS col0 FROM tab0 AS cor0
----
25
86
89

query I rowsort
SELECT ALL col2 + col2 * 21 FROM tab1
----
1188
1254
2112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4333
SELECT col1 + CAST( 56 AS SIGNED ) AS col1 FROM tab0
----
142
147
153

skipif mysql # not compatible
query I rowsort label-4333
SELECT col1 + CAST ( 56 AS INTEGER ) AS col1 FROM tab0
----
142
147
153

query I rowsort
SELECT - + col2 * col0 - cor0.col2 * 14 AS col0 FROM tab0 AS cor0
----
-1254
-49
-8446

query I rowsort
SELECT DISTINCT + col1 - + col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-4336
SELECT ( + 19 ) DIV - col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4336
SELECT ( + 19 ) / - col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + cor0.col2 col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 87 * + col2 - + col1 FROM tab0 AS cor0
----
-10
2785
7043

query I rowsort
SELECT ALL col2 * col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - - cor0.col0 + col0 * + cor0.col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL 95 * col1 + - col2 - + col0 AS col2 FROM tab0 AS cor0
----
8113
8474
9179

query I rowsort
SELECT ALL + 61 AS col1 FROM tab0 cor0
----
61
61
61

query I rowsort
SELECT DISTINCT - + col2 * + col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT DISTINCT - - 67 * + col0 AS col2 FROM tab0 AS cor0
----
1608
2345
5963

query I rowsort
SELECT + cor0.col0 * col0 + + col2 - col2 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT ALL cor0.col0 + col0 * col2 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - col1 + col2 * + col0 * + col2 AS col2 FROM tab0 AS cor0
----
-62
26050
598345

query I rowsort
SELECT ALL - 31 + col1 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1279
-1435
-601

query I rowsort
SELECT ALL + col1 * + 21 * col2 - tab2.col2 AS col2 FROM tab2
----
13528
17550
32188

onlyif mysql # use DIV operator for integer division
query I rowsort label-4350
SELECT - col1 DIV ( tab1.col2 * + col2 + col0 * col1 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4350
SELECT - col1 / ( tab1.col2 * + col2 + col0 * col1 ) FROM tab1
----
0
0
0

query I rowsort
SELECT col1 * 34 AS col1 FROM tab0
----
2924
3094
3298

query I rowsort
SELECT DISTINCT + col0 * col2 + - tab2.col1 * col1 AS col0 FROM tab2
----
-1453
-772
2713

query I rowsort
SELECT ALL ( tab1.col1 ) + + col2 FROM tab1
----
109
67
80

query I rowsort
SELECT - - col2 * - col2 - + cor0.col1 AS col1 FROM tab1 cor0
----
-2942
-3259
-9229

query I rowsort
SELECT + col2 + + cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT - tab1.col0 * + col2 * - tab1.col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT - - 65 * + col1 AS col2 FROM tab0 AS cor0
----
5590
5915
6305

query I rowsort
SELECT ALL ( col2 ) + - col1 - - col0 FROM tab0
----
-29
-61
80

query I rowsort
SELECT + + cor0.col0 * 33 AS col2 FROM tab0 AS cor0
----
1155
2937
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 + ( + col0 + col2 * + col0 ) col0 FROM tab2 AS cor0
----
162
2072
3047

query I rowsort
SELECT ALL + col0 * col0 * cor0.col1 AS col2 FROM tab0 cor0
----
118825
49536
720811

query I rowsort
SELECT ALL - - 99 * cor0.col0 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fa436db38e67fdfeb6031ee264392cb

query I rowsort
SELECT DISTINCT - - cor0.col0 * col0 + + col2 AS col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT + + col2 * + col0 + + 4 FROM tab0 cor0
----
39
7302
796

query I rowsort
SELECT ALL + - col0 * - ( col1 ) AS col2 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4366
SELECT col0 * tab1.col2 + col1 DIV ( col1 * + col2 ) col2 FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4366
SELECT col0 * tab1.col2 + col1 / ( col1 * + col2 ) col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT 49 + cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
7445
8330
9458

query I rowsort
SELECT DISTINCT - + col1 * + col1 + + col2 * + 33 * + 78 AS col2 FROM tab0 AS cor0
----
-6835
202787
77546

query I rowsort
SELECT - + ( + 98 ) * col0 FROM tab2 AS cor0
----
-686
-7644
-7742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT 27 * + col1 FROM tab1 AS cor0
----
270
351
702

query I rowsort
SELECT + 79 + + col2 FROM tab2 AS cor0
----
105
106
117

query I rowsort
SELECT DISTINCT + col2 + - col1 * col1 AS col1 FROM tab2
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT 98 + col2 AS col1 FROM tab1
----
152
155
194

query I rowsort
SELECT + col1 * - tab1.col0 * - 49 + col2 FROM tab1
----
31417
3876
51056

query I rowsort
SELECT - 67 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 + - cor0.col0 * 6 + col1 col1 FROM tab0 cor0
----
-148
-7741
-850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 + - col1 col2 FROM tab1 AS cor0
----
71
84
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-4379
SELECT ALL - + col2 + 51 DIV - col1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL - + col2 + 51 / - col1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + col1 + - cor0.col0 * cor0.col0 * col2 FROM tab0 AS cor0
----
-1128
-18922
-649431

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - ( ( col2 ) ) + 5 col2 FROM tab2 cor0
----
-16
38
9

query I rowsort
SELECT + col0 + 28 FROM tab1 AS cor0
----
108
31
92

query I rowsort
SELECT DISTINCT + col0 + - ( ( col0 ) ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 * + ( col2 ) + - col0 AS col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT + - col2 * col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT ALL - col0 * col1 + + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL + - col1 * + ( + col0 * col2 ) - col1 * + col0 FROM tab2 cor0
----
-124254
-52377
-6076

query I rowsort
SELECT ALL col0 * - tab2.col2 + tab2.col1 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT - 73 + - col2 FROM tab0
----
-106
-155
-74

query I rowsort
SELECT + col0 + col1 + + col2 FROM tab0
----
133
143
262

query I rowsort
SELECT ALL - col0 + ( 3 ) * + col1 FROM tab1 AS cor0
----
-34
-41
75

query I rowsort
SELECT col1 + + 69 AS col0 FROM tab0 cor0
----
155
160
166

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4393
SELECT DISTINCT - col0 * ( col1 ) + + col1 + + CAST( 2 AS SIGNED ) FROM tab1 AS cor0
----
-1025
-50
-628

skipif mysql # not compatible
query I rowsort label-4393
SELECT DISTINCT - col0 * ( col1 ) + + col1 + + CAST ( 2 AS INTEGER ) FROM tab1 AS cor0
----
-1025
-50
-628

query I rowsort
SELECT DISTINCT + col2 * 92 FROM tab2 AS cor0
----
2392
2484
3496

onlyif mysql # use DIV operator for integer division
query I rowsort label-4395
SELECT - col2 DIV - 11 + - 14 * + col1 FROM tab0 AS cor0
----
-1201
-1267
-1358

skipif mysql # not compatible
query I rowsort label-4395
SELECT - col2 / - 11 + - 14 * + col1 FROM tab0 AS cor0
----
-1201
-1267
-1358

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4396
SELECT ALL col1 * CAST( + col2 AS SIGNED ) * col2 AS col1 FROM tab0
----
611884
93654
97

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL col1 * CAST ( + col2 AS INTEGER ) * col2 AS col1 FROM tab0
----
611884
93654
97

skipif mysql # not compatible
query I rowsort
SELECT - col0 + CAST ( col1 AS REAL ) FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + col2 * col0 + - col0 + + col2 AS col2 FROM tab1
----
213
3641
7696

query I rowsort
SELECT - col2 + cor0.col0 * - col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT col2 + 63 * tab2.col2 AS col0 FROM tab2
----
1664
1728
2432

query I rowsort
SELECT - cor0.col1 * + cor0.col0 AS col1 FROM tab1 cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4402
SELECT + col0 * col2 DIV col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4402
SELECT + col0 * col2 / col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - 74 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-74

query I rowsort
SELECT + ( 75 + + tab0.col2 ) * - 54 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 736ba2eefc54c13386590232c4315e41

query I rowsort
SELECT col2 * 28 AS col1 FROM tab1
----
1512
1596
2688

query I rowsort
SELECT + + cor0.col0 * + cor0.col2 AS col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL - 54 * - cor0.col2 * + ( 22 * col2 ) FROM tab0 AS cor0
----
1188
1293732
7988112

query I rowsort
SELECT DISTINCT - + ( col0 ) * + 51 FROM tab0 AS cor0
----
-1224
-1785
-4539

query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 - ( cor0.col0 ) FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL + 38 * - col0 FROM tab2 AS cor0
----
-266
-2964
-3002

query I rowsort
SELECT ALL - col1 + col1 * col1 AS col2 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT ALL col1 * - tab0.col0 + 1 FROM tab0
----
-2063
-3394
-8098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col0 col0 FROM tab0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + cor0.col1 * col2 col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL + - 15 * - col1 FROM tab1 AS cor0
----
150
195
390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 col0 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col2 AS REAL ) * col1 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ( col0 ) + col1 AS col1 FROM tab2
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 col1 FROM tab1, tab2 cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 40739d223aa019bd2dfe2db99d596302

query I rowsort
SELECT + 50 * col2 + + ( - col1 * + col2 ) AS col0 FROM tab0 AS cor0
----
-1188
-3362
-47

query I rowsort
SELECT col1 * + cor0.col1 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT ALL - col2 * col2 + col1 AS col0 FROM tab2 AS cor0
----
-1427
-617
-698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 + cor0.col0 col1 FROM tab0 AS cor0
----
-29
-61
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT + 29 * col0 + col1 * 98 AS col1 FROM tab2 AS cor0
----
3241
3957
8044

query I rowsort
SELECT - col0 * + col2 + + col2 AS col1 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT 76 + col0 + + 23 * + 81 AS col1 FROM tab0 AS cor0
----
1963
1974
2028

query I rowsort
SELECT - 45 * + col0 + - col0 AS col1 FROM tab1 AS cor0
----
-138
-2944
-3680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 col1 FROM tab2 AS cor0
----
23
23
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-4430
SELECT 77 DIV + 19 - - col0 FROM tab0 AS cor0
----
28
39
93

skipif mysql # not compatible
query I rowsort label-4430
SELECT 77 / + 19 - - col0 FROM tab0 AS cor0
----
28
39
93

query I rowsort
SELECT DISTINCT - cor0.col0 * col1 + + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

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-4433
SELECT DISTINCT + CAST( col0 AS SIGNED ) * - cor0.col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * - cor0.col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-4434
SELECT ALL - col0 DIV cor0.col1 - - cor0.col1 AS col0 FROM tab1 AS cor0
----
26
4
7

skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL - col0 / cor0.col1 - - cor0.col1 AS col0 FROM tab1 AS cor0
----
26
4
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 1 ) + cor0.col0 col0 FROM tab1 AS cor0
----
2
63
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col2 col1 FROM tab1 cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-4437
SELECT ALL - + 12 * - col0 + + col2 * col0 DIV - col0 FROM tab0 cor0
----
255
419
986

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL - + 12 * - col0 + + col2 * col0 / - col0 FROM tab0 cor0
----
255
419
986

query I rowsort
SELECT DISTINCT 72 * col1 AS col0 FROM tab0
----
6192
6552
6984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * - col0 * + col0 col0 FROM tab1 cor0
----
-196608
-307200
-432

query I rowsort
SELECT - + col1 * col0 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4441
SELECT + CAST( col2 AS SIGNED ) * - col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-4441
SELECT + CAST ( col2 AS INTEGER ) * - col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT 22 + 1 * col0 FROM tab0 AS cor0
----
111
46
57

query I rowsort
SELECT 84 AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT DISTINCT + + ( + col0 ) - col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT - - 58 AS col2 FROM tab1 cor0
----
58
58
58

query I rowsort
SELECT ALL - 69 + 38 FROM tab0 cor0
----
-31
-31
-31

query I rowsort
SELECT ALL - - ( col1 ) * - col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - 67 * col1 AS col2 FROM tab0
----
-5762
-6097
-6499

query I rowsort
SELECT DISTINCT + - 67 FROM tab1 AS cor0
----
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-4450
SELECT col2 DIV + col0 + - tab1.col2 * - col0 - col0 * + col0 FROM tab1
----
-448
1281
171

skipif mysql # not compatible
query I rowsort label-4450
SELECT col2 / + col0 + - tab1.col2 * - col0 - col0 * + col0 FROM tab1
----
-448
1281
171

query I rowsort
SELECT ALL 49 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT - 83 * - col2 FROM tab0
----
2739
6806
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4453
SELECT + col1 * + CAST( + 94 AS SIGNED ) + - col2 / CAST( NULL AS SIGNED ) + + col2 * + col2 * ( + ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT + col1 * + CAST ( + 94 AS INTEGER ) + - col2 / CAST ( NULL AS INTEGER ) + + col2 * + col2 * ( + ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4454
SELECT ALL - col0 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL - col0 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 col2 FROM tab1
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 * 93 + + col1 * - ( 62 ) col0 FROM tab1
----
269576
301537
856282

query I rowsort
SELECT - col2 * + col2 + - ( - col0 ) * col0 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-3150
-44209
-92416

query I rowsort
SELECT DISTINCT - ( + col2 ) * ( cor0.col0 ) * - cor0.col0 + 85 FROM tab2 cor0
----
1408
158269
237243

query I rowsort
SELECT col1 * - col0 + 58 FROM tab2 AS cor0
----
-1285
-159
-4544

query I rowsort
SELECT 69 + + col2 AS col1 FROM tab1 AS cor0
----
123
126
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col2 FROM tab1, tab2 AS cor0
----
36

query I rowsort
SELECT + + 89 + col2 AS col2 FROM tab0 AS cor0
----
122
171
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4463
SELECT col0 DIV - col1 + + 59 DIV col1 FROM tab2 AS cor0
----
-1
0
1

skipif mysql # not compatible
query I rowsort label-4463
SELECT col0 / - col1 + + 59 / col1 FROM tab2 AS cor0
----
-1
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4464
SELECT ALL - tab1.col2 + + col0 / - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL - tab1.col2 + + col0 / - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 77 * col1 + + col0 * col1 FROM tab2 AS cor0
----
2604
2652
9145

query I rowsort
SELECT DISTINCT + col0 - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-4467
SELECT ALL + 70 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
0
10

skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL + 70 / + col0 AS col0 FROM tab2 AS cor0
----
0
0
10

query I rowsort
SELECT - col2 * + col0 + ( col2 ) * + col2 AS col0 FROM tab1 AS cor0
----
-399
1536
2754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4469
SELECT ALL - + ( 7 ) + - cor0.col0 / + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL - + ( 7 ) + - cor0.col0 / + CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4470
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4470
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + ( ( + col2 ) ) * col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - 48 * - col1 FROM tab0 AS cor0
----
4128
4368
4656

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4473
SELECT + CAST( 39 AS SIGNED ) FROM tab2, tab0 AS cor0, tab1 AS cor1, tab2 cor2
----
81 values hashing to 9c9fbbb9cf0068f5900dff6ceb1046eb

skipif mysql # not compatible
query I rowsort label-4473
SELECT + CAST ( 39 AS INTEGER ) FROM tab2, tab0 AS cor0, tab1 AS cor1, tab2 cor2
----
81 values hashing to 9c9fbbb9cf0068f5900dff6ceb1046eb

query I rowsort
SELECT DISTINCT + 39 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
39

query I rowsort
SELECT ALL tab0.col1 * 16 AS col2 FROM tab0
----
1376
1456
1552

query I rowsort
SELECT col2 + ( - tab0.col2 ) FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT ( + col1 * - col1 ) + - col0 * - col0 + + col0 AS col0 FROM tab2
----
-905
2681
6031

onlyif mysql # use DIV operator for integer division
query I rowsort label-4478
SELECT + 37 DIV - col1 AS col1 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4478
SELECT + 37 / - col1 AS col1 FROM tab1
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4479
SELECT 89 * + col0 DIV col0 FROM tab1
----
89
89
89

skipif mysql # not compatible
query I rowsort label-4479
SELECT 89 * + col0 / col0 FROM tab1
----
89
89
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4480
SELECT + 96 DIV - ( col2 ) AS col0 FROM tab0
----
-1
-2
-96

skipif mysql # not compatible
query I rowsort label-4480
SELECT + 96 / - ( col2 ) AS col0 FROM tab0
----
-1
-2
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4481
SELECT col2 * col0 * col2 + col1 DIV 84 - col1 AS col1 FROM tab2 AS cor0
----
114059
5072
52669

skipif mysql # not compatible
query I rowsort label-4481
SELECT col2 * col0 * col2 + col1 / 84 - col1 AS col1 FROM tab2 AS cor0
----
114059
5072
52669

query I rowsort
SELECT - 31 * - cor0.col1 FROM tab1, tab1 cor0
----
9 values hashing to 2c3ed7addfeaba76ba47d1fb342a0dbb

query I rowsort
SELECT DISTINCT + - ( 11 ) AS col1 FROM tab1 AS cor0
----
-11

query I rowsort
SELECT ALL + 13 * 81 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
102141
90558
95823

query I rowsort
SELECT col2 * 63 FROM tab0
----
2079
5166
63

query I rowsort
SELECT - + ( 89 ) FROM tab1 cor0
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort
SELECT CAST ( ( col1 ) AS REAL ) * - col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - - 58 * col2 AS col0 FROM tab0 AS cor0
----
1914
4756
58

query I rowsort
SELECT - - cor0.col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT col1 * cor0.col2 + + col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL 70 FROM tab1, tab1 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT col0 + ( col2 ) AS col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4494
SELECT ALL col0 + - CAST( 0 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL col0 + - CAST ( 0 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + ( + col0 ) * col2 col0 FROM tab1 AS cor0
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-4496
SELECT DISTINCT col0 DIV - col0 col1 FROM tab2 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT col0 / - col0 col1 FROM tab2 cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4497
SELECT DISTINCT + + col0 * - col2 + - col1 DIV + cor0.col0 AS col0 FROM tab2 AS cor0
----
-193
-2028
-3002

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT + + col0 * - col2 + - col1 / + cor0.col0 AS col0 FROM tab2 AS cor0
----
-193
-2028
-3002

query I rowsort
SELECT + cor0.col0 * col2 + - 28 FROM tab1 cor0
----
134
3620
7652

query I rowsort
SELECT col0 + + 60 FROM tab1 AS cor0
----
124
140
63

query I rowsort
SELECT DISTINCT + col2 * 83 + + col0 FROM tab1 AS cor0
----
4485
4795
8048

onlyif mysql # use DIV operator for integer division
query I rowsort label-4501
SELECT ( 22 ) * col1 DIV - ( col2 ) FROM tab0 AS cor0
----
-2134
-24
-57

skipif mysql # not compatible
query I rowsort label-4501
SELECT ( 22 ) * col1 / - ( col2 ) FROM tab0 AS cor0
----
-2134
-24
-57

query I rowsort
SELECT + ( - 73 ) + cor0.col1 FROM tab2 AS cor0
----
-14
-42
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-4503
SELECT - + 32 DIV ( - cor0.col1 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4503
SELECT - + 32 / ( - cor0.col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 34 + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to ec226363056bac391d27f8c6543c566e

query I rowsort
SELECT ALL + 27 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4506
SELECT ALL col2 DIV - ( col1 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL col2 / - ( col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * + 76 FROM tab1 AS cor0
----
-228
-4864
-6080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4508
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) * - cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) * - cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 82 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0

query I rowsort
SELECT ALL + col2 + col2 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT - col2 + - 19 AS col0 FROM tab2 AS cor0
----
-45
-46
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4512
SELECT ( - cor0.col0 ) + CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4512
SELECT ( - cor0.col0 ) + CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col0 * + col2 - 80 AS col0 FROM tab2 AS cor0
----
109
1948
2922

query I rowsort
SELECT ALL + col1 - - col2 * - 57 FROM tab1
----
-3052
-3239
-5459

query I rowsort
SELECT ALL tab1.col2 * + col0 * - 85 - col0 FROM tab1
----
-13773
-310144
-652880

query I rowsort
SELECT ALL col1 - 95 FROM tab2
----
-36
-64
-78

query I rowsort
SELECT - 13 * tab0.col0 FROM tab0
----
-1157
-312
-455

query I rowsort
SELECT DISTINCT - col1 * - col1 * col0 AS col0 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT DISTINCT + 33 * - col1 FROM tab1 cor0
----
-330
-429
-858

query I rowsort
SELECT DISTINCT - 63 AS col2 FROM tab2, tab2 AS cor0
----
-63

query I rowsort
SELECT 43 * + col2 FROM tab1 AS cor0
----
2322
2451
4128

query I rowsort
SELECT + ( col2 + - 87 ) FROM tab0
----
-5
-54
-86

query I rowsort
SELECT col0 - col2 * col1 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT 86 - + col2 AS col2 FROM tab2
----
48
59
60

query I rowsort
SELECT DISTINCT - + col0 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4526
SELECT DISTINCT + cor0.col1 * col1 + 92 DIV + col1 AS col1 FROM tab0 AS cor0
----
7397
8282
9409

skipif mysql # not compatible
query I rowsort label-4526
SELECT DISTINCT + cor0.col1 * col1 + 92 / + col1 AS col1 FROM tab0 AS cor0
----
7397
8282
9409

query I rowsort
SELECT DISTINCT + - cor0.col0 * + cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + + col2 * + 18 AS col0 FROM tab1 AS cor0
----
1026
1728
972

query I rowsort
SELECT col2 * - 40 AS col1 FROM tab1 AS cor0
----
-2160
-2280
-3840

query I rowsort
SELECT + 46 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT DISTINCT + col2 + + col1 * - col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + + col0 * + col1 * - 86 FROM tab0 AS cor0
----
-177504
-291970
-696514

query I rowsort
SELECT col0 + + cor0.col1 * ( col0 * col1 ) FROM tab1 AS cor0
----
13600
2031
6464

query I rowsort
SELECT + 98 * - ( col2 ) + cor0.col0 FROM tab0 AS cor0
----
-3210
-63
-7947

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4535
SELECT - + CAST( NULL AS SIGNED ) + col0 * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4535
SELECT - + CAST ( NULL AS INTEGER ) + col0 * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 57 * col0 AS col0 FROM tab1 AS cor0
----
171
3648
4560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4537
SELECT DISTINCT + col2 * - col2 + - col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT DISTINCT + col2 * - col2 + - col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4538
SELECT - - ( 87 ) + - col0 DIV 40 AS col2 FROM tab2 AS cor0
----
86
86
87

skipif mysql # not compatible
query I rowsort label-4538
SELECT - - ( 87 ) + - col0 / 40 AS col2 FROM tab2 AS cor0
----
86
86
87

query I rowsort
SELECT DISTINCT + ( + col1 ) * col2 - - 22 AS col1 FROM tab2 cor0
----
1556
668
859

query I rowsort
SELECT ( + col1 ) + - col2 * 36 FROM tab1 AS cor0
----
-1918
-2042
-3443

query I rowsort
SELECT ALL + 56 * + 59 + col0 FROM tab2 AS cor0
----
3311
3382
3383

query I rowsort
SELECT DISTINCT + 55 * 44 FROM tab1 AS cor0
----
2420

query I rowsort
SELECT ALL - ( - col1 ) * col0 + - col1 * - cor0.col1 FROM tab2 AS cor0
----
1178
1632
8083

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 * col2 + + col0 col0 FROM tab0 AS cor0
----
1483
52
585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 59 + - col0 col1 FROM tab2 AS cor0
----
-137
-138
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4546
SELECT ALL + ( - col0 ) * col1 DIV cor0.col2 + col0 AS col2 FROM tab1 AS cor0
----
2
53
70

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL + ( - col0 ) * col1 / cor0.col2 + col0 AS col2 FROM tab1 AS cor0
----
2
53
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4547
SELECT ALL + - col2 * + col1 + CAST( col1 + + cor0.col0 AS SIGNED ) * - col0 * - col0 FROM tab0 AS cor0
----
1418318
161603
60522

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL + - col2 * + col1 + CAST ( col1 + + cor0.col0 AS INTEGER ) * - col0 * - col0 FROM tab0 AS cor0
----
1418318
161603
60522

query I rowsort
SELECT DISTINCT + - col0 + - col1 * col1 AS col2 FROM tab0 cor0
----
-7420
-8370
-9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-4549
SELECT DISTINCT + 21 DIV ( + col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT + 21 / ( + col1 ) FROM tab0
----
0

query I rowsort
SELECT - cor0.col0 * cor0.col1 + + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1054
-1989
-6136

query I rowsort
SELECT 52 * - col0 + col0 FROM tab0 AS cor0
----
-1224
-1785
-4539

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + - col0 col0 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4553
SELECT ALL col0 DIV col1 - - col0 FROM tab2 cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL col0 / col1 - - col0 FROM tab2 cor0
----
7
79
83

query I rowsort
SELECT DISTINCT - 91 FROM tab0, tab2 AS cor0
----
-91

query I rowsort
SELECT - 94 * 62 - col0 * col2 FROM tab2
----
-6017
-7856
-8830

query I rowsort
SELECT DISTINCT 66 AS col0 FROM tab1, tab0 AS cor0
----
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4557
SELECT ALL - + col0 + + 66 DIV + 20 FROM tab2 AS cor0
----
-4
-75
-76

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL - + col0 + + 66 / + 20 FROM tab2 AS cor0
----
-4
-75
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4558
SELECT ALL - col1 DIV col2 + - 79 * - col1 FROM tab1 AS cor0
----
1027
2054
790

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL - col1 / col2 + - 79 * - col1 FROM tab1 AS cor0
----
1027
2054
790

query I rowsort
SELECT - - col0 * + col2 + + ( - col0 ) * col0 FROM tab2 AS cor0
----
-3239
-4056
140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col1 * col0 col2 FROM tab1
----
576
75
960

query I rowsort
SELECT ALL + + col1 * ( - col0 ) FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * ( col2 ) col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4563
SELECT ALL + cor0.col0 + CAST( + col0 AS SIGNED ) * col0 FROM tab1 AS cor0
----
12
4160
6480

skipif mysql # not compatible
query I rowsort label-4563
SELECT ALL + cor0.col0 + CAST ( + col0 AS INTEGER ) * col0 FROM tab1 AS cor0
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-4564
SELECT ALL + col2 + col2 * col1 DIV col2 AS col2 FROM tab0 cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL + col2 + col2 * col1 / col2 AS col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - col1 * + col0 - col0 * - col0 * - 45 FROM tab0 AS cor0
----
-27984
-364544
-58520

query I rowsort
SELECT DISTINCT - - col0 + - col1 * + ( + col0 ) * 25 FROM tab1 AS cor0
----
-15936
-1947
-25920

query I rowsort
SELECT - col0 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-4568
SELECT - col0 DIV - col1 - + col2 FROM tab1 AS cor0
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-4568
SELECT - col0 / - col1 - + col2 FROM tab1 AS cor0
----
-51
-54
-90

query I rowsort
SELECT DISTINCT - col0 * - 22 + col1 FROM tab1 AS cor0
----
1418
1773
92

query I rowsort
SELECT - ( - col1 ) * cor0.col0 + + 17 * - col0 + - col2 AS col2 FROM tab1 AS cor0
----
-27
-416
-505

query I rowsort
SELECT + - 26 AS col2 FROM tab2 AS cor0
----
-26
-26
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4572
SELECT DISTINCT + + ( - col0 ) DIV col0 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT + + ( - col0 ) / col0 FROM tab1 cor0
----
-1

query I rowsort
SELECT ALL 38 * cor1.col2 + 99 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 75ec5315a165c746c37c45cfd822541e

query I rowsort
SELECT DISTINCT - col2 + - col0 * cor0.col0 - - 89 AS col1 FROM tab2 cor0
----
-6021
-6190
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * - col1 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col0 * 15 FROM tab0 AS cor0
----
1253
327
524

query I rowsort
SELECT - + col1 + + col1 * - cor0.col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT - - 31 * col0 AS col2 FROM tab1 AS cor0
----
1984
2480
93

query I rowsort
SELECT + 96 * - col1 AS col2 FROM tab0 AS cor0
----
-8256
-8736
-9312

query I rowsort
SELECT DISTINCT - 40 - cor0.col2 * - cor0.col2 FROM tab2 cor0
----
1404
636
689

onlyif mysql # use DIV operator for integer division
query I rowsort label-4581
SELECT col0 - + ( col1 ) DIV col0 AS col2 FROM tab2
----
3
78
79

skipif mysql # not compatible
query I rowsort label-4581
SELECT col0 - + ( col1 ) / col0 AS col2 FROM tab2
----
3
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 67 col1 FROM tab1 AS cor0
----
3618
3819
6432

onlyif mysql # use DIV operator for integer division
query I rowsort label-4583
SELECT col0 + + col1 DIV + 98 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4583
SELECT col0 + + col1 / + 98 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 * tab2.col1 col2 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-4585
SELECT + col2 + col0 DIV + col2 AS col0 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-4585
SELECT + col2 + col0 / + col2 AS col0 FROM tab1 AS cor0
----
54
58
96

query I rowsort
SELECT + + col0 * ( + col0 ) AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL - - col0 * 27 AS col1 FROM tab0 AS cor0
----
2403
648
945

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4588
SELECT + CAST( 36 AS SIGNED ) + - col1 * 78 AS col2 FROM tab2
----
-1290
-2382
-4566

skipif mysql # not compatible
query I rowsort label-4588
SELECT + CAST ( 36 AS INTEGER ) + - col1 * 78 AS col2 FROM tab2
----
-1290
-2382
-4566

query I rowsort
SELECT ALL + tab1.col0 * + 88 FROM tab1
----
264
5632
7040

onlyif mysql # use DIV operator for integer division
query I rowsort label-4590
SELECT DISTINCT - col0 DIV col0 + col2 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT - col0 / col0 + col2 FROM tab0
----
0
32
81

query I rowsort
SELECT DISTINCT - 65 AS col2 FROM tab1, tab0, tab0 AS cor0
----
-65

query I rowsort
SELECT - 83 + ( + col1 ) FROM tab1 cor0
----
-57
-70
-73

query I rowsort
SELECT ALL - - col2 + - col2 * col0 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL 82 + + col2 AS col1 FROM tab2 AS cor0
----
108
109
120

query I rowsort
SELECT ALL - 13 * col2 + + cor0.col1 * col0 FROM tab1 AS cor0
----
-101
-208
-624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4596
SELECT DISTINCT + col0 * col2 * + CAST( col1 + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1328236
136224
6790

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT + col0 * col2 * + CAST ( col1 + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1328236
136224
6790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 66 * col2 + + col2 col0 FROM tab0 AS cor0
----
2211
5494
67

query I rowsort
SELECT + - col2 * - col2 + ( + col0 ) + - col0 FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 + col1 col1 FROM tab0
----
172
177
183

query I rowsort
SELECT + + col1 * - col2 * col1 AS col0 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT col0 * + col0 + - col0 FROM tab2
----
42
6006
6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 col1 FROM tab0, tab2 AS cor0
----
93

query I rowsort
SELECT ALL - col2 - 15 FROM tab1 AS cor0
----
-111
-69
-72

query I rowsort
SELECT DISTINCT - col2 * cor0.col2 + - col1 AS col2 FROM tab2 cor0
----
-1461
-735
-760

query I rowsort
SELECT DISTINCT col1 * - col2 * - 97 - + 1 AS col0 FROM tab1 AS cor0
----
121055
136187
55289

query I rowsort
SELECT ALL - col1 * + col0 + cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - col2 + + col0 - - col0 * 25 * - col1 FROM tab0 AS cor0
----
-202468
-51609
-84841

query I rowsort
SELECT + 83 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # use DIV operator for integer division
query I rowsort label-4609
SELECT - - col1 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4609
SELECT - - col1 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col1 + col2 * - cor0.col0 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-7289
-739
61

query I rowsort
SELECT 42 * col1 FROM tab0
----
3612
3822
4074

query I rowsort
SELECT DISTINCT - - cor0.col2 AS col0 FROM tab0, tab1, tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - - col1 + - cor0.col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT + col0 * - 39 + + 82 FROM tab0 cor0
----
-1283
-3389
-854

onlyif mysql # use DIV operator for integer division
query I rowsort label-4615
SELECT + col2 DIV + 37 - 5 * tab2.col2 AS col2 FROM tab2
----
-130
-135
-189

skipif mysql # not compatible
query I rowsort label-4615
SELECT + col2 / + 37 - 5 * tab2.col2 AS col2 FROM tab2
----
-130
-135
-189

query I rowsort
SELECT ALL - ( - col1 ) * col0 * - ( 81 ) AS col1 FROM tab0 AS cor0
----
-167184
-274995
-656019

query I rowsort
SELECT ALL - 44 + 19 * - col1 FROM tab0 AS cor0
----
-1678
-1773
-1887

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4618
SELECT ALL col0 * CAST( 70 + - col0 AS SIGNED ) col1 FROM tab0
----
-1691
1104
1225

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL col0 * CAST ( 70 + - col0 AS INTEGER ) col1 FROM tab0
----
-1691
1104
1225

onlyif mysql # use DIV operator for integer division
query I rowsort label-4619
SELECT ALL ( + col1 ) DIV col0 col1 FROM tab1 AS cor0
----
0
0
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL ( + col1 ) / col0 col1 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT ALL col1 + + 26 * + col0 AS col1 FROM tab0
----
1007
2405
710

query I rowsort
SELECT - col0 * 23 AS col0 FROM tab0
----
-2047
-552
-805

query I rowsort
SELECT col1 * 24 - col1 FROM tab0
----
1978
2093
2231

query I rowsort
SELECT DISTINCT - col2 + ( col1 ) AS col1 FROM tab0
----
53
9
96

query I rowsort
SELECT + col2 * - 74 AS col1 FROM tab2
----
-1924
-1998
-2812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT - 14 + - col2 FROM tab2 AS cor0
----
-40
-41
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * + col0 + + 21 col2 FROM tab0 AS cor0
----
-14
-7277
-771

query I rowsort
SELECT ALL - ( col0 ) * + col1 AS col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL + - col0 * col2 + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT ( 93 ) * + col1 FROM tab0 AS cor0
----
7998
8463
9021

query I rowsort
SELECT ALL 92 * - 72 + - col1 FROM tab2 AS cor0
----
-6641
-6655
-6683

query I rowsort
SELECT DISTINCT col1 * + col2 * col2 AS col0 FROM tab2 AS cor0
----
22599
24548
39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col2 ) + cor0.col2 * cor0.col2 col0 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT ALL + - 1 + col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT + - 91 * col0 AS col2 FROM tab0 AS cor0
----
-2184
-3185
-8099

query I rowsort
SELECT ALL col0 + + 53 * col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1890
386883
42000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4637
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ( col1 ) + + col0 + col0 FROM tab2 AS cor0
----
175
215
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4639
SELECT - col2 * - col2 / CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4639
SELECT - col2 * - col2 / CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col0 ) + - cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4641
SELECT col0 DIV cor0.col1 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4641
SELECT col0 / cor0.col1 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - 41 * col0 FROM tab2 cor0
----
-287
-3198
-3239

query I rowsort
SELECT - 1 * col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + 86 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT DISTINCT + cor0.col1 * + ( col2 ) AS col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4646
SELECT ALL + col0 + ( col2 ) * cor0.col1 DIV col0 FROM tab0 AS cor0
----
142
172
37

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL + col0 + ( col2 ) * cor0.col1 / col0 FROM tab0 AS cor0
----
142
172
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4647
SELECT col1 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT col1 * - CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 * 4 AS col2 FROM tab2 AS cor0
----
28
312
316

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4649
SELECT - - cor0.col1 * CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-4649
SELECT - - cor0.col1 * CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - 19 * - col1 FROM tab2
----
1121
323
589

query I rowsort
SELECT ALL + - cor0.col2 * ( - col2 ) AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - col1 * + 10 AS col0 FROM tab1 AS cor0
----
-100
-130
-260

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + + 96 AS col1 FROM tab2, tab0, tab0 AS cor0
----
96

query I rowsort
SELECT ALL + 64 * + col2 AS col0 FROM tab1
----
3456
3648
6144

query I rowsort
SELECT DISTINCT - + 30 + - tab2.col2 FROM tab2, tab0, tab0 cor0
----
-56
-57
-68

query I rowsort
SELECT ALL - 99 * + col1 FROM tab0
----
-8514
-9009
-9603

query I rowsort
SELECT DISTINCT col0 * 95 + col2 AS col1 FROM tab0 AS cor0
----
2313
3326
8537

query I rowsort
SELECT - col2 + 26 * + col2 FROM tab1 cor0
----
1350
1425
2400

query I rowsort
SELECT DISTINCT - + col2 + col2 * 73 FROM tab1 AS cor0
----
3888
4104
6912

query I rowsort
SELECT ALL cor0.col2 * col1 - - col2 * - col0 FROM tab1 AS cor0
----
-3078
-6432
1242

query I rowsort
SELECT - col2 * + 57 FROM tab1 AS cor0
----
-3078
-3249
-5472

query I rowsort
SELECT + col0 * - 55 AS col2 FROM tab0 AS cor0
----
-1320
-1925
-4895

query I rowsort
SELECT col2 * + col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL + ( 27 ) + col0 AS col1 FROM tab0 AS cor0
----
116
51
62

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 0a3bf4d9642f43f11aad64de0d046e6b

query I rowsort
SELECT DISTINCT - + col2 + 11 AS col0 FROM tab2 AS cor0
----
-15
-16
-27

query I rowsort
SELECT col1 * - ( col2 ) + - 16 AS col1 FROM tab0 AS cor0
----
-113
-2854
-7478

query I rowsort
SELECT - + col0 * col1 + - col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT ALL - ( cor0.col2 ) * col1 + ( + 76 ) + col2 * 98 * col0 FROM tab1 AS cor0
----
14548
357010
751468

onlyif mysql # use DIV operator for integer division
query I rowsort label-4671
SELECT DISTINCT - col1 DIV + 50 + - cor0.col0 * - col1 + - col2 AS col0 FROM tab2 AS cor0
----
1305
190
4575

skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT - col1 / + 50 + - cor0.col0 * - col1 + - col2 AS col0 FROM tab2 AS cor0
----
1305
190
4575

query I rowsort
SELECT DISTINCT + + 67 * 94 AS col2 FROM tab0 AS cor0
----
6298

onlyif mysql # use DIV operator for integer division
query I rowsort label-4673
SELECT + cor0.col1 * ( + col0 + + col2 ) DIV + 42 AS col1 FROM tab2 AS cor0
----
146
25
47

skipif mysql # not compatible
query I rowsort label-4673
SELECT + cor0.col1 * ( + col0 + + col2 ) / + 42 AS col1 FROM tab2 AS cor0
----
146
25
47

query I rowsort
SELECT ALL + 58 + - 51 AS col2 FROM tab0 AS cor0
----
7
7
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4675
SELECT ALL - - 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-4675
SELECT ALL - - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 63 * + 44 AS col0 FROM tab0 AS cor0
----
2772

onlyif mysql # use DIV operator for integer division
query I rowsort label-4677
SELECT + 62 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4677
SELECT + 62 / cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
8

query I rowsort
SELECT ALL - 64 + - col1 AS col1 FROM tab0 AS cor0
----
-150
-155
-161

query I rowsort
SELECT ALL + col2 * - col0 * ( - 13 ) + - col1 AS col1 FROM tab0 AS cor0
----
10210
358
94783

query I rowsort
SELECT - 6 * col0 + + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-245
-7832
-936

query I rowsort
SELECT ALL - 7 + col0 AS col0 FROM tab0 AS cor0
----
17
28
82

query I rowsort
SELECT ALL + 10 + col2 FROM tab1 AS cor0
----
106
64
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-4683
SELECT ALL + col0 * col0 DIV + col1 + 70 col2 FROM tab0
----
157
76
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL + col0 * col0 / + col1 + 70 col2 FROM tab0
----
157
76
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 col1 FROM tab0 cor0
----
-41
-41
-41

query I rowsort
SELECT col2 * col1 + 93 AS col0 FROM tab1 AS cor0
----
1341
1497
663

query I rowsort
SELECT + 60 * - col0 FROM tab2 AS cor0
----
-420
-4680
-4740

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to fb1fb273a543ea33958edfcaa2e7ed26

query I rowsort
SELECT ALL col1 * + ( 12 ) - col1 AS col0 FROM tab1 AS cor0
----
110
143
286

query I rowsort
SELECT ALL - 96 AS col2 FROM tab1
----
-96
-96
-96

query I rowsort
SELECT + tab1.col0 FROM tab1, tab2 cor0, tab2, tab0 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT + col1 + + col0 * col2 * col1 AS col1 FROM tab1 AS cor0
----
36490
4238
99853

query I rowsort
SELECT + col1 * col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - - 4 + + 0 AS col0 FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT col2 * + ( col0 ) + tab2.col2 FROM tab2
----
2054
216
3040

query I rowsort
SELECT DISTINCT - 49 * 30 AS col0 FROM tab1
----
-1470

query I rowsort
SELECT DISTINCT 8 * - col2 FROM tab2
----
-208
-216
-304

query I rowsort
SELECT + - cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + + col1 * 75 FROM tab0 AS cor0
----
6450
6825
7275

query I rowsort
SELECT DISTINCT - - col1 + - 49 - + col1 FROM tab2 AS cor0
----
-49

query I rowsort
SELECT - col0 * ( + col2 ) * + col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT col1 * 7 * - 96 AS col2 FROM tab0 AS cor0
----
-57792
-61152
-65184

query I rowsort
SELECT - col2 * + ( + col2 ) + col2 + - 49 AS col0 FROM tab1 AS cor0
----
-2911
-3241
-9169

query I rowsort
SELECT DISTINCT - col0 * + col0 + - col2 AS col0 FROM tab1 cor0
----
-4153
-63
-6496

query I rowsort
SELECT ALL 90 * + 87 AS col0 FROM tab1 AS cor0
----
7830
7830
7830

query I rowsort
SELECT - ( - cor0.col0 ) + - cor0.col0 + - ( cor0.col2 ) * + col1 * col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - ( col0 ) + - col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT 40 * cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to ef76c5cb044667bd26bba630ea596f3f

query I rowsort
SELECT DISTINCT + ( - 57 ) * - col0 AS col2 FROM tab2 AS cor0
----
399
4446
4503

query I rowsort
SELECT DISTINCT - cor0.col0 * col0 AS col1 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL 89 + 71 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 3f48113b9f3a24e1b5011ed922dc20c8

query I rowsort
SELECT + col1 + - 15 FROM tab0 cor0
----
71
76
82

query I rowsort
SELECT + + 41 * 41 AS col0 FROM tab2 AS cor0
----
1681
1681
1681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 - col1 col1 FROM tab2 AS cor0
----
18
6025
6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-4714
SELECT + cor0.col0 DIV col1 AS col0 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4714
SELECT + cor0.col0 / col1 AS col0 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT DISTINCT 84 - col0 * col2 FROM tab2
----
-105
-1944
-2918

query I rowsort
SELECT ALL - - col2 * cor0.col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + - col1 + + ( + col1 + + col1 * - col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + - col2 + + col2 + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT + cor0.col1 * - ( col0 ) - - col0 * ( - col0 * col0 ) FROM tab1 AS cor0
----
-105
-262784
-513040

query I rowsort
SELECT DISTINCT - - col2 + + 94 * col2 + - cor0.col0 AS col1 FROM tab0 cor0
----
3111
60
7701

query I rowsort
SELECT ALL - - col1 * col0 * + 12 FROM tab0 AS cor0
----
24768
40740
97188

query I rowsort
SELECT + 44 * + col1 AS col1 FROM tab0
----
3784
4004
4268

query I rowsort
SELECT + col2 * col1 + 67 AS col2 FROM tab2 AS cor0
----
1601
713
904

query I rowsort
SELECT col1 + ( 85 ) FROM tab0 AS cor0
----
171
176
182

query I rowsort
SELECT ALL - col0 + col0 + col0 AS col0 FROM tab1 cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4726
SELECT + col1 DIV col0 col2 FROM tab0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4726
SELECT + col1 / col0 col2 FROM tab0
----
1
2
3

query I rowsort
SELECT DISTINCT - col0 + - 59 AS col0 FROM tab0 AS cor0
----
-148
-83
-94

query I rowsort
SELECT ALL + col1 * - col1 - - 49 AS col2 FROM tab1 AS cor0
----
-120
-51
-627

query I rowsort
SELECT ALL - col2 - - col0 AS col1 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - cor0.col0 + - 48 FROM tab2 AS cor0
----
-126
-127
-55

query I rowsort
SELECT DISTINCT - col1 + - 21 FROM tab0 AS cor0
----
-107
-112
-118

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4732
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query I rowsort
SELECT ALL col2 * col2 + - col2 + col0 AS col2 FROM tab0 AS cor0
----
1080
35
6731

onlyif mysql # use DIV operator for integer division
query I rowsort label-4734
SELECT col1 DIV + tab0.col2 AS col0 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-4734
SELECT col1 / + tab0.col2 AS col0 FROM tab0
----
1
2
97

query I rowsort
SELECT + col0 * + col1 * + 16 - - col1 FROM tab2
----
21505
3503
73691

query I rowsort
SELECT col2 * - col0 + - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-406
-4345
-6630

query I rowsort
SELECT DISTINCT + - ( + col2 ) AS col0 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + + ( - col0 ) * col0 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-4739
SELECT + + col1 DIV - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-27
-37
-90

skipif mysql # not compatible
query I rowsort label-4739
SELECT + + col1 / - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-27
-37
-90

query I rowsort
SELECT ALL col1 + 33 FROM tab2
----
50
64
92

query I rowsort
SELECT DISTINCT col2 + 6 AS col0 FROM tab0
----
39
7
88

query I rowsort
SELECT ALL + - col2 * - 27 AS col2 FROM tab0 AS cor0
----
2214
27
891

query I rowsort
SELECT ALL + tab0.col2 + + 74 FROM tab0
----
107
156
75

query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 * col1 FROM tab0 AS cor0
----
611884
93654
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * + col2 col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL + ( col1 ) * - col0 AS col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT - + 89 * + col2 AS col1 FROM tab1 AS cor0
----
-4806
-5073
-8544

query I rowsort
SELECT tab1.col0 - 13 AS col2 FROM tab1
----
-10
51
67

query I rowsort
SELECT ( + col0 ) * + col2 + + 88 * 37 FROM tab1
----
10936
3418
6904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) + + 67 col1 FROM tab2
----
126
84
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + + cor0.col1 - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * + col2 + - 46 * - 71 * + col2 FROM tab2 AS cor0
----
121106
82888
87993

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * + col2 + - col2 col0 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT - 20 + cor0.col2 * ( cor0.col0 ) * col1 FROM tab2 AS cor0
----
119632
51014
5839

query I rowsort
SELECT ALL - - col2 * col2 * + col0 + col1 AS col0 FROM tab0 AS cor0
----
132
26222
598527

query I rowsort
SELECT + + col0 + + 36 * col0 FROM tab0 AS cor0
----
1295
3293
888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - tab0.col2 * 17 col2 FROM tab0
----
-1303
-475
80

query I rowsort
SELECT + cor0.col2 * + 49 FROM tab1 AS cor0
----
2646
2793
4704

onlyif mysql # use DIV operator for integer division
query I rowsort label-4760
SELECT - - col2 + col2 DIV - col0 + + 87 AS col0 FROM tab1 AS cor0
----
123
144
182

skipif mysql # not compatible
query I rowsort label-4760
SELECT - - col2 + col2 / - col0 + + 87 AS col0 FROM tab1 AS cor0
----
123
144
182

query I rowsort
SELECT 24 * - col0 AS col2 FROM tab1 AS cor0
----
-1536
-1920
-72

query I rowsort
SELECT - col1 + + 15 AS col2 FROM tab1
----
-11
2
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4763
SELECT DISTINCT - tab0.col0 * CAST( + col1 AS SIGNED ) FROM tab0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT - tab0.col0 * CAST ( + col1 AS INTEGER ) FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4764
SELECT - col1 DIV - col1 + col1 * + col1 AS col2 FROM tab0
----
7397
8282
9410

skipif mysql # not compatible
query I rowsort label-4764
SELECT - col1 / - col1 + col1 * + col1 AS col2 FROM tab0
----
7397
8282
9410

query I rowsort
SELECT - col0 + ( col0 ) * + col1 * tab0.col1 AS col2 FROM tab0
----
177480
329280
736920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4766
SELECT ALL - CAST( NULL AS DECIMAL ) / ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL - CAST ( NULL AS REAL ) / ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * + 72 * col1 + - col2 FROM tab1 AS cor0
----
46023
5562
74784

query I rowsort
SELECT DISTINCT 90 * col1 - + col2 * col1 AS col2 FROM tab1 AS cor0
----
-78
330
936

query I rowsort
SELECT ALL - + 34 * col2 FROM tab2 AS cor0
----
-1292
-884
-918

query I rowsort
SELECT ALL ( + col1 ) * col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL + - 30 * - 60 + - col2 AS col1 FROM tab1 AS cor0
----
1704
1743
1746

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 86 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # use DIV operator for integer division
query I rowsort label-4773
SELECT 14 DIV - 62 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-4773
SELECT 14 / - 62 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT col2 + + col0 + 28 AS col0 FROM tab1
----
149
204
85

query I rowsort
SELECT - 30 * - col0 + 94 + col0 FROM tab2 AS cor0
----
2512
2543
311

query I rowsort
SELECT ALL - col0 + - col0 * col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-4777
SELECT + 14 DIV col1 col0 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4777
SELECT + 14 / col1 col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - ( + col1 ) + - col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - + 0 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4780
SELECT cor0.col0 * + CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4780
SELECT cor0.col0 * + CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4781
SELECT + CAST( NULL AS SIGNED ) * + tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4781
SELECT + CAST ( NULL AS INTEGER ) * + tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4782
SELECT + cor0.col2 + + ( 28 ) DIV - col2 + - col1 FROM tab0 AS cor0
----
-124
-53
-9

skipif mysql # not compatible
query I rowsort label-4782
SELECT + cor0.col2 + + ( 28 ) / - col2 + - col1 FROM tab0 AS cor0
----
-124
-53
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 83 * cor0.col2 + - col2 col2 FROM tab2 AS cor0
----
2054
2207
3037

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
54
57
96

query I rowsort
SELECT + + col1 * - 13 - + col1 FROM tab2 AS cor0
----
-238
-434
-826

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4786
SELECT + + col1 * CAST( + col1 * + col1 AS SIGNED ) col1 FROM tab2 AS cor0
----
205379
29791
4913

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4786
SELECT + + col1 * CAST ( + col1 * + col1 AS INTEGER ) col1 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT - - col0 + ( 20 + col2 ) * cor0.col1 * col2 FROM tab0 cor0
----
150438
2072
761213

query I rowsort
SELECT - 26 + col1 * col0 AS col1 FROM tab2 AS cor0
----
1317
191
4576

query I rowsort
SELECT DISTINCT + 4 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
4

query I rowsort
SELECT - - col0 + col2 + + col2 AS col1 FROM tab2 AS cor0
----
130
155
61

query I rowsort
SELECT + 23 + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-12
-7275
-769

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4792
SELECT ALL - col0 * + col0 + - CAST( NULL AS SIGNED ) * - col2 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL - col0 * + col0 + - CAST ( NULL AS INTEGER ) * - col2 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 - col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4794
SELECT DISTINCT + cor0.col2 - + col0 DIV col2 AS col1 FROM tab1 cor0
----
54
56
96

skipif mysql # not compatible
query I rowsort label-4794
SELECT DISTINCT + cor0.col2 - + col0 / col2 AS col1 FROM tab1 cor0
----
54
56
96

query I rowsort
SELECT + col1 + - col1 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 88 * col1 + ( - col2 * + col0 ) FROM tab0
----
6776
710
8501

query I rowsort
SELECT + - col0 * - col2 + - col1 * col1 FROM tab0 AS cor0
----
-6604
-9374
-983

onlyif mysql # use DIV operator for integer division
query I rowsort label-4798
SELECT ALL + col1 DIV tab2.col0 + col1 FROM tab2
----
17
35
59

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL + col1 / tab2.col0 + col1 FROM tab2
----
17
35
59

query I rowsort
SELECT ALL + 50 * + col1 FROM tab1
----
1300
500
650

query I rowsort
SELECT DISTINCT col0 + - col0 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 * + col1 + - col1 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL - 98 * col0 AS col2 FROM tab2
----
-686
-7644
-7742

query I rowsort
SELECT + 32 AS col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
81 values hashing to 6bef041528d0147be26f7de162c66a5f

onlyif mysql # use DIV operator for integer division
query I rowsort label-4804
SELECT DISTINCT col0 + 80 * col0 * + 66 - - col2 DIV - col1 FROM tab2
----
36967
411918
417197

skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT col0 + 80 * col0 * + 66 - - col2 / - col1 FROM tab2
----
36967
411918
417197

query I rowsort
SELECT + 64 + 57 - col2 * + col1 * + col2 AS col2 FROM tab0
----
-611763
-93533
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4806
SELECT ALL - 83 + col0 + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL - 83 + col0 + + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - col2 + col0 AS col1 FROM tab1
----
-105
-112
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-4808
SELECT ALL - 17 DIV + col1 + 20 AS col2 FROM tab1
----
19
19
20

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - 17 / + col1 + 20 AS col2 FROM tab1
----
19
19
20

query I rowsort
SELECT 57 * col0 FROM tab0
----
1368
1995
5073

query I rowsort
SELECT ALL 93 * col0 + ( 44 ) FROM tab1
----
323
5996
7484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 + + col0 * - col0 + col0 * - tab2.col2 col0 FROM tab2
----
-278
-8152
-9283

query I rowsort
SELECT + - col0 * + col1 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col1 + cor0.col2 * col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT 62 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

onlyif mysql # use DIV operator for integer division
query I rowsort label-4815
SELECT DISTINCT - col2 DIV ( - 34 ) AS col1 FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-4815
SELECT DISTINCT - col2 / ( - 34 ) AS col1 FROM tab1
----
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4816
SELECT - + 69 + - col1 DIV + col1 FROM tab0 cor0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-4816
SELECT - + 69 + - col1 / + col1 FROM tab0 cor0
----
-70
-70
-70

query I rowsort
SELECT - col2 * 12 * col0 + col1 - col2 FROM tab1 AS cor0
----
-1972
-43823
-92243

query I rowsort
SELECT 4 + - col1 * + col2 FROM tab0 AS cor0
----
-2834
-7458
-93

query I rowsort
SELECT ALL + 88 * col2 FROM tab0 AS cor0
----
2904
7216
88

query I rowsort
SELECT + 79 * col1 * col0 AS col2 FROM tab1 AS cor0
----
50560
6162
82160

query I rowsort
SELECT ALL - 87 + + col0 FROM tab0 AS cor0
----
-52
-63
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4822
SELECT ALL cor0.col0 DIV - col2 AS col2 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL cor0.col0 / - col2 AS col2 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + ( 19 ) + col2 FROM tab2 AS cor0
----
45
46
57

query I rowsort
SELECT ALL - col2 + - col2 - - col1 FROM tab2 AS cor0
----
-23
-59
7

query I rowsort
SELECT ALL - + 52 * - col2 AS col2 FROM tab2 AS cor0
----
1352
1404
1976

query I rowsort
SELECT DISTINCT - ( + col1 ) * col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-4827
SELECT ALL + cor0.col1 DIV + col2 + - col2 FROM tab0 AS cor0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-4827
SELECT ALL + cor0.col1 / + col2 + - col2 FROM tab0 AS cor0
----
-31
-81
96

query I rowsort
SELECT DISTINCT - - ( - col2 ) * + col0 + col2 - col0 AS col2 FROM tab2 AS cor0
----
-169
-2080
-3043

onlyif mysql # use DIV operator for integer division
query I rowsort label-4829
SELECT + - col0 + col0 DIV col1 FROM tab2 AS cor0
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-4829
SELECT + - col0 + col0 / col1 FROM tab2 AS cor0
----
-7
-75
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-4830
SELECT + 70 DIV 45 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4830
SELECT + 70 / 45 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + + 18 + col1 FROM tab0 AS cor0
----
104
109
115

query I rowsort
SELECT DISTINCT - ( col1 ) * col0 + cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL - - col2 * col0 + - 68 FROM tab0 AS cor0
----
-33
7230
724

query I rowsort
SELECT ALL - col2 * col1 * - col0 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT col1 * col1 + - ( - ( cor0.col2 ) ) FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT + ( - col1 ) * + 37 AS col2 FROM tab2 AS cor0
----
-1147
-2183
-629

query I rowsort
SELECT col1 - + col2 * - col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT + 10 + - col0 AS col1 FROM tab2 AS cor0
----
-68
-69
3

query I rowsort
SELECT - + col1 * col1 - + 10 FROM tab0 AS cor0
----
-7406
-8291
-9419

query I rowsort
SELECT DISTINCT + 9 + col0 FROM tab2 cor0
----
16
87
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-4841
SELECT DISTINCT + 12 DIV - col0 AS col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT + 12 / - col0 AS col0 FROM tab2
----
-1
0

query I rowsort
SELECT ALL 68 * - col0 FROM tab2
----
-476
-5304
-5372

query I rowsort
SELECT 43 + - col2 FROM tab2
----
16
17
5

query I rowsort
SELECT ALL + - 90 + cor0.col0 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to 6ff4d87a8d07078145db7928131b70a2

query I rowsort
SELECT ALL - col1 * 63 AS col0 FROM tab2 AS cor0
----
-1071
-1953
-3717

query I rowsort
SELECT + col2 * 27 FROM tab2 AS cor0
----
1026
702
729

query I rowsort
SELECT DISTINCT + col0 - + 86 FROM tab0 AS cor0
----
-51
-62
3

query I rowsort
SELECT DISTINCT - - col1 * - cor0.col0 + + col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT - - col2 + + 60 FROM tab2 AS cor0
----
86
87
98

query I rowsort
SELECT DISTINCT + col1 - ( col0 ) FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-4851
SELECT col2 DIV - col2 + col0 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
0
34

skipif mysql # not compatible
query I rowsort label-4851
SELECT col2 / - col2 + col0 / col2 AS col1 FROM tab0 AS cor0
----
-1
0
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4852
SELECT ALL + col2 DIV - col0 + col0 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL + col2 / - col0 + col0 FROM tab2 AS cor0
----
4
78
79

query I rowsort
SELECT DISTINCT + + col0 * ( col0 + col2 ) AS col2 FROM tab1 AS cor0
----
14080
171
7744

query I rowsort
SELECT ALL col2 + - cor0.col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT col2 + + ( + 95 ) * + col2 FROM tab2 AS cor0
----
2496
2592
3648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4856
SELECT tab1.col0 * CAST( 9 AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 2b1d8d70d87ed710a3d9f7b8aa1868be

skipif mysql # not compatible
query I rowsort label-4856
SELECT tab1.col0 * CAST ( 9 AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 2b1d8d70d87ed710a3d9f7b8aa1868be

query I rowsort
SELECT ALL 87 * - tab2.col0 + col0 AS col2 FROM tab2
----
-602
-6708
-6794

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4858
SELECT - cor0.col1 + CAST( col0 * - col1 AS SIGNED ) FROM tab1 AS cor0
----
-104
-1053
-650

skipif mysql # not compatible
query I rowsort label-4858
SELECT - cor0.col1 + CAST ( col0 * - col1 AS INTEGER ) FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT ALL + col0 + + ( + col1 * - col2 ) AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT + col1 * ( col0 ) * col1 + col1 AS col1 FROM tab2 cor0
----
22848
271577
6758

query I rowsort
SELECT DISTINCT + - col0 * + col0 - col0 * col2 FROM tab0 AS cor0
----
-1260
-1368
-15219

query I rowsort
SELECT + col0 * - 59 FROM tab2 AS cor0
----
-413
-4602
-4661

query I rowsort
SELECT - cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

query I rowsort
SELECT ALL col0 * 15 FROM tab0 AS cor0
----
1335
360
525

query I rowsort
SELECT DISTINCT + cor1.col0 * - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
-1343
-217
-4602

query I rowsort
SELECT - 64 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 100c625e45715c20368551989514ba64

onlyif mysql # use DIV operator for integer division
query I rowsort label-4867
SELECT + - col1 DIV - cor0.col0 + + 90 * cor0.col2 FROM tab1 AS cor0
----
4868
5130
8640

skipif mysql # not compatible
query I rowsort label-4867
SELECT + - col1 / - cor0.col0 + + 90 * cor0.col2 FROM tab1 AS cor0
----
4868
5130
8640

query I rowsort
SELECT - col1 * col2 + + 5 FROM tab0 AS cor0
----
-2833
-7457
-92

query I rowsort
SELECT - ( - col2 ) * - col2 * col2 FROM tab1 AS cor0
----
-157464
-185193
-884736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * ( col0 ) col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col1 + - ( - col1 ) * + cor0.col1 AS col1 FROM tab1 AS cor0
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 col0 FROM tab0
----
75
75
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4873
SELECT + - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT + - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + col2 * - 42 AS col1 FROM tab1
----
122472
136458
387072

query I rowsort
SELECT col0 + + col2 * col0 + - col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT + 62 * col1 FROM tab1
----
1612
620
806

query I rowsort
SELECT 70 + - tab0.col0 AS col2 FROM tab0
----
-19
35
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4878
SELECT - CAST( - col0 AS SIGNED ) AS col0 FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4878
SELECT - CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL - - 97 - + ( cor0.col2 ) * 67 FROM tab2 AS cor0
----
-1645
-1712
-2449

query I rowsort
SELECT + ( - ( col2 ) ) * 38 + - 68 FROM tab0 AS cor0
----
-106
-1322
-3184

query I rowsort
SELECT ALL + col0 + col2 * - cor0.col0 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT ALL - 38 + + 93 AS col0 FROM tab0 AS cor0
----
55
55
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-4883
SELECT DISTINCT col0 * - col2 + - col0 + - ( - 77 ) DIV + col1 FROM tab1 AS cor0
----
-163
-3705
-7755

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT col0 * - col2 + - col0 + - ( - 77 ) / + col1 FROM tab1 AS cor0
----
-163
-3705
-7755

query I rowsort
SELECT ALL - 48 * - col0 - - col2 * - col2 AS col2 FROM tab2 AS cor0
----
-393
2348
3068

query I rowsort
SELECT DISTINCT + col2 * 68 AS col1 FROM tab2 AS cor0
----
1768
1836
2584

query I rowsort
SELECT - col0 + - ( 38 + - col1 ) AS col0 FROM tab0
----
-36
24
24

query I rowsort
SELECT tab1.col2 + - 39 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 2ed2474c8af23b18d2191fd382c2725e

query I rowsort
SELECT - 83 + - col0 FROM tab1 cor0
----
-147
-163
-86

query I rowsort
SELECT DISTINCT + - ( + tab0.col1 ) FROM tab0, tab1 AS cor0, tab1, tab0 AS cor1
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - 28 + col1 * cor0.col0 FROM tab1 AS cor0
----
1012
50
612

onlyif mysql # use DIV operator for integer division
query I rowsort label-4891
SELECT + 56 DIV + 36 - col0 FROM tab0 AS cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-4891
SELECT + 56 / + 36 - col0 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT - cor0.col2 + col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL 46 * 90 AS col0 FROM tab0 AS cor0
----
4140
4140
4140

query I rowsort
SELECT DISTINCT 70 + 95 + + col1 * + cor0.col1 * cor0.col2 FROM tab0 cor0
----
244233
679207
9574

query I rowsort
SELECT DISTINCT + 34 + + col1 AS col0 FROM tab1 AS cor0
----
44
47
60

query I rowsort
SELECT - - ( - col0 ) * + col1 + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-4897
SELECT CAST( + col2 AS SIGNED ) DIV col2 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4897
SELECT CAST ( + col2 AS INTEGER ) / col2 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT - + col1 * + col1 + - ( cor0.col2 ) - col1 AS col1 FROM tab2 AS cor0
----
-1019
-344
-3566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 75 + col0 * - col2 col2 FROM tab0 AS cor0
----
-717
-7223
40

query I rowsort
SELECT - + ( - cor0.col0 ) FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL + 12 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT ( col2 ) * - col2 + + col2 - tab2.col2 AS col1 FROM tab2
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 col2 FROM tab0
----
49
49
49

query I rowsort
SELECT cor0.col1 - col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT - - 66 - col1 AS col2 FROM tab2 cor0
----
35
49
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + - ( + cor0.col1 ) col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT - col1 + + col0 * 5 - - col1 FROM tab0 AS cor0
----
120
175
445

query I rowsort
SELECT DISTINCT + col2 * - col2 * + col2 FROM tab1
----
-157464
-185193
-884736

query I rowsort
SELECT - - col2 * - 64 + + 69 * cor0.col0 * + col0 AS col2 FROM tab2 AS cor0
----
1653
418132
428197

query I rowsort
SELECT + cor0.col0 * 91 + + col0 FROM tab2 AS cor0
----
644
7176
7268

query I rowsort
SELECT - col0 * + 48 FROM tab1 AS cor0
----
-144
-3072
-3840

query I rowsort
SELECT DISTINCT + cor0.col1 * 89 AS col1 FROM tab1 cor0
----
1157
2314
890

query I rowsort
SELECT + 50 + + col1 FROM tab1 cor0
----
60
63
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4914
SELECT col0 * cor0.col1 DIV col2 FROM tab1 AS cor0
----
1
10
11

skipif mysql # not compatible
query I rowsort label-4914
SELECT col0 * cor0.col1 / col2 FROM tab1 AS cor0
----
1
10
11

query I rowsort
SELECT + 20 + - 69 * col1 FROM tab2 AS cor0
----
-1153
-2119
-4051

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 - + cor0.col2 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 84e84f80fe6fcf94b2babaf9b20bb783

query I rowsort
SELECT ALL - col2 * 89 AS col0 FROM tab0 AS cor0
----
-2937
-7298
-89

query I rowsort
SELECT DISTINCT + col2 + col2 * 46 FROM tab2 AS cor0
----
1222
1269
1786

query I rowsort
SELECT ALL - ( cor1.col2 ) AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT ALL - - cor0.col1 - - col2 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + col1 col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + col1 * + cor0.col1 AS col2 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT - + cor0.col2 * + 55 FROM tab0 AS cor0
----
-1815
-4510
-55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4924
SELECT DISTINCT - col0 + CAST( ( col0 ) * - cor0.col0 + col1 AS SIGNED ) FROM tab2 AS cor0
----
-25
-6103
-6303

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT - col0 + CAST ( ( col0 ) * - cor0.col0 + col1 AS INTEGER ) FROM tab2 AS cor0
----
-25
-6103
-6303

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 + 0 col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col2 + cor0.col0 * col1 AS col1 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + col0 - tab1.col0 * 83 AS col2 FROM tab1
----
-246
-5248
-6560

query I rowsort
SELECT - cor0.col2 * col0 + col0 * + 13 * + col1 FROM tab2 AS cor0
----
14457
2632
57798

onlyif mysql # use DIV operator for integer division
query I rowsort label-4929
SELECT ALL ( - col1 ) * cor0.col2 DIV + cor0.col0 FROM tab0 AS cor0
----
-118
-2
-83

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL ( - col1 ) * cor0.col2 / + cor0.col0 FROM tab0 AS cor0
----
-118
-2
-83

query I rowsort
SELECT DISTINCT tab2.col2 - - ( + col0 ) FROM tab2
----
104
117
34

query I rowsort
SELECT - tab0.col0 * - 28 + + col0 + tab0.col0 FROM tab0
----
1050
2670
720

query I rowsort
SELECT - col2 + + 57 + - col0 FROM tab0
----
-114
0
21

query I rowsort
SELECT ALL - cor2.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to c569638e8a09ff819458d62ddbde994c

query I rowsort
SELECT - ( + cor0.col0 ) + - 95 * col1 FROM tab0 AS cor0
----
-8194
-8734
-9250

query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT - 27 - col2 FROM tab2 AS cor0
----
-53
-54
-65

query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 * ( col2 + + col2 ) FROM tab0 AS cor0
----
-1196872
-52272
-70

query I rowsort
SELECT DISTINCT + + col1 + cor0.col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT 97 * + tab2.col2 + 68 AS col0 FROM tab2
----
2590
2687
3754

query I rowsort
SELECT tab0.col2 + cor0.col0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to bd4afbebf32cf7139d4a26f0c77f8156

query I rowsort
SELECT DISTINCT - ( col0 ) * col1 AS col1 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ( col2 * - ( col1 ) ) + col0 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT ALL + 91 * + col1 AS col1 FROM tab1 AS cor0
----
1183
2366
910

query I rowsort
SELECT ALL - 91 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4945
SELECT col2 * - CAST( - 7 + + col1 AS SIGNED ) FROM tab2 AS cor0
----
-1352
-380
-648

skipif mysql # not compatible
query I rowsort label-4945
SELECT col2 * - CAST ( - 7 + + col1 AS INTEGER ) FROM tab2 AS cor0
----
-1352
-380
-648

query I rowsort
SELECT ALL + + cor0.col0 * + 85 FROM tab0 cor0
----
2040
2975
7565

query I rowsort
SELECT DISTINCT - - col0 * - col0 * col2 + + col0 AS col0 FROM tab0 AS cor0
----
-1190
-18984
-649433

query I rowsort
SELECT ALL col2 * - 92 AS col0 FROM tab2 AS cor0
----
-2392
-2484
-3496

query I rowsort
SELECT DISTINCT - + col0 - + col1 * + 55 AS col1 FROM tab0 AS cor0
----
-4754
-5094
-5370

query I rowsort
SELECT DISTINCT - col1 * col0 - cor0.col2 * col1 FROM tab2 AS cor0
----
-1054
-1989
-6136

query I rowsort
SELECT + col0 + 30 * - col2 FROM tab1
----
-1617
-1646
-2800

query I rowsort
SELECT - ( + col2 ) + + col2 * + col2 + - col0 * col0 FROM tab2
----
-4835
-5434
653

query I rowsort
SELECT DISTINCT ( + col1 ) + col2 * col0 FROM tab2
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-4954
SELECT ALL col2 + col2 + + col2 DIV ( - col2 + - col0 ) FROM tab2
----
52
54
76

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL col2 + col2 + + col2 / ( - col2 + - col0 ) FROM tab2
----
52
54
76

query I rowsort
SELECT ALL + 53 + + tab1.col0 * - col2 AS col2 FROM tab1
----
-109
-3595
-7627

query I rowsort
SELECT - + col2 + - col1 + cor0.col1 * ( + cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-2
573
931

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 * + col2 col0 FROM tab1 cor0
----
3240
3420
5760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4958
SELECT DISTINCT - ( ( col0 ) ) DIV + col2 AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT - ( ( col0 ) ) / + col2 AS col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT ALL + col1 * - ( col2 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT col1 + - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT + ( - col0 ) * ( + col2 ) + col0 * col1 + col1 AS col0 FROM tab2 AS cor0
----
-1642
2633
59

query I rowsort
SELECT ALL + - cor0.col2 + + col1 * - 69 FROM tab1 AS cor0
----
-1848
-747
-993

query I rowsort
SELECT cor0.col2 * col0 * + col1 AS col0 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL + - 14 FROM tab2 cor0
----
-14
-14
-14

onlyif mysql # use DIV operator for integer division
query I rowsort label-4965
SELECT DISTINCT + - col1 DIV col1 + - col2 FROM tab2 AS cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT + - col1 / col1 + - col2 FROM tab2 AS cor0
----
-27
-28
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT - col2 + - cor0.col0 * col1 + + col0 AS col1 FROM tab2 AS cor0
----
-1302
-237
-4550

query I rowsort
SELECT DISTINCT - col2 + - col1 * - 17 AS col2 FROM tab2 AS cor0
----
251
500
977

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 col2 FROM tab0, tab2, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL col2 + - ( - col0 ) * col1 + 19 AS col0 FROM tab1
----
1155
151
716

query I rowsort
SELECT DISTINCT ( col0 ) + + col1 AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT - col1 + cor0.col2 * + ( + col1 ) AS col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT + - col2 * - col1 AS col2 FROM tab1 cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 30 col2 FROM tab2 AS cor0
----
-30
-30
-30

query I rowsort
SELECT + 77 * - col1 + 90 + col1 * col1 * - col2 AS col0 FROM tab1 AS cor0
----
-17135
-38416
-6380

query I rowsort
SELECT ALL - tab1.col2 * col1 + + col0 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - col1 + col1 * col2 AS col1 FROM tab2
----
1475
629
806

query I rowsort
SELECT ALL col0 + - col1 + col2 FROM tab2
----
100
3
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-4979
SELECT ALL col2 * cor0.col0 + - col1 * col1 DIV - col2 col0 FROM tab0 AS cor0
----
1016
7398
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL col2 * cor0.col0 + - col1 * col1 / - col2 col0 FROM tab0 AS cor0
----
1016
7398
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-4980
SELECT + col1 + cor0.col0 DIV col2 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-4980
SELECT + col1 + cor0.col0 / col2 FROM tab0 AS cor0
----
132
86
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4981
SELECT + + col1 * col0 - col2 DIV + col0 FROM tab1 AS cor0
----
1039
60
640

skipif mysql # not compatible
query I rowsort label-4981
SELECT + + col1 * col0 - col2 / + col0 FROM tab1 AS cor0
----
1039
60
640

query I rowsort
SELECT ALL + col1 * col2 * col0 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL + cor0.col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-4984
SELECT - col1 + + cor0.col1 DIV col0 + cor0.col0 AS col1 FROM tab1 cor0
----
-15
54
67

skipif mysql # not compatible
query I rowsort label-4984
SELECT - col1 + + cor0.col1 / col0 + cor0.col0 AS col1 FROM tab1 cor0
----
-15
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-4986
SELECT ALL col1 DIV col0 FROM tab1 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL col1 / col0 FROM tab1 cor0
----
0
0
8

query I rowsort
SELECT + col0 * - col1 + col1 * col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4988
SELECT ALL - col0 DIV tab0.col2 + - col2 * col0 FROM tab0
----
-70
-7299
-792

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL - col0 / tab0.col2 + - col2 * col0 FROM tab0
----
-70
-7299
-792

query I rowsort
SELECT DISTINCT col2 + col0 * + col2 + col1 * col0 AS col2 FROM tab1
----
294
4345
8816

query I rowsort
SELECT - tab0.col0 * col1 * col0 + col0 * col1 * - col1 + + col2 FROM tab0
----
-1457738
-227007
-448139

query I rowsort
SELECT col0 + col2 + - col1 FROM tab0
----
-29
-61
80

query I rowsort
SELECT - col1 * col1 + - col0 * - col1 * - col0 FROM tab1 AS cor0
----
-41060
-83369
-910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col0 + col0 col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT + + col1 * + cor0.col0 - - col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL + + 82 - col0 AS col2 FROM tab0 AS cor0
----
-7
47
58

query I rowsort
SELECT DISTINCT col1 + - cor0.col2 * + col0 AS col2 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT col1 * col0 + - col2 AS col1 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-4998
SELECT ALL col0 DIV + col0 - + col1 AS col1 FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-4998
SELECT ALL col0 / + col0 - + col1 AS col1 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT DISTINCT - col0 + - col0 AS col0 FROM tab0 cor0
----
-178
-48
-70

query I rowsort
SELECT ( col0 ) - tab0.col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + 80 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1305
656
8001

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col1 FROM tab2 AS cor0
----
-13
-13
-13

query I rowsort
SELECT DISTINCT 50 * col0 * cor0.col2 + + col2 FROM tab0 AS cor0
----
1751
364982
39633

query I rowsort
SELECT 25 + - col0 FROM tab2
----
-53
-54
18

query I rowsort
SELECT col2 + - col2 * + col0 + - col2 AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - tab1.col2 FROM tab1 WHERE ( NULL ) = col0 * + col2 + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( tab0.col2 / - col0 )
----

query I rowsort
SELECT DISTINCT - col2 + tab2.col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 + col2 * tab0.col2 * - col2 col1 FROM tab0
----
-35904
-551286
0

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * col0 + - col0 FROM tab1
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-5012
SELECT + col1 DIV col0 FROM tab2 WHERE col0 <> col2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5012
SELECT + col1 / col0 FROM tab2 WHERE col0 <> col2
----
0
0
4

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * col2 IN ( + col0 )
----
24
86
33
89
91
82

query I rowsort
SELECT ALL col2 * col0 * col1 + col0 AS col0 FROM tab1
----
36544
4215
99920

query I rowsort
SELECT DISTINCT col2 * + col1 + col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT col2 / + col1 FROM tab1 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 + col2 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col2 * + col1 + - ( - col2 ) * col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL tab0.col2 + + col2 * col2 AS col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT DISTINCT col0 * - col0 + col0 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT ALL col2 * + col1 + col2 AS col1 FROM tab2
----
1560
684
864

query I rowsort
SELECT - col2 * cor0.col1 + - col2 * col1 FROM tab1 AS cor0
----
-1140
-2496
-2808

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL > col1
----

query I rowsort
SELECT ALL - col1 - - col0 AS col2 FROM tab2
----
-24
19
62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + col2 )
----

query I rowsort
SELECT + cor0.col0 * - cor0.col2 * - col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL - ( cor0.col0 ) + + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5028
SELECT ALL + CAST( NULL AS SIGNED ) + - 64 * cor0.col2 * 11 col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL + CAST ( NULL AS INTEGER ) + - 64 * cor0.col2 * 11 col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 69 + - col0 AS col0 FROM tab1 AS cor0
----
-11
5
66

query I rowsort
SELECT + col2 * col0 + - col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT DISTINCT - + col1 * 28 + col1 AS col2 FROM tab0 AS cor0
----
-2322
-2457
-2619

query I rowsort
SELECT DISTINCT + col1 + + 41 FROM tab0 AS cor0
----
127
132
138

query I rowsort
SELECT col0 + + col0 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5034
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 41 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 41 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - ( col0 ) * 90 + - 30 AS col0 FROM tab1 AS cor0
----
-300
-5790
-7230

onlyif mysql # use DIV operator for integer division
query I rowsort label-5036
SELECT col1 + + 30 * col2 DIV + col0 FROM tab2
----
146
31
69

skipif mysql # not compatible
query I rowsort label-5036
SELECT col1 + + 30 * col2 / + col0 FROM tab2
----
146
31
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 * col0 col2 FROM tab0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 * col2 col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT + col2 + + 69 AS col2 FROM tab2 AS cor0
----
107
95
96

query I rowsort
SELECT DISTINCT tab2.col2 * + 60 AS col2 FROM tab2, tab0 AS cor0
----
1560
1620
2280

query I rowsort
SELECT ALL + col2 + - ( + 80 ) FROM tab0 AS cor0
----
-47
-79
2

query I rowsort
SELECT ALL + col0 + + ( 9 + col2 ) * ( - col2 ) * - col0 FROM tab1 AS cor0
----
10209
240832
806480

query I rowsort
SELECT + cor0.col1 * ( - ( cor0.col0 ) ) + ( + 98 + - col2 ) * col0 FROM tab0 AS cor0
----
-504
-6675
0

query I rowsort
SELECT DISTINCT + 65 + 72 FROM tab1 AS cor0
----
137

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5045
SELECT col0 * CAST( + 94 AS SIGNED ) FROM tab1
----
282
6016
7520

skipif mysql # not compatible
query I rowsort label-5045
SELECT col0 * CAST ( + 94 AS INTEGER ) FROM tab1
----
282
6016
7520

query I rowsort
SELECT + col1 + + ( 82 ) * + col1 AS col0 FROM tab2
----
1411
2573
4897

query I rowsort
SELECT col1 - 91 AS col1 FROM tab2
----
-32
-60
-74

query I rowsort
SELECT ALL col0 + + ( + col2 ) FROM tab1
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5049
SELECT DISTINCT tab2.col1 + + CAST( col2 AS SIGNED ) * col0 AS col2 FROM tab2
----
2087
220
3019

skipif mysql # not compatible
query I rowsort label-5049
SELECT DISTINCT tab2.col1 + + CAST ( col2 AS INTEGER ) * col0 AS col2 FROM tab2
----
2087
220
3019

query I rowsort
SELECT DISTINCT col2 + 89 FROM tab1
----
143
146
185

query I rowsort
SELECT DISTINCT + 38 * col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
2055
2230
3728

query I rowsort
SELECT col2 - 72 FROM tab2
----
-34
-45
-46

query I rowsort
SELECT ALL - - col2 * + col0 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT - - ( - col1 ) * - col2 + + col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + cor0.col0 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL cor0.col2 * col1 * - col0 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL + col1 + - col1 + col0 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( + col2 ) col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT - 47 AS col1 FROM tab1
----
-47

query I rowsort
SELECT DISTINCT 27 * col1 AS col1 FROM tab1
----
270
351
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) * - col1 col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - 68 AS col2 FROM tab0
----
-68

query I rowsort
SELECT - ( col1 ) * - col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT ALL - 28 + - col0 FROM tab2 AS cor0
----
-106
-107
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-5065
SELECT ALL 79 * + cor0.col2 + col1 * col0 DIV col0 + col1 * col1 FROM tab1 cor0
----
4613
4968
7766

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL 79 * + cor0.col2 + col1 * col0 / col0 + col1 * col1 FROM tab1 cor0
----
4613
4968
7766

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5066
SELECT DISTINCT + CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + col2 + col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
134
163
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5068
SELECT - CAST( + col1 AS SIGNED ) * - col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

skipif mysql # not compatible
query I rowsort label-5068
SELECT - CAST ( + col1 AS INTEGER ) * - col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT - ( 79 ) * col1 FROM tab0 AS cor0
----
-6794
-7189
-7663

query I rowsort
SELECT ALL ( col1 ) - col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT ( tab1.col2 ) + 55 * col2 - - col2 AS col2 FROM tab1
----
3078
3249
5472

query I rowsort
SELECT 9 * col0 FROM tab2 cor0
----
63
702
711

query I rowsort
SELECT DISTINCT + col0 * + col2 + ( col2 * cor0.col2 ) FROM tab1 AS cor0
----
16896
3078
6897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - 73 col1 FROM tab0 AS cor0
----
-1752
-2555
-6497

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5075
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5076
SELECT DISTINCT - col1 * CAST( 50 AS SIGNED ) FROM tab1 AS cor0
----
-1300
-500
-650

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT - col1 * CAST ( 50 AS INTEGER ) FROM tab1 AS cor0
----
-1300
-500
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-5077
SELECT cor0.col2 DIV + 89 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5077
SELECT cor0.col2 / + 89 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col0 + - 78 + col0 * col2 FROM tab2 AS cor0
----
104
1872
2845

query I rowsort
SELECT - - col2 * 11 + 74 FROM tab2 AS cor0
----
360
371
492

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5080
SELECT ALL col2 * - CAST( NULL AS DECIMAL ) + tab2.col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL col2 * - CAST ( NULL AS REAL ) + tab2.col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * col0 col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - - col0 + + col0 AS col2 FROM tab1 cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5083
SELECT DISTINCT - col1 + + col0 DIV 63 AS col2 FROM tab2 AS cor0
----
-16
-31
-58

skipif mysql # not compatible
query I rowsort label-5083
SELECT DISTINCT - col1 + + col0 / 63 AS col2 FROM tab2 AS cor0
----
-16
-31
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - ( + cor0.col1 ) col0 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5085
SELECT + col0 + + 46 DIV col1 AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5085
SELECT + col0 + + 46 / col1 AS col0 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5086
SELECT + col0 + ( ( col1 ) ) - - col2 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
30
75
94

skipif mysql # not compatible
query I rowsort label-5086
SELECT + col0 + ( ( col1 ) ) - - col2 / cor0.col2 AS col1 FROM tab1 AS cor0
----
30
75
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-5087
SELECT ALL - cor0.col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL - cor0.col1 / + col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 * + col2 + 79 FROM tab2 AS cor0
----
2107
268
3081

query I rowsort
SELECT ALL + cor0.col0 + ( + col1 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT col2 * 8 + - col2 AS col2 FROM tab0 cor0
----
231
574
7

query I rowsort
SELECT cor0.col2 * ( col1 ) AS col0 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT - cor0.col0 * 98 FROM tab1 AS cor0
----
-294
-6272
-7840

query I rowsort
SELECT + - cor1.col2 * cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f45a7edd86e3eccc832dcdb6123662

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5094
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 79 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5094
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 79 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL 98 * cor0.col0 FROM tab1, tab2 cor0
----
9 values hashing to e7a44491687dc8ab8596e721e62f3fad

query I rowsort
SELECT - ( col1 ) * col0 * tab0.col0 + col0 * col0 FROM tab0
----
-117600
-48960
-712890

query I rowsort
SELECT - 2 + + col2 * - col2 FROM tab0
----
-1091
-3
-6726

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5099
SELECT CAST( NULL AS SIGNED ) FROM tab0, tab1, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5099
SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab1, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5100
SELECT ALL - CAST( col2 AS SIGNED ) * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL - CAST ( col2 AS INTEGER ) * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - - col0 + 65 + + col2 FROM tab2 AS cor0
----
169
182
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5102
SELECT DISTINCT CAST( ( - col2 ) AS SIGNED ) + ( + col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT CAST ( ( - col2 ) AS INTEGER ) + ( + col2 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + 0 * - col1 * col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + tab0.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT - + 36 FROM tab0 AS cor0
----
-36

query I rowsort
SELECT cor0.col2 + cor0.col2 + ( + col1 ) FROM tab1 AS cor0
----
124
134
205

onlyif mysql # use DIV operator for integer division
query I rowsort label-5107
SELECT DISTINCT - col0 DIV - col1 col0 FROM tab2 cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5107
SELECT DISTINCT - col0 / - col1 col0 FROM tab2 cor0
----
0
1
4

query I rowsort
SELECT - col0 + - col1 * 87 FROM tab0 AS cor0
----
-7506
-8006
-8474

query I rowsort
SELECT - ( col0 * tab2.col0 ) AS col2 FROM tab2
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5110
SELECT DISTINCT + 42 * col1 + tab0.col2 DIV + tab0.col0 FROM tab0
----
3613
3822
4074

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT + 42 * col1 + tab0.col2 / + tab0.col0 FROM tab0
----
3613
3822
4074

query I rowsort
SELECT 32 + - 89 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

onlyif mysql # use DIV operator for integer division
query I rowsort label-5112
SELECT + ( - col0 ) DIV col0 + col0 col2 FROM tab1 cor0
----
2
63
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5112
SELECT + ( - col0 ) / col0 + col0 col2 FROM tab1 cor0
----
2
63
79

query I rowsort
SELECT col1 + - col0 * - col1 + + col1 AS col1 FROM tab0 AS cor0
----
2236
3589
8281

onlyif mysql # use DIV operator for integer division
query I rowsort label-5114
SELECT + col2 DIV - 73 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5114
SELECT + col2 / - 73 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 + - ( + ( - col1 ) * + col2 ) + + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-815
77
799

query I rowsort
SELECT - - col1 * - col2 * 10 AS col2 FROM tab2 AS cor0
----
-15340
-6460
-8370

query I rowsort
SELECT - + col1 * 31 AS col1 FROM tab1 AS cor0
----
-310
-403
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5118
SELECT + - col0 * CAST( - col2 AS SIGNED ) + + col1 DIV col1 AS col2 FROM tab1 cor0
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-5118
SELECT + - col0 * CAST ( - col2 AS INTEGER ) + + col1 / col1 AS col2 FROM tab1 cor0
----
163
3649
7681

query I rowsort
SELECT DISTINCT + cor0.col2 + col2 AS col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT ALL + col0 * 6 FROM tab2 AS cor0
----
42
468
474

query I rowsort
SELECT ALL - - cor0.col2 + - col1 * + col1 + - col1 FROM tab0 AS cor0
----
-7449
-8290
-9505

query I rowsort
SELECT - + col2 * col0 - + cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
-15360
-324
-7296

query I rowsort
SELECT - cor0.col0 * + col2 * - cor0.col2 - - ( cor0.col1 ) FROM tab2 AS cor0
----
114093
5134
52787

query I rowsort
SELECT + col2 + - 77 FROM tab1 AS cor0
----
-20
-23
19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5125
SELECT + CAST( NULL AS DECIMAL ) * + col2 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5125
SELECT + CAST ( NULL AS REAL ) * + col2 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col2 ) + + col2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT col1 * + 6 AS col1 FROM tab0
----
516
546
582

onlyif mysql # use DIV operator for integer division
query I rowsort label-5128
SELECT ALL - col1 DIV ( col0 ) + col2 AS col0 FROM tab0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL - col1 / ( col0 ) + col2 AS col0 FROM tab0
----
-1
30
81

query I rowsort
SELECT 24 + 6 FROM tab1 AS cor0
----
30
30
30

query I rowsort
SELECT + - 67 * - col2 * col0 FROM tab1 AS cor0
----
10854
244416
514560

query I rowsort
SELECT - - 62 - 94 FROM tab1 AS cor0
----
-32
-32
-32

query I rowsort
SELECT 95 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT ALL + + 88 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
1431
305
4690

query I rowsort
SELECT DISTINCT - + ( cor0.col1 ) AS col1 FROM tab1, tab1 AS cor0
----
-10
-13
-26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5135
SELECT ALL + + col1 + col0 + + CAST( + col0 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
107
1133
714

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL + + col1 + col0 + + CAST ( + col0 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
107
1133
714

query I rowsort
SELECT - + 88 + - col1 * col1 FROM tab0 AS cor0
----
-7484
-8369
-9497

query I rowsort
SELECT ALL - col2 * - col2 * - ( - col1 * + 29 ) + 32 FROM tab0
----
17744668
2715998
2845

query I rowsort
SELECT ALL col1 * + 29 + + col0 AS col0 FROM tab1
----
354
457
757

query I rowsort
SELECT DISTINCT + ( - col2 ) * + cor0.col0 - + col1 FROM tab1 AS cor0
----
-188
-3658
-7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( cor0.col1 ) * cor0.col2 + - ( - col1 ) + - col0 * col2 * col1 col1 FROM tab1 AS cor0
----
-2782
-35900
-98579

query I rowsort
SELECT 97 + 1 FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT ALL + col1 + + col1 * + cor0.col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT + + col2 - + col2 * - col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT col0 * + ( cor0.col1 ) + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-5145
SELECT DISTINCT + col1 * col1 DIV + ( - col2 ) + 45 col2 FROM tab1
----
33
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT + col1 * col1 / + ( - col2 ) + 45 col2 FROM tab1
----
33
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-5146
SELECT col0 DIV - 76 + col0 AS col2 FROM tab2
----
7
77
78

skipif mysql # not compatible
query I rowsort label-5146
SELECT col0 / - 76 + col0 AS col2 FROM tab2
----
7
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 28 col1 FROM tab2
----
-21
50
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-5148
SELECT - col2 DIV - col2 + 23 FROM tab0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-5148
SELECT - col2 / - col2 + 23 FROM tab0
----
24
24
24

query I rowsort
SELECT tab2.col0 + - col2 + - 84 FROM tab2
----
-104
-32
-43

query I rowsort
SELECT DISTINCT + ( 50 ) FROM tab0 AS cor0
----
50

query I rowsort
SELECT cor0.col1 AS col1 FROM tab0, tab2 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT ALL col0 - ( col2 ) FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT + ( - 57 ) + col0 FROM tab1 AS cor0
----
-54
23
7

query I rowsort
SELECT ALL - + 25 AS col1 FROM tab1 AS cor0
----
-25
-25
-25

query I rowsort
SELECT ALL cor0.col2 - col0 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT col0 * + ( + col2 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + + ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT 4 * 35 AS col2 FROM tab0 cor0
----
140
140
140

skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( - col1 AS REAL ) + - cor0.col2 * - col2 AS col0 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT + - col2 * + cor0.col1 * - col0 + + col0 FROM tab2 AS cor0
----
119730
51113
5866

onlyif mysql # use DIV operator for integer division
query I rowsort label-5161
SELECT DISTINCT col2 * tab0.col0 + - 95 DIV + col0 - - col2 * 92 AS col2 FROM tab0
----
125
14841
3825

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT col2 * tab0.col0 + - 95 / + col0 - - col2 * 92 AS col2 FROM tab0
----
125
14841
3825

onlyif mysql # use DIV operator for integer division
query I rowsort label-5162
SELECT + tab2.col0 + + col2 DIV 46 + 55 FROM tab2
----
133
134
62

skipif mysql # not compatible
query I rowsort label-5162
SELECT + tab2.col0 + + col2 / 46 + 55 FROM tab2
----
133
134
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col1 col2 FROM tab0, tab1 cor0
----
-86
-91
-97

query I rowsort
SELECT - - 37 + col0 FROM tab2 AS cor0
----
115
116
44

query I rowsort
SELECT - + 94 + col0 AS col2 FROM tab0 AS cor0
----
-5
-59
-70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5166
SELECT col1 + CAST( 23 AS SIGNED ) * col0 FROM tab2 AS cor0
----
1834
1853
192

skipif mysql # not compatible
query I rowsort label-5166
SELECT col1 + CAST ( 23 AS INTEGER ) * col0 FROM tab2 AS cor0
----
1834
1853
192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5167
SELECT ALL - col0 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL - col0 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5168
SELECT - - col2 DIV ( 46 ) FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5168
SELECT - - col2 / ( 46 ) FROM tab0 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5169
SELECT + col1 + CAST( 22 AS SIGNED ) FROM tab2 AS cor0
----
39
53
81

skipif mysql # not compatible
query I rowsort label-5169
SELECT + col1 + CAST ( 22 AS INTEGER ) FROM tab2 AS cor0
----
39
53
81

query I rowsort
SELECT DISTINCT + - col0 + - 39 AS col0 FROM tab0 cor0
----
-128
-63
-74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5171
SELECT - - col2 - CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5171
SELECT - - col2 - CAST ( NULL AS REAL ) * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5172
SELECT ALL + + col1 DIV cor0.col1 + - col0 * - col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
26137
36
598437

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL + + col1 / cor0.col1 + - col0 * - col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
26137
36
598437

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5173
SELECT + - col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5173
SELECT + - col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - col1 + - ( - cor0.col2 + col1 * 16 ) FROM tab0 AS cor0
----
6053
6907
7858

onlyif mysql # use DIV operator for integer division
query I rowsort label-5175
SELECT ALL col2 DIV 76 + - col0 * col1 FROM tab0 cor0
----
-2064
-3395
-8098

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL col2 / 76 + - col0 * col1 FROM tab0 cor0
----
-2064
-3395
-8098

query I rowsort
SELECT tab2.col2 + - 21 FROM tab2
----
17
5
6

query I rowsort
SELECT + col0 * ( + col1 ) * col0 + - col1 FROM tab0 AS cor0
----
118728
49450
720720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5178
SELECT + col2 / CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5178
SELECT + col2 / CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5179
SELECT - + cor0.col2 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5179
SELECT - + cor0.col2 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 * - cor0.col0 + 11 AS col2 FROM tab1 AS cor0
----
1051
651
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5181
SELECT ALL - cor0.col1 - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL - cor0.col1 - + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col2 + ( 19 * col2 ) FROM tab0 AS cor0
----
1476
18
594

query I rowsort
SELECT - + col2 * col0 + 73 * col2 FROM tab1 AS cor0
----
-672
3780
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-5184
SELECT ALL col1 DIV 44 AS col1 FROM tab0 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL col1 / 44 AS col1 FROM tab0 AS cor0
----
1
2
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5185
SELECT - col0 + col2 + col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5185
SELECT - col0 + col2 + col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( cor0.col0 ) * + col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + 15 FROM tab1, tab0 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT DISTINCT col1 + - col1 * - col0 FROM tab0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-5189
SELECT ALL + - col0 + - col2 * col0 DIV 6 - - col2 FROM tab0 AS cor0
----
-1223
-123
-39

skipif mysql # not compatible
query I rowsort label-5189
SELECT ALL + - col0 + - col2 * col0 / 6 - - col2 FROM tab0 AS cor0
----
-1223
-123
-39

query I rowsort
SELECT DISTINCT - col0 * col0 + col0 FROM tab0 cor0
----
-1190
-552
-7832

query I rowsort
SELECT - ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL ( + col1 ) + 25 * ( col1 * 63 ) FROM tab1 AS cor0
----
15760
20488
40976

query I rowsort
SELECT ( - col0 ) * col0 AS col2 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL + 32 + + col1 * + ( - 49 ) AS col2 FROM tab0 AS cor0
----
-4182
-4427
-4721

query I rowsort
SELECT DISTINCT - col0 + + col2 + col0 * + col2 * - col2 AS col0 FROM tab0 cor0
----
-26127
-598443
-69

query I rowsort
SELECT - cor1.col1 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT - 58 * col1 + + 75 FROM tab1
----
-1433
-505
-679

onlyif mysql # use DIV operator for integer division
query I rowsort label-5198
SELECT ALL col0 DIV - col0 + + col2 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL col0 / - col0 + + col2 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT ALL 9 * col1 + + col2 + + col0 AS col0 FROM tab1 AS cor0
----
211
291
293

query I rowsort
SELECT ALL - cor0.col1 * col0 + col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 + + col2 col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT 44 + - col1 AS col1 FROM tab0 AS cor0
----
-42
-47
-53

query I rowsort
SELECT - 2 * 39 + col2 FROM tab1
----
-21
-24
18

query I rowsort
SELECT + ( - 67 ) FROM tab1
----
-67
-67
-67

query I rowsort
SELECT ALL - 14 + 4 + col2 AS col1 FROM tab0 AS cor0
----
-9
23
72

query I rowsort
SELECT DISTINCT + ( + 34 + + col1 ) FROM tab1
----
44
47
60

query I rowsort
SELECT ALL + col2 * col1 + - col2 FROM tab2
----
1508
608
810

query I rowsort
SELECT DISTINCT - ( col0 ) + + tab1.col2 AS col2 FROM tab1
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-5209
SELECT DISTINCT + 6 + - col0 DIV 33 FROM tab1
----
4
5
6

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT + 6 + - col0 / 33 FROM tab1
----
4
5
6

query I rowsort
SELECT - ( - col1 + col1 ) FROM tab0
----
0
0
0

query I rowsort
SELECT 84 * - col0 AS col1 FROM tab2
----
-588
-6552
-6636

query I rowsort
SELECT DISTINCT ( col0 ) * - col2 * col0 + - col0 FROM tab1
----
-233536
-489
-614480

query I rowsort
SELECT ALL - - col1 + ( + col1 ) AS col2 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5214
SELECT tab2.col2 + 96 DIV col0 col2 FROM tab2
----
27
39
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5214
SELECT tab2.col2 + 96 / col0 col2 FROM tab2
----
27
39
40

query I rowsort
SELECT DISTINCT 2 AS col0 FROM tab1, tab1 AS cor0
----
2

query I rowsort
SELECT + + col0 + + col1 * + col2 AS col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT + col0 * + col0 + + 15 FROM tab0 AS cor0
----
1240
591
7936

query I rowsort
SELECT col1 - ( - col0 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + + col2 * col1 + cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
132
14760
3630

query I rowsort
SELECT + ( + 25 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5221
SELECT - col1 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5221
SELECT - col1 / cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * - ( ( + col1 ) ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL col2 * - col2 - 44 AS col1 FROM tab1
----
-2960
-3293
-9260

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5224
SELECT + CAST( NULL AS SIGNED ) * - col2 + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5224
SELECT + CAST ( NULL AS INTEGER ) * - col2 + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab2.col1 + ( col0 ) AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL - ( ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + + col1 * col2 + + cor0.col0 * - col2 AS col2 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT - col1 + ( + col2 ) * - 32 FROM tab0 AS cor0
----
-1142
-129
-2715

query I rowsort
SELECT - 47 + + col0 AS col1 FROM tab2 cor0
----
-40
31
32

query I rowsort
SELECT ( + col2 ) + + cor0.col2 AS col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + 23 + + col2 + - col0 FROM tab2 AS cor0
----
-18
-29
43

query I rowsort
SELECT - - 6 + + col2 * + 66 FROM tab1 AS cor0
----
3570
3768
6342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 + - cor0.col1 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + 22 AS col1 FROM tab2 AS cor0
----
39
53
81

query I rowsort
SELECT + col2 * col2 + col2 * col0 FROM tab1 cor0
----
16896
3078
6897

query I rowsort
SELECT + - col2 * - ( + 58 ) + + col0 * - ( - 31 ) * col2 AS col1 FROM tab2 AS cor0
----
64376
7425
95266

onlyif mysql # use DIV operator for integer division
query I rowsort label-5237
SELECT + - col2 DIV - 36 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5237
SELECT + - col2 / - 36 FROM tab1 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT - - cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
10
13
26

query I rowsort
SELECT ALL 58 - col2 AS col0 FROM tab1 AS cor0
----
-38
1
4

query I rowsort
SELECT ALL + + col1 + + col2 * col0 AS col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT + - col1 + - col1 - + col2 FROM tab2 AS cor0
----
-144
-72
-89

query I rowsort
SELECT DISTINCT - + col0 + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + cor0.col1 + + col2 AS col0 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL - col1 + + col0 * 95 AS col1 FROM tab2 AS cor0
----
634
7351
7488

query I rowsort
SELECT ALL + + 42 * - col2 FROM tab1 AS cor0
----
-2268
-2394
-4032

query I rowsort
SELECT DISTINCT col0 * col2 + + cor0.col0 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5247
SELECT DISTINCT + col2 + col2 DIV - col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT + col2 + col2 / - col2 FROM tab0 AS cor0
----
0
32
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5248
SELECT - ( - col0 ) DIV col1 + - col1 DIV col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5248
SELECT - ( - col0 ) / col1 + - col1 / col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 27 * + col2 AS col1 FROM tab2 AS cor0
----
1026
702
729

query I rowsort
SELECT 20 * col0 FROM tab2 AS cor0
----
140
1560
1580

query I rowsort
SELECT + col0 + col0 * + col1 AS col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT ALL + ( - col1 ) * col1 - - tab0.col0 * col1 FROM tab0
----
-182
-5332
-6014

query I rowsort
SELECT DISTINCT - col1 * - col2 - col0 AS col2 FROM tab1
----
1168
1401
506

query I rowsort
SELECT ALL col1 * col0 * + 76 + + col0 FROM tab0
----
156888
258055
615613

query I rowsort
SELECT 45 * - ( - cor0.col2 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8c033541caf69f6347023da0ef126f74

query I rowsort
SELECT + cor0.col2 * - col0 - 62 AS col0 FROM tab0 AS cor0
----
-7360
-854
-97

query I rowsort
SELECT - cor0.col2 + - col1 AS col2 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT 19 + 20 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT DISTINCT - + ( + 69 ) * - col2 FROM tab2 AS cor0
----
1794
1863
2622

query I rowsort
SELECT ( col1 ) + col2 * + col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL col0 + + col2 - + tab0.col2 AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT + ( 46 ) FROM tab0 cor0
----
46

query I rowsort
SELECT - cor0.col1 + 84 * col2 * col1 AS col1 FROM tab2 AS cor0
----
128797
54247
70277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 col0 FROM tab0 AS cor0
----
-78
-78
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5265
SELECT DISTINCT CAST( + col1 + + col0 AS SIGNED ) * - 20 * col1 AS col2 FROM tab2
----
-161660
-23560
-32640

skipif mysql # not compatible
query I rowsort label-5265
SELECT DISTINCT CAST ( + col1 + + col0 AS INTEGER ) * - 20 * col1 AS col2 FROM tab2
----
-161660
-23560
-32640

query I rowsort
SELECT ALL ( cor0.col2 ) * + col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL col1 + col2 * + cor0.col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + + col1 * 11 FROM tab1 AS cor0
----
110
143
286

query I rowsort
SELECT + col0 + + col2 * - col2 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT col1 + 41 FROM tab1 AS cor0
----
51
54
67

query I rowsort
SELECT - - 97 AS col2 FROM tab1 AS cor0
----
97
97
97

query I rowsort
SELECT - 15 * col1 * - ( + col2 ) + col1 * + col1 * col0 - - col2 FROM tab2 AS cor0
----
19309
294554
32559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 54 col2 FROM tab2 AS cor0
----
54

query I rowsort
SELECT + col1 * col0 + - cor0.col2 - - col0 AS col2 FROM tab2 AS cor0
----
1384
197
4654

query I rowsort
SELECT DISTINCT + + col1 * - col2 + col0 FROM tab2 cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL + col0 * - 23 + + 71 * + col2 FROM tab1 AS cor0
----
2575
3765
4976

query I rowsort
SELECT ALL 66 AS col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col1 col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT col2 + + 96 FROM tab0 AS cor0
----
129
178
97

query I rowsort
SELECT - col0 + 63 * + col0 AS col1 FROM tab1 AS cor0
----
186
3968
4960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5281
SELECT ALL - + col2 + CAST( NULL AS SIGNED ) * - cor0.col1 / + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL - + col2 + CAST ( NULL AS INTEGER ) * - cor0.col1 / + col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5282
SELECT DISTINCT - col2 + CAST( col2 AS SIGNED ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT - col2 + CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
0

query I rowsort
SELECT - ( - col2 ) * col0 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL - col1 * ( + cor0.col1 ) * - col2 + cor0.col0 FROM tab1 AS cor0
----
16304
36507
5764

query I rowsort
SELECT DISTINCT - cor0.col2 * 74 - + col0 AS col2 FROM tab1 AS cor0
----
-3999
-4282
-7184

query I rowsort
SELECT col0 + 74 AS col1 FROM tab2 AS cor0
----
152
153
81

query I rowsort
SELECT ALL ( 13 ) * col1 FROM tab0 AS cor0
----
1118
1183
1261

onlyif mysql # use DIV operator for integer division
query I rowsort label-5288
SELECT + 46 DIV col0 FROM tab1 cor0
----
0
0
15

skipif mysql # not compatible
query I rowsort label-5288
SELECT + 46 / col0 FROM tab1 cor0
----
0
0
15

query I rowsort
SELECT ALL + col1 + + 51 AS col0 FROM tab2 cor0
----
110
68
82

query I rowsort
SELECT DISTINCT ( + col0 ) + + col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT tab1.col1 + 40 AS col1 FROM tab1
----
50
53
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5292
SELECT - cor0.col0 + col2 * col1 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-5292
SELECT - cor0.col0 + col2 * col1 / cor0.col1 AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + ( col2 ) * col2 * - col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT - col1 + + col1 + col2 * + cor0.col0 * + col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT + col0 + - cor0.col0 * - col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT - col1 * - col1 + col1 + - col1 AS col1 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-5297
SELECT - col1 + col0 + col2 DIV - col1 FROM tab0 cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-5297
SELECT - col1 + col0 + col2 / - col1 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT ALL 69 * col2 FROM tab1
----
3726
3933
6624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 * col2 ) col2 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) * + col2 col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL + 52 * col1 + col2 * cor0.col2 FROM tab0 AS cor0
----
11456
5045
5561

onlyif mysql # use DIV operator for integer division
query I rowsort label-5302
SELECT DISTINCT ( col1 ) DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5302
SELECT DISTINCT ( col1 ) / - col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + ( ( - col1 ) ) FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5304
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - col2 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT + CAST ( NULL AS REAL ) + - col2 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5305
SELECT CAST( - 78 AS SIGNED ) FROM tab1 AS cor0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-5305
SELECT CAST ( - 78 AS INTEGER ) FROM tab1 AS cor0
----
-78
-78
-78

query I rowsort
SELECT ALL - col0 * col0 + - col2 FROM tab2
----
-6110
-6279
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5307
SELECT 0 DIV - col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5307
SELECT 0 / - col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 * + col0 + col0 FROM tab0 cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-5309
SELECT col0 DIV + 28 col2 FROM tab2
----
0
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5309
SELECT col0 / + 28 col2 FROM tab2
----
0
2
2

query I rowsort
SELECT col2 * 33 AS col2 FROM tab1
----
1782
1881
3168

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5311
SELECT DISTINCT CAST( - 73 AS SIGNED ) * col1 FROM tab1
----
-1898
-730
-949

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT CAST ( - 73 AS INTEGER ) * col1 FROM tab1
----
-1898
-730
-949

query I rowsort
SELECT 2 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 + 74 * + col1 * col1 col0 FROM tab0
----
547386
612876
696348

query I rowsort
SELECT ALL + tab0.col0 * col2 * - col0 + col2 FROM tab0
----
-1224
-18975
-649440

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE col2 - col2 >= + col0
----

query I rowsort
SELECT col2 - - col1 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + cor0.col0 * - col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 / - col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * col0 + col1 col0 FROM tab0 AS cor0
----
2150
3492
8190

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 INNER JOIN tab0 ON ( NULL ) >= ( NULL )
----

query I rowsort
SELECT + col2 * + tab1.col1 * col0 - col0 AS col1 FROM tab1
----
36416
4209
99760

query I rowsort
SELECT + tab0.col2 * - col2 * + tab0.col1 + col0 AS col1 FROM tab0
----
-611795
-62
-93630

query I rowsort
SELECT ALL - tab1.col2 + tab1.col0 + - tab1.col0 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL NOT IN ( - col0 )
----

query I rowsort
SELECT tab0.col0 * - col1 + tab0.col2 * col2 AS col0 FROM tab0
----
-1375
-3394
-975

query I rowsort
SELECT DISTINCT - col2 + col0 * tab2.col0 AS col2 FROM tab2
----
22
6058
6203

query I rowsort
SELECT - col2 * col0 + + col2 AS col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT tab2.col2 * + col1 * - col0 FROM tab2 WHERE NULL NOT IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + tab0.col2 * col2 * col2 + col1 col0 FROM tab0
----
133
36047
551548

onlyif mysql # use DIV operator for integer division
query I rowsort label-5331
SELECT DISTINCT col2 DIV col1 + col2 - col2 * + col2 * + col2 FROM tab2
----
-17550
-19656
-54832

skipif mysql # not compatible
query I rowsort label-5331
SELECT DISTINCT col2 / col1 + col2 - col2 * + col2 * + col2 FROM tab2
----
-17550
-19656
-54832

query I rowsort
SELECT ALL + col0 + + col1 + col0 * col0 FROM tab0
----
1357
686
8101

query I rowsort
SELECT DISTINCT - col1 + col2 + col0 AS col0 FROM tab1
----
111
163
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-5334
SELECT ALL - - col0 - col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL - - col0 - col1 / + col2 AS col0 FROM tab0 AS cor0
----
-62
22
88

query I rowsort
SELECT ALL col0 * - col0 * + tab0.col2 AS col1 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT tab1.col0 + - col1 AS col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT - col2 + + cor0.col2 * col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT + col2 * - cor0.col2 + - col1 AS col0 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT - col2 + - col1 * - col2 FROM tab2 cor0
----
1508
608
810

query I rowsort
SELECT + 31 FROM tab2, tab0 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + cor0.col2 col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + + ( 87 ) AS col0 FROM tab0 AS cor0
----
173
178
184

query I rowsort
SELECT ALL + + col0 + + 70 * 43 AS col1 FROM tab2 AS cor0
----
3017
3088
3089

query I rowsort
SELECT 52 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT ALL - col2 + col0 + ( - col2 * - col0 ) AS col2 FROM tab1 AS cor0
----
111
3655
7664

query I rowsort
SELECT ALL - col0 + 25 + - 42 AS col0 FROM tab1 cor0
----
-20
-81
-97

query I rowsort
SELECT DISTINCT - cor0.col1 * col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) + + col1 col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + ( 6 ) + + col1 FROM tab1 AS cor0
----
16
19
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-5350
SELECT ALL + 95 + + col2 DIV cor0.col2 FROM tab0 AS cor0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL + 95 + + col2 / cor0.col2 FROM tab0 AS cor0
----
96
96
96

query I rowsort
SELECT ALL - + 75 AS col1 FROM tab1 cor0
----
-75
-75
-75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5352
SELECT - + 21 + + col0 * + col0 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5352
SELECT - + 21 + + col0 * + col0 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col2 * + ( + col2 + - col2 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 59 * - col0 AS col1 FROM tab2 cor0
----
-413
-4602
-4661

query I rowsort
SELECT - col0 + 86 * + col1 FROM tab0
----
7372
7737
8307

query I rowsort
SELECT ALL col2 * - ( ( + col0 ) ) FROM tab1
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5357
SELECT - - 25 DIV 2 FROM tab2 AS cor0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-5357
SELECT - - 25 / 2 FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT DISTINCT + col1 - 73 AS col0 FROM tab2
----
-14
-42
-56

query I rowsort
SELECT DISTINCT col1 + col1 - col0 AS col2 FROM tab2
----
-45
40
55

query I rowsort
SELECT col0 + + 27 * - col0 - + col1 AS col1 FROM tab0
----
-1007
-2405
-710

onlyif mysql # use DIV operator for integer division
query I rowsort label-5361
SELECT ALL - col1 * - 97 - + 5 DIV col0 AS col1 FROM tab0
----
8342
8827
9409

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL - col1 * - 97 - + 5 / col0 AS col1 FROM tab0
----
8342
8827
9409

query I rowsort
SELECT col2 + ( - 42 ) FROM tab0
----
-41
-9
40

query I rowsort
SELECT ALL - 3 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166

query I rowsort
SELECT DISTINCT + + cor0.col2 * col0 + + col2 * - col1 * col2 + ( col2 ) AS col1 FROM tab2 AS cor0
----
-21508
-22383
-37830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 81 * - col0 col1 FROM tab1 AS cor0
----
-243
-5184
-6480

query I rowsort
SELECT ALL col1 + col1 * + 71 FROM tab0 AS cor0
----
6192
6552
6984

query I rowsort
SELECT ALL + 56 + 3 FROM tab1
----
59
59
59

query I rowsort
SELECT ALL 61 + + col2 AS col2 FROM tab2 AS cor0
----
87
88
99

query I rowsort
SELECT DISTINCT - 34 + col1 FROM tab0 cor0
----
52
57
63

query I rowsort
SELECT - 46 + + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1490
-722
-775

onlyif mysql # use DIV operator for integer division
query I rowsort label-5371
SELECT ALL 25 * col2 DIV + CAST( 50 AS SIGNED ) + + col0 + col2 FROM tab1 AS cor0
----
149
224
84

skipif mysql # not compatible
query I rowsort label-5371
SELECT ALL 25 * col2 / + CAST ( 50 AS INTEGER ) + + col0 + col2 FROM tab1 AS cor0
----
149
224
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 col1 FROM tab2 cor0
----
-46
-46
-46

query I rowsort
SELECT ALL + 37 * col0 AS col1 FROM tab2 AS cor0
----
259
2886
2923

query I rowsort
SELECT 54 - col0 FROM tab0
----
-35
19
30

query I rowsort
SELECT DISTINCT - col1 + - 8 FROM tab2 cor0
----
-25
-39
-67

query I rowsort
SELECT 42 + + 54 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT - col1 * + 44 AS col1 FROM tab2 AS cor0
----
-1364
-2596
-748

query I rowsort
SELECT + + col2 * - col2 FROM tab0 cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5379
SELECT col1 * + col0 + 4 DIV + col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-5379
SELECT col1 * + col0 + 4 / + col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5380
SELECT - col2 + CAST( - col0 AS SIGNED ) * - col0 AS col0 FROM tab1 AS cor0
----
-45
4039
6304

skipif mysql # not compatible
query I rowsort label-5380
SELECT - col2 + CAST ( - col0 AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT ( col0 ) + + col2 FROM tab1
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + col1 + 65 AS col0 FROM tab2
----
124
82
96

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
26
27
38

query I rowsort
SELECT DISTINCT - - col2 + + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - + col1 + 36 AS col2 FROM tab1 AS cor0
----
10
23
26

query I rowsort
SELECT ALL - col0 + col2 + 27 FROM tab2 AS cor0
----
-14
-25
47

query I rowsort
SELECT + cor0.col0 * - 98 * col0 FROM tab1 AS cor0
----
-401408
-627200
-882

query I rowsort
SELECT ALL - - col0 * - col2 + col1 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + - cor0.col0 - col1 FROM tab0 AS cor0
----
-110
-132
-180

onlyif mysql # use DIV operator for integer division
query I rowsort label-5391
SELECT DISTINCT + - cor0.col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5391
SELECT DISTINCT + - cor0.col0 / - col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - 0 * + 18 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + cor0.col0 ) * + col2 - ( col0 ) col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT + cor0.col1 * 50 - col0 FROM tab0 AS cor0
----
4276
4461
4815

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 + + col1 col2 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT DISTINCT ( - col2 ) * - col0 * + col1 AS col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT - 34 + 14 * + col0 FROM tab0 AS cor0
----
1212
302
456

query I rowsort
SELECT DISTINCT - 52 + - ( - col2 * + 60 ) AS col0 FROM tab2
----
1508
1568
2228

query I rowsort
SELECT DISTINCT - + col1 * col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5400
SELECT + + cor0.col0 * cor0.col1 + - CAST( cor0.col0 AS SIGNED ) * + col1 * col2 + - col2 AS col0 FROM tab1 AS cor0
----
-35897
-4188
-98896

skipif mysql # not compatible
query I rowsort label-5400
SELECT + + cor0.col0 * cor0.col1 + - CAST ( cor0.col0 AS INTEGER ) * + col1 * col2 + - col2 AS col0 FROM tab1 AS cor0
----
-35897
-4188
-98896

onlyif mysql # use DIV operator for integer division
query I rowsort label-5401
SELECT DISTINCT + + ( col0 ) DIV + col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-5401
SELECT DISTINCT + + ( col0 ) / + col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT DISTINCT + 45 AS col2 FROM tab0, tab1, tab1 cor0
----
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5403
SELECT DISTINCT col1 * col2 + - tab1.col1 DIV ( col2 + col1 ) FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-5403
SELECT DISTINCT col1 * col2 + - tab1.col1 / ( col2 + col1 ) FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5404
SELECT ALL - - col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL - - col0 / + col2 AS col1 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - col2 + - col1 AS col0 FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT col1 + ( - col2 + + 97 ) AS col1 FROM tab1
----
14
50
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5407
SELECT DISTINCT + col2 + CAST( + 48 AS SIGNED ) FROM tab1 AS cor0
----
102
105
144

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT + col2 + CAST ( + 48 AS INTEGER ) FROM tab1 AS cor0
----
102
105
144

query I rowsort
SELECT ALL + cor0.col1 + col0 FROM tab2 cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5409
SELECT cor0.col2 DIV col1 + col2 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-5409
SELECT cor0.col2 / col1 + col2 FROM tab2 AS cor0
----
26
27
40

query I rowsort
SELECT + col2 * - 5 + col2 AS col2 FROM tab1 AS cor0
----
-216
-228
-384

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5411
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) + col0 * + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) + col0 * + col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5412
SELECT ALL - col2 * + CAST( NULL AS SIGNED ) + 13 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-5412
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) + 13 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 + - col0 * - col0 AS col0 FROM tab2 AS cor0
----
18
6025
6224

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col0 AS REAL ) * + col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 59 col0 FROM tab2 AS cor0
----
1534
1593
2242

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 74 col2 FROM tab2 AS cor0
----
-518
-5772
-5846

query I rowsort
SELECT 45 * - col2 AS col0 FROM tab0 AS cor0
----
-1485
-3690
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 * col0 col2 FROM tab2 AS cor0
----
203
2262
2291

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5419
SELECT CAST( - cor0.col1 AS SIGNED ) col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5419
SELECT CAST ( - cor0.col1 AS INTEGER ) col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 + + col0 col2 FROM tab2
----
15
86
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 - + 56 col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to cbe9949da55693755f35818b1f6e856f

query I rowsort
SELECT + cor0.col2 * + 56 FROM tab2 AS cor0
----
1456
1512
2128

query I rowsort
SELECT ALL ( - 65 ) * - col0 * - col2 + col1 FROM tab1 AS cor0
----
-10504
-237110
-499187

query I rowsort
SELECT + 17 + - ( cor0.col2 ) FROM tab0 cor0
----
-16
-65
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col2 * + cor0.col2 col1 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT + 87 + + col1 FROM tab2 AS cor0
----
104
118
146

query I rowsort
SELECT + cor0.col0 * col2 * - 76 FROM tab1 cor0
----
-12312
-277248
-583680

query I rowsort
SELECT ALL + 63 * cor0.col0 FROM tab2 AS cor0
----
441
4914
4977

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 AS col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + + 76 * col0 FROM tab2 cor0
----
532
5928
6004

query I rowsort
SELECT DISTINCT ( + col1 ) * tab2.col0 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL - 8 FROM tab0, tab2 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT ALL - col2 * col1 + 57 AS col0 FROM tab1 cor0
----
-1191
-1347
-513

query I rowsort
SELECT + - col2 * + 64 FROM tab0 AS cor0
----
-2112
-5248
-64

query I rowsort
SELECT ALL + + col2 - col1 FROM tab2 cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-5436
SELECT + cor0.col1 DIV ( + cor0.col0 * col0 ) + 92 FROM tab2 AS cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-5436
SELECT + cor0.col1 / ( + cor0.col0 * col0 ) + 92 FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT + col1 * col0 + col2 * cor0.col0 AS col2 FROM tab1 cor0
----
240
4288
8720

query I rowsort
SELECT + - cor0.col0 + + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT col1 * col0 - col0 AS col0 FROM tab1
----
576
75
960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5440
SELECT - col0 * - col0 + CAST( col1 AS SIGNED ) * col1 AS col0 FROM tab0
----
10634
16202
7972

skipif mysql # not compatible
query I rowsort label-5440
SELECT - col0 * - col0 + CAST ( col1 AS INTEGER ) * col1 AS col0 FROM tab0
----
10634
16202
7972

query I rowsort
SELECT ( tab0.col1 + + 39 ) FROM tab0
----
125
130
136

query I rowsort
SELECT 18 * - col0 * - col2 AS col1 FROM tab2
----
3402
36504
54036

query I rowsort
SELECT DISTINCT - - col0 + col2 * col2 * 59 AS col2 FROM tab0 cor0
----
396805
64275
94

query I rowsort
SELECT ALL - col1 * - cor0.col0 AS col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - - col0 + 50 FROM tab1 AS cor0
----
114
130
53

query I rowsort
SELECT DISTINCT - - col0 + 58 * + col2 FROM tab0 AS cor0
----
1938
4845
93

query I rowsort
SELECT col2 + - col0 * + col1 * col2 AS col1 FROM tab2 AS cor0
----
-119626
-50996
-5832

onlyif mysql # use DIV operator for integer division
query I rowsort label-5448
SELECT DISTINCT - cor0.col2 * - 76 + - col1 DIV col2 AS col1 FROM tab0 AS cor0
----
-21
2506
6231

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT - cor0.col2 * - 76 + - col1 / col2 AS col1 FROM tab0 AS cor0
----
-21
2506
6231

onlyif mysql # use DIV operator for integer division
query I rowsort label-5449
SELECT DISTINCT - col1 + + ( - col1 ) DIV + col0 FROM tab1 AS cor0
----
-10
-13
-34

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT - col1 + + ( - col1 ) / + col0 FROM tab1 AS cor0
----
-10
-13
-34

query I rowsort
SELECT DISTINCT + cor0.col2 * 48 FROM tab1 AS cor0
----
2592
2736
4608

onlyif mysql # use DIV operator for integer division
query I rowsort label-5451
SELECT DISTINCT col0 DIV - 75 - 27 * col2 * + 42 FROM tab2 AS cor0
----
-29485
-30618
-43093

skipif mysql # not compatible
query I rowsort label-5451
SELECT DISTINCT col0 / - 75 - 27 * col2 * + 42 FROM tab2 AS cor0
----
-29485
-30618
-43093

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 * 67 col1 FROM tab2 cor0
----
1742
1809
2546

onlyif mysql # use DIV operator for integer division
query I rowsort label-5453
SELECT ALL - col0 DIV ( - 6 ) AS col2 FROM tab0 AS cor0
----
14
4
5

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL - col0 / ( - 6 ) AS col2 FROM tab0 AS cor0
----
14
4
5

query I rowsort
SELECT + - col2 + - 91 * 9 AS col0 FROM tab0 AS cor0
----
-820
-852
-901

query I rowsort
SELECT DISTINCT col0 + col1 * - col2 FROM tab0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 * col0 col0 FROM tab1
----
-13520
-2028
-6400

query III rowsort
SELECT * FROM tab0 WHERE col1 + col1 <= ( NULL )
----

query I rowsort
SELECT ALL col2 + col0 * - col0 AS col0 FROM tab0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT tab1.col2 * - tab1.col1 * col0 AS col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NULL NOT BETWEEN ( - col2 ) AND ( NULL )
----

query I rowsort
SELECT + col2 * col2 * + tab1.col2 FROM tab1
----
157464
185193
884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-5462
SELECT col1 + col1 DIV col2 + - tab1.col2 AS col1 FROM tab1
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-5462
SELECT col1 + col1 / col2 + - tab1.col2 AS col1 FROM tab1
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5463
SELECT - col1 DIV col0 + - col0 col1 FROM tab1
----
-11
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5463
SELECT - col1 / col0 + - col0 col1 FROM tab1
----
-11
-64
-80

query I rowsort
SELECT ALL + 48 * + 33 - cor0.col0 AS col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 6c00c007154165ae63886cdc2790453c

query I rowsort
SELECT DISTINCT ( + col1 ) + col1 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5466
SELECT + col1 + + col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
17
34
59

skipif mysql # not compatible
query I rowsort label-5466
SELECT + col1 + + col2 / + col0 AS col1 FROM tab2 AS cor0
----
17
34
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5467
SELECT DISTINCT - 68 DIV col0 FROM tab1 AS cor0
----
-1
-22
0

skipif mysql # not compatible
query I rowsort label-5467
SELECT DISTINCT - 68 / col0 FROM tab1 AS cor0
----
-1
-22
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 * ( col2 ) col1 FROM tab2 cor0
----
-10982
-25947
-90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5469
SELECT DISTINCT - col2 DIV - col2 + - col1 + + col0 * + col1 * col0 FROM tab0
----
118729
49451
720721

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT - col2 / - col2 + - col1 + + col0 * + col1 * col0 FROM tab0
----
118729
49451
720721

query I rowsort
SELECT DISTINCT + col1 * + col1 + + col2 FROM tab1 WHERE NOT NULL BETWEEN ( + col2 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 * col0 col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT ALL tab1.col2 * tab1.col0 + col2 * col2 FROM tab1
----
16896
3078
6897

query I rowsort
SELECT + col1 + + col1 + col2 * - col0 FROM tab2
----
-127
-1910
-2968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 + col0 * col1 * + col2 col1 FROM tab0
----
3397
664282
68178

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) > ( + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5476
SELECT col0 + col0 DIV col0 - col1 * - col2 AS col2 FROM tab1
----
1329
1408
635

skipif mysql # not compatible
query I rowsort label-5476
SELECT col0 + col0 / col0 - col1 * - col2 AS col2 FROM tab1
----
1329
1408
635

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 + + col0 / col2 ) NOT IN ( - col2 )
----

query I rowsort
SELECT ALL col1 * + col1 + - col0 + col2 * col0 AS col2 FROM tab2
----
1143
3212
5431

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + cor0.col0 + col2 * 94 * col1 col1 FROM tab1 AS cor0
----
110912
131967
49484

query I rowsort
SELECT DISTINCT cor0.col0 + col0 * - 85 FROM tab2 AS cor0
----
-588
-6552
-6636

query I rowsort
SELECT + 16 + col2 * 63 AS col0 FROM tab0 AS cor0
----
2095
5182
79

query I rowsort
SELECT DISTINCT + - cor0.col2 + - col0 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT ALL + - col1 * col0 + ( col0 ) FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT - 2 * - cor0.col0 + - ( + 97 + - col0 ) FROM tab1 AS cor0
----
-88
143
95

query I rowsort
SELECT ALL - col2 * col1 + 54 AS col2 FROM tab2 AS cor0
----
-1480
-592
-783

query I rowsort
SELECT DISTINCT - 30 * + col0 AS col2 FROM tab1 AS cor0
----
-1920
-2400
-90

query I rowsort
SELECT ( + col2 ) + + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL + - col2 + col1 * + cor0.col1 AS col1 FROM tab2 cor0
----
251
3455
934

query I rowsort
SELECT + - 82 + col1 AS col2 FROM tab1 cor0
----
-56
-69
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-5490
SELECT ALL col1 DIV - col1 + + col1 AS col0 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-5490
SELECT ALL col1 / - col1 + + col1 AS col0 FROM tab1 AS cor0
----
12
25
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5491
SELECT CAST( NULL AS DECIMAL ) * - col1 + col2 * - 31 + - col2 * - col0 * + ( col0 ) col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5491
SELECT CAST ( NULL AS REAL ) * - col1 + col2 * - 31 + - col2 * - col0 * + ( col0 ) col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 + - col1 col1 FROM tab1 AS cor0
----
-107
-110
-123

query I rowsort
SELECT ALL 12 * cor1.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to f80e96a021b3122225d7aa4643e0ae0c

query I rowsort
SELECT DISTINCT - 27 AS col0 FROM tab1 AS cor0
----
-27

query I rowsort
SELECT ALL + + 57 * - col1 * cor0.col2 FROM tab1 AS cor0
----
-32490
-71136
-80028

onlyif mysql # use DIV operator for integer division
query I rowsort label-5496
SELECT DISTINCT + tab1.col0 DIV 30 FROM tab1, tab1 cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-5496
SELECT DISTINCT + tab1.col0 / 30 FROM tab1, tab1 cor0
----
0
2

query I rowsort
SELECT col0 + ( - 57 ) AS col0 FROM tab0
----
-22
-33
32

query I rowsort
SELECT 29 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ALL + 94 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT + col2 * + col2 * col2 FROM tab1
----
157464
185193
884736

query I rowsort
SELECT - 28 + - 90 + tab2.col1 FROM tab2
----
-101
-59
-87

query I rowsort
SELECT + col2 + col2 * col0 * 17 AS col2 FROM tab1
----
130656
2808
62073

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5503
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 95 AS col2 FROM tab0 AS cor0
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 col0 FROM tab2 AS cor0
----
99
99
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5506
SELECT + CAST( NULL AS SIGNED ) + col0 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5506
SELECT + CAST ( NULL AS INTEGER ) + col0 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * 76 AS col2 FROM tab1
----
1976
760
988

query I rowsort
SELECT ALL - col0 * + 86 AS col0 FROM tab0 AS cor0
----
-2064
-3010
-7654

query I rowsort
SELECT - 95 + - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1343
-1499
-665

query I rowsort
SELECT ALL + - 62 + 27 FROM tab1 cor0
----
-35
-35
-35

query I rowsort
SELECT cor0.col1 + cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f65167375aa80cc8b3f3f8987d2662a3

query I rowsort
SELECT col1 + col2 * col0 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT ALL - - cor0.col2 + - ( - col2 ) * - col0 + + 8 * - 95 FROM tab2 AS cor0
----
-2762
-3724
-922

query I rowsort
SELECT ALL col0 * col2 * col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 cor2
----
81 values hashing to adaea38eae032c1639715f21831dd376

onlyif mysql # use DIV operator for integer division
query I rowsort label-5516
SELECT + col1 DIV ( 81 ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5516
SELECT + col1 / ( 81 ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 col1 FROM tab1, tab2 AS cor0, tab0, tab1 cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5518
SELECT ALL - + ( col2 ) DIV col1 + 16 AS col0 FROM tab2 AS cor0
----
14
16
16

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL - + ( col2 ) / col1 + 16 AS col0 FROM tab2 AS cor0
----
14
16
16

query I rowsort
SELECT DISTINCT - col1 * - col1 - + cor0.col1 * - col1 AS col0 FROM tab0 AS cor0
----
14792
16562
18818

query I rowsort
SELECT + + 55 * cor0.col1 FROM tab2 AS cor0
----
1705
3245
935

query I rowsort
SELECT + 25 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 + col0 col1 FROM tab0
----
102
37
48

query I rowsort
SELECT 14 - tab0.col0 * - ( + tab0.col1 ) FROM tab0
----
2078
3409
8113

query I rowsort
SELECT DISTINCT 65 + 61 FROM tab2, tab0 AS cor0
----
126

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + + col0 - col1 col2 FROM tab0 AS cor0
----
-63
-84
-95

query I rowsort
SELECT DISTINCT - col1 * + col2 * - col1 AS col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT - 45 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371

query I rowsort
SELECT col1 + - 14 * col0 + col2 FROM tab0 AS cor0
----
-1073
-217
-392

query I rowsort
SELECT ALL - cor0.col0 * 71 + + 5 AS col1 FROM tab1 cor0
----
-208
-4539
-5675

query I rowsort
SELECT ALL + col2 + - 55 - col0 * ( col1 + col0 ) AS col2 FROM tab2
----
-10715
-294
-7601

query I rowsort
SELECT ALL col0 - + ( - col0 ) FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT + ( col1 ) + + cor0.col1 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5533
SELECT ( col0 ) DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5533
SELECT ( col0 ) / - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5534
SELECT + + col1 + col0 DIV 90 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5534
SELECT + + col1 + col0 / 90 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 + + col0 * col0 col1 FROM tab2 AS cor0
----
12168
12482
98

query I rowsort
SELECT col0 * col0 * + 4 FROM tab0 AS cor0
----
2304
31684
4900

query I rowsort
SELECT DISTINCT 14 + + col1 * - ( + col0 ) FROM tab0 AS cor0
----
-2050
-3381
-8085

query I rowsort
SELECT + + ( col2 ) * cor0.col0 + - 71 FROM tab2 AS cor0
----
118
1957
2931

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 + col1 col2 FROM tab0 AS cor0
----
37
42
48

query I rowsort
SELECT + + col0 * - col2 * cor0.col2 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-114038
-5076
-52702

query I rowsort
SELECT - col2 * col0 + col2 * - col0 * - col0 FROM tab2 AS cor0
----
1134
156156
234156

query I rowsort
SELECT 72 + tab2.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 343af8049d2e5c4b0973462fda5b85f4

query I rowsort
SELECT 55 * col2 + - col0 FROM tab0
----
1791
20
4421

query I rowsort
SELECT - ( col1 ) * col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL + col1 * - ( col2 * - col2 ) - 29 * col0 FROM tab0
----
-918
609303
92958

query I rowsort
SELECT ( - 39 ) FROM tab1
----
-39
-39
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ALL cor0.col2 + + cor0.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 71bdffb602517a95c6721e05f7b4b3dd

onlyif mysql # use DIV operator for integer division
query I rowsort label-5549
SELECT ALL - CAST( - col1 AS SIGNED ) DIV col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-5549
SELECT ALL - CAST ( - col1 AS INTEGER ) / col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT + ( col0 ) + + col1 * col2 AS col0 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT ALL - + 8 + - col1 FROM tab2 AS cor0
----
-25
-39
-67

query I rowsort
SELECT 10 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT ALL + 72 FROM tab0, tab0 cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL tab2.col2 * - col0 + - col1 AS col0 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT + 88 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5556
SELECT DISTINCT CAST( NULL AS SIGNED ) / + ( col1 + + col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + ( col1 + + col2 ) FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5557
SELECT - col2 DIV col0 + + col1 * - col2 FROM tab2
----
-1534
-646
-840

skipif mysql # not compatible
query I rowsort label-5557
SELECT - col2 / col0 + + col1 * - col2 FROM tab2
----
-1534
-646
-840

query I rowsort
SELECT - 99 * + ( - col0 * col1 + + 83 ) FROM tab0
----
196119
327888
793584

query I rowsort
SELECT DISTINCT + 12 AS col1 FROM tab1
----
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-5560
SELECT ALL + col2 DIV - col0 AS col1 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL + col2 / - col0 AS col1 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT + col2 + 73 AS col0 FROM tab0 AS cor0
----
106
155
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-5562
SELECT DISTINCT col1 + - col1 * col0 DIV - 88 AS col1 FROM tab0 AS cor0
----
109
135
183

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT col1 + - col1 * col0 / - 88 AS col1 FROM tab0 AS cor0
----
109
135
183

query I rowsort
SELECT ALL - 86 - col1 FROM tab0
----
-172
-177
-183

query I rowsort
SELECT ALL - col2 - col0 * + col1 AS col0 FROM tab1
----
-1136
-132
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-5565
SELECT DISTINCT + col1 * col0 - col1 DIV + col2 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT + col1 * col0 - col1 / + col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT - col2 + - tab2.col1 - + col0 FROM tab2
----
-134
-163
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-5567
SELECT ALL - + col2 DIV + CAST( col2 AS SIGNED ) + col1 AS col1 FROM tab0 cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL - + col2 / + CAST ( col2 AS INTEGER ) + col1 AS col1 FROM tab0 cor0
----
85
90
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( + 98 ) col1 FROM tab1 AS cor0
----
294
6272
7840

query I rowsort
SELECT - cor0.col2 + - 17 * col0 FROM tab0 AS cor0
----
-1595
-441
-596

query I rowsort
SELECT ALL + + col2 * cor0.col2 - + 48 AS col1 FROM tab2 AS cor0
----
1396
628
681

query I rowsort
SELECT ALL + - col0 + + 8 AS col0 FROM tab0 AS cor0
----
-16
-27
-81

query I rowsort
SELECT DISTINCT - + col1 - + 92 AS col1 FROM tab1 AS cor0
----
-102
-105
-118

query I rowsort
SELECT ALL - col2 * + 84 AS col1 FROM tab1 AS cor0
----
-4536
-4788
-8064

query I rowsort
SELECT DISTINCT + + col1 + + 93 * - 60 AS col2 FROM tab2 AS cor0
----
-5521
-5549
-5563

query I rowsort
SELECT - cor0.col0 + 54 * - 11 FROM tab2 AS cor0
----
-601
-672
-673

query I rowsort
SELECT DISTINCT - + col0 * + col0 + col0 * col0 AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL - + col1 * 25 AS col2 FROM tab2 cor0
----
-1475
-425
-775

query I rowsort
SELECT + + col0 * + col1 - col1 AS col1 FROM tab1 AS cor0
----
1027
52
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 - - cor0.col2 col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - col1 + 0 * 35 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT + col1 + 88 * - 62 * + col1 FROM tab1 AS cor0
----
-141830
-54550
-70915

query I rowsort
SELECT ALL + col1 + 36 AS col2 FROM tab2 AS cor0
----
53
67
95

query I rowsort
SELECT + col2 + + 36 - col2 AS col2 FROM tab1 cor0
----
36
36
36

query I rowsort
SELECT DISTINCT + 11 * 1 AS col0 FROM tab1, tab2 AS cor0
----
11

query I rowsort
SELECT DISTINCT + cor0.col0 * - col0 + col2 FROM tab2 cor0
----
-22
-6058
-6203

query I rowsort
SELECT - col0 * + 75 + - col1 - - col0 FROM tab1 cor0
----
-248
-4746
-5933

query I rowsort
SELECT - - col0 + - ( - col2 ) * col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT col0 * col1 * + col1 + cor0.col2 - - col0 FROM tab0 AS cor0
----
177561
329351
737180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 col0 FROM tab0, tab2 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5590
SELECT col0 DIV - cor0.col1 AS col2 FROM tab1 cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-5590
SELECT col0 / - cor0.col1 AS col2 FROM tab1 cor0
----
-6
-6
0

query I rowsort
SELECT + col2 * 95 AS col1 FROM tab1 AS cor0
----
5130
5415
9120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5592
SELECT - CAST( col0 AS SIGNED ) + col2 * - 98 FROM tab1 AS cor0
----
-5295
-5650
-9488

skipif mysql # not compatible
query I rowsort label-5592
SELECT - CAST ( col0 AS INTEGER ) + col2 * - 98 FROM tab1 AS cor0
----
-5295
-5650
-9488

query I rowsort
SELECT ALL - 61 * - col1 AS col2 FROM tab1 cor0
----
1586
610
793

query I rowsort
SELECT ALL - + cor0.col0 * col0 + col1 * col2 AS col1 FROM tab1 AS cor0
----
-3526
-5152
1395

query I rowsort
SELECT DISTINCT - col2 - + 37 FROM tab1 cor0
----
-133
-91
-94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5596
SELECT DISTINCT - - CAST( - 8 AS SIGNED ) - col0 AS col1 FROM tab2 AS cor0
----
-15
-86
-87

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT - - CAST ( - 8 AS INTEGER ) - col0 AS col1 FROM tab2 AS cor0
----
-15
-86
-87

query I rowsort
SELECT col1 * - cor0.col2 + col0 FROM tab2 cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL col2 * - 86 + 67 FROM tab0
----
-19
-2771
-6985

query I rowsort
SELECT - + ( col0 ) * + col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 68 + col2 col1 FROM tab0 AS cor0
----
2277
5658
69

query I rowsort
SELECT + col0 + col1 * col2 AS col1 FROM tab0 cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-5602
SELECT DISTINCT - col0 * - col2 DIV col2 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT - col0 * - col2 / col2 AS col1 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5603
SELECT - 28 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5603
SELECT - 28 / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col2 * - col1 + + ( col0 ) AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5606
SELECT 30 DIV + cor0.col0 col2 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5606
SELECT 30 / + cor0.col0 col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - ( tab0.col1 + col1 ) FROM tab0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT - col2 * col0 * 64 AS col0 FROM tab0 AS cor0
----
-2240
-467072
-50688

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5609
SELECT DISTINCT col0 + col2 * - CAST( + ( - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
70
7387
816

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT col0 + col2 * - CAST ( + ( - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - - col2 * col2 + - cor0.col2 FROM tab0 AS cor0
----
0
1056
6642

onlyif mysql # use DIV operator for integer division
query I rowsort label-5611
SELECT cor0.col0 DIV col1 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-5611
SELECT cor0.col0 / col1 FROM tab1 AS cor0
----
0
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5612
SELECT + col2 DIV - 4 FROM tab2 AS cor0
----
-6
-6
-9

skipif mysql # not compatible
query I rowsort label-5612
SELECT + col2 / - 4 FROM tab2 AS cor0
----
-6
-6
-9

query I rowsort
SELECT + - 98 + - ( - col1 ) * ( + col0 ) FROM tab1 AS cor0
----
-20
542
942

query I rowsort
SELECT + col1 * col0 + - col2 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT ALL - 84 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT - cor0.col0 * - col0 * + col2 AS col1 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT 29 * + 83 FROM tab1
----
2407

query I rowsort
SELECT col1 * - ( col1 ) + col2 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT ALL + 73 * col0 + col1 FROM tab1
----
245
4682
5853

query I rowsort
SELECT - 82 * - col1 AS col2 FROM tab2
----
1394
2542
4838

onlyif mysql # use DIV operator for integer division
query I rowsort label-5621
SELECT DISTINCT - col2 DIV 65 AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5621
SELECT DISTINCT - col2 / 65 AS col2 FROM tab1
----
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5622
SELECT ALL + CAST( NULL AS SIGNED ) + - 60 * cor0.col1 * 13 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL + CAST ( NULL AS INTEGER ) + - 60 * cor0.col1 * 13 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5623
SELECT ALL 90 DIV + cor0.col1 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL 90 / + cor0.col1 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT col2 + - 78 FROM tab2 cor0
----
-40
-51
-52

query I rowsort
SELECT ALL 11 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 288f8fb62e079d095c14d7cf3e2d3359

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5626
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 8 * + cor0.col2 + col0 FROM tab2 AS cor0
----
-130
-209
-225

query I rowsort
SELECT ALL - ( - col1 ) * - cor0.col2 + + cor0.col2 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL - cor1.col2 * - cor1.col1 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7623ebe74018211e6a4da91fc8c37d6d

query I rowsort
SELECT + col2 + + col2 - col2 AS col2 FROM tab1
----
54
57
96

query I rowsort
SELECT - tab0.col1 + + col2 * + ( col1 ) FROM tab0
----
0
2752
7371

query I rowsort
SELECT DISTINCT ( - 94 ) + + col0 AS col1 FROM tab2
----
-15
-16
-87

query I rowsort
SELECT col1 + - col1 + - tab1.col1 * + col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT 86 + col1 FROM tab1 AS cor0
----
112
96
99

query I rowsort
SELECT ALL + cor0.col2 + - col1 * + col1 * + 24 FROM tab2 AS cor0
----
-23037
-6898
-83518

onlyif mysql # use DIV operator for integer division
query I rowsort label-5636
SELECT DISTINCT - + 91 DIV col2 + + col1 * col2 AS col2 FROM tab1 AS cor0
----
1248
1403
569

skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT - + 91 / col2 + + col1 * col2 AS col2 FROM tab1 AS cor0
----
1248
1403
569

query I rowsort
SELECT - 82 + - col0 AS col1 FROM tab0 AS cor0
----
-106
-117
-171

query I rowsort
SELECT - cor0.col2 + + ( + 85 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 80a6599d1b9efaabaa562d64c418084b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-49

query I rowsort
SELECT DISTINCT + col1 * + col1 * col1 AS col1 FROM tab1
----
1000
17576
2197

query I rowsort
SELECT 79 * cor0.col0 FROM tab0 AS cor0
----
1896
2765
7031

query I rowsort
SELECT - col1 * 90 + - col2 * - cor0.col2 - - col1 AS col2 FROM tab0 AS cor0
----
-1375
-6565
-8632

query I rowsort
SELECT col0 + + col2 * cor0.col2 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT + col2 + - 41 AS col2 FROM tab0 AS cor0
----
-40
-8
41

query I rowsort
SELECT - col1 - col2 * cor0.col2 * + col0 FROM tab0 AS cor0
----
-132
-26222
-598527

query I rowsort
SELECT DISTINCT + 20 * - col0 FROM tab2
----
-140
-1560
-1580

query I rowsort
SELECT col0 + - col2 - cor0.col1 AS col0 FROM tab1 AS cor0
----
-29
-3
-77

query I rowsort
SELECT DISTINCT - col2 + + col0 * + col0 AS col1 FROM tab1 AS cor0
----
-45
4039
6304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * col0 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT cor0.col1 + + col2 * + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT 71 + - col1 FROM tab2 AS cor0
----
12
40
54

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - - 85 + + col2 FROM tab2 AS cor0
----
111
112
123

onlyif mysql # use DIV operator for integer division
query I rowsort label-5654
SELECT DISTINCT + 38 + - col1 DIV 19 FROM tab2 AS cor0
----
35
37
38

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT + 38 + - col1 / 19 FROM tab2 AS cor0
----
35
37
38

query I rowsort
SELECT ALL 43 + col1 FROM tab0 cor0
----
129
134
140

query I rowsort
SELECT - + 73 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 2931474b870c05694e446771031a6949

query I rowsort
SELECT DISTINCT - col2 * ( 83 ) FROM tab2 AS cor0
----
-2158
-2241
-3154

query I rowsort
SELECT - - cor0.col0 * - 84 AS col1 FROM tab1 AS cor0
----
-252
-5376
-6720

query I rowsort
SELECT ALL - 42 + + col1 * + 15 AS col2 FROM tab1
----
108
153
348

query I rowsort
SELECT 66 - col2 * 56 AS col1 FROM tab2
----
-1390
-1446
-2062

query I rowsort
SELECT + tab1.col0 * + col1 * ( - col1 ) + col0 + col0 FROM tab1
----
-13360
-2022
-6272

query I rowsort
SELECT DISTINCT + col2 * - 20 + col2 + + 73 FROM tab0 AS cor0
----
-1485
-554
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 68 col2 FROM tab2 AS cor0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 + col1 col1 FROM tab2 AS cor0
----
106
120
148

query I rowsort
SELECT + + 76 * col1 + + col2 AS col0 FROM tab1 AS cor0
----
1084
2030
817

query I rowsort
SELECT ALL - col1 * + col0 + + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL cor0.col1 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT col0 * ( col2 ) * tab2.col0 + ( + 63 ) FROM tab2
----
1386
158247
237221

query I rowsort
SELECT + col2 + ( col1 ) FROM tab1
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col0 * + col2 col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT + col0 - 11 FROM tab1
----
-8
53
69

query I rowsort
SELECT 83 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab1 AS cor2
----
13122 values hashing to 5d3d9b9f6590cf85d0680cb4b4db9235

query I rowsort
SELECT col2 + + cor0.col2 * - col0 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 - + 21 col2 FROM tab2 AS cor0
----
17
5
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5676
SELECT DISTINCT + - col0 DIV + cor0.col0 col0 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT + - col0 / + cor0.col0 col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - ( + col2 ) + - col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT + cor0.col0 * 7 AS col0 FROM tab1 AS cor0
----
21
448
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-5679
SELECT ALL + ( - ( - col0 ) ) DIV + CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-5679
SELECT ALL + ( - ( - col0 ) ) / + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT - - ( col1 ) + - col2 * col2 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT - + cor0.col1 + col1 * - col1 * - col2 AS col0 FROM tab2 AS cor0
----
10965
25916
90447

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 1 col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * col0 - + col2 col1 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT + + col1 * - col0 AS col2 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ( - 75 ) AS col2 FROM tab1
----
-75
-75
-75

query I rowsort
SELECT col0 * 33 FROM tab0 cor0
----
1155
2937
792

query I rowsort
SELECT tab2.col2 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col0 + - col1 AS REAL ) FROM tab0
----
-2
-62
-62

query I rowsort
SELECT ALL - 38 * + col1 AS col0 FROM tab1
----
-380
-494
-988

query I rowsort
SELECT ALL - - ( + col0 ) + + 61 + - col1 FROM tab2 AS cor0
----
123
37
80

query I rowsort
SELECT DISTINCT + 1 - + col0 * - cor0.col1 FROM tab0 AS cor0
----
2065
3396
8100

query I rowsort
SELECT ALL col1 * + col2 * 95 + + col2 * col0 FROM tab1 AS cor0
----
126240
133542
57798

query I rowsort
SELECT - ( + 89 ) FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

onlyif mysql # use DIV operator for integer division
query I rowsort label-5694
SELECT + + col0 + 2 + col1 DIV col0 AS col0 FROM tab2 AS cor0
----
13
80
81

skipif mysql # not compatible
query I rowsort label-5694
SELECT + + col0 + 2 + col1 / col0 AS col0 FROM tab2 AS cor0
----
13
80
81

query I rowsort
SELECT + col2 * cor0.col1 + col2 + col0 FROM tab0 AS cor0
----
133
2895
7633

onlyif mysql # use DIV operator for integer division
query I rowsort label-5696
SELECT ALL + col2 + 73 DIV col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL + col2 + 73 / col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + cor0.col0 + 32 FROM tab0 AS cor0
----
121
56
67

query I rowsort
SELECT + col1 * + ( + cor0.col0 ) * + col0 + col1 + + 89 AS col2 FROM tab0 AS cor0
----
119011
49711
720991

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5699
SELECT + - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5699
SELECT + - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - ( + 16 ) AS col1 FROM tab0 AS cor0
----
-1376
-1456
-1552

onlyif mysql # use DIV operator for integer division
query I rowsort label-5701
SELECT ALL + col2 DIV col0 + col2 * + col1 + col1 col2 FROM tab2 AS cor0
----
1593
663
871

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL + col2 / col0 + col2 * + col1 + col1 col2 FROM tab2 AS cor0
----
1593
663
871

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5703
SELECT + - CAST( NULL AS SIGNED ) * - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5703
SELECT + - CAST ( NULL AS INTEGER ) * - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5704
SELECT CAST( NULL AS SIGNED ) * - 50 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5704
SELECT CAST ( NULL AS INTEGER ) * - 50 FROM tab2 cor0
----
NULL
NULL
NULL

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab1 cor1, tab0 cor2
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7

query I rowsort
SELECT ALL + 60 - - col2 * + col1 * col0 FROM tab1 AS cor0
----
36540
4272
99900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col1 ) col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT ALL ( - col0 ) + + col1 AS col2 FROM tab0 AS cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 col2 FROM tab0 AS cor0
----
97
97
97

query I rowsort
SELECT - - col1 + col1 * cor0.col0 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT col0 + ( + col1 ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + 5 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 + 16 col1 FROM tab2
----
-62
-63
9

query I rowsort
SELECT - col1 * - col2 * + col2 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT - cor0.col2 * + col1 + - col0 * ( - cor0.col2 + + col1 ) FROM tab2 AS cor0
----
-4108
-865
1013

query I rowsort
SELECT ALL 61 * + col0 FROM tab1 AS cor0
----
183
3904
4880

query I rowsort
SELECT + - 42 + 77 FROM tab1 cor0
----
35
35
35

query I rowsort
SELECT DISTINCT - - ( cor0.col1 ) AS col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL + + col2 * - ( cor0.col2 ) FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5720
SELECT + CAST( NULL AS SIGNED ) + + 11 / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5720
SELECT + CAST ( NULL AS INTEGER ) + + 11 / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5721
SELECT DISTINCT - cor0.col0 DIV + col1 FROM tab1 AS cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT - cor0.col0 / + col1 FROM tab1 AS cor0
----
-6
0

query I rowsort
SELECT - - ( 23 ) * col0 AS col1 FROM tab2 AS cor0
----
161
1794
1817

query I rowsort
SELECT + 65 + 41 FROM tab2 cor0
----
106
106
106

query I rowsort
SELECT 8 AS col1 FROM tab1 cor0
----
8
8
8

query I rowsort
SELECT ALL - 15 * + tab1.col2 * - tab1.col2 FROM tab1
----
138240
43740
48735

query I rowsort
SELECT ( + cor1.col2 ) + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0a9ba7ddbb78279db2d78308414e03c9

query I rowsort
SELECT 93 * col2 AS col0 FROM tab1 AS cor0
----
5022
5301
8928

onlyif mysql # use DIV operator for integer division
query I rowsort label-5728
SELECT - 54 * col0 DIV + col0 FROM tab2 AS cor0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-5728
SELECT - 54 * col0 / + col0 FROM tab2 AS cor0
----
-54
-54
-54

query I rowsort
SELECT + + 37 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT 35 * - col1 AS col1 FROM tab2
----
-1085
-2065
-595

query I rowsort
SELECT ALL + - cor0.col2 * 88 * col1 AS col0 FROM tab1 AS cor0
----
-109824
-123552
-50160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5732
SELECT DISTINCT col0 + - CAST( 83 AS SIGNED ) FROM tab0 AS cor0
----
-48
-59
6

skipif mysql # not compatible
query I rowsort label-5732
SELECT DISTINCT col0 + - CAST ( 83 AS INTEGER ) FROM tab0 AS cor0
----
-48
-59
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5733
SELECT ALL - cor0.col1 + CAST( - col2 AS SIGNED ) * col0 + + 10 * col0 FROM tab0 AS cor0
----
-638
-6499
218

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL - cor0.col1 + CAST ( - col2 AS INTEGER ) * col0 + + 10 * col0 FROM tab0 AS cor0
----
-638
-6499
218

query I rowsort
SELECT + cor0.col0 * + 28 FROM tab1 AS cor0
----
1792
2240
84

query I rowsort
SELECT ALL col2 + + 64 AS col0 FROM tab1 AS cor0
----
118
121
160

query I rowsort
SELECT + col1 * 12 + col2 - + col0 * col0 FROM tab0 AS cor0
----
-60
-6747
489

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( col0 ) col1 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + col0 + col0 * 31 * + col0 FROM tab1 AS cor0
----
127040
198480
282

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5739
SELECT cor0.col2 * + CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-5739
SELECT cor0.col2 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + - col2 + - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-121
-176
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5741
SELECT ALL + col1 DIV + col2 + - col1 AS col0 FROM tab0 cor0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL + col1 / + col2 + - col1 AS col0 FROM tab0 cor0
----
-84
-90
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5742
SELECT ALL + col0 * col0 + 77 DIV cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
4154
6496
88

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL + col0 * col0 + 77 / cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
4154
6496
88

query I rowsort
SELECT DISTINCT col0 + - ( - 98 ) FROM tab0 AS cor0
----
122
133
187

query I rowsort
SELECT 76 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5745
SELECT + 13 DIV col2 + + cor0.col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5745
SELECT + 13 / col2 + + cor0.col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + + col2 * - col2 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT DISTINCT col1 + - col2 * col2 FROM tab1 cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT 49 AS col2 FROM tab0, tab1 AS cor0
----
49

query I rowsort
SELECT 41 + + col2 * ( tab2.col0 * + tab2.col2 + col2 ) FROM tab2
----
115561
53445
5873

query I rowsort
SELECT + 76 - col2 FROM tab0
----
-6
43
75

query I rowsort
SELECT - - col2 + - col1 * + 37 * + col2 AS col1 FROM tab0 AS cor0
----
-104973
-276012
-3588

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 >= NULL
----

query I rowsort
SELECT DISTINCT col0 * + col0 + col2 AS col2 FROM tab1
----
4153
63
6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col2 + col1 col1 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT + col0 * col1 * col0 + + col2 AS col2 FROM tab2
----
106135
1546
358982

onlyif mysql # use DIV operator for integer division
query I rowsort label-5756
SELECT ALL - col2 DIV col0 + col0 col1 FROM tab2
----
4
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL - col2 / col0 + col0 col1 FROM tab2
----
4
78
79

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 + + col0 col2 FROM tab2
----
196
2106
3081

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT BETWEEN NULL AND ( - col0 * col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT + col0 * col1 FROM tab2 WHERE NULL <= - col0 * col2
----

query I rowsort
SELECT - + 58 AS col2 FROM tab1 AS cor0
----
-58
-58
-58

query I rowsort
SELECT + cor0.col2 * col0 * ( - col0 ) + + col1 AS col1 FROM tab0 AS cor0
----
-1128
-18922
-649431

query I rowsort
SELECT DISTINCT + + 68 AS col0 FROM tab0 AS cor0
----
68

query I rowsort
SELECT ALL - col0 + + cor0.col1 * + cor0.col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL - col2 * col0 - - col2 * - 33 AS col0 FROM tab0 AS cor0
----
-10004
-1881
-68

query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col1 * col2 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-5767
SELECT + col0 + - col1 DIV - col1 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-5767
SELECT + col0 + - col1 / - col1 FROM tab1
----
4
65
81

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT NULL BETWEEN col1 * - col1 AND ( col2 - + col1 )
----

query I rowsort
SELECT col0 * tab1.col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL col2 + col1 + cor0.col0 FROM tab1 AS cor0
----
131
189
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5771
SELECT ALL - col2 + col0 DIV + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL - col2 + col0 / + cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - col2 + col1 * col0 * col2 FROM tab0 AS cor0
----
3394
664036
68079

query I rowsort
SELECT DISTINCT - col0 * col1 * - col0 AS col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT - col2 * - col0 + col2 + + col1 AS col1 FROM tab2 AS cor0
----
2113
247
3057

query I rowsort
SELECT ALL - tab0.col2 + - col1 FROM tab0 WHERE NULL >= - col1 + col0
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 * + col0 BETWEEN NULL AND - col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5777
SELECT ALL - col2 + col0 DIV col0 AS col1 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL - col2 + col0 / col0 AS col1 FROM tab0
----
-32
-81
0

query I rowsort
SELECT ALL - tab1.col1 + - col2 AS col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE - col1 NOT BETWEEN col1 / - col0 AND NULL
----
-26
-27
-38

query I rowsort
SELECT col1 + - col1 * col2 + col1 * col0 FROM tab2 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + col2 col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * + col0 col0 FROM tab2
----
1360
248
4661

query I rowsort
SELECT - col1 FROM tab1 WHERE NULL IN ( col1 * - col2 + col1 * tab1.col1 )
----

query I rowsort
SELECT ALL - col1 - col2 * col2 FROM tab1
----
-2942
-3259
-9229

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( tab2.col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5786
SELECT + col1 DIV + col0 AS col0 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5786
SELECT + col1 / + col0 AS col0 FROM tab2
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + col0 * + tab1.col1 col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 - col2 * + col0 AND col2
----

query I rowsort
SELECT 52 + - col0 * + col2 FROM tab2 AS cor0
----
-137
-1976
-2950

query I rowsort
SELECT - tab2.col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT ALL + 34 * col1 AS col0 FROM tab0
----
2924
3094
3298

query I rowsort
SELECT 1 * + cor0.col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT 78 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

query I rowsort
SELECT + col0 + 5 * col2 AS col2 FROM tab2 AS cor0
----
142
208
269

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 * cor0.col2 col1 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT - 45 + col1 AS col2 FROM tab0
----
41
46
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 + - col2 col0 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT cor0.col2 * 8 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to b3cc505eab83c555b7f6b3b95d58f4b7

query I rowsort
SELECT + col1 + + col2 * 80 AS col1 FROM tab2 AS cor0
----
2139
2191
3057

query I rowsort
SELECT ALL - cor0.col2 + col2 * + col0 AS col0 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL + col1 + ( col2 + cor0.col2 ) FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT DISTINCT - cor0.col1 * 59 AS col0 FROM tab2 AS cor0
----
-1003
-1829
-3481

query I rowsort
SELECT + cor0.col2 * 3 + - 88 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1382
-2647
-5114

query I rowsort
SELECT DISTINCT - col1 - col0 * ( - col0 * col0 ) FROM tab2 AS cor0
----
312
474493
493022

onlyif mysql # use DIV operator for integer division
query I rowsort label-5804
SELECT - col2 DIV 3 + col2 FROM tab0 AS cor0
----
1
22
55

skipif mysql # not compatible
query I rowsort label-5804
SELECT - col2 / 3 + col2 FROM tab0 AS cor0
----
1
22
55

query I rowsort
SELECT ALL + col2 + + 57 * - ( - col1 ) AS col0 FROM tab2 AS cor0
----
1007
1794
3389

query I rowsort
SELECT DISTINCT + 84 * + col0 AS col2 FROM tab0 AS cor0
----
2016
2940
7476

onlyif mysql # use DIV operator for integer division
query I rowsort label-5807
SELECT ALL col2 DIV + col1 + col1 * ( + col2 ) AS col0 FROM tab1
----
1255
1406
575

skipif mysql # not compatible
query I rowsort label-5807
SELECT ALL col2 / + col1 + col1 * ( + col2 ) AS col0 FROM tab1
----
1255
1406
575

query I rowsort
SELECT + - col1 + col1 * - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5809
SELECT + col1 DIV - col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-5809
SELECT + col1 / - col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT ALL - 69 + col1 + col1 AS col1 FROM tab2 AS cor0
----
-35
-7
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 col0 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT ALL - 82 * + col1 * - col1 + col2 * col0 FROM tab2 AS cor0
----
26700
287470
78991

query I rowsort
SELECT DISTINCT - ( 6 ) AS col0 FROM tab1
----
-6

query I rowsort
SELECT ALL - 91 FROM tab1, tab1 cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - ( col2 ) AS REAL ) FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort
SELECT CAST ( ( - col2 ) AS REAL ) AS col1 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + - 47 * + 71 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-3337

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 + col2 * - ( col1 * - col0 ) - 44 col1 FROM tab0
----
3386
664163
68092

query I rowsort
SELECT - cor0.col1 + cor0.col1 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - + col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT 83 + col2 FROM tab2 AS cor0
----
109
110
121

query I rowsort
SELECT 65 * + col2 * + col0 + - col2 AS col1 FROM tab1 AS cor0
----
10476
237063
499104

query I rowsort
SELECT - + 59 - col0 AS col2 FROM tab0 AS cor0
----
-148
-83
-94

query I rowsort
SELECT + 95 AS col0 FROM tab2 cor0
----
95
95
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5825
SELECT CAST( 44 AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

skipif mysql # not compatible
query I rowsort label-5825
SELECT CAST ( 44 AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # use DIV operator for integer division
query I rowsort label-5826
SELECT - - col1 DIV 64 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5826
SELECT - - col1 / 64 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5827
SELECT DISTINCT + col0 + CAST( col1 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-576
-75
-960

skipif mysql # not compatible
query I rowsort label-5827
SELECT DISTINCT + col0 + CAST ( col1 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT 65 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 1654646feeae82f39d2f564fe4ea26c2

query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-5830
SELECT ALL cor1.col1 DIV ( cor0.col1 ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6aa38063843c25ccc2614b163963587a

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL cor1.col1 / ( cor0.col1 ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6aa38063843c25ccc2614b163963587a

query I rowsort
SELECT + 4 + col0 AS col0 FROM tab2 AS cor0
----
11
82
83

query I rowsort
SELECT + col0 * 66 AS col1 FROM tab1 AS cor0
----
198
4224
5280

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to 7a2f620d56640e95048dfa9a4cf93159

query I rowsort
SELECT ALL tab0.col0 * 0 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + col0 * - col2 + col2 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL 27 + + col1 * + col2 FROM tab1 AS cor0
----
1275
1431
597

query I rowsort
SELECT + - ( - 98 ) AS col0 FROM tab0 AS cor0
----
98
98
98

query I rowsort
SELECT + 60 * col1 AS col0 FROM tab0 AS cor0
----
5160
5460
5820

query I rowsort
SELECT - + col1 * 60 AS col1 FROM tab1 AS cor0
----
-1560
-600
-780

query I rowsort
SELECT ALL - + col1 * cor0.col2 * - col1 + col1 AS col1 FROM tab1 AS cor0
----
16237
36530
5710

query I rowsort
SELECT DISTINCT + - 56 AS col1 FROM tab2 AS cor0
----
-56

query I rowsort
SELECT DISTINCT + - 93 * - col0 FROM tab0 AS cor0
----
2232
3255
8277

query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + - 17 AS col0 FROM tab0 AS cor0
----
-17

query I rowsort
SELECT ALL + 43 * col0 - 97 FROM tab0 AS cor0
----
1408
3730
935

query I rowsort
SELECT ALL - ( - col2 ) * col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + col2 * + col2 * col2 AS col1 FROM tab2
----
17576
19683
54872

query I rowsort
SELECT ALL - 77 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5849
SELECT ALL - - col1 * CAST( col2 AS SIGNED ) + - col2 * - col1 * - col2 AS col1 FROM tab2 AS cor0
----
-21762
-23902
-38350

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL - - col1 * CAST ( col2 AS INTEGER ) + - col2 * - col1 * - col2 AS col1 FROM tab2 AS cor0
----
-21762
-23902
-38350

query I rowsort
SELECT - - col2 * 29 FROM tab0 AS cor0
----
2378
29
957

query I rowsort
SELECT DISTINCT cor1.col2 + - 59 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-21
-32
-33

onlyif mysql # use DIV operator for integer division
query I rowsort label-5852
SELECT DISTINCT + ( tab1.col0 + - col0 ) DIV col1 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5852
SELECT DISTINCT + ( tab1.col0 + - col0 ) / col1 AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col1 + 19 AS col2 FROM tab0 AS cor0
----
105
110
116

query I rowsort
SELECT + col0 + ( col0 ) * - col1 * ( + ( + col1 ) + - col0 ) AS col1 FROM tab0 AS cor0
----
-127944
-16109
-210455

query I rowsort
SELECT col2 * - 47 + - cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
-2616
-3319
-5552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + + col0 * + 15 + + col0 col2 FROM tab2 AS cor0
----
1222
1226
85

query I rowsort
SELECT ALL + - ( 55 ) + col2 * 84 FROM tab0 AS cor0
----
2717
29
6833

query I rowsort
SELECT + - 95 AS col1 FROM tab1 AS cor0
----
-95
-95
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + - col1 * col1 col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( ( - col0 ) AS REAL ) + cor0.col1 * - col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-22910
-271596
-6734

query I rowsort
SELECT ALL col2 + + 64 * + col0 FROM tab0
----
1569
2241
5778

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5862
SELECT ALL + col0 * + CAST( NULL AS SIGNED ) * tab1.col1 + + col2 * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL + col0 * + CAST ( NULL AS INTEGER ) * tab1.col1 + + col2 * col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - + 62 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col1 col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT col0 * + col2 + - cor0.col1 * - cor0.col2 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT - ( 84 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT + 53 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT DISTINCT - col1 + col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT DISTINCT + 64 AS col0 FROM tab0, tab0 AS cor0
----
64

query I rowsort
SELECT DISTINCT + + col2 * 86 + + col0 AS col2 FROM tab0 AS cor0
----
121
2862
7141

query I rowsort
SELECT ALL - col0 - + 98 AS col1 FROM tab1 cor0
----
-101
-162
-178

onlyif mysql # use DIV operator for integer division
query I rowsort label-5872
SELECT DISTINCT - col1 DIV + 78 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT - col1 / + 78 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5873
SELECT DISTINCT col0 DIV + 54 AS col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT col0 / + 54 AS col0 FROM tab2 AS cor0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5874
SELECT DISTINCT - cor0.col1 DIV - 58 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT - cor0.col1 / - 58 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + cor0.col0 + 3 * - col0 - col0 FROM tab1 AS cor0
----
-192
-240
-9

query I rowsort
SELECT + ( - col0 ) * + col1 + col2 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL - col1 * 44 AS col2 FROM tab1 AS cor0
----
-1144
-440
-572

query I rowsort
SELECT DISTINCT 38 * + 40 AS col0 FROM tab2 cor0
----
1520

query I rowsort
SELECT col0 * + 49 AS col1 FROM tab0 AS cor0
----
1176
1715
4361

query I rowsort
SELECT DISTINCT - col1 * - col0 + cor0.col1 * 15 AS col0 FROM tab1 AS cor0
----
1235
468
790

query I rowsort
SELECT DISTINCT cor0.col0 * 2 * col1 AS col1 FROM tab0 cor0
----
16198
4128
6790

query I rowsort
SELECT 16 * col1 AS col0 FROM tab1 cor0
----
160
208
416

query I rowsort
SELECT 48 + - col2 AS col1 FROM tab1 AS cor0
----
-48
-6
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 * - 67 - col1 col0 FROM tab2 AS cor0
----
-12694
-135935
-201151

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5885
SELECT ALL + - col2 * + col2 + CAST( - 19 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-10736
-2973
-4465

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL + - col2 * + col2 + CAST ( - 19 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-10736
-2973
-4465

query I rowsort
SELECT DISTINCT + 67 FROM tab1 cor0
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) + - col2 col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col0 + col0 + 61 AS col1 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT ALL + col2 + - cor0.col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-5890
SELECT ALL - col2 DIV col0 + - col0 + - tab2.col0 FROM tab2
----
-156
-158
-17

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL - col2 / col0 + - col0 + - tab2.col0 FROM tab2
----
-156
-158
-17

query I rowsort
SELECT ALL col2 * - tab2.col2 + col2 * tab2.col0 * col1 FROM tab2
----
118976
49590
5130

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5892
SELECT ALL - CAST( NULL AS SIGNED ) + + tab2.col2 * col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL - CAST ( NULL AS INTEGER ) + + tab2.col2 * col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 17 * - col1 AS col1 FROM tab1 AS cor0
----
-170
-221
-442

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5894
SELECT col0 + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5894
SELECT col0 + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 + col2 * - cor0.col1 col2 FROM tab1 AS cor0
----
-1220
-1376
-542

query I rowsort
SELECT DISTINCT + - 56 * cor0.col1 AS col0 FROM tab0 cor0
----
-4816
-5096
-5432

query I rowsort
SELECT ALL - ( + col1 ) * + col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col1 + - 3 + + col2 * ( col2 + col1 ) * + col0 FROM tab2
----
10990
165124
172436

query I rowsort
SELECT ( + col0 ) * - 72 + col2 + + col0 FROM tab0 cor0
----
-1671
-2484
-6237

query I rowsort
SELECT - 9 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5

query I rowsort
SELECT 45 * + col2 AS col0 FROM tab2 AS cor0
----
1170
1215
1710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + - col2 + cor0.col0 col2 FROM tab1 cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 col1 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT - cor0.col0 * + col0 AS col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT col1 * + 92 + col0 + col1 AS col1 FROM tab0 cor0
----
8022
8552
9056

query I rowsort
SELECT + + col2 * + col1 + col1 * + col0 FROM tab1 AS cor0
----
1210
1482
2288

query I rowsort
SELECT - - col0 + - ( 86 ) * - col2 FROM tab0 AS cor0
----
121
2862
7141

query I rowsort
SELECT + 27 + col1 FROM tab0
----
113
118
124

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5909
SELECT col0 + + col1 * - CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
-36
-673
-89

skipif mysql # not compatible
query I rowsort label-5909
SELECT col0 + + col1 * - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT + - 50 + 85 FROM tab1 cor0
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col1 FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT + col0 * cor0.col0 + col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT + - col2 * ( - col0 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - - 86 * - 52 AS col1 FROM tab2 AS cor0
----
-4472
-4472
-4472

query I rowsort
SELECT DISTINCT + 48 + col2 * + col2 FROM tab0 AS cor0
----
1137
49
6772

query I rowsort
SELECT DISTINCT + ( - 76 ) * col1 AS col2 FROM tab2 AS cor0
----
-1292
-2356
-4484

query I rowsort
SELECT - + 44 * col0 AS col2 FROM tab2 AS cor0
----
-308
-3432
-3476

onlyif mysql # use DIV operator for integer division
query I rowsort label-5918
SELECT ALL + - cor0.col1 + cor0.col1 DIV - col2 AS col0 FROM tab0 cor0
----
-194
-88
-92

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL + - cor0.col1 + cor0.col1 / - col2 AS col0 FROM tab0 cor0
----
-194
-88
-92

query I rowsort
SELECT - ( col0 ) * col0 - + 43 * - col1 AS col1 FROM tab0 AS cor0
----
-4008
2946
3122

query I rowsort
SELECT + col1 + + ( tab2.col2 ) AS col1 FROM tab2
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5921
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab1, tab2, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-5921
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab1, tab2, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT - 76 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT + col2 + + tab0.col0 + tab0.col2 * - ( ( col0 ) ) * col2 AS col0 FROM tab0
----
-26079
-598265
1

query I rowsort
SELECT DISTINCT 90 + tab1.col1 + + col2 FROM tab1
----
157
170
199

query I rowsort
SELECT ALL - col2 + cor0.col2 * + col0 AS col2 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT - col0 * ( col0 ) AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + - 25 * col0 + + col0 AS col2 FROM tab0 AS cor0
----
-2136
-576
-840

query I rowsort
SELECT - col0 + + 98 FROM tab2 AS cor0
----
19
20
91

query I rowsort
SELECT - col0 * - ( col0 + col0 ) * + cor0.col1 FROM tab2 AS cor0
----
212194
3038
717912

query I rowsort
SELECT - col0 * - 97 AS col2 FROM tab2 AS cor0
----
679
7566
7663

onlyif mysql # use DIV operator for integer division
query I rowsort label-5931
SELECT ( 90 * cor0.col2 ) + 1 DIV - 90 FROM tab0, tab1 AS cor0
----
9 values hashing to d7b5fad5288a7bcff71018a7f839fb52

skipif mysql # not compatible
query I rowsort label-5931
SELECT ( 90 * cor0.col2 ) + 1 / - 90 FROM tab0, tab1 AS cor0
----
9 values hashing to d7b5fad5288a7bcff71018a7f839fb52

query I rowsort
SELECT ALL - - col2 + col1 * - col0 FROM tab2 cor0
----
-1305
-190
-4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5933
SELECT ALL + CAST( NULL AS SIGNED ) + - col2 * cor0.col2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL + CAST ( NULL AS INTEGER ) + - col2 * cor0.col2 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 3 AS col0 FROM tab2 cor0
----
3
3
3

query I rowsort
SELECT ALL col0 + - ( cor0.col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 14 + cor0.col2 * col2 FROM tab2 AS cor0
----
1458
690
743

query I rowsort
SELECT DISTINCT - col2 * - col0 - col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 27 col2 FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT 26 * ( - col1 ) FROM tab1 AS cor0
----
-260
-338
-676

query I rowsort
SELECT - col1 - 85 AS col2 FROM tab2
----
-102
-116
-144

onlyif mysql # use DIV operator for integer division
query I rowsort label-5941
SELECT - col1 DIV + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5941
SELECT - col1 / + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ALL + + col1 * - col0 + - col1 * col0 FROM tab1 AS cor0
----
-1280
-156
-2080

onlyif mysql # use DIV operator for integer division
query I rowsort label-5943
SELECT DISTINCT + col0 DIV + col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5943
SELECT DISTINCT + col0 / + col1 FROM tab0 cor0
----
0

query I rowsort
SELECT 0 + col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT col0 + - col0 * col1 AS col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT + + 23 * col0 AS col1 FROM tab1 cor0
----
1472
1840
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5947
SELECT col2 * col2 * cor0.col2 + col2 * + col1 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5947
SELECT col2 * col2 * cor0.col2 + col2 * + col1 * + CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + col2 * col2 AS col2 FROM tab2
----
1461
735
760

query I rowsort
SELECT + 30 - col0 FROM tab1
----
-34
-50
27

query I rowsort
SELECT ALL col2 + - col0 * + col1 * ( + col2 ) FROM tab0
----
-3394
-664036
-68079

onlyif mysql # use DIV operator for integer division
query I rowsort label-5951
SELECT + col2 DIV ( ( - col1 ) ) + ( 21 ) FROM tab0 AS cor0
----
21
21
21

skipif mysql # not compatible
query I rowsort label-5951
SELECT + col2 / ( ( - col1 ) ) + ( 21 ) FROM tab0 AS cor0
----
21
21
21

query I rowsort
SELECT DISTINCT + col2 + + col2 * col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT col0 + 18 FROM tab0 cor0
----
107
42
53

query I rowsort
SELECT col0 + col1 + 12 FROM tab0
----
122
144
192

query I rowsort
SELECT ALL + 93 + col0 FROM tab1
----
157
173
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5956
SELECT DISTINCT + 18 DIV tab2.col1 col2 FROM tab2, tab0 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5956
SELECT DISTINCT + 18 / tab2.col1 col2 FROM tab2, tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL + col2 * 70 + + 39 + - col2 FROM tab1 AS cor0
----
3765
3972
6663

query I rowsort
SELECT - col0 + - 94 FROM tab0 AS cor0
----
-118
-129
-183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + col0 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 * - col0 * tab0.col2 AS col1 FROM tab0
----
-26136
-35
-598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 - + 23 col0 FROM tab1 AS cor0
----
31
34
73

query I rowsort
SELECT - col0 + - 65 * - ( col1 ) FROM tab0 AS cor0
----
5566
5826
6270

query I rowsort
SELECT col0 * - cor0.col1 + - 2 AS col0 FROM tab1 AS cor0
----
-1042
-642
-80

query I rowsort
SELECT DISTINCT + col2 * ( - col2 ) * + cor0.col0 + - col1 FROM tab0 AS cor0
----
-132
-26222
-598527

query I rowsort
SELECT DISTINCT - + col0 - 84 AS col1 FROM tab0 AS cor0
----
-108
-119
-173

query I rowsort
SELECT ALL - col2 - - 22 FROM tab1 AS cor0
----
-32
-35
-74

query I rowsort
SELECT + col2 * - col2 * - col2 AS col1 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT DISTINCT col2 * 84 AS col2 FROM tab0 AS cor0
----
2772
6888
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5969
SELECT ALL - cor0.col0 + CAST( col1 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
7372
8192
9374

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL - cor0.col0 + CAST ( col1 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT - col2 * col2 * ( col2 ) + + ( col2 + + col2 ) FROM tab2 AS cor0
----
-17524
-19629
-54796

query I rowsort
SELECT ALL + cor0.col2 * cor0.col0 + col1 * col0 AS col2 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT - col2 + + col1 * 41 FROM tab1 AS cor0
----
1012
353
437

query I rowsort
SELECT ALL - + col0 + - ( 78 * - cor0.col0 ) + ( col1 ) * col1 AS col0 FROM tab0 AS cor0
----
12104
15134
9244

query I rowsort
SELECT 79 - 48 AS col0 FROM tab1
----
31
31
31

query I rowsort
SELECT - + col2 * - 93 + - col1 FROM tab2 AS cor0
----
2359
2480
3517

query I rowsort
SELECT DISTINCT + 62 * + col1 * col1 FROM tab2 cor0
----
17918
215822
59582

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5977
SELECT DISTINCT + + CAST( + ( + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5977
SELECT DISTINCT + + CAST ( + ( + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - + ( ( + col0 ) ) + ( cor0.col2 + - cor0.col1 ) * + col0 AS col0 FROM tab1 AS cor0
----
2944
6560
81

query I rowsort
SELECT + 3 - col0 FROM tab1 cor0
----
-61
-77
0

query I rowsort
SELECT ( - 45 ) - + col2 FROM tab2 AS cor0
----
-71
-72
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * col0 + - cor0.col0 col1 FROM tab1 cor0
----
4032
6
6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5982
SELECT - CAST( - col1 AS SIGNED ) + col1 - + col2 AS col1 FROM tab0 cor0
----
100
139
193

skipif mysql # not compatible
query I rowsort label-5982
SELECT - CAST ( - col1 AS INTEGER ) + col1 - + col2 AS col1 FROM tab0 cor0
----
100
139
193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 29 + - col1 col1 FROM tab0 AS cor0
----
-57
-62
-68

query I rowsort
SELECT - col1 * col2 + ( col1 ) * - col0 FROM tab0 cor0
----
-15561
-3492
-4902

query I rowsort
SELECT - 50 * 54 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 186ea5ae5511b1e235c60c8e7d78aace

query I rowsort
SELECT ALL - - col1 * + col0 * col1 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5987
SELECT + cor0.col0 * col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5987
SELECT + cor0.col0 * 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 DISTINCT + - 70 col2 FROM tab2 cor0
----
-70

query I rowsort
SELECT DISTINCT 31 * col1 * + col0 AS col1 FROM tab0 AS cor0
----
105245
251069
63984

query I rowsort
SELECT + - 13 + col0 FROM tab0 cor0
----
11
22
76

query I rowsort
SELECT - 84 + - ( col1 ) * - 50 + - 16 AS col2 FROM tab1 cor0
----
1200
400
550

query I rowsort
SELECT ALL - + ( 18 ) FROM tab1 AS cor0
----
-18
-18
-18

onlyif mysql # use DIV operator for integer division
query I rowsort label-5993
SELECT DISTINCT cor0.col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5993
SELECT DISTINCT cor0.col1 / - col1 AS col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - 78 * col0 + cor0.col2 * 27 + ( col0 ) AS col2 FROM tab1 cor0
----
-3389
-3568
1227

query I rowsort
SELECT DISTINCT - + 53 AS col2 FROM tab1 AS cor0
----
-53

query I rowsort
SELECT - col2 + - tab2.col1 * col0 AS col0 FROM tab2
----
-1381
-244
-4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 97 col0 FROM tab1
----
1
40
43

query I rowsort
SELECT ALL tab2.col2 * ( col2 ) + col2 AS col0 FROM tab2
----
1482
702
756

query I rowsort
SELECT ALL + tab1.col1 * + col2 * col0 + + col2 AS col2 FROM tab1
----
36537
4266
99936

query I rowsort
SELECT col1 + + cor0.col1 * col2 * - col2 FROM tab2 AS cor0
----
-22568
-24531
-39825

query I rowsort
SELECT + + cor0.col1 + - col0 * - cor0.col1 + - 69 AS col2 FROM tab0 AS cor0
----
2081
3423
8121

query I rowsort
SELECT + 77 + - tab0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to d7dfcbb8e5b8bcab3b243202c6194590

query I rowsort
SELECT - - 80 + + col1 FROM tab1 AS cor0
----
106
90
93

query I rowsort
SELECT DISTINCT + 30 + - col2 AS col1 FROM tab0 AS cor0
----
-3
-52
29

query I rowsort
SELECT ALL col0 * 35 AS col2 FROM tab1 AS cor0
----
105
2240
2800

query I rowsort
SELECT ALL + 28 FROM tab2, tab0 cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT - col0 * - col1 + col2 + - col2 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - col2 + col0 + 93 FROM tab0
----
100
127
84

query I rowsort
SELECT col2 * 84 FROM tab0
----
2772
6888
84

query I rowsort
SELECT + col2 + - 14 + + col0 * col1 AS col0 FROM tab0
----
2083
3382
8167

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 97 col1 FROM tab0
----
183
188
194

query I rowsort
SELECT ALL - col1 + 73 AS col2 FROM tab2
----
14
42
56

query I rowsort
SELECT ALL - col2 + 56 * + 28 + col2 FROM tab1
----
1568
1568
1568

query I rowsort
SELECT ALL + col0 + - ( 95 ) * col2 FROM tab2 AS cor0
----
-2392
-2558
-3531

query I rowsort
SELECT ALL + - col1 + + cor0.col0 + cor0.col0 * - col2 FROM tab1 AS cor0
----
-185
-3594
-7613

query I rowsort
SELECT 60 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

onlyif mysql # use DIV operator for integer division
query I rowsort label-6017
SELECT ALL - col2 DIV - 77 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL - col2 / - 77 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 + 45 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 9a76417a0e660b9e47db42d33f8268c3

query I rowsort
SELECT cor0.col2 * cor0.col1 AS col2 FROM tab0, tab0 cor0, tab0 cor1
----
27 values hashing to 7623ebe74018211e6a4da91fc8c37d6d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - 52 col2 FROM tab1 AS cor0
----
-62
-65
-78

query I rowsort
SELECT ALL 87 FROM tab1, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT col2 * 82 + + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-1344
1425
1512

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + col1 col2 FROM tab0 AS cor0
----
2
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * - 85 col2 FROM tab0 AS cor0
----
-2805
-6970
-85

query I rowsort
SELECT col0 * - 11 FROM tab2 AS cor0
----
-77
-858
-869

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 * col0 col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT - ( col2 ) * col2 * tab1.col1 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT ( + tab1.col2 ) - col1 FROM tab1
----
28
47
83

query I rowsort
SELECT - 84 + cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 114814d374c1b102ab81537c069220ee

query I rowsort
SELECT 45 * + col0 AS col1 FROM tab2 AS cor0
----
315
3510
3555

query I rowsort
SELECT - col2 + - col2 * col2 + - col1 AS col2 FROM tab1 AS cor0
----
-2996
-3316
-9325

query I rowsort
SELECT + + col0 + 22 FROM tab0 AS cor0
----
111
46
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6033
SELECT - + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6033
SELECT - + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + + col1 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL - ( cor0.col1 ) * - col1 AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - cor0.col1 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - 52 * - col2 FROM tab0 AS cor0
----
1716
4264
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 col1 FROM tab0
----
74
74
74

query I rowsort
SELECT ALL + 40 * col1 FROM tab1
----
1040
400
520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 + col0 col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - + 78 AS col1 FROM tab2 AS cor0
----
-78
-78
-78

query I rowsort
SELECT - - ( cor0.col1 ) AS col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT + + col0 + - 30 AS col2 FROM tab1 AS cor0
----
-27
34
50

query I rowsort
SELECT col1 * + 30 + col0 + - col0 AS col2 FROM tab0 AS cor0
----
2580
2730
2910

query I rowsort
SELECT - - col1 * + col0 + + col0 + - col0 * - col1 * col2 FROM tab1 AS cor0
----
100960
37184
4293

query I rowsort
SELECT col1 + 80 + col0 AS col1 FROM tab0 AS cor0
----
190
212
260

query I rowsort
SELECT - cor0.col2 * - 67 - - 25 * - cor0.col1 * col1 AS col1 FROM tab2 cor0
----
-22216
-4679
-85283

query I rowsort
SELECT - col1 + - col0 + 87 AS col2 FROM tab2
----
-50
-9
49

query I rowsort
SELECT ALL - 9 * - ( col1 * - cor0.col0 ) FROM tab1 AS cor0
----
-5760
-702
-9360

query I rowsort
SELECT col2 - - col0 * col2 * col1 FROM tab1
----
36537
4266
99936

query I rowsort
SELECT - cor0.col1 * + col1 - col2 AS col2 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT DISTINCT + col1 * col1 + cor0.col1 * - col2 + col0 AS col1 FROM tab0 AS cor0
----
4582
908
9347

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + col2 col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - col1 + - col1 + col1 * - cor0.col1 AS col0 FROM tab1 cor0
----
-120
-195
-728

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 * col0 NOT IN ( col2 ) OR NULL BETWEEN + col1 * - col0 * + col0 AND + col2
----

query I rowsort
SELECT ALL tab2.col2 * - col0 - + col1 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT DISTINCT - tab2.col2 - + tab2.col2 AS col1 FROM tab2
----
-52
-54
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6059
SELECT ALL col1 * + tab2.col0 * + tab2.col1 - col0 DIV tab2.col0 FROM tab2
----
22830
271517
6726

skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL col1 * + tab2.col0 * + tab2.col1 - col0 / tab2.col0 FROM tab2
----
22830
271517
6726

query I rowsort
SELECT + col2 * - col1 * col2 + - col2 FROM tab0
----
-611966
-93687
-98

query I rowsort
SELECT DISTINCT + cor0.col1 + col0 * col0 * col2 AS col2 FROM tab1 AS cor0
----
233482
512
614413

query I rowsort
SELECT col0 * col2 * - col2 AS col1 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT col0 * col2 - + col1 AS col0 FROM tab1
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-6064
SELECT DISTINCT col0 + - col2 * tab2.col0 DIV - col0 FROM tab2
----
104
117
34

skipif mysql # not compatible
query I rowsort label-6064
SELECT DISTINCT col0 + - col2 * tab2.col0 / - col0 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT col2 + + tab0.col0 + + col2 FROM tab0
----
253
37
90

query I rowsort
SELECT ALL - - col1 * + cor0.col1 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
7420
8370
9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-6067
SELECT ALL + col2 + + col0 DIV - col1 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL + col2 + + col0 / - col1 AS col2 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6068
SELECT DISTINCT col0 + + col1 DIV - col0 FROM tab0 AS cor0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT col0 + + col1 / - col0 FROM tab0 AS cor0
----
21
33
88

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NOT NULL <> NULL AND ( NULL ) < NULL
----

query I rowsort
SELECT ALL col1 + + col1 * - col0 - col0 FROM tab2
----
-1405
-193
-4621

query I rowsort
SELECT ALL + col2 - tab2.col2 * + col1 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL + col0 * col2 - tab0.col0 FROM tab0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-6073
SELECT col0 * col0 - col1 DIV col1 col1 FROM tab0 AS cor0
----
1224
575
7920

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6073
SELECT col0 * col0 - col1 / col1 col1 FROM tab0 AS cor0
----
1224
575
7920

query I rowsort
SELECT - 10 + - col2 * 42 * ( + col2 ) FROM tab1 cor0
----
-122482
-136468
-387082

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 * + cor0.col1 + + 22 col0 FROM tab2 AS cor0
----
-1287
-2365
-4521

query I rowsort
SELECT ALL - 25 * cor0.col2 FROM tab2 AS cor0
----
-650
-675
-950

query I rowsort
SELECT - ( col1 ) + - col2 * + col1 * col0 - - col0 AS col2 FROM tab0 AS cor0
----
-3457
-664120
-68174

query I rowsort
SELECT + col0 * col0 + + col2 * col1 FROM tab1 AS cor0
----
1413
4666
7648

query I rowsort
SELECT + col0 * col1 + col0 - + col2 AS col2 FROM tab0 AS cor0
----
2055
3429
8106

query I rowsort
SELECT ALL - 28 + + col2 AS col0 FROM tab1 AS cor0
----
26
29
68

query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 * - 93 AS col2 FROM tab2 cor0
----
26877
323733
89373

onlyif mysql # use DIV operator for integer division
query I rowsort label-6083
SELECT + 22 DIV - col0 AS col1 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6083
SELECT + 22 / - col0 AS col1 FROM tab2 AS cor0
----
-3
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6084
SELECT + col1 DIV - col1 AS col0 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6084
SELECT + col1 / - col1 AS col0 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT - col2 + 14 + col0 FROM tab0 AS cor0
----
21
48
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6086
SELECT + - cor0.col2 + + CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6086
SELECT + - cor0.col2 + + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6087
SELECT DISTINCT col1 + + col0 DIV 27 FROM tab0
----
86
94
98

skipif mysql # not compatible
query I rowsort label-6087
SELECT DISTINCT col1 + + col0 / 27 FROM tab0
----
86
94
98

query I rowsort
SELECT ALL - ( col1 ) + - col1 * - 79 AS col1 FROM tab0 AS cor0
----
6708
7098
7566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 72 col2 FROM tab0 AS cor0
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col1 col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT 81 + - col0 AS col2 FROM tab0 AS cor0
----
-8
46
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6092
SELECT - - col1 * col2 * - ( col0 ) + cor0.col0 DIV col1 FROM tab1 AS cor0
----
-36474
-4212
-99834

skipif mysql # not compatible
query I rowsort label-6092
SELECT - - col1 * col2 * - ( col0 ) + cor0.col0 / col1 FROM tab1 AS cor0
----
-36474
-4212
-99834

query I rowsort
SELECT + 47 + + col0 AS col1 FROM tab2
----
125
126
54

query I rowsort
SELECT + 90 * - col1 AS col0 FROM tab2
----
-1530
-2790
-5310

query I rowsort
SELECT - col0 + + 27 FROM tab1
----
-37
-53
24

query I rowsort
SELECT - 91 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

query I rowsort
SELECT DISTINCT + 96 * + 13 FROM tab0
----
1248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 + col2 col1 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-6099
SELECT ALL 36 DIV col0 + col2 + col2 * col1 col2 FROM tab2 AS cor0
----
1560
684
869

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6099
SELECT ALL 36 / col0 + col2 + col2 * col1 col2 FROM tab2 AS cor0
----
1560
684
869

query I rowsort
SELECT DISTINCT - 8 + + 54 AS col0 FROM tab1, tab0, tab2 AS cor0
----
46

query I rowsort
SELECT - 72 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT - 70 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - tab2.col0 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT + 59 + + col2 AS col2 FROM tab1 AS cor0
----
113
116
155

query I rowsort
SELECT col1 + - col1 * - col2 AS col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT col0 * + 28 FROM tab2
----
196
2184
2212

query I rowsort
SELECT + col2 + 48 * 4 AS col0 FROM tab2
----
218
219
230

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6109
SELECT + col2 + CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6109
SELECT + col2 + CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - 79 AS col1 FROM tab2
----
2054
2133
3002

query I rowsort
SELECT ALL 11 FROM tab1, tab2 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0 CROSS JOIN tab0, tab2 AS cor1
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094

onlyif mysql # use DIV operator for integer division
query I rowsort label-6113
SELECT ALL + col1 + + cor0.col0 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL + col1 + + cor0.col0 / cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 99 col0 FROM tab0 cor0
----
-99
-99
-99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6115
SELECT - - CAST( + 44 AS SIGNED ) FROM tab0 AS cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-6115
SELECT - - CAST ( + 44 AS INTEGER ) FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT - col0 + + col0 + cor0.col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6117
SELECT ALL + 79 * cor0.col2 DIV - col2 + col0 * col1 FROM tab0 AS cor0
----
1985
3316
8020

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL + 79 * cor0.col2 / - col2 + col0 * col1 FROM tab0 AS cor0
----
1985
3316
8020

query I rowsort
SELECT ALL + + col0 * + col2 + col0 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 * col0 col0 FROM tab1 AS cor0
----
243
5184
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-6120
SELECT - col0 DIV 14 FROM tab1
----
-4
-5
0

skipif mysql # not compatible
query I rowsort label-6120
SELECT - col0 / 14 FROM tab1
----
-4
-5
0

query I rowsort
SELECT DISTINCT - col1 - 13 AS col1 FROM tab1
----
-23
-26
-39

onlyif mysql # use DIV operator for integer division
query I rowsort label-6122
SELECT + + 7 DIV - 25 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-6122
SELECT + + 7 / - 25 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT ALL + col2 * - 17 * + tab1.col2 + col2 + tab1.col2 FROM tab1
----
-156480
-49464
-55119

query I rowsort
SELECT ALL - col2 * + col0 + col2 * - ( - 95 + - col0 ) FROM tab1
----
5130
5415
9120

query I rowsort
SELECT ALL 33 * 28 + + col1 * 40 FROM tab2
----
1604
2164
3284

onlyif mysql # use DIV operator for integer division
query I rowsort label-6126
SELECT DISTINCT - cor0.col1 + col0 DIV col1 FROM tab1 AS cor0
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-6126
SELECT DISTINCT - cor0.col1 + col0 / col1 FROM tab1 AS cor0
----
-26
-4
-7

query I rowsort
SELECT + col1 + + 83 FROM tab1 AS cor0
----
109
93
96

query I rowsort
SELECT ALL - ( 45 ) * col1 * + col0 + col1 * col0 AS col2 FROM tab0 AS cor0
----
-149380
-356356
-90816

query I rowsort
SELECT ( col0 ) * - col2 + + 13 FROM tab2 AS cor0
----
-176
-2015
-2989

query I rowsort
SELECT - 37 + - col0 * + col2 FROM tab2
----
-2065
-226
-3039

query I rowsort
SELECT DISTINCT - ( 46 ) AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col2 FROM tab0
----
33
33
33

query I rowsort
SELECT col0 * tab2.col0 + 73 FROM tab2
----
122
6157
6314

query I rowsort
SELECT + 28 FROM tab0 cor0
----
28
28
28

query I rowsort
SELECT - col1 - 55 FROM tab2 AS cor0
----
-114
-72
-86

query I rowsort
SELECT + col0 * + ( - 95 ) AS col0 FROM tab1 AS cor0
----
-285
-6080
-7600

query I rowsort
SELECT ALL - col2 - ( + cor0.col2 ) FROM tab0 AS cor0
----
-164
-2
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col2 * - col2 col2 FROM tab1
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6139
SELECT col2 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6139
SELECT col2 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6140
SELECT ALL + col0 * CAST( NULL AS SIGNED ) + - ( cor0.col0 ) 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-6140
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) + - ( cor0.col0 ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * col2 * - col1 - - col0 AS col2 FROM tab1 cor0
----
36544
4215
99920

query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 + + col1 FROM tab0 AS cor0
----
-87
27
38

query I rowsort
SELECT col0 - col2 * cor0.col2 FROM tab2 cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT - col2 * - 22 + col0 + + col1 * - col1 AS col2 FROM tab1 AS cor0
----
1218
2023
515

query I rowsort
SELECT ALL - col0 * - col1 * col2 AS col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL - col2 + ( col1 ) FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - col1 + - col2 * 91 FROM tab0 AS cor0
----
-188
-3089
-7553

query I rowsort
SELECT ALL col2 * + col2 + + col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT - 69 * col0 + + col1 * col0 AS col2 FROM tab2 cor0
----
-266
-4108
-780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( col2 + - col1 ) col2 FROM tab0 AS cor0
----
1272
3360
801

query I rowsort
SELECT DISTINCT + - 92 AS col0 FROM tab2 AS cor0
----
-92

query I rowsort
SELECT - 77 + - col0 FROM tab2 AS cor0
----
-155
-156
-84

query I rowsort
SELECT DISTINCT - + 93 * col0 FROM tab0 cor0
----
-2232
-3255
-8277

query I rowsort
SELECT DISTINCT col0 * col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-6155
SELECT + CAST( col1 AS SIGNED ) * - col2 + + cor0.col2 DIV 70 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-6155
SELECT + CAST ( col1 AS INTEGER ) * - col2 + + cor0.col2 / 70 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6156
SELECT DISTINCT + CAST( cor0.col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT + CAST ( cor0.col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6157
SELECT ALL CAST( 26 AS SIGNED ) * + col0 + col1 - - 73 FROM tab0 AS cor0
----
1080
2478
783

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL CAST ( 26 AS INTEGER ) * + col0 + col1 - - 73 FROM tab0 AS cor0
----
1080
2478
783

query I rowsort
SELECT + cor0.col2 + + tab1.col2 FROM tab1, tab2 cor0, tab0 cor1
----
27 values hashing to 5a930730d347554ce36975510ca22e06

query I rowsort
SELECT - col1 + col2 * tab0.col0 FROM tab0
----
-62
706
7207

query I rowsort
SELECT tab0.col2 + + ( - 53 ) + col1 * col0 AS col1 FROM tab0
----
2044
3343
8128

query I rowsort
SELECT cor0.col1 * col1 - col1 AS col1 FROM tab0 AS cor0
----
7310
8190
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 * - col1 col1 FROM tab1 AS cor0
----
1014
2028
780

query I rowsort
SELECT - + 28 * - col0 AS col1 FROM tab2 AS cor0
----
196
2184
2212

query I rowsort
SELECT ALL - col2 + + col0 * - ( col0 ) FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT + col2 * - col1 + - ( 41 ) * col1 AS col2 FROM tab1 cor0
----
-1781
-2470
-980

query I rowsort
SELECT ALL - col2 * + col1 * + col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 + + col2 * + cor0.col0 * + 36 col2 FROM tab2 AS cor0
----
108076
6808
73012

query I rowsort
SELECT ALL col2 + col1 * - 81 FROM tab0 AS cor0
----
-6933
-7289
-7856

query I rowsort
SELECT DISTINCT + col2 * + col0 + + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6170
SELECT ALL col0 + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6170
SELECT ALL col0 + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + - cor0.col1 * - col2 * col0 AS col2 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT cor0.col1 + - col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT 26 + col0 * col0 FROM tab1 AS cor0
----
35
4122
6426

query I rowsort
SELECT - col2 * ( - col0 * 11 ) AS col0 FROM tab2
----
2079
22308
33022

query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6177
SELECT - + col0 + col1 DIV col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-6177
SELECT - + col0 + col1 / col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + ( col2 ) * 25 FROM tab2 cor0
----
650
675
950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + col0 * col0 col0 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT ALL - - 94 + col1 * - cor0.col0 FROM tab1 AS cor0
----
-546
-946
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 * - col0 + + 4 col0 FROM tab2 AS cor0
----
-114072
-5099
-52724

query I rowsort
SELECT ALL + tab2.col0 * + tab2.col1 * col1 AS col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT + - col0 + - 21 * - 71 AS col0 FROM tab2 AS cor0
----
1412
1413
1484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 col1 FROM tab2
----
35
35
35

query I rowsort
SELECT ALL - col2 * + col2 * - ( col0 * col2 ) FROM tab0
----
35
49071752
862488

query I rowsort
SELECT ALL - ( tab1.col1 + tab1.col2 ) AS col2 FROM tab1
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col2 FROM tab0
----
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-6188
SELECT DISTINCT 7 DIV 28 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6188
SELECT DISTINCT 7 / 28 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL - ( 17 ) FROM tab1
----
-17
-17
-17

query I rowsort
SELECT DISTINCT - - 71 - col1 AS col1 FROM tab0 AS cor0
----
-15
-20
-26

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 + - col0 AS col2 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT col2 * - col1 * - 4 + col2 FROM tab1 AS cor0
----
2337
5088
5670

query I rowsort
SELECT + 8 - col0 AS col0 FROM tab2 cor0
----
-70
-71
1

query I rowsort
SELECT ALL - col2 * + ( + col0 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + col1 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 * - CAST ( col1 + - col2 AS REAL ) FROM tab0 AS cor0
----
1272
3360
801

query I rowsort
SELECT ALL - cor0.col0 * ( - col2 ) - cor0.col0 * 27 FROM tab0 AS cor0
----
-910
144
4895

query I rowsort
SELECT ALL + col0 * 11 FROM tab1 cor0
----
33
704
880

query I rowsort
SELECT ALL cor1.col0 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT 21 + col1 AS col1 FROM tab0 AS cor0
----
107
112
118

query I rowsort
SELECT ALL col0 + 64 * col0 AS col0 FROM tab2 AS cor0
----
455
5070
5135

query I rowsort
SELECT DISTINCT + 85 FROM tab1, tab0 AS cor0
----
85

query I rowsort
SELECT ALL - + col0 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT + 82 * + col1 AS col2 FROM tab2 AS cor0
----
1394
2542
4838

query I rowsort
SELECT + cor0.col1 + + 95 FROM tab0 AS cor0
----
181
186
192

query I rowsort
SELECT 67 + col1 + + col2 AS col0 FROM tab1 AS cor0
----
134
147
176

query I rowsort
SELECT 84 + - ( + col2 ) * - 43 AS col2 FROM tab0 AS cor0
----
127
1503
3610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 82 ) col2 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT DISTINCT + 10 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-76
-81
-87

query I rowsort
SELECT DISTINCT - 91 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
-91

query I rowsort
SELECT ALL - cor1.col2 AS col2 FROM tab2, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query I rowsort
SELECT ALL 99 FROM tab0, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6213
SELECT col1 + CAST( NULL AS DECIMAL ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6213
SELECT col1 + CAST ( NULL AS REAL ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col1 ) * - 32 AS col1 FROM tab1
----
320
416
832

query I rowsort
SELECT + col0 * 35 * tab2.col0 AS col2 FROM tab2
----
1715
212940
218435

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6216
SELECT + col2 * CAST( cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-6216
SELECT + col2 * CAST ( cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT col1 * - 31 * 42 AS col1 FROM tab0
----
-111972
-118482
-126294

query I rowsort
SELECT DISTINCT + col0 * - col0 * + col2 AS col0 FROM tab1
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-6219
SELECT ALL - col0 DIV 41 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL - col0 / 41 FROM tab2
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 col1 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT ALL + col2 * 91 FROM tab1
----
4914
5187
8736

query I rowsort
SELECT ALL 65 * - col0 * col2 AS col1 FROM tab1 AS cor0
----
-10530
-237120
-499200

query I rowsort
SELECT - col0 * cor0.col2 + - col2 * - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 col0 FROM tab0, tab2 cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT - col1 * cor0.col0 - + col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT ALL - 34 + col2 - + col2 AS col2 FROM tab0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT - 56 - + col0 FROM tab0
----
-145
-80
-91

query I rowsort
SELECT - col0 * + tab1.col1 - 78 FROM tab1
----
-1118
-156
-718

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6229
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6229
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6230
SELECT + col2 - col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6230
SELECT + col2 - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * col1 + + tab2.col0 * col1 * + col0 - 85 AS col2 FROM tab2
----
107355
1651
363473

query I rowsort
SELECT DISTINCT - col2 * tab0.col2 * tab0.col2 AS col1 FROM tab0
----
-1
-35937
-551368

query I rowsort
SELECT ALL ( col2 ) + col1 * + 9 + - col2 * tab1.col2 AS col2 FROM tab1
----
-2628
-3102
-9003

query I rowsort
SELECT 86 * + col0 AS col1 FROM tab1 AS cor0
----
258
5504
6880

query I rowsort
SELECT - 63 * - col2 + + col2 * col0 FROM tab2
----
1890
3666
5396

query I rowsort
SELECT DISTINCT + ( - col2 ) + col0 * col1 - - col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT 64 + + col0 FROM tab1 AS cor0
----
128
144
67

query I rowsort
SELECT DISTINCT + + ( col0 ) + - col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL - ( - ( cor0.col2 ) ) FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6240
SELECT DISTINCT + col2 DIV col0 + col1 AS col2 FROM tab2
----
17
34
59

skipif mysql # not compatible
query I rowsort label-6240
SELECT DISTINCT + col2 / col0 + col1 AS col2 FROM tab2
----
17
34
59

query I rowsort
SELECT 7 + tab0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f07dee371f16a945170af4253759f7a5

query I rowsort
SELECT cor0.col0 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - ( 79 ) * + col0 AS col2 FROM tab0 AS cor0
----
-1896
-2765
-7031

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6244
SELECT + CAST( 6 AS SIGNED ) FROM tab1 cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-6244
SELECT + CAST ( 6 AS INTEGER ) FROM tab1 cor0
----
6
6
6

query I rowsort
SELECT + 33 * - col2 + col0 AS col1 FROM tab0
----
-1065
-2617
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6246
SELECT CAST( NULL AS DECIMAL ) + col1 * tab0.col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6246
SELECT CAST ( NULL AS REAL ) + col1 * tab0.col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT tab0.col2 + + tab0.col2 * - col1 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT - ( - 98 ) FROM tab0
----
98
98
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6249
SELECT CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6249
SELECT CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( 83 ) AS col1 FROM tab0
----
83
83
83

query I rowsort
SELECT + col2 + + ( col2 ) + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-33
42
75

query I rowsort
SELECT DISTINCT - ( + 41 ) AS col1 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT col1 * - col2 + col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT + cor0.col0 * + col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT col2 * - col2 * + col1 + col0 * col2 AS col2 FROM tab0 AS cor0
----
-604586
-62
-92862

query I rowsort
SELECT ALL - cor0.col0 * + col2 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT - ( col1 ) + col2 * - col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT DISTINCT + 82 * col0 - col2 * 43 * + col2 AS col0 FROM tab0 cor0
----
-281834
-44859
2827

query I rowsort
SELECT ALL + col1 + + cor0.col1 FROM tab2 cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - 60 - col1 AS col2 FROM tab0 AS cor0
----
-146
-151
-157

onlyif mysql # use DIV operator for integer division
query I rowsort label-6262
SELECT ALL cor0.col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL cor0.col2 / - col0 AS col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + + col1 - + col1 * ( 88 ) FROM tab1 cor0
----
-1131
-2262
-870

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6264
SELECT + col0 + + CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-6264
SELECT + col0 + + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6265
SELECT + col0 + - ( + 97 ) DIV col0 + - 3 FROM tab0 cor0
----
17
30
85

skipif mysql # not compatible
query I rowsort label-6265
SELECT + col0 + - ( + 97 ) / col0 + - 3 FROM tab0 cor0
----
17
30
85

query I rowsort
SELECT + col1 * col0 + col0 * col0 + 30 FROM tab2 AS cor0
----
10716
296
7614

query I rowsort
SELECT ALL col0 * - 82 FROM tab2 cor0
----
-574
-6396
-6478

onlyif mysql # use DIV operator for integer division
query I rowsort label-6268
SELECT DISTINCT - col0 DIV 39 FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-6268
SELECT DISTINCT - col0 / 39 FROM tab2 AS cor0
----
-2
0

query I rowsort
SELECT col0 + ( col1 ) * col1 AS col2 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT - col1 * 6 + - col1 AS col0 FROM tab2 AS cor0
----
-119
-217
-413

query I rowsort
SELECT + cor0.col2 - + cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6272
SELECT DISTINCT col1 DIV ( cor0.col1 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6272
SELECT DISTINCT col1 / ( cor0.col1 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT + col2 * cor0.col0 + col2 + - col2 AS col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT col1 * + cor0.col1 * + 43 FROM tab1 cor0
----
29068
4300
7267

onlyif mysql # use DIV operator for integer division
query I rowsort label-6275
SELECT ALL col1 + 72 DIV col1 FROM tab1 AS cor0
----
17
18
28

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL col1 + 72 / col1 FROM tab1 AS cor0
----
17
18
28

query I rowsort
SELECT DISTINCT - col0 * 51 AS col0 FROM tab0 AS cor0
----
-1224
-1785
-4539

query I rowsort
SELECT - + cor0.col1 - col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT + col2 - + 49 FROM tab2 cor0
----
-11
-22
-23

query I rowsort
SELECT DISTINCT - - col2 + cor0.col0 * - col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT + + col0 * 30 + col2 FROM tab2 AS cor0
----
2366
237
2408

query I rowsort
SELECT ALL + cor0.col2 * + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a477aa402dcd904394a585dfd5cfe837

query I rowsort
SELECT DISTINCT + col2 * - 83 FROM tab1 AS cor0
----
-4482
-4731
-7968

query I rowsort
SELECT - - 11 * col2 FROM tab0 AS cor0
----
11
363
902

query I rowsort
SELECT ALL + - col0 - 11 FROM tab2 AS cor0
----
-18
-89
-90

query I rowsort
SELECT - 62 + cor0.col2 * col0 * cor0.col1 FROM tab2 AS cor0
----
119590
50972
5797

query I rowsort
SELECT DISTINCT col0 + - col2 - + col0 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6287
SELECT - col2 * - CAST( NULL AS DECIMAL ) + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6287
SELECT - col2 * - CAST ( NULL AS REAL ) + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + 1 AS col0 FROM tab1
----
-2
-63
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6289
SELECT - col0 * 36 DIV col2 FROM tab0 AS cor0
----
-1260
-26
-39

skipif mysql # not compatible
query I rowsort label-6289
SELECT - col0 * 36 / col2 FROM tab0 AS cor0
----
-1260
-26
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( cor0.col2 ) * + col2 col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT col1 + - ( 10 ) * col2 FROM tab1 cor0
----
-514
-560
-947

query I rowsort
SELECT 78 + col0 FROM tab0
----
102
113
167

query I rowsort
SELECT DISTINCT + 68 AS col1 FROM tab2
----
68

query I rowsort
SELECT DISTINCT 82 * cor0.col2 FROM tab0, tab2 AS cor0
----
2132
2214
3116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + col0 col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT ALL + cor0.col2 * 38 FROM tab2 AS cor0
----
1026
1444
988

query I rowsort
SELECT DISTINCT - + col0 + ( + 92 ) FROM tab2 AS cor0
----
13
14
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT col2 + 27 * 37 AS col0 FROM tab2 AS cor0
----
1025
1026
1037

query I rowsort
SELECT DISTINCT + col0 * + col1 + 37 + col1 * - col2 FROM tab2 AS cor0
----
-583
3105
734

query I rowsort
SELECT DISTINCT 83 * col0 + col2 AS col2 FROM tab2
----
608
6500
6595

query I rowsort
SELECT DISTINCT 43 + + col0 AS col2 FROM tab1
----
107
123
46

query I rowsort
SELECT - + col0 * - col1 + + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT - - 17 * col2 FROM tab2 AS cor0
----
442
459
646

query I rowsort
SELECT ALL col0 * col0 * - col0 AS col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

query I rowsort
SELECT DISTINCT + col0 * + 95 FROM tab0 AS cor0
----
2280
3325
8455

query I rowsort
SELECT - + col0 * 99 AS col0 FROM tab2 AS cor0
----
-693
-7722
-7821

query I rowsort
SELECT - 95 * tab0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to b2ca14db3ddffaa41bf0f3bad34538bb

query I rowsort
SELECT ALL 37 * - col2 + ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-1197
-2
-2945

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6310
SELECT - - ( - col1 ) * + CAST( + 7 AS SIGNED ) + - col0 AS col0 FROM tab0 AS cor0
----
-626
-714
-726

skipif mysql # not compatible
query I rowsort label-6310
SELECT - - ( - col1 ) * + CAST ( + 7 AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0
----
-626
-714
-726

query I rowsort
SELECT - ( + col1 + ( col2 ) ) * + col2 AS col1 FROM tab2
----
-1566
-2090
-2210

onlyif mysql # use DIV operator for integer division
query I rowsort label-6312
SELECT col0 * col0 DIV - 61 AS col1 FROM tab0 AS cor0
----
-129
-20
-9

skipif mysql # not compatible
query I rowsort label-6312
SELECT col0 * col0 / - 61 AS col1 FROM tab0 AS cor0
----
-129
-20
-9

query I rowsort
SELECT + col2 * - col1 + + cor0.col2 FROM tab0 cor0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6314
SELECT ALL + + col1 DIV + col1 + - col2 FROM tab2 cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-6314
SELECT ALL + + col1 / + col1 + - col2 FROM tab2 cor0
----
-25
-26
-37

query I rowsort
SELECT DISTINCT col1 * cor0.col0 + 85 FROM tab0 AS cor0
----
2149
3480
8184

query I rowsort
SELECT - 41 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf

query I rowsort
SELECT - col0 * col0 - - ( col0 ) AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT + - cor0.col0 + + col2 * + col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT 84 + cor0.col1 * + 60 AS col0 FROM tab1 AS cor0
----
1644
684
864

query I rowsort
SELECT 86 * + col2 * col0 AS col0 FROM tab1 AS cor0
----
13932
313728
660480

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-6322
SELECT col0 * CAST( col1 + + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
2686
434
9204

skipif mysql # not compatible
query I rowsort label-6322
SELECT col0 * CAST ( col1 + + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
2686
434
9204

query I rowsort
SELECT - col0 * ( col1 * col1 ) AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT + col2 + col2 * - 96 AS col2 FROM tab0 AS cor0
----
-3135
-7790
-95

query I rowsort
SELECT ALL cor1.col1 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT ALL + col0 + - 56 FROM tab1 AS cor0
----
-53
24
8

query I rowsort
SELECT DISTINCT + 87 * 82 FROM tab1 AS cor0
----
7134

query I rowsort
SELECT - col1 - - col0 AS col2 FROM tab2 cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-6329
SELECT - col2 + 90 DIV col2 col0 FROM tab1 AS cor0
----
-53
-56
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6329
SELECT - col2 + 90 / col2 col0 FROM tab1 AS cor0
----
-53
-56
-96

query I rowsort
SELECT + + col1 - + col0 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - - ( + col1 ) + cor0.col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + 75 + - col1 AS col2 FROM tab2 AS cor0
----
16
44
58

query I rowsort
SELECT + + 10 * col0 + - col0 * 55 AS col2 FROM tab2 AS cor0
----
-315
-3510
-3555

onlyif mysql # use DIV operator for integer division
query I rowsort label-6334
SELECT col1 DIV + tab0.col1 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6334
SELECT col1 / + tab0.col1 AS col2 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) * - col1 col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT + 72 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT ALL col1 * - 2 AS col0 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT + 92 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT col1 + col0 * - col2 * col0 AS col2 FROM tab0 AS cor0
----
-1128
-18922
-649431

onlyif mysql # use DIV operator for integer division
query I rowsort label-6340
SELECT DISTINCT - col2 DIV ( col1 ) FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-6340
SELECT DISTINCT - col2 / ( col1 ) FROM tab1 AS cor0
----
-2
-5
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6341
SELECT + col2 * CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6341
SELECT + col2 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col2 * + 32 AS col2 FROM tab0 cor0
----
-1056
-2624
-32

onlyif mysql # use DIV operator for integer division
query I rowsort label-6343
SELECT DISTINCT col2 + cor0.col1 DIV - col2 FROM tab0 AS cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-6343
SELECT DISTINCT col2 + cor0.col1 / - col2 FROM tab0 AS cor0
----
-96
31
81

query I rowsort
SELECT ALL col2 - cor0.col0 * - 61 FROM tab0 AS cor0
----
1497
2136
5511

query I rowsort
SELECT DISTINCT - - col1 * - 91 FROM tab2 AS cor0
----
-1547
-2821
-5369

query I rowsort
SELECT ALL + col0 * + 33 FROM tab1 cor0
----
2112
2640
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT DISTINCT 23 * + 10 FROM tab1 AS cor0
----
230

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6349
SELECT DISTINCT CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6349
SELECT DISTINCT CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 + + cor0.col1 col2 FROM tab0 AS cor0
----
150
155
161

query I rowsort
SELECT - col0 * col1 + + cor0.col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + 30 + col1 + + col2 AS col1 FROM tab2 AS cor0
----
115
85
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + - ( 62 ) col2 FROM tab0 AS cor0
----
-29
-61
20

query I rowsort
SELECT - col1 + col1 * - 24 + - col0 AS col0 FROM tab2 AS cor0
----
-1553
-504
-782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 col0 FROM tab2 AS cor0
----
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-6356
SELECT col0 * col2 * col1 + col0 + + cor0.col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
3430
664207
68136

skipif mysql # not compatible
query I rowsort label-6356
SELECT col0 * col2 * col1 + col0 + + cor0.col2 / + col1 AS col2 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT ALL col0 * - col0 * col2 AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT - - col1 + 61 * col0 AS col2 FROM tab0 AS cor0
----
1550
2232
5520

query I rowsort
SELECT + col1 * + cor0.col0 AS col1 FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - ( cor0.col0 ) * cor0.col1 * col1 col0 FROM tab0 AS cor0
----
-177471
-329314
-736927

query I rowsort
SELECT - 13 * tab2.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c353d77a90394079d39e2f0732de75f9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 * + col2 + col2 col0 FROM tab2
----
-1404
-1458
-2052

onlyif mysql # use DIV operator for integer division
query I rowsort label-6363
SELECT - col0 + - col2 DIV col2 FROM tab0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-6363
SELECT - col0 + - col2 / col2 FROM tab0
----
-25
-36
-90

query I rowsort
SELECT DISTINCT col0 + col1 + + ( + col0 ) AS col1 FROM tab1
----
138
173
32

query I rowsort
SELECT ALL ( - col2 ) * col1 + - col2 * - col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 78 + + col2 AS col2 FROM tab0
----
111
160
79

query I rowsort
SELECT col2 + + col0 + col1 * col2 FROM tab2 AS cor0
----
1638
763
871

onlyif mysql # use DIV operator for integer division
query I rowsort label-6368
SELECT - col0 + + col2 * col0 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-6368
SELECT - col0 + + col2 * col0 / cor0.col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - col2 + cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT - col2 + - col0 * + col2 FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT + - col1 + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT ALL + col1 + - col0 * col2 * cor0.col0 FROM tab1 AS cor0
----
-233462
-460
-614387

query I rowsort
SELECT + col1 - ( col0 ) * col1 AS col2 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT ( - 25 ) + col0 AS col1 FROM tab1
----
-22
39
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-6375
SELECT - CAST( + col2 AS SIGNED ) - col0 DIV col2 AS col0 FROM tab1
----
-54
-58
-96

skipif mysql # not compatible
query I rowsort label-6375
SELECT - CAST ( + col2 AS INTEGER ) - col0 / col2 AS col0 FROM tab1
----
-54
-58
-96

query I rowsort
SELECT ALL + 60 - 27 * col0 FROM tab0
----
-2343
-588
-885

query I rowsort
SELECT DISTINCT ( ( col0 ) ) - - col2 FROM tab0
----
171
36
57

query I rowsort
SELECT col2 * col1 + col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col1 * col1 col2 FROM tab2 cor0
----
210
3403
954

query I rowsort
SELECT ALL 95 + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
1135
173
735

query I rowsort
SELECT 53 + 80 + + tab0.col0 AS col0 FROM tab0
----
157
168
222

query I rowsort
SELECT DISTINCT col1 * col2 - col0 * - tab2.col1 AS col2 FROM tab2
----
1054
1989
6136

query I rowsort
SELECT ALL + col2 * col0 - - col0 * + col1 AS col2 FROM tab0
----
15397
2856
3430

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6384
SELECT ALL - CAST( NULL AS SIGNED ) + ( tab2.col1 ) col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6384
SELECT ALL - CAST ( NULL AS INTEGER ) + ( tab2.col1 ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 62 * + ( - col0 ) + + col1 * - col2 FROM tab0 AS cor0
----
-12980
-2267
-4326

query I rowsort
SELECT + ( 35 ) + tab2.col1 * col1 + + tab2.col0 * - col0 AS col1 FROM tab2
----
-2568
-5917
947

onlyif mysql # use DIV operator for integer division
query I rowsort label-6387
SELECT col1 + - col0 + col0 DIV + col0 FROM tab1
----
-53
-66
24

skipif mysql # not compatible
query I rowsort label-6387
SELECT col1 + - col0 + col0 / + col0 FROM tab1
----
-53
-66
24

query I rowsort
SELECT ALL 97 + + ( + col0 ) * col0 AS col2 FROM tab1
----
106
4193
6497

onlyif mysql # use DIV operator for integer division
query I rowsort label-6389
SELECT ALL col0 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL col0 / cor0.col1 AS col0 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT DISTINCT - 46 * + col0 FROM tab1 cor0
----
-138
-2944
-3680

query I rowsort
SELECT 41 + col2 AS col1 FROM tab0
----
123
42
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-6392
SELECT DISTINCT + - 21 + + col1 DIV col1 AS col0 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-6392
SELECT DISTINCT + - 21 + + col1 / col1 AS col0 FROM tab2 AS cor0
----
-20

onlyif mysql # use DIV operator for integer division
query I rowsort label-6393
SELECT ALL + + 2 + col0 + cor0.col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
5
60
76

skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL + + 2 + col0 + cor0.col0 / - col1 AS col1 FROM tab1 AS cor0
----
5
60
76

query I rowsort
SELECT ALL - 61 * + col2 + + col2 AS col0 FROM tab2 AS cor0
----
-1560
-1620
-2280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) + + col1 col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - + col1 * col1 * col2 + - col2 FROM tab2 AS cor0
----
-11020
-25974
-90532

onlyif mysql # use DIV operator for integer division
query I rowsort label-6397
SELECT DISTINCT + col0 + col0 * col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT + col0 + col0 * col0 / + col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT 76 + col0 * + cor0.col2 AS col1 FROM tab2 cor0
----
2104
265
3078

query I rowsort
SELECT ALL + - 11 * col2 AS col1 FROM tab2 AS cor0
----
-286
-297
-418

query I rowsort
SELECT + - col0 * col2 + + col2 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT + - col1 * - col0 + - col0 + - col0 * - col1 FROM tab2 AS cor0
----
2607
427
9126

query I rowsort
SELECT + col2 * col1 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL - tab2.col0 * - 63 AS col2 FROM tab2
----
441
4914
4977

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 * - col0 col2 FROM tab2
----
22831
271518
6727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6405
SELECT - - CAST( - 46 AS SIGNED ) + - col1 AS col0 FROM tab0 AS cor0
----
-132
-137
-143

skipif mysql # not compatible
query I rowsort label-6405
SELECT - - CAST ( - 46 AS INTEGER ) + - col1 AS col0 FROM tab0 AS cor0
----
-132
-137
-143

query I rowsort
SELECT + + col2 + col1 * ( col2 * col1 ) AS col0 FROM tab1 AS cor0
----
16320
36558
5757

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 + col2 ) col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT + - cor0.col1 + col0 * - col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT + - 95 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13

query I rowsort
SELECT ALL ( + col1 ) * col0 * - col1 AS col0 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT - 18 + + cor0.col0 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 0aad33a74766f76c060add1839cbc818

query I rowsort
SELECT ALL - tab1.col1 * col1 AS col0 FROM tab1
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6413
SELECT col0 - - CAST( + col0 AS SIGNED ) * col1 FROM tab2 AS cor0
----
1422
224
4680

skipif mysql # not compatible
query I rowsort label-6413
SELECT col0 - - CAST ( + col0 AS INTEGER ) * col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL - col1 + + ( col1 ) * col2 AS col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT ALL + cor0.col0 + 24 * - col2 AS col0 FROM tab0 cor0
----
-1879
-768
11

query I rowsort
SELECT DISTINCT - + col1 * col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT - col1 * + 77 + + ( col2 ) FROM tab0 AS cor0
----
-6589
-6925
-7468

onlyif mysql # use DIV operator for integer division
query I rowsort label-6418
SELECT ALL ( + col2 ) DIV - col0 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL ( + col2 ) / - col0 AS col1 FROM tab0
----
-1
0
0

query I rowsort
SELECT - 53 * + tab0.col1 + col2 * - tab0.col1 FROM tab0
----
-12285
-5238
-7396

query I rowsort
SELECT + + col1 + 3 AS col1 FROM tab2 AS cor0
----
20
34
62

query I rowsort
SELECT col2 * 68 FROM tab0
----
2244
5576
68

query I rowsort
SELECT DISTINCT + col2 + + 75 + + 87 FROM tab0
----
163
195
244

query I rowsort
SELECT DISTINCT - - col0 + + 56 FROM tab1 AS cor0
----
120
136
59

query I rowsort
SELECT DISTINCT - + col0 * col2 * 25 AS col2 FROM tab0 AS cor0
----
-182450
-19800
-875

query I rowsort
SELECT ALL + cor0.col0 * col2 * + col2 AS col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL col1 * - 8 AS col2 FROM tab2
----
-136
-248
-472

query I rowsort
SELECT + + cor0.col1 * col0 - col0 * + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 5 * col2 + col2 AS col2 FROM tab2 AS cor0
----
-104
-108
-152

query I rowsort
SELECT DISTINCT - 84 + + col1 AS col1 FROM tab2 AS cor0
----
-25
-53
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-6430
SELECT + col2 DIV + col0 + + col1 AS col0 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-6430
SELECT + col2 / + col0 + + col1 AS col0 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT ALL - + 72 + + 61 FROM tab0 AS cor0
----
-11
-11
-11

query I rowsort
SELECT col1 + - 9 AS col0 FROM tab2 AS cor0
----
22
50
8

query I rowsort
SELECT DISTINCT - 88 * col0 AS col1 FROM tab1 AS cor0
----
-264
-5632
-7040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6434
SELECT CAST( NULL AS SIGNED ) - col2 * - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6434
SELECT CAST ( NULL AS INTEGER ) - col2 * - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - ( + col2 ) ) FROM tab0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6436
SELECT + CAST( - 8 AS SIGNED ) + - col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1256
-1412
-578

skipif mysql # not compatible
query I rowsort label-6436
SELECT + CAST ( - 8 AS INTEGER ) + - col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1256
-1412
-578

query I rowsort
SELECT + + col1 * 94 + - col1 FROM tab0 AS cor0
----
7998
8463
9021

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6438
SELECT CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6438
SELECT CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT col2 + col2 * - col2 * + col1 + col1 AS col2 FROM tab0 AS cor0
----
-611711
-93535
1

query I rowsort
SELECT - 27 * - col0 AS col0 FROM tab2 AS cor0
----
189
2106
2133

query I rowsort
SELECT ALL - 21 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6442
SELECT + + cor0.col1 + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6442
SELECT + + cor0.col1 + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 19 * 37 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to a4e490b08d98e68ab02cba5ddf6b2f33

query I rowsort
SELECT 7 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT + - col0 * - col0 * - col2 + + col0 FROM tab0 AS cor0
----
-1190
-18984
-649433

query I rowsort
SELECT - ( - col1 ) * - col1 + - 43 FROM tab1 AS cor0
----
-143
-212
-719

query I rowsort
SELECT DISTINCT + 18 AS col2 FROM tab2, tab1 AS cor0, tab2 cor1
----
18

query I rowsort
SELECT DISTINCT + col0 + + col2 + cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
1424
1461
691

skipif mysql # not compatible
query I rowsort
SELECT ALL - cor0.col0 * + CAST ( - col0 AS REAL ) + col2 AS col1 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT + + col1 * ( col2 + + col1 ) * ( + col0 ) AS col1 FROM tab1 AS cor0
----
113360
42880
6240

query I rowsort
SELECT DISTINCT col2 - + 50 FROM tab2 AS cor0
----
-12
-23
-24

query I rowsort
SELECT ALL - - col2 + col2 + + ( col0 ) AS col2 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT DISTINCT cor0.col0 * 91 + - 59 FROM tab1 AS cor0
----
214
5765
7221

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6454
SELECT CAST( + 47 AS SIGNED ) * col0 FROM tab1
----
141
3008
3760

skipif mysql # not compatible
query I rowsort label-6454
SELECT CAST ( + 47 AS INTEGER ) * col0 FROM tab1
----
141
3008
3760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6455
SELECT 36 / - col1 + + col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6455
SELECT 36 / - col1 + + col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6456
SELECT DISTINCT col0 * col1 DIV col2 - - tab0.col0 * col2 FROM tab0
----
3430
7396
854

skipif mysql # not compatible
query I rowsort label-6456
SELECT DISTINCT col0 * col1 / col2 - - tab0.col0 * col2 FROM tab0
----
3430
7396
854

query I rowsort
SELECT - - 14 AS col1 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6458
SELECT col2 + - ( col2 + - CAST( + 53 AS SIGNED ) ) * col2 AS col0 FROM tab1 AS cor0
----
-171
-4032
0

skipif mysql # not compatible
query I rowsort label-6458
SELECT col2 + - ( col2 + - CAST ( + 53 AS INTEGER ) ) * col2 AS col0 FROM tab1 AS cor0
----
-171
-4032
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6459
SELECT - - CAST( + 3 AS SIGNED ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
258
273
291

skipif mysql # not compatible
query I rowsort label-6459
SELECT - - CAST ( + 3 AS INTEGER ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
258
273
291

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6460
SELECT - CAST( NULL AS SIGNED ) * + 33 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6460
SELECT - CAST ( NULL AS INTEGER ) * + 33 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 68 - + cor0.col0 AS col1 FROM tab2 AS cor0
----
-10
-11
61

query I rowsort
SELECT DISTINCT col1 * col2 + 17 * col2 AS col2 FROM tab0 AS cor0
----
114
3399
8856

query I rowsort
SELECT DISTINCT + - col1 + - col0 + - col1 FROM tab1 cor0
----
-106
-55
-84

query I rowsort
SELECT ALL - 15 - + cor0.col2 FROM tab2 AS cor0
----
-41
-42
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-6465
SELECT ALL - + col0 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6465
SELECT ALL - + col0 / cor0.col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6466
SELECT CAST( + 30 AS SIGNED ) AS col0 FROM tab1
----
30
30
30

skipif mysql # not compatible
query I rowsort label-6466
SELECT CAST ( + 30 AS INTEGER ) AS col0 FROM tab1
----
30
30
30

query I rowsort
SELECT ALL col1 - 83 FROM tab0
----
14
3
8

query I rowsort
SELECT - col2 - - 63 * + col1 FROM tab1
----
1584
573
723

query I rowsort
SELECT DISTINCT - 74 * - ( - col2 * 70 + col0 ) FROM tab2
----
-128908
-139342
-190994

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6470
SELECT - col1 * + cor0.col0 + - col1 + ( + 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-6470
SELECT - col1 * + cor0.col0 + - col1 + ( + col1 ) * CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col2 + - 15 FROM tab0, tab0 AS cor0
----
-14
18
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-6472
SELECT - + ( col2 ) DIV - col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6472
SELECT - + ( col2 ) / - col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + ( - col1 ) * 7 FROM tab2 AS cor0
----
-119
-217
-413

query I rowsort
SELECT ALL - + col0 + - col1 * col2 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT 78 * col0 AS col2 FROM tab2 AS cor0
----
546
6084
6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) + ( + ( col1 ) + - 15 ) * + 64 col1 FROM tab2
----
2790
90
997

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6477
SELECT ALL + col0 + col1 * + CAST( + col2 AS SIGNED ) FROM tab0
----
132
2862
7551

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL + col0 + col1 * + CAST ( + col2 AS INTEGER ) FROM tab0
----
132
2862
7551

query I rowsort
SELECT col1 * ( - col1 ) + col2 AS col0 FROM tab0 AS cor0
----
-7363
-8199
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-6479
SELECT + col0 DIV tab1.col0 + col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-6479
SELECT + col0 / tab1.col0 + col1 FROM tab1
----
11
14
27

query I rowsort
SELECT ALL - 58 + col1 + col0 AS col2 FROM tab0
----
122
52
74

query I rowsort
SELECT ALL - 88 + + col0 AS col1 FROM tab0
----
-53
-64
1

query I rowsort
SELECT - - 33 AS col2 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT - 19 + + 33 FROM tab2, tab1 AS cor0
----
14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6484
SELECT DISTINCT - CAST( + 20 AS SIGNED ) + col0 FROM tab2 AS cor0
----
-13
58
59

skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT - CAST ( + 20 AS INTEGER ) + col0 FROM tab2 AS cor0
----
-13
58
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6485
SELECT ALL 25 * 10 * col1 + 46 + col2 DIV col1 FROM tab2 AS cor0
----
14796
4298
7796

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL 25 * 10 * col1 + 46 + col2 / col1 FROM tab2 AS cor0
----
14796
4298
7796

onlyif mysql # use DIV operator for integer division
query I rowsort label-6486
SELECT ALL - ( cor0.col2 ) - col0 DIV col2 AS col0 FROM tab1 AS cor0
----
-54
-58
-96

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL - ( cor0.col2 ) - col0 / col2 AS col0 FROM tab1 AS cor0
----
-54
-58
-96

query I rowsort
SELECT DISTINCT 17 * - col2 AS col1 FROM tab2 AS cor0
----
-442
-459
-646

query I rowsort
SELECT + + ( + 83 ) * col1 + ( - col1 ) AS col2 FROM tab2 AS cor0
----
1394
2542
4838

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - col0 AS REAL ) / - col0 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-18
-32
-60

query I rowsort
SELECT col1 + 50 FROM tab1
----
60
63
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6491
SELECT - tab1.col2 DIV - col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-6491
SELECT - tab1.col2 / - col1 FROM tab1
----
2
5
7

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 cor2
----
3645 values hashing to e7ea8a30caeb35409d15d2ce0abbd5a6

query I rowsort
SELECT DISTINCT - 94 AS col0 FROM tab2, tab0 AS cor0
----
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-6494
SELECT DISTINCT col1 + - tab1.col2 - col1 DIV - col1 FROM tab1
----
-27
-46
-82

skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT col1 + - tab1.col2 - col1 / - col1 FROM tab1
----
-27
-46
-82

query I rowsort
SELECT DISTINCT + 49 * - 97 + col1 + - col0 AS col1 FROM tab1 cor0
----
-4730
-4807
-4820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + 72 col2 FROM tab2 AS cor0
----
-6
-7
65

query I rowsort
SELECT DISTINCT - + col0 * 60 + col1 AS col0 FROM tab2 AS cor0
----
-389
-4621
-4723

query I rowsort
SELECT DISTINCT 36 + - col2 FROM tab1 cor0
----
-18
-21
-60

query I rowsort
SELECT ALL ( 48 ) * + col2 * ( col1 ) FROM tab1 AS cor0
----
27360
59904
67392

query I rowsort
SELECT DISTINCT - - col1 + + 49 FROM tab1 cor0
----
59
62
75

query I rowsort
SELECT DISTINCT - ( col1 ) + + col1 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6502
SELECT - - ( col1 ) DIV col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6502
SELECT - - ( col1 ) / col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - + 44 * col1 * + col2 AS col2 FROM tab2 AS cor0
----
-28424
-36828
-67496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6504
SELECT ALL - - CAST( NULL AS SIGNED ) + - ( col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL - - CAST ( NULL AS INTEGER ) + - ( col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + - col0 * + col0 * col1 AS col1 FROM tab1
----
-231
-40896
-83120

onlyif mysql # use DIV operator for integer division
query I rowsort label-6506
SELECT DISTINCT col2 + col2 DIV + col2 col0 FROM tab1
----
55
58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6506
SELECT DISTINCT col2 + col2 / + col2 col0 FROM tab1
----
55
58
97

query I rowsort
SELECT + col0 * - tab1.col0 + col0 FROM tab1
----
-4032
-6
-6320

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6509
SELECT - col2 DIV col1 - + col2 FROM tab2
----
-26
-27
-40

skipif mysql # not compatible
query I rowsort label-6509
SELECT - col2 / col1 - + col2 FROM tab2
----
-26
-27
-40

onlyif mysql # use DIV operator for integer division
query I rowsort label-6510
SELECT ALL col1 DIV col0 + col0 FROM tab2
----
11
78
79

skipif mysql # not compatible
query I rowsort label-6510
SELECT ALL col1 / col0 + col0 FROM tab2
----
11
78
79

query I rowsort
SELECT + col0 - cor0.col2 AS col1 FROM tab0 AS cor0 WHERE col2 IN ( + cor0.col1 )
----

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE + col0 BETWEEN - col1 AND col0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6513
SELECT col1 * + col2 DIV col2 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-6513
SELECT col1 * + col2 / col2 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col0 + col1 col2 FROM tab0
----
133
143
262

onlyif mysql # use DIV operator for integer division
query I rowsort label-6515
SELECT col2 * col2 DIV - col1 FROM tab0
----
-12
-73
0

skipif mysql # not compatible
query I rowsort label-6515
SELECT col2 * col2 / - col1 FROM tab0
----
-12
-73
0

query I rowsort
SELECT ALL + tab1.col0 + + col2 + + col0 * - col1 AS col1 FROM tab1
----
-21
-519
-864

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + col2 )
----

query I rowsort
SELECT DISTINCT tab0.col1 + col0 + col1 AS col2 FROM tab0
----
196
229
271

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 * col2 + col1 NOT IN ( - col1 + tab2.col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT - col0 - col0 AS col2 FROM tab1 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT ALL - col0 * col2 + col0 AS col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NULL = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 * col0 + col1 col0 FROM tab2
----
53
6117
6220

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 * - col0 + tab2.col0 col1 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT + col0 * + col2 + col2 * + col0 AS col2 FROM tab0 AS cor0
----
14596
1584
70

query I rowsort
SELECT + - col0 * - col0 * col0 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT + col2 * - col1 + - col1 * + col0 + col2 / + cor0.col1 NOT IN ( col1 ) OR NOT NULL NOT IN ( - col1 )
----

query I rowsort
SELECT col0 * - col2 + + col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT ALL col2 + col1 * cor0.col0 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT + + col1 + - col1 * + col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( + cor0.col0 / + cor0.col0 + + col1 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * 73 col1 FROM tab0 AS cor0
----
6278
6643
7081

query I rowsort
SELECT + col1 + col0 * - 21 AS col1 FROM tab2 AS cor0
----
-116
-1579
-1642

query I rowsort
SELECT - col2 * 67 AS col0 FROM tab2 AS cor0
----
-1742
-1809
-2546

onlyif mysql # use DIV operator for integer division
query I rowsort label-6535
SELECT ALL + + cor0.col1 DIV + ( col2 * + cor0.col0 ) col0 FROM tab0 AS cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL + + cor0.col1 / + ( col2 * + cor0.col0 ) col0 FROM tab0 AS cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT DISTINCT ( col0 ) * - col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6538
SELECT DISTINCT - col1 * 47 DIV - col0 FROM tab1
----
407
7

skipif mysql # not compatible
query I rowsort label-6538
SELECT DISTINCT - col1 * 47 / - col0 FROM tab1
----
407
7

query I rowsort
SELECT 44 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 cor2
----
81 values hashing to 19a2b9512177749564ba22ea2213fe3f

query I rowsort
SELECT col1 * + 64 AS col2 FROM tab2 cor0
----
1088
1984
3776

query I rowsort
SELECT ALL + col0 + col1 FROM tab1 WHERE NOT - col2 / + col2 = NULL
----

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NOT col2 BETWEEN col2 * + col2 AND - col0 + col0
----
-17
-31
-59

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( col1 )
----

query I rowsort
SELECT col0 * + col2 + + tab0.col1 * - tab0.col0 AS col1 FROM tab0
----
-1272
-3360
-801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * col1 - col0 col2 FROM tab0
----
7372
8192
9374

query I rowsort
SELECT - tab2.col2 + - col0 * col1 * col1 FROM tab2
----
-22869
-271544
-6754

query I rowsort
SELECT ALL tab0.col1 * col0 + - col0 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT col1 * tab1.col2 FROM tab1 WHERE NULL > - col0 * col1
----

query I rowsort
SELECT ALL + tab0.col2 + col1 FROM tab0 WHERE NOT col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col0 + col2 + 34 AS col0 FROM tab0
----
205
70
91

query I rowsort
SELECT col1 + 78 + cor0.col1 FROM tab0 AS cor0
----
250
260
272

query I rowsort
SELECT DISTINCT 47 FROM tab0 cor0
----
47

query I rowsort
SELECT - ( col0 ) * col2 + ( - col2 ) FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT + 69 * 43 + + col1 FROM tab1 AS cor0
----
2977
2980
2993

query I rowsort
SELECT DISTINCT - + ( + 82 ) * + col0 AS col2 FROM tab0 AS cor0
----
-1968
-2870
-7298

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) + col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - + ( col2 ) * col2 + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT - ( col2 ) * - col2 + + col0 * col0 + - col1 AS col0 FROM tab0 AS cor0
----
1129
14554
1579

query I rowsort
SELECT + col2 * + 42 FROM tab1 AS cor0
----
2268
2394
4032

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + - col1 * cor0.col1 col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT DISTINCT col2 + col1 * + col0 - col0 AS col0 FROM tab1
----
1056
129
633

query I rowsort
SELECT col0 + col2 - col1 AS col1 FROM tab1
----
111
163
31

query I rowsort
SELECT DISTINCT 76 + col1 * col1 FROM tab1
----
176
245
752

query I rowsort
SELECT + - col1 * + 2 AS col0 FROM tab0 AS cor0
----
-172
-182
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) + - col0 * - col1 col0 FROM tab0 cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-6566
SELECT ALL - col0 DIV - cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL - col0 / - cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 9 col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT - - 72 * col0 FROM tab1 AS cor0
----
216
4608
5760

query I rowsort
SELECT ALL col1 * col0 + col2 AS col1 FROM tab1
----
1136
132
697

query I rowsort
SELECT DISTINCT - col0 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - col0 col1 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6572
SELECT DISTINCT - col2 DIV col2 AS col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6572
SELECT DISTINCT - col2 / col2 AS col1 FROM tab0 cor0
----
-1

query I rowsort
SELECT ALL - col0 + 26 FROM tab1 AS cor0
----
-38
-54
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6574
SELECT col2 * col2 + - col0 + col2 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6574
SELECT col2 * col2 + - col0 + col2 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * - ( + 34 ) FROM tab2 AS cor0
----
-238
-2652
-2686

onlyif mysql # use DIV operator for integer division
query I rowsort label-6576
SELECT + cor0.col0 DIV 12 FROM tab0 AS cor0
----
2
2
7

skipif mysql # not compatible
query I rowsort label-6576
SELECT + cor0.col0 / 12 FROM tab0 AS cor0
----
2
2
7

query I rowsort
SELECT col1 + ( - col0 ) FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT - col2 * + 33 FROM tab2 AS cor0
----
-1254
-858
-891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 3 * - ( cor0.col0 ) col1 FROM tab0 AS cor0
----
105
106
349

query I rowsort
SELECT DISTINCT + col0 * + col0 - - col1 FROM tab1 AS cor0
----
35
4106
6413

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6581
SELECT ALL + - col2 - - CAST( NULL AS SIGNED ) * - 74 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL + - col2 - - CAST ( NULL AS INTEGER ) * - 74 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6582
SELECT - - col0 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6582
SELECT - - col0 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col0 * - col2 - - 81 AS col2 FROM tab2 AS cor0
----
-108
-1947
-2921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6584
SELECT ALL - + col2 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL - + col2 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col2 + + cor0.col1 col1 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT + col1 + - col2 * + 89 AS col2 FROM tab2 AS cor0
----
-2255
-2372
-3365

query I rowsort
SELECT ALL + - ( - col1 ) * - col0 AS col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT + ( + col1 ) * col1 * 71 AS col2 FROM tab2
----
20519
247151
68231

query I rowsort
SELECT - + 5 * + col1 AS col1 FROM tab0 AS cor0
----
-430
-455
-485

query I rowsort
SELECT + 90 FROM tab1, tab0 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 3b4644ef0734ed220952cae7e0648c4b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6591
SELECT DISTINCT ( 53 ) DIV col0 - 98 * - cor0.col0 col0 FROM tab1 cor0
----
311
6272
7840

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6591
SELECT DISTINCT ( 53 ) / col0 - 98 * - cor0.col0 col0 FROM tab1 cor0
----
311
6272
7840

query I rowsort
SELECT ALL col0 * - ( - col2 + col0 ) FROM tab2 AS cor0
----
-3239
-4056
140

query I rowsort
SELECT - - 80 + + cor0.col2 AS col1 FROM tab2 cor0
----
106
107
118

query I rowsort
SELECT + 38 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 + col2 col2 FROM tab2 cor0
----
-60
-71
-72

query I rowsort
SELECT DISTINCT + ( col2 ) - 32 * col2 FROM tab1 AS cor0
----
-1674
-1767
-2976

query I rowsort
SELECT 40 * - col0 FROM tab0
----
-1400
-3560
-960

query I rowsort
SELECT DISTINCT + + 42 FROM tab1 AS cor0
----
42

query I rowsort
SELECT + col1 + + col1 + cor0.col0 * - col0 FROM tab1 AS cor0
----
-4076
-6374
43

query I rowsort
SELECT DISTINCT + 92 * - col0 AS col0 FROM tab2 AS cor0
----
-644
-7176
-7268

onlyif mysql # use DIV operator for integer division
query I rowsort label-6601
SELECT DISTINCT col1 DIV col2 + ( - col0 ) FROM tab0 AS cor0
----
-22
-88
62

skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT col1 / col2 + ( - col0 ) FROM tab0 AS cor0
----
-22
-88
62

query I rowsort
SELECT ( col2 ) - 61 FROM tab1
----
-4
-7
35

query I rowsort
SELECT ALL - + cor0.col0 + col0 * col1 FROM tab0 AS cor0
----
2040
3360
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - ( - cor0.col1 * - col1 ) col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6605
SELECT DISTINCT col0 * col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6605
SELECT DISTINCT col0 * col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 61 AS col1 FROM tab2
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 + tab1.col0 * 47 col2 FROM tab1
----
176
3043
3795

query I rowsort
SELECT - 9 AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab2, tab0 AS cor1
----
243 values hashing to cf5683051968b61a6305c2d5329cdea1

query I rowsort
SELECT 51 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT + 19 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT + 62 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6613
SELECT DISTINCT - col2 + ( + col0 + col2 ) DIV - cor0.col0 AS col2 FROM tab0 cor0
----
-2
-35
-83

skipif mysql # not compatible
query I rowsort label-6613
SELECT DISTINCT - col2 + ( + col0 + col2 ) / - cor0.col0 AS col2 FROM tab0 cor0
----
-2
-35
-83

query I rowsort
SELECT + col2 + col2 * 40 FROM tab0 AS cor0
----
1353
3362
41

query I rowsort
SELECT col0 * - ( - tab2.col2 ) AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT + 8 AS col2 FROM tab0, tab1 AS cor0
----
8

query I rowsort
SELECT tab2.col2 * ( + 82 ) AS col0 FROM tab2
----
2132
2214
3116

query I rowsort
SELECT + - 39 + - 18 * + col0 * col1 AS col0 FROM tab2 AS cor0
----
-24213
-3945
-82875

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6619
SELECT DISTINCT CAST( 18 AS SIGNED ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6619
SELECT DISTINCT CAST ( 18 AS INTEGER ) FROM tab1 AS cor0
----
18

query I rowsort
SELECT ( - 4 ) * + col2 AS col0 FROM tab0 AS cor0
----
-132
-328
-4

query I rowsort
SELECT + - cor0.col1 * - col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + 86 * col0 + col2 AS col2 FROM tab1
----
312
5561
6976

query I rowsort
SELECT - 36 * ( col2 ) + 5 FROM tab0
----
-1183
-2947
-31

query I rowsort
SELECT ALL col0 + + col0 * col2 * col0 FROM tab1
----
233536
489
614480

query I rowsort
SELECT DISTINCT + col1 * - 53 + col1 FROM tab2
----
-1612
-3068
-884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6626
SELECT - CAST( - col2 AS SIGNED ) + - col0 * - cor0.col2 FROM tab1 AS cor0
----
216
3705
7776

skipif mysql # not compatible
query I rowsort label-6626
SELECT - CAST ( - col2 AS INTEGER ) + - col0 * - cor0.col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL + col2 + col1 * + 53 FROM tab0 AS cor0
----
4591
4905
5142

query I rowsort
SELECT ALL + col0 * col0 + - col2 * - col0 - col1 AS col0 FROM tab1 AS cor0
----
14067
145
7734

query I rowsort
SELECT - + col2 * + col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT - cor0.col2 * - col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - - col2 + + cor0.col1 * ( col0 * + col0 ) FROM tab0 cor0
----
118826
49569
720893

query I rowsort
SELECT + - col0 + + col2 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # use DIV operator for integer division
query I rowsort label-6633
SELECT DISTINCT + col0 * col0 * + 36 + + col0 DIV col2 FROM tab0 AS cor0
----
20736
285157
44135

skipif mysql # not compatible
query I rowsort label-6633
SELECT DISTINCT + col0 * col0 * + 36 + + col0 / col2 FROM tab0 AS cor0
----
20736
285157
44135

query I rowsort
SELECT ALL col0 + col1 * ( + col1 ) FROM tab2 AS cor0
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-6635
SELECT + col2 DIV ( - col0 * col1 + + col2 ) AS col1 FROM tab1 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6635
SELECT + col2 / ( - col0 * col1 + + col2 ) AS col1 FROM tab1 cor0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 31 col1 FROM tab2 AS cor0
----
-24
47
48

query I rowsort
SELECT + col1 * + ( cor0.col1 ) FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-6638
SELECT - - col1 DIV col0 + 8 + col1 DIV col0 FROM tab1 AS cor0
----
24
8
8

skipif mysql # not compatible
query I rowsort label-6638
SELECT - - col1 / col0 + 8 + col1 / col0 FROM tab1 AS cor0
----
24
8
8

query I rowsort
SELECT col1 * ( + col0 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6640
SELECT - col2 DIV cor0.col2 + col0 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-6640
SELECT - col2 / cor0.col2 + col0 FROM tab0 AS cor0
----
23
34
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-6641
SELECT ALL - - col2 DIV + 84 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL - - col2 / + 84 AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + col0 - + col2 * - ( cor0.col0 ) FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT col2 + cor0.col0 + - col1 * - col2 * col0 FROM tab2 AS cor0
----
119756
51151
5893

query I rowsort
SELECT DISTINCT + col2 * ( col0 * + col0 ) AS col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT DISTINCT - col1 + - 46 AS col2 FROM tab2 AS cor0
----
-105
-63
-77

query I rowsort
SELECT ALL + col2 + 0 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + + col2 col1 FROM tab2
----
1560
684
864

query I rowsort
SELECT cor0.col0 + col0 - + col2 FROM tab1 AS cor0
----
-48
64
71

query I rowsort
SELECT ALL col1 + col0 * col1 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - ( + col2 ) * 83 + col1 * + col1 AS col1 FROM tab0 AS cor0
----
1475
4657
9326

query I rowsort
SELECT ALL - 86 + + cor0.col0 * - cor0.col0 FROM tab1 AS cor0
----
-4182
-6486
-95

query I rowsort
SELECT + col2 + col1 * ( tab1.col1 ) AS col2 FROM tab1
----
157
265
730

query I rowsort
SELECT ALL + ( + 70 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT - 79 * - col2 + ( - 96 ) FROM tab1 AS cor0
----
4170
4407
7488

query I rowsort
SELECT - + 67 * + col0 AS col1 FROM tab0 AS cor0
----
-1608
-2345
-5963

query I rowsort
SELECT ALL + + 68 AS col1 FROM tab0 cor0
----
68
68
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6657
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6657
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL + col2 + + col0 * - col1 * 73 FROM tab2 AS cor0
----
-15814
-335920
-98001

query I rowsort
SELECT DISTINCT - + ( - col2 ) * + 53 FROM tab1 AS cor0
----
2862
3021
5088

query I rowsort
SELECT 31 * cor0.col2 * col0 FROM tab0 cor0
----
1085
226238
24552

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6661
SELECT DISTINCT + col2 + - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT + col2 + - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6662
SELECT ALL - 78 / col0 + CAST( NULL AS SIGNED ) - 65 * tab1.col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6662
SELECT ALL - 78 / col0 + CAST ( NULL AS INTEGER ) - 65 * tab1.col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 51 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT ALL + 70 - col2 AS col2 FROM tab2
----
32
43
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6665
SELECT DISTINCT - CAST( + cor1.col0 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-6665
SELECT DISTINCT - CAST ( + cor1.col0 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6666
SELECT + 66 DIV - 27 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

skipif mysql # not compatible
query I rowsort label-6666
SELECT + 66 / - 27 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6667
SELECT col2 / col1 + - col0 * - col2 * + col2 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6667
SELECT col2 / col1 + - col0 * - col2 * + col2 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 * col1 AS col0 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT col0 + + 8 * col2 FROM tab0 AS cor0
----
288
43
745

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) * col0 + ( col0 * col0 ) col2 FROM tab0 AS cor0
----
1152
15842
2450

query I rowsort
SELECT + 98 FROM tab0, tab1 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6673
SELECT 6 - + col2 DIV + col0 AS col2 FROM tab2
----
3
6
6

skipif mysql # not compatible
query I rowsort label-6673
SELECT 6 - + col2 / + col0 AS col2 FROM tab2
----
3
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6674
SELECT ALL ( col2 ) DIV col0 AS col1 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL ( col2 ) / col0 AS col1 FROM tab1
----
0
1
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-6675
SELECT + col2 + col2 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6675
SELECT + col2 + col2 / cor0.col1 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL ( + col1 ) * cor0.col2 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + tab2.col1 col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT ALL + 34 + col0 + - col1 FROM tab0 AS cor0
----
-28
-28
32

query I rowsort
SELECT DISTINCT - 38 AS col2 FROM tab0 cor0
----
-38

query I rowsort
SELECT ALL - 82 + - cor0.col0 * - col2 AS col2 FROM tab1 AS cor0
----
3566
7598
80

query I rowsort
SELECT DISTINCT ( - col0 ) + 64 FROM tab0 cor0
----
-25
29
40

query I rowsort
SELECT - 54 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211

query I rowsort
SELECT ALL col2 + + 55 FROM tab1
----
109
112
151

onlyif mysql # use DIV operator for integer division
query I rowsort label-6684
SELECT col2 + + 60 DIV + 25 AS col1 FROM tab1 cor0
----
56
59
98

skipif mysql # not compatible
query I rowsort label-6684
SELECT col2 + + 60 / + 25 AS col1 FROM tab1 cor0
----
56
59
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6685
SELECT ALL + col0 DIV - col0 col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL + col0 / - col0 col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col1 + 7 AS col1 FROM tab1 AS cor0
----
17
20
33

query I rowsort
SELECT ALL - col2 + col1 * - col2 AS col1 FROM tab1 cor0
----
-1344
-1458
-627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - col2 col1 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6689
SELECT ALL - col1 + 34 DIV + col2 AS col2 FROM tab1 cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL - col1 + 34 / + col2 AS col2 FROM tab1 cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 col1 FROM tab1, tab0 AS cor0
----
13

query I rowsort
SELECT DISTINCT 95 + + cor0.col1 + col2 FROM tab2 cor0
----
150
153
180

query I rowsort
SELECT - 16 * + col2 AS col2 FROM tab1 AS cor0
----
-1536
-864
-912

query I rowsort
SELECT - col1 + + 60 FROM tab0 AS cor0
----
-26
-31
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 * - col2 col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL - col1 + col2 * - col2 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT ALL + - cor0.col1 + - col1 FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT + col2 + - col1 * cor0.col2 FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT - 51 + - col2 FROM tab1 AS cor0
----
-105
-108
-147

query I rowsort
SELECT ALL - - ( 36 ) + col2 AS col0 FROM tab2 AS cor0
----
62
63
74

query I rowsort
SELECT ALL + - ( col0 ) + col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL - 84 * 30 - + col2 * + col2 FROM tab0 AS cor0
----
-2521
-3609
-9244

query I rowsort
SELECT ALL + ( - cor0.col2 ) + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT col2 * 4 FROM tab2 AS cor0
----
104
108
152

query I rowsort
SELECT ALL - ( + col2 ) + + col0 AS col2 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT - 47 + col2 AS col0 FROM tab1 AS cor0
----
10
49
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - ( + ( col2 ) ) col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + 49 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT col2 * - 9 + col1 * - cor0.col1 * ( col2 ) FROM tab1 AS cor0
----
-17088
-36990
-6213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + col2 * - 19 col2 FROM tab1 AS cor0
----
-1080
-1140
-1920

onlyif mysql # use DIV operator for integer division
query I rowsort label-6710
SELECT - col2 * col2 DIV col2 + col2 * col0 AS col0 FROM tab1 AS cor0
----
108
3591
7584

skipif mysql # not compatible
query I rowsort label-6710
SELECT - col2 * col2 / col2 + col2 * col0 AS col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT 70 * tab1.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 45057eabdfc9c276a006bcd1599c917f

onlyif mysql # use DIV operator for integer division
query I rowsort label-6712
SELECT - ( 49 ) DIV tab2.col0 FROM tab2
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-6712
SELECT - ( 49 ) / tab2.col0 FROM tab2
----
-7
0
0

query I rowsort
SELECT ALL + col2 + - tab2.col1 + col2 FROM tab2
----
-7
23
59

query I rowsort
SELECT ALL + 92 + col2 FROM tab0
----
125
174
93

query I rowsort
SELECT ALL ( ( col0 ) ) + ( + 81 + col1 ) FROM tab0
----
191
213
261

onlyif mysql # use DIV operator for integer division
query I rowsort label-6716
SELECT DISTINCT - - col0 DIV col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6716
SELECT DISTINCT - - col0 / col0 FROM tab0 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 * col2 col2 FROM tab2 AS cor0
----
1586
1647
2318

query I rowsort
SELECT + - col0 * col1 + - col1 * - col2 FROM tab2 AS cor0
----
-3068
-697
620

query I rowsort
SELECT 2 + col1 * col2 + col0 AS col1 FROM tab0 AS cor0
----
134
2864
7553

query I rowsort
SELECT ALL - 55 + col2 AS col1 FROM tab0 cor0
----
-22
-54
27

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 ALL col0 + + tab2.col0 * - 12 FROM tab2
----
-77
-858
-869

query I rowsort
SELECT + 73 * col1 + ( + col1 ) FROM tab2 AS cor0
----
1258
2294
4366

query I rowsort
SELECT + 36 * + col2 * ( - 88 ) + col2 * 33 + + col1 FROM tab2
----
-119113
-81451
-84614

query I rowsort
SELECT - 3 + - col1 * 34 + - tab2.col1 FROM tab2
----
-1088
-2068
-598

query I rowsort
SELECT + col2 * - ( + 3 ) + col0 FROM tab0 AS cor0
----
-157
-75
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-6727
SELECT ALL + - col0 * - col2 DIV + col2 FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL + - col0 * - col2 / + col2 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - - col0 + ( 89 ) AS col2 FROM tab2 AS cor0
----
167
168
96

query I rowsort
SELECT DISTINCT col1 * cor0.col2 + + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + - cor0.col1 * - 89 * col0 + - col2 FROM tab1 AS cor0
----
56903
6888
92464

onlyif mysql # use DIV operator for integer division
query I rowsort label-6731
SELECT - cor0.col1 + - col1 + + 1 DIV col2 FROM tab1 AS cor0
----
-20
-26
-52

skipif mysql # not compatible
query I rowsort label-6731
SELECT - cor0.col1 + - col1 + + 1 / col2 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT + cor0.col0 + col1 AS col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6733
SELECT DISTINCT col1 + - CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-6733
SELECT DISTINCT col1 + - CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL col1 * + col0 * + col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT + - col1 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( - col2 ) ) * col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6737
SELECT - - CAST( - 83 AS SIGNED ) + col1 AS col1 FROM tab1 cor0
----
-57
-70
-73

skipif mysql # not compatible
query I rowsort label-6737
SELECT - - CAST ( - 83 AS INTEGER ) + col1 AS col1 FROM tab1 cor0
----
-57
-70
-73

query I rowsort
SELECT + cor0.col2 + col2 * + col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL - col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT 18 * + col0 FROM tab1
----
1152
1440
54

query I rowsort
SELECT col0 + ( - col2 + col1 ) FROM tab0
----
131
77
98

query I rowsort
SELECT col1 + 84 * col1 FROM tab2
----
1445
2635
5015

query I rowsort
SELECT ALL - ( - tab0.col2 ) FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT - 8 + col0 FROM tab0 AS cor0
----
16
27
81

query I rowsort
SELECT DISTINCT + col2 * + col1 + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT - + col0 - + col0 * col0 FROM tab2 cor0
----
-56
-6162
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col0 FROM tab0 cor0
----
-24
-24
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 col2 FROM tab2
----
23

query I rowsort
SELECT ALL + col1 + col0 + col0 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT ALL + col0 * col2 + + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT - - 36 + + cor0.col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1212
-1368
-534

query I rowsort
SELECT ALL + - cor0.col2 + + cor0.col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6753
SELECT DISTINCT cor0.col1 DIV col2 + cor0.col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT cor0.col1 / col2 + cor0.col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL cor0.col0 * col1 + ( + 85 ) + + col1 FROM tab2 cor0
----
1445
333
4746

query I rowsort
SELECT ALL - - col2 * cor0.col0 + 14 FROM tab1 AS cor0
----
176
3662
7694

query I rowsort
SELECT DISTINCT 92 AS col2 FROM tab0 cor0
----
92

query I rowsort
SELECT DISTINCT ( + col2 ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT + col2 * + col0 + cor0.col0 AS col2 FROM tab1 cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6759
SELECT - cor0.col1 DIV - col0 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6759
SELECT - cor0.col1 / - col0 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6760
SELECT ALL - col2 * + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL - col2 * + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col0 ) * ( col2 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + col2 * - cor0.col1 + col0 * col1 FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT - col2 * 67 + col1 FROM tab2 AS cor0
----
-1683
-1778
-2529

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6764
SELECT col2 + - CAST( - col1 AS SIGNED ) * + col0 * + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-106059
-1492
-358930

skipif mysql # not compatible
query I rowsort label-6764
SELECT col2 + - CAST ( - col1 AS INTEGER ) * + col0 * + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-106059
-1492
-358930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * cor0.col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT 29 AS col2 FROM tab1, tab0 AS cor0
----
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - 97 col0 FROM tab1 AS cor0
----
-71
-84
-87

query I rowsort
SELECT ALL - + cor0.col0 + 10 + - col2 FROM tab2 cor0
----
-107
-24
-94

query I rowsort
SELECT DISTINCT + + col0 * col1 * col1 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6770
SELECT col0 * + CAST( - col0 AS SIGNED ) col2 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6770
SELECT col0 * + CAST ( - col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL + + col0 * col2 - + col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT + col0 * + ( col0 ) AS col0 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-6773
SELECT DISTINCT col0 DIV 66 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6773
SELECT DISTINCT col0 / 66 FROM tab2 AS cor0
----
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6774
SELECT ALL + cor0.col2 + CAST( NULL AS SIGNED ) * + 92 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL + cor0.col2 + CAST ( NULL AS INTEGER ) * + 92 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - col1 + - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6776
SELECT ALL + - col1 - 55 DIV cor0.col0 FROM tab0 AS cor0
----
-88
-91
-98

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL + - col1 - 55 / cor0.col0 FROM tab0 AS cor0
----
-88
-91
-98

query I rowsort
SELECT DISTINCT col0 * ( + col2 * col1 ) + ( col1 ) FROM tab2
----
119711
51051
5890

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 972d282d6d92f451c90dc8ca51a18f3e

query I rowsort
SELECT DISTINCT tab0.col2 + - 11 FROM tab0
----
-10
22
71

query I rowsort
SELECT 61 * + col1 + col2 + col1 FROM tab2 AS cor0
----
1092
1949
3684

query I rowsort
SELECT - 57 * ( col1 ) FROM tab0 cor0
----
-4902
-5187
-5529

query I rowsort
SELECT - 4 + col2 * - col2 FROM tab0 cor0
----
-1093
-5
-6728

query I rowsort
SELECT col0 + 92 FROM tab1 AS cor0
----
156
172
95

query I rowsort
SELECT + 26 + + col2 AS col0 FROM tab1 AS cor0
----
122
80
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6785
SELECT DISTINCT + CAST( - 36 AS SIGNED ) * cor0.col0 FROM tab2 cor0
----
-252
-2808
-2844

skipif mysql # not compatible
query I rowsort label-6785
SELECT DISTINCT + CAST ( - 36 AS INTEGER ) * cor0.col0 FROM tab2 cor0
----
-252
-2808
-2844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6786
SELECT + CAST( col0 AS SIGNED ) * + col0 AS col2 FROM tab1 cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-6786
SELECT + CAST ( col0 AS INTEGER ) * + col0 AS col2 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT col2 * + col0 + - tab1.col2 * col1 + col2 FROM tab1
----
-1188
3135
6528

query I rowsort
SELECT col2 * - col1 + col1 * + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col1 + col1 * - col0 FROM tab1
----
-104
-1053
-650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( cor0.col2 ) col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + 13 + - 34 AS col2 FROM tab0 AS cor0
----
-21
-21
-21

query IIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0 CROSS JOIN tab0 cor1
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6793
SELECT ALL 40 - + col1 DIV + ( + col0 ) col0 FROM tab2
----
36
40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL 40 - + col1 / + ( + col0 ) col0 FROM tab2
----
36
40
40

query I rowsort
SELECT ALL col2 + tab0.col0 - col2 * + col0 FROM tab0
----
-7127
-735
1

query I rowsort
SELECT DISTINCT col1 * - ( col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - col0 * - 15 + 7 FROM tab1 AS cor0
----
1207
52
967

query I rowsort
SELECT - col2 * + col1 + + col0 * - col1 * - col2 AS col1 FROM tab0 AS cor0
----
3298
65274
656656

onlyif mysql # use DIV operator for integer division
query I rowsort label-6798
SELECT + col0 DIV ( 67 ) + col1 + 54 * + col0 AS col2 FROM tab1 AS cor0
----
188
3466
4334

skipif mysql # not compatible
query I rowsort label-6798
SELECT + col0 / ( 67 ) + col1 + 54 * + col0 AS col2 FROM tab1 AS cor0
----
188
3466
4334

query I rowsort
SELECT DISTINCT - cor1.col0 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT tab1.col2 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6801
SELECT ALL + col1 DIV col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL + col1 / col2 AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * 0 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col1 * 15 * 55 FROM tab1 AS cor0
----
-10725
-21450
-8250

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6804
SELECT - CAST( - cor0.col1 AS SIGNED ) col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6804
SELECT - CAST ( - cor0.col1 AS INTEGER ) col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + col1 + + col2 + col2 AS col2 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT DISTINCT - - col2 * col0 * cor0.col0 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT col2 * + 42 AS col2 FROM tab0 AS cor0
----
1386
3444
42

query I rowsort
SELECT DISTINCT - col2 * + col1 * - col1 FROM tab1 AS cor0
----
16224
36504
5700

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 / col2 IN ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * - col0 IN ( - col0 + + col2 )
----

query I rowsort
SELECT col1 + col2 * col1 * col2 AS col1 FROM tab2 AS cor0
----
22630
24565
39943

query I rowsort
SELECT - + col0 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT - col2 * + col1 + + col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT - col1 + - cor0.col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT + + col0 + col2 * - col1 FROM tab2 AS cor0
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-6816
SELECT + + col1 DIV col1 + + col1 * + col0 FROM tab0 AS cor0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-6816
SELECT + + col1 / col1 + + col1 * + col0 FROM tab0 AS cor0
----
2065
3396
8100

query I rowsort
SELECT - col1 * + col2 + - cor0.col1 FROM tab0 cor0
----
-194
-2924
-7553

query I rowsort
SELECT + col0 + col2 * col1 * + col1 FROM tab0 cor0
----
244092
679131
9444

query I rowsort
SELECT ALL col2 + + tab0.col0 + - col2 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT - + col0 * + cor0.col1 * + col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT ALL - - col1 + - col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL ( - 0 ) FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-6823
SELECT - 36 DIV col0 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6823
SELECT - 36 / col0 FROM tab0 AS cor0
----
-1
-1
0

query I rowsort
SELECT + 44 FROM tab2, tab2 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT BETWEEN + col2 AND + col0
----

query I rowsort
SELECT col2 + cor0.col0 * + 18 AS col2 FROM tab0 AS cor0
----
1684
465
631

query I rowsort
SELECT DISTINCT col1 / col1 AS col1 FROM tab0 WHERE ( NULL ) > col2
----

query I rowsort
SELECT col1 * - col1 + - col2 FROM tab0
----
-7429
-8363
-9410

query I rowsort
SELECT tab1.col2 * col1 - col1 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 * ( + col1 ) + + col0 col1 FROM tab2 cor0
----
1612
725
844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6832
SELECT col1 + - ( col0 * - col0 + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6832
SELECT col1 + - ( col0 * - 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-6833
SELECT + col2 + - col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-6833
SELECT + col2 + - col0 / + col0 AS col1 FROM tab0 AS cor0
----
0
32
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 - + col0 col1 FROM tab2
----
-32
-33
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-6835
SELECT 22 DIV col0 + + col0 AS col0 FROM tab1
----
10
64
80

skipif mysql # not compatible
query I rowsort label-6835
SELECT 22 / col0 + + col0 AS col0 FROM tab1
----
10
64
80

query I rowsort
SELECT ALL col2 * - col0 + - 61 FROM tab1
----
-223
-3709
-7741

query I rowsort
SELECT ALL + tab0.col1 + col1 * + col0 AS col2 FROM tab0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab2 WHERE NULL = + col0 / col2
----

query I rowsort
SELECT DISTINCT - col0 * - col1 - col2 FROM tab2
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-6840
SELECT DISTINCT - tab0.col0 + col1 DIV col0 FROM tab0
----
-21
-33
-88

skipif mysql # not compatible
query I rowsort label-6840
SELECT DISTINCT - tab0.col0 + col1 / col0 FROM tab0
----
-21
-33
-88

query I rowsort
SELECT DISTINCT + tab2.col1 * + tab2.col2 * col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - col0 * col1 + + col2 FROM tab2
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-6843
SELECT ALL + col1 + col1 DIV col2 FROM tab0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL + col1 + col1 / col2 FROM tab0
----
194
88
92

query I rowsort
SELECT col2 + col0 * - col0 AS col1 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT ALL col2 * col2 * - col0 AS col1 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 WHERE NOT NULL IN ( col2 * - col0 )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NULL NOT IN ( - tab2.col0 + tab2.col2 * col2 - col0 * col2 )
----

query I rowsort
SELECT ALL tab1.col0 FROM tab1 WHERE NOT col2 * col2 IN ( col2 * + col0 )
----
3
64
80

query I rowsort
SELECT ALL tab0.col2 * + col1 AS col0 FROM tab0 WHERE ( col1 / col2 ) <= NULL
----

query I rowsort
SELECT DISTINCT + col0 + tab0.col0 * tab0.col0 AS col2 FROM tab0
----
1260
600
8010

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 < NULL
----

query I rowsort
SELECT + tab1.col0 * - col2 AS col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL tab0.col1 AS col0 FROM tab0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT + tab1.col1 * - col0 + col1 * + col0 * col0 FROM tab1 WHERE NULL <= - col0
----

query I rowsort
SELECT col2 + col0 * - col1 * + col1 AS col1 FROM tab2
----
-22793
-271492
-6700

query I rowsort
SELECT + col0 * + col1 + col1 AS col0 FROM tab0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-6857
SELECT DISTINCT + col0 * + tab2.col1 * + col0 + col0 + col0 DIV + ( + col0 ) FROM tab2
----
106177
1527
359035

skipif mysql # not compatible
query I rowsort label-6857
SELECT DISTINCT + col0 * + tab2.col1 * + col0 + col0 + col0 / + ( + col0 ) FROM tab2
----
106177
1527
359035

query I rowsort
SELECT ALL col2 + col0 + ( - col0 + + col0 * - ( + 50 ) ) AS col0 FROM tab0
----
-1167
-1749
-4368

query I rowsort
SELECT ALL + col1 * - col0 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT col0 + + col0 * - col0 * - col2 AS col2 FROM tab0 AS cor0
----
1260
19032
649611

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6861
SELECT DISTINCT cor0.col0 * CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-6861
SELECT DISTINCT cor0.col0 * CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - - col1 * 50 FROM tab0 AS cor0
----
4300
4550
4850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + ( + 30 ) col2 FROM tab1 AS cor0
----
40
43
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-6864
SELECT DISTINCT - 43 * tab0.col0 DIV 98 + - col2 * col2 FROM tab0
----
-1099
-16
-6763

skipif mysql # not compatible
query I rowsort label-6864
SELECT DISTINCT - 43 * tab0.col0 / 98 + - col2 * col2 FROM tab0
----
-1099
-16
-6763

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 + + col2 col0 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT - 79 + + tab2.col1 + - 75 AS col2 FROM tab2
----
-123
-137
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * - ( 2 ) + + col2 col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT + - col0 * ( cor0.col1 ) FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL 13 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT ALL + - col0 * + col0 + - cor0.col1 FROM tab0 cor0
----
-1322
-662
-8012

query I rowsort
SELECT DISTINCT + + col1 * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL col0 + ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + col1 * 54 AS col2 FROM tab0 AS cor0
----
4644
4914
5238

query I rowsort
SELECT + cor0.col1 + 57 FROM tab0 AS cor0
----
143
148
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * cor0.col2 * col2 col0 FROM tab1 cor0
----
-157464
-185193
-884736

query I rowsort
SELECT + - col0 * ( cor0.col0 ) + col0 AS col1 FROM tab0 AS cor0
----
-1190
-552
-7832

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 13 AS REAL ) + + tab1.col0 / + 80 FROM tab1
----
13
14

query I rowsort
SELECT + + 54 + - col2 * - col1 FROM tab1 cor0
----
1302
1458
624

query I rowsort
SELECT DISTINCT + - col0 + ( col2 * - 70 ) + - 91 AS col2 FROM tab0 AS cor0
----
-196
-2425
-5920

query I rowsort
SELECT ALL col1 + - col2 - col1 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + 34 * - col0 + col2 AS col2 FROM tab2 AS cor0
----
-211
-2626
-2648

query I rowsort
SELECT - 17 * - col0 + col0 FROM tab0 AS cor0
----
1602
432
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + 95 col2 FROM tab2 AS cor0
----
36
64
78

query I rowsort
SELECT ALL + + 28 * 63 * + col2 - cor0.col2 AS col2 FROM tab2 cor0
----
45838
47601
66994

onlyif mysql # use DIV operator for integer division
query I rowsort label-6885
SELECT - col2 + 98 DIV col0 FROM tab1
----
-22
-56
-95

skipif mysql # not compatible
query I rowsort label-6885
SELECT - col2 + 98 / col0 FROM tab1
----
-22
-56
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col2 * col0 - 80 col2 FROM tab2 AS cor0
----
1243
158104
237078

query I rowsort
SELECT ALL - + 47 AS col2 FROM tab0 AS cor0
----
-47
-47
-47

query I rowsort
SELECT - cor0.col1 * col2 * col2 + + col1 FROM tab2 AS cor0
----
-22568
-24531
-39825

query I rowsort
SELECT DISTINCT - 53 + - cor0.col1 * ( col1 ) FROM tab1 cor0
----
-153
-222
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6890
SELECT + col2 / + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6890
SELECT + col2 / + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * + col2 + 43 FROM tab0 AS cor0
----
-2795
-54
-7419

query I rowsort
SELECT ALL - 48 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-126
-127
-55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6893
SELECT + col2 + col2 * + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
1122
2
6806

skipif mysql # not compatible
query I rowsort label-6893
SELECT + col2 + col2 * + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL + - cor0.col0 * - col1 + col2 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT - + col1 * cor0.col2 * col0 + - col0 FROM tab2 AS cor0
----
-119730
-51113
-5866

query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab2 cor0
----
73

query I rowsort
SELECT - col1 * - cor0.col0 * col2 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-6898
SELECT ALL - + col1 DIV col2 + ( - cor0.col1 * - cor0.col1 + cor0.col1 ) AS col1 FROM tab1 cor0
----
110
182
702

skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL - + col1 / col2 + ( - cor0.col1 * - cor0.col1 + cor0.col1 ) AS col1 FROM tab1 cor0
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 + + ( col0 + - col2 ) col0 FROM tab2 AS cor0
----
-248
-3429
-981

query I rowsort
SELECT + col2 + col2 * 5 FROM tab1 AS cor0
----
324
342
576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6902
SELECT ALL + col1 * + col0 + - CAST( + col0 AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
-1659
2574
28

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL + col1 * + col0 + - CAST ( + col0 AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
-1659
2574
28

query I rowsort
SELECT ( + cor0.col2 ) - + ( ( col0 ) ) AS col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL - ( - col2 ) + + cor0.col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - + col0 * + col1 - + cor0.col0 FROM tab2 cor0
----
-1422
-224
-4680

query I rowsort
SELECT - + 38 - + col2 AS col2 FROM tab1 AS cor0
----
-134
-92
-95

query I rowsort
SELECT - 78 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6908
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col1 + + col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6908
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col1 + + col0 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * col1 + cor0.col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - - 41 + - ( - col2 ) AS col0 FROM tab1 AS cor0
----
137
95
98

query I rowsort
SELECT DISTINCT - tab2.col2 * - col2 * + col0 FROM tab2
----
114076
5103
52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 * - col0 * col2 col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT + 5 FROM tab1, tab1 AS cor0
----
5

query I rowsort
SELECT - 5 AS col0 FROM tab0, tab0 AS cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to ede490c59604723c000449e027e5cf18

query I rowsort
SELECT + tab1.col0 + 2 * - col1 + col2 FROM tab1
----
101
150
5

query I rowsort
SELECT + 48 AS col2 FROM tab2
----
48
48
48

query I rowsort
SELECT - 65 - col1 * - col1 FROM tab1
----
104
35
611

query I rowsort
SELECT 83 + col0 - col1 * ( tab1.col2 ) FROM tab1
----
-1085
-1318
-423

query I rowsort
SELECT + 95 * col2 AS col2 FROM tab1 AS cor0
----
5130
5415
9120

query I rowsort
SELECT ALL 31 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # use DIV operator for integer division
query I rowsort label-6921
SELECT + col2 + col1 DIV + col1 col0 FROM tab1
----
55
58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6921
SELECT + col2 + col1 / + col1 col0 FROM tab1
----
55
58
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6922
SELECT - CAST( NULL AS SIGNED ) + - col2 / col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6922
SELECT - CAST ( NULL AS INTEGER ) + - col2 / col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 61 + cor0.col2 * - col1 FROM tab2 AS cor0
----
-1473
-585
-776

query I rowsort
SELECT col2 * + col0 + col2 * col0 * col1 FROM tab1 AS cor0
----
107520
40128
4374

query I rowsort
SELECT + col2 - - 71 FROM tab0 AS cor0
----
104
153
72

query I rowsort
SELECT - 7 * cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 36815034201b815fc8c3b01e8a5bc8e8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6927
SELECT tab1.col1 DIV - tab1.col1 + 19 + + 54 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

skipif mysql # not compatible
query I rowsort label-6927
SELECT tab1.col1 / - tab1.col1 + 19 + + 54 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT + ( - 54 ) * col2 FROM tab0
----
-1782
-4428
-54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6929
SELECT ALL - CAST( 2 AS SIGNED ) * col0 - + ( col2 ) FROM tab2
----
-182
-196
-41

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL - CAST ( 2 AS INTEGER ) * col0 - + ( col2 ) FROM tab2
----
-182
-196
-41

query I rowsort
SELECT - cor0.col1 + cor0.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - + ( 13 ) * col1 FROM tab1 AS cor0
----
-130
-169
-338

query I rowsort
SELECT ALL - col0 * + col2 * ( col1 ) FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - - ( - col2 ) + + col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - + tab2.col1 + - tab2.col0 + - cor0.col1 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to cb1e0d0c28d7d9bdc80c910c85448a22

query I rowsort
SELECT 45 + + col1 * col1 FROM tab1 cor0
----
145
214
721

query I rowsort
SELECT 45 * - col2 AS col0 FROM tab2 AS cor0
----
-1170
-1215
-1710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 + + col0 * 28 - 21 col1 FROM tab2 AS cor0
----
100
2088
2116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * 83 col0 FROM tab0 AS cor0
----
2739
6806
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6939
SELECT - + col2 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6939
SELECT - + col2 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 + 22 AS col2 FROM tab2 AS cor0
----
48
49
60

query I rowsort
SELECT + cor0.col1 * ( col2 ) AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + 54 * 83 * cor0.col2 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 448f306c864d4332120c5e469879ccf0

query I rowsort
SELECT DISTINCT + cor0.col0 * - 63 * 24 FROM tab1, tab0 AS cor0
----
-134568
-36288
-52920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
3
64
80

query I rowsort
SELECT DISTINCT - cor0.col0 * - col1 + - cor0.col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT col2 * - ( 17 ) * col1 FROM tab1 AS cor0
----
-21216
-23868
-9690

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6947
SELECT DISTINCT - - cor0.col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6947
SELECT DISTINCT - - cor0.col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + col0 - - 38 FROM tab1 AS cor0
----
-4058
-6362
29

query I rowsort
SELECT ALL - col2 * - 45 FROM tab1 AS cor0
----
2430
2565
4320

query I rowsort
SELECT ALL col1 * col1 + + col2 * col1 + + col2 * col1 AS col2 FROM tab1 AS cor0
----
1240
2665
3484

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6951
SELECT + CAST( + col1 AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-6951
SELECT + CAST ( + col1 AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + - cor0.col0 * - 35 + + cor0.col1 + col2 FROM tab2 AS cor0
----
2815
2820
303

query I rowsort
SELECT + + col1 * col2 - cor0.col0 AS col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT 46 * tab0.col1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 3cd21e5b80ecb33a8825b0374fd6afdc

query I rowsort
SELECT ALL - + ( col0 ) * + ( + col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - 85 * - cor0.col2 FROM tab1 AS cor0
----
4590
4845
8160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + tab2.col2 col2 FROM tab2
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6958
SELECT col2 DIV cor0.col1 + 21 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-3
15
16

skipif mysql # not compatible
query I rowsort label-6958
SELECT col2 / cor0.col1 + 21 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-3
15
16

query I rowsort
SELECT ALL - - 32 * + col2 AS col1 FROM tab0 cor0
----
1056
2624
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6960
SELECT - - col1 + cor0.col2 + CAST( NULL AS SIGNED ) / - 91 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6960
SELECT - - col1 + cor0.col2 + CAST ( NULL AS INTEGER ) / - 91 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6961
SELECT - 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-6961
SELECT - col2 / - col2 col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + cor0.col0 + col0 * + 98 + ( col1 ) AS col2 FROM tab1 cor0
----
323
6346
7933

onlyif mysql # use DIV operator for integer division
query I rowsort label-6963
SELECT DISTINCT col0 DIV + col0 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT col0 / + col0 AS col0 FROM tab1
----
1

query I rowsort
SELECT - ( + 17 ) * - col1 FROM tab1
----
170
221
442

query I rowsort
SELECT ALL 74 AS col1 FROM tab2
----
74
74
74

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 12 AS REAL ) AS col2 FROM tab0
----
12
12
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-6967
SELECT + + col0 DIV col0 AS col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6967
SELECT + + col0 / col0 AS col0 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT - ( - col1 ) * col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - + cor0.col1 * + col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + cor0.col1 * - 19 FROM tab2 AS cor0
----
-1121
-323
-589

query I rowsort
SELECT ALL + col2 + 83 FROM tab2 AS cor0
----
109
110
121

query I rowsort
SELECT 19 + col1 FROM tab0 cor0
----
105
110
116

onlyif mysql # use DIV operator for integer division
query I rowsort label-6973
SELECT DISTINCT col0 + 50 DIV col1 AS col0 FROM tab2
----
78
8
81

skipif mysql # not compatible
query I rowsort label-6973
SELECT DISTINCT col0 + 50 / col1 AS col0 FROM tab2
----
78
8
81

query I rowsort
SELECT 43 * col0 + col0 * - tab0.col1 FROM tab0
----
-1032
-1890
-4272

query I rowsort
SELECT ALL - col1 + - col0 * - col2 AS col1 FROM tab0
----
-62
706
7207

query I rowsort
SELECT ( - cor0.col0 ) + + col0 * - col1 FROM tab0 cor0
----
-2088
-3430
-8188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - ( + col0 ) * 69 col2 FROM tab0
----
-1689
-2416
-6223

query I rowsort
SELECT ALL + tab0.col0 + - 98 AS col1 FROM tab0
----
-63
-74
-9

query I rowsort
SELECT ALL ( - col0 ) * col2 + - ( 4 ) AS col2 FROM tab0
----
-39
-7302
-796

query I rowsort
SELECT DISTINCT - + col0 + 25 AS col0 FROM tab1 AS cor0
----
-39
-55
22

query I rowsort
SELECT col0 + + ( + cor0.col1 ) FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL - col0 * + col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT col2 + + col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT col0 + + ( + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - 9 + + col2 AS col1 FROM tab1
----
45
48
87

query I rowsort
SELECT - 24 * + col0 + col0 FROM tab1
----
-1472
-1840
-69

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1 AS cor2
----
972 values hashing to 2d99dda76af061a3fac120e0e49e6c53

query I rowsort
SELECT DISTINCT - col2 * - ( - col2 ) AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - cor0.col0 col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL + + col1 + 35 AS col2 FROM tab0 AS cor0
----
121
126
132

onlyif mysql # use DIV operator for integer division
query I rowsort label-6991
SELECT + col2 - ( - cor0.col1 ) * - col0 DIV col0 col0 FROM tab2 AS cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6991
SELECT + col2 - ( - cor0.col1 ) * - col0 / col0 col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT + col1 + col2 * + col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT ALL cor0.col2 * - 89 + - col0 - - col1 AS col0 FROM tab1 AS cor0
----
-4783
-5127
-8611

query I rowsort
SELECT DISTINCT - - col2 + 60 FROM tab1 AS cor0
----
114
117
156

query I rowsort
SELECT + cor0.col1 - ( col0 ) FROM tab0 AS cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query I rowsort
SELECT ALL - 73 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2931474b870c05694e446771031a6949

query I rowsort
SELECT ALL - + 34 + - cor0.col1 FROM tab1 AS cor0
----
-44
-47
-60

query I rowsort
SELECT cor0.col0 * ( - col1 ) AS col2 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT - col2 * cor0.col0 - col1 * - ( - col0 ) FROM tab1 AS cor0
----
-240
-4288
-8720

onlyif mysql # use DIV operator for integer division
query I rowsort label-7001
SELECT CAST( col0 AS SIGNED ) DIV + tab0.col0 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7001
SELECT CAST ( col0 AS INTEGER ) / + tab0.col0 AS col2 FROM tab0
----
1
1
1

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 39615739daa2056ffb6e430a8ff0bfc8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7003
SELECT CAST( + col1 AS SIGNED ) * + col2 col1 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7003
SELECT CAST ( + col1 AS INTEGER ) * + col2 col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7004
SELECT - 22 DIV + ( - col0 ) FROM tab1 AS cor0
----
0
0
7

skipif mysql # not compatible
query I rowsort label-7004
SELECT - 22 / + ( - col0 ) FROM tab1 AS cor0
----
0
0
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7005
SELECT CAST( col2 AS SIGNED ) * + col1 - + col1 FROM tab1 AS cor0
----
1235
1378
560

skipif mysql # not compatible
query I rowsort label-7005
SELECT CAST ( col2 AS INTEGER ) * + col1 - + col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT - + ( col1 ) + - cor0.col0 * ( + cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT - - 7 FROM tab2 cor0
----
7
7
7

query I rowsort
SELECT - 52 - - col0 AS col0 FROM tab1 AS cor0
----
-49
12
28

query I rowsort
SELECT ALL + col2 * - col0 * + col2 AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT - ( col0 ) * - col2 + - col0 AS col1 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-7011
SELECT DISTINCT - + ( - cor0.col1 ) + + col2 * + col1 DIV col1 + + col2 FROM tab2 AS cor0
----
111
85
93

skipif mysql # not compatible
query I rowsort label-7011
SELECT DISTINCT - + ( - cor0.col1 ) + + col2 * + col1 / col1 + + col2 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT ALL + + 35 * + col2 AS col0 FROM tab1 cor0
----
1890
1995
3360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + cor0.col2 * + col0 + 95 col2 FROM tab0 cor0
----
-26041
-598341
60

query I rowsort
SELECT ALL col1 - + col0 * cor0.col0 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT - col2 * col1 + 49 FROM tab1 AS cor0
----
-1199
-1355
-521

query I rowsort
SELECT col1 * - col0 + + 18 AS col1 FROM tab2 AS cor0
----
-1325
-199
-4584

query I rowsort
SELECT ALL + 54 * col0 + + ( col1 ) + col1 FROM tab0 AS cor0
----
1468
2084
4988

query I rowsort
SELECT ALL - + 26 + col2 FROM tab2 AS cor0
----
0
1
12

query I rowsort
SELECT ALL + col2 * - 90 + - col2 FROM tab1 AS cor0
----
-4914
-5187
-8736

query I rowsort
SELECT DISTINCT + 61 AS col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-7021
SELECT 29 DIV - cor0.col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7021
SELECT 29 / - cor0.col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT 88 * - tab1.col2 AS col0 FROM tab1
----
-4752
-5016
-8448

query I rowsort
SELECT 26 AS col2 FROM tab2
----
26
26
26

query I rowsort
SELECT ALL + ( + col2 ) AS col0 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL + + cor0.col0 + - cor0.col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 - + cor0.col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT 40 * + col1 FROM tab0
----
3440
3640
3880

query I rowsort
SELECT DISTINCT tab0.col0 + 72 FROM tab0, tab0 AS cor0
----
107
161
96

query I rowsort
SELECT ALL + col1 * + col0 + - cor0.col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + - 83 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # use DIV operator for integer division
query I rowsort label-7031
SELECT DISTINCT - col2 DIV - 91 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7031
SELECT DISTINCT - col2 / - 91 FROM tab1
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7032
SELECT ( - 55 ) DIV col0 + col0 AS col1 FROM tab2 AS cor0
----
0
78
79

skipif mysql # not compatible
query I rowsort label-7032
SELECT ( - 55 ) / col0 + col0 AS col1 FROM tab2 AS cor0
----
0
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7033
SELECT + + 11 * 0 DIV - cor0.col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7033
SELECT + + 11 * 0 / - cor0.col1 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 33 + + col0 + col0 * + col1 col2 FROM tab1 AS cor0
----
114
1153
737

onlyif mysql # use DIV operator for integer division
query I rowsort label-7035
SELECT + 76 DIV col0 + col1 FROM tab2
----
17
41
59

skipif mysql # not compatible
query I rowsort label-7035
SELECT + 76 / col0 + col1 FROM tab2
----
17
41
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7036
SELECT ALL + tab2.col2 DIV col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL + tab2.col2 / col0 FROM tab2
----
0
0
3

query I rowsort
SELECT ALL col1 * + 77 FROM tab0
----
6622
7007
7469

query I rowsort
SELECT ALL - ( tab0.col2 * cor0.col1 ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to a811f2025e810c126c8e7210b4f3f570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7039
SELECT DISTINCT - cor1.col0 DIV - 44 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
0
1

skipif mysql # not compatible
query I rowsort label-7039
SELECT DISTINCT - cor1.col0 / - 44 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
0
1

query I rowsort
SELECT DISTINCT col2 * + col1 * + col1 + + 6 FROM tab2
----
10988
25953
90512

query I rowsort
SELECT - 4 * col0 + col1 AS col1 FROM tab1 AS cor0
----
-246
-307
14

query I rowsort
SELECT + ( 11 ) + cor0.col1 FROM tab1 AS cor0
----
21
24
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7043
SELECT - CAST( + col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7043
SELECT - CAST ( + col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT 35 + + col0 + + col0 * - 1 FROM tab2
----
35

query I rowsort
SELECT DISTINCT + col1 * col1 + - ( - col1 ) FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT 62 + + col0 * + ( - col1 ) FROM tab2
----
-1281
-155
-4540

onlyif mysql # use DIV operator for integer division
query I rowsort label-7047
SELECT col1 DIV - col1 + 61 AS col0 FROM tab0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-7047
SELECT col1 / - col1 + 61 AS col0 FROM tab0
----
60
60
60

query I rowsort
SELECT DISTINCT + 50 * + 30 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
1500

query I rowsort
SELECT DISTINCT + 6 AS col0 FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL - 8 * col2 AS col0 FROM tab1 cor0
----
-432
-456
-768

query I rowsort
SELECT ALL col0 + + 68 AS col1 FROM tab1
----
132
148
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7052
SELECT + col2 * - CAST( col0 AS SIGNED ) * col0 AS col1 FROM tab0
----
-1225
-19008
-649522

skipif mysql # not compatible
query I rowsort label-7052
SELECT + col2 * - CAST ( col0 AS INTEGER ) * col0 AS col1 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT tab1.col1 + + ( tab1.col2 ) FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT + col0 + + 95 FROM tab2 AS cor0
----
102
173
174

query I rowsort
SELECT DISTINCT + + col1 * col2 + col1 * + col2 FROM tab0 AS cor0
----
14924
194
5676

query I rowsort
SELECT 63 * - 46 + col2 AS col1 FROM tab1 AS cor0
----
-2802
-2841
-2844

onlyif mysql # use DIV operator for integer division
query I rowsort label-7057
SELECT ALL + col0 DIV + col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL + col0 / + col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - - ( col0 ) * + col2 + + col0 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7059
SELECT ALL CAST( NULL AS SIGNED ) + ( col0 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL CAST ( NULL AS INTEGER ) + ( col0 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col2 + col1 * + 52 FROM tab0 AS cor0
----
11456
5045
5561

query I rowsort
SELECT ALL cor0.col2 * ( - cor0.col0 ) + - 81 AS col1 FROM tab1 AS cor0
----
-243
-3729
-7761

query I rowsort
SELECT DISTINCT col0 - - col0 * cor0.col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT + 33 + col1 * + col0 FROM tab1 AS cor0
----
1073
111
673

onlyif mysql # use DIV operator for integer division
query I rowsort label-7064
SELECT ALL + - 53 DIV col2 + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL + - 53 / col2 + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - - col1 * + col1 + - col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT + col2 * - col0 - + col1 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT ( ( col2 ) ) + - 49 FROM tab0 AS cor0
----
-16
-48
33

query I rowsort
SELECT ALL - col2 - - 66 FROM tab2
----
28
39
40

query I rowsort
SELECT DISTINCT - col2 - 48 AS col1 FROM tab2
----
-74
-75
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7070
SELECT ALL - CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL - CAST ( NULL AS REAL ) * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 5 * + col0 + col0 * + col1 FROM tab1
----
1440
93
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-7072
SELECT + 32 DIV + tab0.col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7072
SELECT + 32 / + tab0.col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( col0 ) + - col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT ( + col2 ) * - 57 * + col1 FROM tab2 cor0
----
-36822
-47709
-87438

query I rowsort
SELECT ALL + 89 AS col0 FROM tab0 cor0
----
89
89
89

query I rowsort
SELECT ALL + 8 * + col1 * - 69 FROM tab0 AS cor0
----
-47472
-50232
-53544

query I rowsort
SELECT DISTINCT - + 11 + col2 * + ( + col0 ) FROM tab0 AS cor0
----
24
7287
781

query I rowsort
SELECT DISTINCT col2 * 11 + - col1 * - col0 + + col0 AS col2 FROM tab2 AS cor0
----
1840
4966
521

query I rowsort
SELECT - + col1 * + col0 + col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT col2 + + col1 * 86 AS col0 FROM tab1 AS cor0
----
1214
2290
917

query I rowsort
SELECT col1 + + ( + col1 ) * - col2 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7082
SELECT ALL + col1 * CAST( col1 AS SIGNED ) + + col2 + col1 * - cor0.col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL + col1 * CAST ( col1 AS INTEGER ) + + col2 + col1 * - cor0.col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7083
SELECT DISTINCT + - col2 * - 70 + 57 DIV col2 col2 FROM tab0 AS cor0
----
127
2311
5740

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7083
SELECT DISTINCT + - col2 * - 70 + 57 / col2 col2 FROM tab0 AS cor0
----
127
2311
5740

query I rowsort
SELECT DISTINCT + col1 - - 48 AS col1 FROM tab0 AS cor0
----
134
139
145

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7085
SELECT col2 - tab0.col0 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7085
SELECT col2 - tab0.col0 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * tab2.col1 + ( - col2 ) FROM tab2
----
1305
190
4576

query I rowsort
SELECT col2 * + col2 * + 77 AS col2 FROM tab0
----
517748
77
83853

query I rowsort
SELECT - col2 + - 90 * col0 AS col0 FROM tab0 cor0
----
-2193
-3151
-8092

query I rowsort
SELECT DISTINCT + 2 AS col1 FROM tab1, tab2, tab0 AS cor0
----
2

query I rowsort
SELECT DISTINCT + col1 - - col0 AS col2 FROM tab1
----
29
74
93

query I rowsort
SELECT - 17 * tab0.col2 FROM tab0
----
-1394
-17
-561

query I rowsort
SELECT 51 + col1 * ( + col1 ) * tab0.col2 AS col2 FROM tab0
----
244119
679093
9460

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7093
SELECT ALL - CAST( cor0.col0 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-7093
SELECT ALL - CAST ( cor0.col0 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7094
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 11 + + col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 11 + + col0 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - ( + col2 ) * + cor0.col1 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col2 * col0 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT ( + 24 ) * col0 AS col2 FROM tab2 AS cor0
----
168
1872
1896

query I rowsort
SELECT - 87 * col2 FROM tab1 AS cor0
----
-4698
-4959
-8352

query I rowsort
SELECT DISTINCT 72 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-3888
-4104
-6912

onlyif mysql # use DIV operator for integer division
query I rowsort label-7100
SELECT ALL + CAST( + 1 AS SIGNED ) + - col2 DIV + ( 23 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL + CAST ( + 1 AS INTEGER ) + - col2 / + ( 23 ) AS col2 FROM tab1 AS cor0
----
-1
-1
-3

query I rowsort
SELECT 28 + col1 * cor0.col2 FROM tab0 AS cor0
----
125
2866
7490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col2 + ( - 16 ) + col0 col1 FROM tab1
----
-32
-67
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7103
SELECT - col0 + + col2 * col1 DIV - col1 FROM tab1 AS cor0
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-7103
SELECT - col0 + + col2 * col1 / - col1 FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) col2 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT + cor0.col2 + - col0 * - col0 FROM tab1 cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT ( 20 ) + - col0 FROM tab2 AS cor0
----
-58
-59
13

query I rowsort
SELECT DISTINCT + - col0 * cor0.col1 - col0 * ( col1 ) AS col1 FROM tab2 AS cor0
----
-2686
-434
-9204

query I rowsort
SELECT ALL + 47 * + col1 AS col0 FROM tab1 AS cor0
----
1222
470
611

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 23 col0 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL - tab2.col2 FROM tab2, tab1 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT - col0 + col0 * cor0.col0 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT DISTINCT + 0 * - col2 AS col1 FROM tab2
----
0

query I rowsort
SELECT + ( + col1 ) + + col0 AS col1 FROM tab1
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 col1 FROM tab1
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 2 ) col0 FROM tab0
----
-2

query I rowsort
SELECT - col2 + - col2 * - col2 AS col2 FROM tab0
----
0
1056
6642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * + tab0.col0 + col0 col1 FROM tab0
----
1157
312
455

query I rowsort
SELECT + col2 * - 71 + - col0 * + col1 FROM tab0
----
-13921
-3466
-4407

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7119
SELECT - CAST( - 84 AS SIGNED ) col1 FROM tab1
----
84
84
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7119
SELECT - CAST ( - 84 AS INTEGER ) col1 FROM tab1
----
84
84
84

query I rowsort
SELECT DISTINCT + col2 * cor0.col1 * - col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-7121
SELECT + col1 + col2 DIV col0 AS col2 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-7121
SELECT + col1 + col2 / col0 AS col2 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT - 43 + col2 AS col1 FROM tab2 AS cor0
----
-16
-17
-5

query I rowsort
SELECT + col0 * - ( col0 ) + - col2 + col0 FROM tab1
----
-4089
-60
-6416

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7124
SELECT DISTINCT - col0 * CAST( - col0 AS SIGNED ) + col2 col2 FROM tab1
----
4153
63
6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT - col0 * CAST ( - col0 AS INTEGER ) + col2 col2 FROM tab1
----
4153
63
6496

query I rowsort
SELECT col1 * - ( 78 * col0 ) + + col2 AS col2 FROM tab2 AS cor0
----
-104716
-16899
-358930

query I rowsort
SELECT ALL col0 * col0 * cor0.col0 + + cor0.col1 AS col2 FROM tab1 cor0
----
262154
512013
53

query I rowsort
SELECT col1 * + 71 AS col0 FROM tab0 AS cor0
----
6106
6461
6887

onlyif mysql # use DIV operator for integer division
query I rowsort label-7128
SELECT col1 * - 56 + + col1 DIV col0 FROM tab1 AS cor0
----
-1448
-560
-728

skipif mysql # not compatible
query I rowsort label-7128
SELECT col1 * - 56 + + col1 / col0 FROM tab1 AS cor0
----
-1448
-560
-728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7129
SELECT ALL + CAST( - ( - col0 ) AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL + CAST ( - ( - col0 ) AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - ( col0 ) + cor0.col1 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT ( + ( + col1 ) ) FROM tab2 cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7132
SELECT DISTINCT - col1 DIV col0 + col2 * cor0.col1 FROM tab0 AS cor0
----
2835
7461
95

skipif mysql # not compatible
query I rowsort label-7132
SELECT DISTINCT - col1 / col0 + col2 * cor0.col1 FROM tab0 AS cor0
----
2835
7461
95

query I rowsort
SELECT + col2 * 11 AS col1 FROM tab1
----
1056
594
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-7134
SELECT DISTINCT - 61 + - col2 DIV col0 AS col0 FROM tab1 AS cor0
----
-61
-62
-79

skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT - 61 + - col2 / col0 AS col0 FROM tab1 AS cor0
----
-61
-62
-79

query I rowsort
SELECT DISTINCT - + cor0.col1 * 41 FROM tab0 AS cor0
----
-3526
-3731
-3977

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7136
SELECT + CAST( NULL AS DECIMAL ) + col0 + col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7136
SELECT + CAST ( NULL AS REAL ) + col0 + col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7137
SELECT + col0 + + 54 * col0 DIV - col1 + + cor0.col1 AS col1 FROM tab2 cor0
----
-154
26
66

skipif mysql # not compatible
query I rowsort label-7137
SELECT + col0 + + 54 * col0 / - col1 + + cor0.col1 AS col1 FROM tab2 cor0
----
-154
26
66

query I rowsort
SELECT - col0 + ( + col0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT + + col1 * col2 + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL - col2 * + cor0.col0 * col0 FROM tab1 cor0
----
-233472
-486
-614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - tab0.col0 ) col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT ALL + 50 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT + col0 * - col2 + - 66 + + col2 AS col2 FROM tab2 cor0
----
-2068
-228
-3030

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7144
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7144
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT col1 * + tab0.col0 * col1 AS col2 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT - tab1.col2 * - col2 * - 89 AS col2 FROM tab1
----
-259524
-289161
-820224

query I rowsort
SELECT ALL - 23 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

query I rowsort
SELECT ALL + 72 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT col1 * col2 + + ( 68 ) AS col2 FROM tab2 AS cor0
----
1602
714
905

query I rowsort
SELECT - col1 * col1 + - col0 + col1 AS col0 FROM tab1 AS cor0
----
-154
-236
-653

query I rowsort
SELECT - - col0 + + col2 + cor0.col2 * col0 * + col2 FROM tab0 AS cor0
----
26193
598607
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-7152
SELECT cor0.col2 DIV - 90 + col2 * + col1 + col1 FROM tab1 AS cor0
----
1260
1430
580

skipif mysql # not compatible
query I rowsort label-7152
SELECT cor0.col2 / - 90 + col2 * + col1 + col1 FROM tab1 AS cor0
----
1260
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-7153
SELECT DISTINCT - col2 + 65 DIV 64 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT - col2 + 65 / 64 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT - col2 * col0 + col1 + + col2 * col0 AS col1 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7155
SELECT DISTINCT - col1 / CAST( col1 AS DECIMAL ) + cor0.col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7155
SELECT DISTINCT - col1 / CAST ( col1 AS REAL ) + cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - ( col0 ) + - col0 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT + 99 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
99

query I rowsort
SELECT + 8 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT ALL col1 + - tab1.col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - col0 * 19 * + 79 FROM tab1
----
-120080
-4503
-96064

query I rowsort
SELECT DISTINCT - col0 + 28 + col1 AS col1 FROM tab2
----
-34
52
9

query I rowsort
SELECT DISTINCT col0 + col1 * 24 + - tab0.col2 FROM tab0
----
2055
2191
2362

query I rowsort
SELECT DISTINCT col2 * - col0 * col0 + col2 AS col1 FROM tab0
----
-1224
-18975
-649440

query I rowsort
SELECT - ( 1 ) FROM tab0, tab1 cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # use DIV operator for integer division
query I rowsort label-7165
SELECT tab0.col0 DIV - col2 - + ( - tab0.col0 ) AS col1 FROM tab0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-7165
SELECT tab0.col0 / - col2 - + ( - tab0.col0 ) AS col1 FROM tab0
----
0
24
88

query I rowsort
SELECT - 88 * - 30 FROM tab2, tab2 cor0
----
9 values hashing to 36e3fc0f4bb37c9bfceafc5d1d0d4650

query I rowsort
SELECT ALL - + col2 * + cor0.col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7168
SELECT DISTINCT + col1 DIV - 88 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT + col1 / - 88 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7169
SELECT col2 + + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7169
SELECT col2 + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + ( col1 ) * col1 AS col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT col2 * - col1 - - tab0.col1 FROM tab0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7172
SELECT 28 DIV col2 + tab1.col0 AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7172
SELECT 28 / col2 + tab1.col0 AS col2 FROM tab1
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7173
SELECT CAST( 77 AS SIGNED ) FROM tab2
----
77
77
77

skipif mysql # not compatible
query I rowsort label-7173
SELECT CAST ( 77 AS INTEGER ) FROM tab2
----
77
77
77

query I rowsort
SELECT col1 + + col1 * col1 * ( + col2 ) AS col0 FROM tab0
----
244154
679133
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 * + col0 + 79 col1 FROM tab0 cor0
----
177583
329394
737088

query I rowsort
SELECT - 44 + col0 * + col2 AS col2 FROM tab1 AS cor0
----
118
3604
7636

query I rowsort
SELECT ALL - - col1 * - col0 + col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-7178
SELECT - 63 + - col1 DIV col2 FROM tab0 cor0
----
-160
-64
-65

skipif mysql # not compatible
query I rowsort label-7178
SELECT - 63 + - col1 / col2 FROM tab0 cor0
----
-160
-64
-65

query I rowsort
SELECT - cor0.col0 * + col2 + ( col1 ) FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL + ( 14 + tab1.col2 ) AS col0 FROM tab1
----
110
68
71

query I rowsort
SELECT - - col2 + - col1 * cor0.col0 * col2 + + col0 FROM tab2 AS cor0
----
-119548
-50917
-5825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7182
SELECT ALL + - col0 * col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL + - col0 * col2 * 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-7183
SELECT DISTINCT 5 DIV col0 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7183
SELECT DISTINCT 5 / col0 AS col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL - col0 * + col1 + + 66 AS col0 FROM tab2 AS cor0
----
-1277
-151
-4536

onlyif mysql # use DIV operator for integer division
query I rowsort label-7185
SELECT 54 + - col2 * 58 + col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
-1453
-1511
-2149

skipif mysql # not compatible
query I rowsort label-7185
SELECT 54 + - col2 * 58 + col0 / + col0 AS col1 FROM tab2 AS cor0
----
-1453
-1511
-2149

query I rowsort
SELECT ALL + col2 * col0 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT + 72 * - col1 + col1 AS col0 FROM tab1 AS cor0
----
-1846
-710
-923

query I rowsort
SELECT DISTINCT + col0 + col2 * col2 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT + ( + 91 ) FROM tab0
----
91
91
91

query I rowsort
SELECT - ( - col0 ) * 1 * col0 AS col1 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT + 45 + + col2 * + ( + col0 ) AS col1 FROM tab0 AS cor0
----
7343
80
837

query I rowsort
SELECT - + col0 * + cor0.col1 + col0 AS col0 FROM tab2 cor0
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-7193
SELECT - + col0 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7193
SELECT - + col0 / cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * col0 + ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT DISTINCT - + 68 FROM tab0 AS cor0
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 * + ( + 91 ) col1 FROM tab1
----
-1183
-2366
-910

onlyif mysql # use DIV operator for integer division
query I rowsort label-7197
SELECT ALL - col1 DIV 44 + 28 DIV - col1 FROM tab1
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL - col1 / 44 + 28 / - col1 FROM tab1
----
-1
-2
-2

query I rowsort
SELECT - - col1 * col2 + 62 AS col2 FROM tab1 AS cor0
----
1310
1466
632

query I rowsort
SELECT ALL + col0 * + ( - col0 ) + cor0.col2 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT col1 + - ( col0 ) FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + ( + 71 ) col0 FROM tab1 AS cor0
----
125
128
167

query I rowsort
SELECT DISTINCT - col2 + + col2 * col1 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT - col1 + 51 * - col2 * - ( - col1 * - col1 ) FROM tab1 AS cor0
----
1861678
290690
827411

query I rowsort
SELECT ALL + cor0.col2 * col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT + - ( - col2 ) * - col1 + + col2 * - col2 FROM tab0 AS cor0
----
-14186
-3927
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7206
SELECT ALL CAST( NULL AS SIGNED ) + 13 / - col1 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-7206
SELECT ALL CAST ( NULL AS INTEGER ) + 13 / - col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 30 FROM tab0 cor0
----
30
30
30

query I rowsort
SELECT DISTINCT + col2 + 75 FROM tab2 AS cor0
----
101
102
113

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7209
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - ( + cor0.col1 * 50 + - col2 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - ( + cor0.col1 * 50 + - col2 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col0 * col0 col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT + ( ( cor0.col2 ) ) * col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL - 77 AS col1 FROM tab0 cor0
----
-77
-77
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-7213
SELECT col2 DIV col1 + col2 FROM tab2
----
26
27
40

skipif mysql # not compatible
query I rowsort label-7213
SELECT col2 / col1 + col2 FROM tab2
----
26
27
40

query I rowsort
SELECT ALL - col2 + - 19 * - col0 + + col2 AS col0 FROM tab1
----
1216
1520
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7215
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7215
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 52 * col1 + col0 FROM tab2 AS cor0
----
-1605
-2990
-805

query I rowsort
SELECT - - ( - 14 ) * cor0.col1 FROM tab1 AS cor0
----
-140
-182
-364

onlyif mysql # use DIV operator for integer division
query I rowsort label-7218
SELECT - col0 DIV 99 + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7218
SELECT - col0 / 99 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT 7 * col1 + - cor0.col2 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
1089
1563
946

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * col1 col0 FROM tab0 AS cor0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-7221
SELECT - + col1 + - 67 DIV - col1 FROM tab2 AS cor0
----
-14
-29
-58

skipif mysql # not compatible
query I rowsort label-7221
SELECT - + col1 + - 67 / - col1 FROM tab2 AS cor0
----
-14
-29
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * - 24 col0 FROM tab1
----
-1296
-1368
-2304

query I rowsort
SELECT DISTINCT + ( tab1.col0 * col1 + + 44 ) FROM tab1
----
1084
122
684

query I rowsort
SELECT + col0 * + tab1.col1 AS col1 FROM tab1
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7226
SELECT CAST( col2 * col2 AS SIGNED ) + col0 FROM tab0
----
1113
36
6813

skipif mysql # not compatible
query I rowsort label-7226
SELECT CAST ( col2 * col2 AS INTEGER ) + col0 FROM tab0
----
1113
36
6813

query I rowsort
SELECT cor0.col0 * col2 + - ( col0 ) * col0 - col2 FROM tab1 AS cor0
----
-505
1184
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-7228
SELECT cor0.col1 - - 34 DIV cor0.col0 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-7228
SELECT cor0.col1 - - 34 / cor0.col0 FROM tab0 AS cor0
----
87
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT col0 * + ( + col1 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + + tab2.col0 FROM tab2, tab1, tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 col2 FROM tab1, tab2 cor0
----
54
57
96

query I rowsort
SELECT - tab1.col1 * + tab1.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f

query I rowsort
SELECT DISTINCT + col0 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT - col2 + - ( 41 ) FROM tab0 AS cor0
----
-123
-42
-74

query I rowsort
SELECT DISTINCT + col1 + + 59 * 42 AS col2 FROM tab0 AS cor0
----
2564
2569
2575

query I rowsort
SELECT ALL 88 * cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 745dbe316202e59b0fdd0f07d929c4d1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7238
SELECT ALL + col1 * col1 DIV 42 FROM tab0
----
176
197
224

skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL + col1 * col1 / 42 FROM tab0
----
176
197
224

query I rowsort
SELECT + + col0 + + col2 * + col1 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT 87 + + col0 FROM tab1 AS cor0
----
151
167
90

query I rowsort
SELECT DISTINCT + ( - col1 * - 10 ) - col2 * col2 AS col2 FROM tab1
----
-2656
-3149
-9086

query I rowsort
SELECT col2 * col0 + + 44 * col0 * - tab2.col2 AS col2 FROM tab2
----
-129086
-8127
-87204

query I rowsort
SELECT DISTINCT + 82 AS col1 FROM tab2, tab1, tab2 AS cor0
----
82

query I rowsort
SELECT col2 * + 98 AS col1 FROM tab2 AS cor0
----
2548
2646
3724

query I rowsort
SELECT col2 + ( 69 * col2 ) FROM tab2 AS cor0
----
1820
1890
2660

query I rowsort
SELECT + col2 * ( - col0 ) + - cor0.col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT + col2 + ( + ( + col1 ) ) FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT ALL - + cor0.col1 + ( 92 ) AS col0 FROM tab2 AS cor0
----
33
61
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7249
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 - col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7249
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 - col0 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - 82 * 46 + + col1 AS col2 FROM tab1 cor0
----
-3746
-3759
-3762

query I rowsort
SELECT + 12 AS col2 FROM tab2 AS cor0
----
12
12
12

query I rowsort
SELECT - 58 * col2 + col2 FROM tab2 AS cor0
----
-1482
-1539
-2166

query I rowsort
SELECT + + ( - 47 ) + - cor0.col2 * col2 FROM tab2 AS cor0
----
-1491
-723
-776

onlyif mysql # use DIV operator for integer division
query I rowsort label-7254
SELECT ALL col0 + - col1 DIV col0 + + col0 AS col2 FROM tab2 AS cor0
----
10
156
158

skipif mysql # not compatible
query I rowsort label-7254
SELECT ALL col0 + - col1 / col0 + + col0 AS col2 FROM tab2 AS cor0
----
10
156
158

query I rowsort
SELECT - ( - col0 ) + 60 * - col0 AS col2 FROM tab1 AS cor0
----
-177
-3776
-4720

onlyif mysql # use DIV operator for integer division
query I rowsort label-7256
SELECT 51 DIV 71 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7256
SELECT 51 / 71 FROM tab1
----
0
0
0

query I rowsort
SELECT 36 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

onlyif mysql # use DIV operator for integer division
query I rowsort label-7258
SELECT ALL + - 22 DIV + col2 + 63 FROM tab1 AS cor0
----
63
63
63

skipif mysql # not compatible
query I rowsort label-7258
SELECT ALL + - 22 / + col2 + 63 FROM tab1 AS cor0
----
63
63
63

query I rowsort
SELECT 61 * - col1 + 40 FROM tab2 AS cor0
----
-1851
-3559
-997

query I rowsort
SELECT col2 * 10 * col0 AS col0 FROM tab1
----
1620
36480
76800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 23 - col0 * col1 col1 FROM tab0 cor0
----
-2041
-3372
-8076

onlyif mysql # use DIV operator for integer division
query I rowsort label-7262
SELECT ALL + col2 + - col1 + CAST( + col0 AS SIGNED ) DIV col2 AS col0 FROM tab1 AS cor0
----
28
48
83

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL + col2 + - col1 + CAST ( + col0 AS INTEGER ) / col2 AS col0 FROM tab1 AS cor0
----
28
48
83

query I rowsort
SELECT 12 + + col2 AS col2 FROM tab1 AS cor0
----
108
66
69

query I rowsort
SELECT + col2 * - col0 - ( col0 * cor0.col0 ) AS col0 FROM tab1 cor0
----
-14080
-171
-7744

query I rowsort
SELECT DISTINCT - 75 + - col0 FROM tab2 AS cor0
----
-153
-154
-82

query I rowsort
SELECT ALL 46 * - col2 AS col0 FROM tab1 AS cor0
----
-2484
-2622
-4416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT 37 * col2 AS col1 FROM tab1 cor0
----
1998
2109
3552

query I rowsort
SELECT DISTINCT + - 32 * col0 + col0 * col1 * col0 - + 27 AS col1 FROM tab0 AS cor0
----
117678
48741
717936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 + + col1 col0 FROM tab0 AS cor0
----
88
93
99

query I rowsort
SELECT DISTINCT col0 * col0 * - col2 + + col0 * col2 AS col0 FROM tab1 AS cor0
----
-229824
-324
-606720

query I rowsort
SELECT DISTINCT 56 * - col2 FROM tab0 AS cor0
----
-1848
-4592
-56

onlyif mysql # use DIV operator for integer division
query I rowsort label-7273
SELECT ALL cor0.col2 DIV - col1 FROM tab2 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7273
SELECT ALL cor0.col2 / - col1 FROM tab2 cor0
----
-2
0
0

query I rowsort
SELECT - + 32 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
22
25
64

query I rowsort
SELECT ALL + cor0.col2 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 26 col1 FROM tab1 AS cor0
----
-26
-26
-26

query I rowsort
SELECT + 41 * col2 AS col1 FROM tab0 AS cor0
----
1353
3362
41

query I rowsort
SELECT ALL 92 * col0 AS col2 FROM tab1 cor0
----
276
5888
7360

query I rowsort
SELECT + col0 + + ( 50 + col0 ) FROM tab0 AS cor0
----
120
228
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7280
SELECT ALL + col0 DIV col1 - + tab0.col2 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL + col0 / col1 - + tab0.col2 FROM tab0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * col2 + + col0 col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT + col1 * + 6 + col0 * - col2 FROM tab0 AS cor0
----
-276
-6752
547

query I rowsort
SELECT ALL - cor0.col1 + col0 AS col0 FROM tab1 AS cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + col0 + col2 col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL - + 49 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
-16
-48
33

query I rowsort
SELECT ALL - 47 * col2 AS col2 FROM tab1 AS cor0
----
-2538
-2679
-4512

query I rowsort
SELECT ALL - col0 * - 93 FROM tab2 AS cor0
----
651
7254
7347

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab0 cor1, tab2 AS cor2
----
972 values hashing to 591a9a93560839231c038a1e10bd240a

query I rowsort
SELECT DISTINCT - 20 AS col1 FROM tab1, tab0 AS cor0
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 62 * col2 * col2 col1 FROM tab0 AS cor0
----
-416888
-62
-67518

query I rowsort
SELECT - 51 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT DISTINCT + 10 * + tab1.col2 AS col1 FROM tab1
----
540
570
960

query I rowsort
SELECT 4 * 98 - col0 FROM tab0
----
303
357
368

query I rowsort
SELECT + ( - col2 ) + col2 FROM tab0
----
0
0
0

query I rowsort
SELECT 79 FROM tab2, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT DISTINCT + col0 * + 52 AS col2 FROM tab2 AS cor0
----
364
4056
4108

query I rowsort
SELECT DISTINCT + col2 * + 92 * cor0.col1 AS col2 FROM tab0 AS cor0
----
261096
686504
8924

query I rowsort
SELECT + 48 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT ALL 91 * tab2.col0 + ( + col0 ) AS col2 FROM tab2
----
644
7176
7268

query I rowsort
SELECT col1 - col0 * + 42 AS col2 FROM tab1
----
-100
-2678
-3347

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7301
SELECT DISTINCT + col2 / col2 + CAST( NULL AS SIGNED ) * col2 + + col1 * - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT + col2 / col2 + CAST ( NULL AS INTEGER ) * col2 + + col1 * - col0 FROM tab0
----
NULL

query I rowsort
SELECT col1 + + col0 * col1 - 59 AS col2 FROM tab2
----
1301
189
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7303
SELECT - col2 + + ( + col2 ) DIV - col1 FROM tab2
----
-26
-27
-40

skipif mysql # not compatible
query I rowsort label-7303
SELECT - col2 + + ( + col2 ) / - col1 FROM tab2
----
-26
-27
-40

query I rowsort
SELECT col2 + + 65 FROM tab2 cor0
----
103
91
92

query I rowsort
SELECT DISTINCT - col2 * 50 FROM tab0
----
-1650
-4100
-50

query I rowsort
SELECT DISTINCT - - col2 + + 66 AS col2 FROM tab2 AS cor0
----
104
92
93

query I rowsort
SELECT - 53 + 50 * + col2 * col1 + + 16 FROM tab1
----
28463
62363
70163

query I rowsort
SELECT DISTINCT + col2 + - col2 AS col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 + col1 + cor0.col1 * + col0 col0 FROM tab2 cor0
----
1343
231
4644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 61 ) - col2 col0 FROM tab0
----
-143
-62
-94

query I rowsort
SELECT DISTINCT - 60 + col2 + - col1 * col1 AS col2 FROM tab1
----
-103
-133
-682

query I rowsort
SELECT + + col0 * + col2 AS col2 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-7313
SELECT DISTINCT col2 + cor0.col0 DIV - col2 FROM tab1 AS cor0
----
54
56
96

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT col2 + cor0.col0 / - col2 FROM tab1 AS cor0
----
54
56
96

query I rowsort
SELECT DISTINCT - + col2 + cor0.col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - col1 - cor0.col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL 20 + + 47 * col0 AS col0 FROM tab1
----
161
3028
3780

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 + - ( - col2 ) * 4 + + ( - col1 ) * 73 col2 FROM tab1
----
-1583
-403
-466

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7318
SELECT ( col0 ) * - CAST( - col2 AS SIGNED ) + - col1 + - col0 FROM tab2 AS cor0
----
151
1891
2906

skipif mysql # not compatible
query I rowsort label-7318
SELECT ( col0 ) * - CAST ( - col2 AS INTEGER ) + - col1 + - col0 FROM tab2 AS cor0
----
151
1891
2906

query I rowsort
SELECT DISTINCT - - col2 * + col1 * + col2 FROM tab1 cor0
----
119808
32490
75816

query I rowsort
SELECT ALL col0 * + col2 + - 6 * + ( cor0.col0 ) + col0 FROM tab2 AS cor0
----
154
1638
2607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 + ( - col1 * - col1 ) col1 FROM tab0 AS cor0
----
7453
8452
9445

query I rowsort
SELECT ALL 51 + col1 FROM tab1 AS cor0
----
61
64
77

query I rowsort
SELECT + 41 * col0 - 22 AS col0 FROM tab1 AS cor0
----
101
2602
3258

query I rowsort
SELECT ALL - 12 * + col2 AS col1 FROM tab2 AS cor0
----
-312
-324
-456

query I rowsort
SELECT + - 65 * col2 AS col0 FROM tab2 AS cor0
----
-1690
-1755
-2470

query I rowsort
SELECT ALL - 99 FROM tab1 cor0
----
-99
-99
-99

query I rowsort
SELECT DISTINCT 68 + - col0 AS col0 FROM tab0 AS cor0
----
-21
33
44

query I rowsort
SELECT 2 - col1 FROM tab1 AS cor0
----
-11
-24
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - cor0.col2 ) col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + 31 * + col1 + - ( col1 ) FROM tab1 AS cor0
----
300
390
780

query I rowsort
SELECT col0 + - cor0.col0 * 37 AS col1 FROM tab2 AS cor0
----
-252
-2808
-2844

query I rowsort
SELECT + cor0.col0 * + cor0.col2 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 24e20ca2b8a28088cc71698417e1f489

query I rowsort
SELECT DISTINCT 44 AS col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
44

query I rowsort
SELECT ALL - ( 45 ) AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371

query I rowsort
SELECT DISTINCT 1 + + 64 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
65

query I rowsort
SELECT + 78 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 + col2 col0 FROM tab1 AS cor0
----
-4039
-6304
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7338
SELECT - col2 * + col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7338
SELECT - col2 * + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 25 * col0 FROM tab2 AS cor0
----
175
1950
1975

query I rowsort
SELECT ALL + + 64 AS col2 FROM tab1 cor0
----
64
64
64

query I rowsort
SELECT col2 + + col2 * 84 FROM tab2 AS cor0
----
2210
2295
3230

query I rowsort
SELECT - col0 + 73 FROM tab1 AS cor0
----
-7
70
9

query I rowsort
SELECT + col1 * col1 + cor0.col2 FROM tab2 cor0
----
327
3507
988

query I rowsort
SELECT - col1 + ( - col1 ) * - col2 AS col0 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT 86 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7346
SELECT DISTINCT 30 * tab0.col0 + tab0.col2 DIV col1 AS col2 FROM tab0
----
1050
2670
720

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT 30 * tab0.col0 + tab0.col2 / col1 AS col2 FROM tab0
----
1050
2670
720

query I rowsort
SELECT + col2 + + ( col2 ) + col0 * - col1 FROM tab1 AS cor0
----
-526
-848
30

query I rowsort
SELECT - - cor0.col1 + 1 + - col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT 71 * col1 FROM tab2 cor0
----
1207
2201
4189

query I rowsort
SELECT + - ( + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 41 col2 FROM tab0 AS cor0
----
130
65
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7352
SELECT CAST( + ( col0 ) AS SIGNED ) * - 83 FROM tab0 AS cor0
----
-1992
-2905
-7387

skipif mysql # not compatible
query I rowsort label-7352
SELECT CAST ( + ( col0 ) AS INTEGER ) * - 83 FROM tab0 AS cor0
----
-1992
-2905
-7387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + 2 * + 26 FROM tab1
----
52

query I rowsort
SELECT 13 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

query I rowsort
SELECT DISTINCT + 83 - 7 AS col1 FROM tab0 AS cor0
----
76

query I rowsort
SELECT ALL ( + col2 ) * + col2 * - col0 FROM tab0 cor0
----
-26136
-35
-598436

query I rowsort
SELECT 50 * col0 AS col2 FROM tab0 AS cor0
----
1200
1750
4450

query I rowsort
SELECT DISTINCT + 11 * + col2 * - col1 FROM tab2 AS cor0
----
-16874
-7106
-9207

query I rowsort
SELECT - - ( cor0.col2 ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT 52 + cor0.col2 FROM tab1 AS cor0
----
106
109
148

query I rowsort
SELECT - 92 * col0 + - col2 FROM tab2 AS cor0
----
-671
-7202
-7306

query I rowsort
SELECT DISTINCT - 44 + col0 FROM tab1 AS cor0
----
-41
20
36

query I rowsort
SELECT ALL + ( - col2 ) + col1 AS col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT + tab0.col2 + 64 * 35 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 5950d27d8f31d0eaa87c000c3519ee83

query I rowsort
SELECT + col0 + - col0 * col0 + - col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-15931
-2616
-4585

query I rowsort
SELECT - + ( + cor0.col2 ) + - col0 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-7368
SELECT - - 90 + + 60 DIV - col0 col1 FROM tab0 AS cor0
----
88
89
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7368
SELECT - - 90 + + 60 / - col0 col1 FROM tab0 AS cor0
----
88
89
90

query I rowsort
SELECT DISTINCT col1 * + 23 AS col2 FROM tab0
----
1978
2093
2231

query I rowsort
SELECT + 62 + + 37 * - tab2.col1 AS col0 FROM tab2
----
-1085
-2121
-567

query I rowsort
SELECT ALL + 13 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT ALL + tab2.col2 + 58 * col2 AS col1 FROM tab2
----
1534
1593
2242

query I rowsort
SELECT 75 * - col1 + cor0.col1 FROM tab2 AS cor0
----
-1258
-2294
-4366

query I rowsort
SELECT - ( - 47 ) * + col0 + 4 AS col0 FROM tab2 AS cor0
----
333
3670
3717

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col0 + col1 col0 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7376
SELECT - col2 * col1 DIV - col1 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-7376
SELECT - col2 * col1 / - col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT ( col1 ) + cor0.col1 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7378
SELECT DISTINCT + col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7378
SELECT DISTINCT + col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7379
SELECT cor0.col2 DIV - 18 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7379
SELECT cor0.col2 / - 18 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT DISTINCT - 13 FROM tab1, tab1 AS cor0, tab0 cor1
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 * cor0.col2 + col1 col2 FROM tab1 AS cor0
----
16237
36530
5710

onlyif mysql # use DIV operator for integer division
query I rowsort label-7382
SELECT DISTINCT - col0 + - 67 DIV + col2 AS col2 FROM tab1 cor0
----
-4
-65
-80

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT - col0 + - 67 / + col2 AS col2 FROM tab1 cor0
----
-4
-65
-80

query I rowsort
SELECT ALL - col2 + - 87 AS col1 FROM tab0 AS cor0
----
-120
-169
-88

query I rowsort
SELECT DISTINCT cor0.col0 + - 0 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + col0 * - 75 - + 3 * + col0 FROM tab1 AS cor0
----
-234
-4992
-6240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7386
SELECT ALL - cor0.col2 * CAST( NULL AS SIGNED ) / - 0 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL - cor0.col2 * CAST ( NULL AS INTEGER ) / - 0 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 * - ( col2 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - + col0 + 49 AS col2 FROM tab0 AS cor0
----
-40
14
25

query I rowsort
SELECT ALL - col0 * 71 + - col2 * - cor0.col0 FROM tab0 AS cor0
----
-2450
-912
979

query I rowsort
SELECT cor0.col0 * cor0.col2 + + cor0.col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL - ( + 9 ) AS col1 FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT + tab0.col2 * - col1 AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT + 79 * col0 FROM tab0 AS cor0
----
1896
2765
7031

query I rowsort
SELECT ALL - 75 * cor0.col2 FROM tab0 AS cor0
----
-2475
-6150
-75

query I rowsort
SELECT + 80 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7396
SELECT + ( + cor0.col1 ) * - 88 / 63 + - col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7396
SELECT + ( + cor0.col1 ) * - 88 / 63 + - col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7397
SELECT DISTINCT - cor0.col2 DIV - col2 AS col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7397
SELECT DISTINCT - cor0.col2 / - col2 AS col1 FROM tab0 cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7398
SELECT + col1 + col2 DIV - ( - col0 ) + + col0 FROM tab1 cor0
----
47
74
94

skipif mysql # not compatible
query I rowsort label-7398
SELECT + col1 + col2 / - ( - col0 ) + + col0 FROM tab1 cor0
----
47
74
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col1 col0 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
10
13
26

query I rowsort
SELECT + - col0 + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT + ( col2 ) + 82 FROM tab0 AS cor0
----
115
164
83

query I rowsort
SELECT DISTINCT 91 - + cor0.col2 AS col1 FROM tab1 AS cor0
----
-5
34
37

query I rowsort
SELECT ALL + cor0.col1 + 44 FROM tab0, tab2 AS cor0
----
9 values hashing to 0b5fa645936d47dc88e0ddbce82d072f

query I rowsort
SELECT ( col0 ) + + 75 AS col2 FROM tab1
----
139
155
78

query I rowsort
SELECT - col2 * - col1 * tab0.col2 + - 58 FROM tab0
----
39
611826
93596

query I rowsort
SELECT DISTINCT - col2 * - 38 + + 42 FROM tab0 AS cor0
----
1296
3158
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7407
SELECT ALL + col2 + ( - col0 ) DIV col0 AS col1 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL + col2 + ( - col0 ) / col0 AS col1 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT DISTINCT + col0 * col0 + 22 FROM tab1 cor0
----
31
4118
6422

query I rowsort
SELECT DISTINCT cor0.col0 - ( col1 ) AS col0 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-7410
SELECT ALL + cor1.col1 DIV - 80 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL + cor1.col1 / - 80 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT - 23 AS col0 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

onlyif mysql # use DIV operator for integer division
query I rowsort label-7412
SELECT ALL 79 DIV + col0 + 40 * col0 AS col2 FROM tab2
----
291
3121
3161

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL 79 / + col0 + 40 * col0 AS col2 FROM tab2
----
291
3121
3161

query I rowsort
SELECT DISTINCT col0 + 47 AS col2 FROM tab2 cor0
----
125
126
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-7414
SELECT + col1 DIV col2 + + col1 AS col2 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7414
SELECT + col1 / col2 + + col1 AS col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ( + col1 ) + - col2 AS col2 FROM tab2 AS cor0
----
-21
33
4

skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( - 63 AS REAL ) FROM tab1 AS cor0
----
63
63
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7417
SELECT col0 + 4 * - col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7417
SELECT col0 + 4 * - col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 60 * + 75 * col2 + 21 * col2 FROM tab1 AS cor0
----
-241866
-255303
-429984

query I rowsort
SELECT ALL 55 * 18 - col0 FROM tab2 AS cor0
----
911
912
983

query I rowsort
SELECT - 99 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-109
-112
-125

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7421
SELECT + + CAST( NULL AS SIGNED ) * col2 + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7421
SELECT + + CAST ( NULL AS INTEGER ) * col2 + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 * + cor0.col0 + col2 col0 FROM tab0 cor0
----
-2031
-3009
-7572

query I rowsort
SELECT ALL + 88 + cor0.col0 FROM tab1 AS cor0
----
152
168
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-7424
SELECT ALL - cor0.col0 * 1 - + cor0.col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-7424
SELECT ALL - cor0.col0 * 1 - + cor0.col0 / - col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7425
SELECT + 25 DIV + col2 + 6 FROM tab1 cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-7425
SELECT + 25 / + col2 + 6 FROM tab1 cor0
----
6
6
6

query I rowsort
SELECT 33 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT ALL 58 * tab2.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 88d797bec995d6a9631a4d2db5c0f842

query I rowsort
SELECT col0 * - 14 + col2 + + 30 AS col1 FROM tab2
----
-1036
-1038
-41

query I rowsort
SELECT DISTINCT col0 + + 45 AS col2 FROM tab0
----
134
69
80

query I rowsort
SELECT DISTINCT + - col0 * + ( col1 ) - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT - cor0.col1 + 37 FROM tab0 AS cor0
----
-49
-54
-60

query I rowsort
SELECT DISTINCT + col2 * - col1 - + 14 FROM tab1 AS cor0
----
-1262
-1418
-584

query I rowsort
SELECT DISTINCT - col1 * ( 89 ) FROM tab0 AS cor0
----
-7654
-8099
-8633

query I rowsort
SELECT DISTINCT 85 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 col0 FROM tab1
----
-56
-56
-56

query I rowsort
SELECT DISTINCT + 73 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
73

query I rowsort
SELECT - col2 * col0 + col2 AS col0 FROM tab2
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-7438
SELECT ALL - - col1 DIV + ( + col0 ) + cor0.col0 FROM tab0 AS cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL - - col1 / + ( + col0 ) + cor0.col0 FROM tab0 AS cor0
----
27
37
90

query I rowsort
SELECT ALL - tab0.col1 * - col0 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + 13 FROM tab0, tab0 cor0
----
13

query I rowsort
SELECT - 58 + + col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1098
-136
-698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7442
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) * + 20 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) * + 20 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7443
SELECT - CAST( NULL AS SIGNED ) * tab1.col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7443
SELECT - CAST ( NULL AS INTEGER ) * tab1.col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 8 AS col1 FROM tab0, tab2 AS cor0
----
-8

query I rowsort
SELECT ALL col1 * ( - col1 + tab1.col1 ) * col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL ( col2 + + tab1.col0 ) AS col2 FROM tab1
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) + - col2 col1 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT ALL col0 + + col1 * col2 - - col0 FROM tab1
----
1408
1410
698

query I rowsort
SELECT col2 + 95 + - col2 AS col1 FROM tab0
----
95
95
95

query I rowsort
SELECT DISTINCT 55 * 14 - col0 FROM tab1
----
690
706
767

query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL 43 * - col0 FROM tab0
----
-1032
-1505
-3827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 col2 FROM tab0
----
-99
-99
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-7454
SELECT DISTINCT 35 DIV col0 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT 35 / col0 AS col0 FROM tab0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7455
SELECT + 2 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7455
SELECT + 2 / col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) * ( - 78 ) FROM tab0 AS cor0
----
-2574
-6396
-78

query I rowsort
SELECT - tab0.col2 + cor0.col0 * tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 4a332081b5bbe7b33775d4d33841e9f5

query I rowsort
SELECT + col2 + - cor0.col2 * ( + col2 + - cor0.col0 ) FROM tab1 AS cor0
----
-1440
-2700
456

query I rowsort
SELECT col2 * + cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
611884
93654
97

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-7461
SELECT + 67 + - tab0.col2 DIV - ( col0 ) FROM tab0
----
67
67
68

skipif mysql # not compatible
query I rowsort label-7461
SELECT + 67 + - tab0.col2 / - ( col0 ) FROM tab0
----
67
67
68

query I rowsort
SELECT DISTINCT - + col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7463
SELECT DISTINCT - col0 * cor0.col1 DIV + 10 AS col2 FROM tab2 AS cor0
----
-134
-21
-460

skipif mysql # not compatible
query I rowsort label-7463
SELECT DISTINCT - col0 * cor0.col1 / + 10 AS col2 FROM tab2 AS cor0
----
-134
-21
-460

query I rowsort
SELECT DISTINCT - - cor0.col0 * cor0.col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - 79 * - col1 AS col1 FROM tab1 AS cor0
----
1027
2054
790

query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 + - col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT - + col2 * + col1 - col0 AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-7468
SELECT DISTINCT cor0.col0 + col1 DIV - 35 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT cor0.col0 + col1 / - 35 AS col1 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7469
SELECT - col1 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7469
SELECT - col1 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7470
SELECT + col0 * col1 DIV col1 - - col2 AS col2 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-7470
SELECT + col0 * col1 / col1 - - col2 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - cor0.col2 * + col0 * cor0.col1 + col2 * 48 FROM tab2 AS cor0
----
-118404
-4563
-49210

query I rowsort
SELECT ALL col1 * col1 + - col0 AS col2 FROM tab0 cor0
----
7372
8192
9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 36 * ( col1 ) col0 FROM tab1 AS cor0
----
360
468
936

query I rowsort
SELECT ALL - 2 AS col0 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT - + 35 FROM tab1 AS cor0
----
-35

query I rowsort
SELECT + col2 + ( + col1 + ( - 59 ) ) * col1 AS col2 FROM tab1 cor0
----
-433
-502
-804

query I rowsort
SELECT - 59 * + col1 AS col2 FROM tab1 AS cor0
----
-1534
-590
-767

query I rowsort
SELECT - col0 + 34 FROM tab0 AS cor0
----
-1
-55
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 * + tab1.col1 * col1 col1 FROM tab1
----
1000
17576
2197

query I rowsort
SELECT - col0 + + 73 AS col2 FROM tab0
----
-16
38
49

query I rowsort
SELECT col1 * col1 + - col0 + 81 FROM tab1 AS cor0
----
117
170
754

query I rowsort
SELECT - + 2 AS col1 FROM tab1 AS cor0
----
-2
-2
-2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7483
SELECT - + CAST( ( cor0.col2 ) AS SIGNED ) + + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7483
SELECT - + CAST ( ( cor0.col2 ) AS INTEGER ) + + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 27 * + col2 FROM tab1 AS cor0
----
1458
1539
2592

query I rowsort
SELECT ALL - 13 + + 69 FROM tab0
----
56
56
56

query I rowsort
SELECT 18 - - tab1.col1 FROM tab1
----
28
31
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 * tab0.col0 + + col2 + - col1 col0 FROM tab0
----
211
289
970

query I rowsort
SELECT + + 14 * col2 + + 92 * col0 AS col2 FROM tab2 cor0
----
1022
7540
7800

query I rowsort
SELECT DISTINCT ( cor0.col2 ) * ( col2 ) FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT + 53 * + col1 + cor0.col1 FROM tab0 AS cor0
----
4644
4914
5238

query I rowsort
SELECT + col0 * col0 + + ( col0 ) AS col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL + 81 * - tab0.col2 + + col0 * tab0.col2 FROM tab0
----
-1881
-46
656

query I rowsort
SELECT ALL 49 * ( - col2 ) + ( col0 ) AS col0 FROM tab1
----
-2643
-2729
-4624

onlyif mysql # use DIV operator for integer division
query I rowsort label-7494
SELECT ALL - tab0.col2 + + col0 DIV + col2 + - 76 AS col0 FROM tab0
----
-109
-157
-42

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL - tab0.col2 + + col0 / + col2 + - 76 AS col0 FROM tab0
----
-109
-157
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-7495
SELECT - cor0.col1 * 90 DIV + cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 092560217109e4cbd9fde50bd3bfbb3f

skipif mysql # not compatible
query I rowsort label-7495
SELECT - cor0.col1 * 90 / + cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 092560217109e4cbd9fde50bd3bfbb3f

query I rowsort
SELECT ALL 41 * + col0 AS col2 FROM tab2
----
287
3198
3239

query I rowsort
SELECT ALL col2 + col1 * - col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT + 51 + - col1 AS col1 FROM tab0 AS cor0
----
-35
-40
-46

onlyif mysql # use DIV operator for integer division
query I rowsort label-7499
SELECT DISTINCT col2 + + col0 DIV col1 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7499
SELECT DISTINCT col2 + + col0 / col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL + col1 * cor0.col2 + + 42 AS col2 FROM tab0 AS cor0
----
139
2880
7504

onlyif mysql # use DIV operator for integer division
query I rowsort label-7501
SELECT DISTINCT + col0 DIV + col2 col2 FROM tab1 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT + col0 / + col2 col2 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL - - cor0.col0 * - col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL 95 * col0 FROM tab2 AS cor0
----
665
7410
7505

query I rowsort
SELECT - 80 * col0 AS col1 FROM tab1 AS cor0
----
-240
-5120
-6400

query I rowsort
SELECT - 42 * + tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to d878f2d5a4eb729b88a774e1cbc05cf8

query I rowsort
SELECT DISTINCT - 84 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
-84

query I rowsort
SELECT DISTINCT - col2 + - 74 FROM tab1
----
-128
-131
-170

query I rowsort
SELECT + tab1.col0 - 9 FROM tab1
----
-6
55
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7509
SELECT ALL - col2 * + col2 + + col1 * + col0 * + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
176415
329314
730285

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL - col2 * + col2 + + col1 * + col0 * + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
176415
329314
730285

query I rowsort
SELECT col0 * - ( + col2 ) * col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - + cor0.col1 * col0 + 37 FROM tab2 AS cor0
----
-1306
-180
-4565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7513
SELECT - col0 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7513
SELECT - col0 * + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 + 69 * + col0 col0 FROM tab2 AS cor0
----
476
5304
5372

query I rowsort
SELECT col0 * + col2 - col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT DISTINCT + col0 * 29 FROM tab0 AS cor0
----
1015
2581
696

query I rowsort
SELECT + ( col0 ) * + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL 17 * + 75 + col2 + col0 AS col0 FROM tab2 AS cor0
----
1309
1379
1392

query I rowsort
SELECT - + ( 84 ) + col0 * ( col2 ) AS col0 FROM tab0 cor0
----
-49
708
7214

query I rowsort
SELECT DISTINCT - col0 + 58 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-3135
-3370
-5648

query I rowsort
SELECT cor0.col0 + - col1 * col0 + col1 FROM tab0 AS cor0
----
-1954
-3263
-7919

query I rowsort
SELECT ALL - - col1 * - col0 * col2 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-119593
-51017
-5828

query I rowsort
SELECT DISTINCT - col0 * 89 + - col0 * col1 AS col2 FROM tab2 cor0
----
-11544
-8374
-840

onlyif mysql # use DIV operator for integer division
query I rowsort label-7524
SELECT + col1 DIV + 8 AS col0 FROM tab2
----
2
3
7

skipif mysql # not compatible
query I rowsort label-7524
SELECT + col1 / + 8 AS col0 FROM tab2
----
2
3
7

query I rowsort
SELECT ALL + - col2 * - col0 + - col1 * + 1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT - col1 + - 89 + col0 AS col0 FROM tab0 AS cor0
----
-151
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 * col2 + cor0.col0 col1 FROM tab0 cor0
----
1641
4107
84

query I rowsort
SELECT - - 70 + 25 * col1 AS col2 FROM tab2 AS cor0
----
1545
495
845

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 8bda8b9cf32f196464e0ee0b41a5162d

query I rowsort
SELECT ALL tab2.col1 + col0 * 25 + + col2 AS col0 FROM tab2
----
2030
2035
233

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1 AS cor2, tab0 cor3
----
3645 values hashing to 2566f3fa788816c8bfc482e730aaed74

onlyif mysql # use DIV operator for integer division
query I rowsort label-7532
SELECT - - col2 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-7532
SELECT - - col2 / cor0.col1 AS col2 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT DISTINCT + col1 + 5 AS col1 FROM tab2 AS cor0
----
22
36
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-7534
SELECT + col0 + - col0 DIV col0 col0 FROM tab2 AS cor0
----
6
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7534
SELECT + col0 + - col0 / col0 col0 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT ALL - - cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7536
SELECT DISTINCT + + col2 * CAST( NULL AS SIGNED ) + - cor0.col0 col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7536
SELECT DISTINCT + + col2 * CAST ( NULL AS INTEGER ) + - cor0.col0 col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT cor0.col2 * ( col0 ) AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - col1 * + col2 + - 77 FROM tab1 AS cor0
----
-1325
-1481
-647

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7539
SELECT DISTINCT - - CAST( cor0.col2 AS SIGNED ) * + col0 * + 38 FROM tab2 AS cor0
----
114076
7182
77064

skipif mysql # not compatible
query I rowsort label-7539
SELECT DISTINCT - - CAST ( cor0.col2 AS INTEGER ) * + col0 * + 38 FROM tab2 AS cor0
----
114076
7182
77064

query I rowsort
SELECT + ( col2 ) + col1 * col0 + + 13 AS col2 FROM tab1 AS cor0
----
1149
145
710

query I rowsort
SELECT 54 * cor0.col1 * col2 + cor0.col0 + col0 * col2 FROM tab2 AS cor0
----
37965
45394
84942

query I rowsort
SELECT DISTINCT - 20 * - cor0.col2 AS col1 FROM tab0 cor0
----
1640
20
660

onlyif mysql # use DIV operator for integer division
query I rowsort label-7543
SELECT ALL + + col2 DIV cor0.col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7543
SELECT ALL + + col2 / cor0.col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + 16 * - col2 FROM tab0
----
-1312
-16
-528

onlyif mysql # use DIV operator for integer division
query I rowsort label-7545
SELECT + + ( + col0 ) DIV col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7545
SELECT + + ( + col0 ) / col0 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT + 50 * col2 + col0 * + col0 FROM tab2 AS cor0
----
1399
7384
8141

onlyif mysql # use DIV operator for integer division
query I rowsort label-7547
SELECT ALL 91 DIV + col2 - + col1 AS col2 FROM tab1 AS cor0
----
-13
-25
-9

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL 91 / + col2 - + col1 AS col2 FROM tab1 AS cor0
----
-13
-25
-9

query I rowsort
SELECT ALL - + cor0.col2 * - col2 + 83 FROM tab2 cor0
----
1527
759
812

query I rowsort
SELECT ALL + 54 + col2 * - col2 - + col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-16842
-3024
-6843

query I rowsort
SELECT DISTINCT + col0 + col0 + ( + col2 + - col2 ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + cor0.col0 + col1 * col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL col1 * col0 + - col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT + col1 * col0 - 59 FROM tab0 AS cor0
----
2005
3336
8040

onlyif mysql # use DIV operator for integer division
query I rowsort label-7554
SELECT - - col0 DIV + col1 + col2 AS col2 FROM tab2 AS cor0
----
27
27
42

skipif mysql # not compatible
query I rowsort label-7554
SELECT - - col0 / + col1 + col2 AS col2 FROM tab2 AS cor0
----
27
27
42

query I rowsort
SELECT DISTINCT + + ( - col2 ) + - ( + col2 ) * col0 FROM tab0 AS cor0
----
-36
-7380
-825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col1 + cor0.col2 + cor0.col2 col0 FROM tab2 AS cor0
----
-1482
-570
-783

onlyif mysql # use DIV operator for integer division
query I rowsort label-7557
SELECT ALL col1 * + cor0.col1 + - col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
168
675
99

skipif mysql # not compatible
query I rowsort label-7557
SELECT ALL col1 * + cor0.col1 + - col1 / + col1 AS col0 FROM tab1 AS cor0
----
168
675
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col2 FROM tab2
----
83

query I rowsort
SELECT 54 + col0 * ( - 25 + col1 ) FROM tab1
----
-906
-906
57

query I rowsort
SELECT 36 AS col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT DISTINCT cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
3
64
80

query I rowsort
SELECT cor1.col0 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT col0 * + 35 AS col1 FROM tab0 AS cor0
----
1225
3115
840

onlyif mysql # use DIV operator for integer division
query I rowsort label-7564
SELECT - col1 DIV + CAST( col1 + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7564
SELECT - col1 / + CAST ( col1 + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 9 + col0 FROM tab0
----
15
26
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7566
SELECT DISTINCT - CAST( + col0 AS SIGNED ) * cor0.col2 + ( col2 ) col0 FROM tab1 AS cor0
----
-108
-3591
-7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7566
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) * cor0.col2 + ( col2 ) col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT 86 AS col2 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT ALL col2 * - 72 FROM tab0
----
-2376
-5904
-72

query I rowsort
SELECT 57 * - 2 FROM tab2, tab1 AS cor0
----
9 values hashing to 12b2d2a7b2701d250793754d86c57f73

query I rowsort
SELECT - ( cor0.col1 ) * ( col0 ) * col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT - ( col1 * + col0 ) + - 8 + + col0 AS col0 FROM tab1
----
-584
-83
-968

query I rowsort
SELECT DISTINCT + col0 + 79 AS col2 FROM tab2
----
157
158
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7573
SELECT + ( + col1 ) + CAST( NULL AS SIGNED ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7573
SELECT + ( + col1 ) + CAST ( NULL AS INTEGER ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 20 + + col0 + 64 * + col1 FROM tab0 AS cor0
----
5508
5893
6223

query I rowsort
SELECT - - col0 + + col0 + 72 AS col1 FROM tab1 AS cor0
----
200
232
78

query I rowsort
SELECT ALL - tab2.col2 + + cor0.col1 FROM tab2, tab1 cor0
----
9 values hashing to c9cfe0a4bb4818c8cac363c2529f2675

query I rowsort
SELECT - - 36 * - cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ea4c28aa5331d541a356bbeaa77e0af0

query I rowsort
SELECT - col1 + col0 * ( + col1 ) AS col1 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-7579
SELECT + ( col1 ) + col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-7579
SELECT + ( col1 ) + col2 / + col0 AS col0 FROM tab0 AS cor0
----
87
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7580
SELECT ALL + + col1 + cor0.col0 DIV - 67 AS col1 FROM tab1 AS cor0
----
10
12
26

skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL + + col1 + cor0.col0 / - 67 AS col1 FROM tab1 AS cor0
----
10
12
26

query I rowsort
SELECT - col1 + + col0 * col0 + + ( + cor0.col1 + - cor0.col0 * + ( col1 ) ) FROM tab2 AS cor0
----
-168
1482
4898

query I rowsort
SELECT - - 10 AS col1 FROM tab2 AS cor0
----
10
10
10

query I rowsort
SELECT - - col1 * col0 * ( col0 ) + - col0 * cor0.col2 + 30 AS col2 FROM tab0 AS cor0
----
118820
48774
713543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - tab2.col1 col0 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - col0 * col1 + + col0 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT - col2 * + cor0.col0 + + col1 * + col2 FROM tab1 AS cor0
----
-3078
-6432
1242

query I rowsort
SELECT DISTINCT - cor0.col0 * col0 + - col1 * - col0 * col2 + + col2 FROM tab2 AS cor0
----
113594
44831
5837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 + - col0 col0 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT + col0 + col1 + + col0 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT DISTINCT - - cor0.col1 + - cor0.col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1427
-617
-698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + col1 col0 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT - + cor0.col1 * - col1 - + cor0.col0 AS col0 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT col0 + + col0 * - col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT + - cor0.col1 * + col1 + + col2 * col2 FROM tab1 AS cor0
----
2240
3149
9047

query I rowsort
SELECT ALL - 31 * col2 AS col0 FROM tab1 AS cor0
----
-1674
-1767
-2976

query I rowsort
SELECT + - 25 + col0 AS col1 FROM tab1 AS cor0
----
-22
39
55

query I rowsort
SELECT ALL - + col1 * col0 + + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL col0 + col1 * col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL - + col2 * - col1 + + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 + - col1 * col1 col0 FROM tab0
----
-182
-5332
-6014

query I rowsort
SELECT col0 FROM tab1 WHERE col1 <> NULL
----

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT + tab0.col1 * - col2 - col1 * col2 > - col1 * - col1 + col0 * col0 + col1
----
1
33
82

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( col2 - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 + + col1 col0 FROM tab2
----
134
163
65

query I rowsort
SELECT ALL col1 * col2 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col2 )
----

query I rowsort
SELECT - tab2.col0 * col1 - - tab2.col2 * - col1 FROM tab2
----
-1054
-1989
-6136

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN - col2 AND - col1 / col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7608
SELECT ALL col1 * col0 DIV + col1 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-7608
SELECT ALL col1 * col0 / + col1 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL col2 + col2 - col1 FROM tab1
----
104
179
82

query I rowsort
SELECT ALL - col1 * col1 * - col2 AS col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT DISTINCT - col2 - - col0 * - col2 / col1 FROM tab2 WHERE NOT ( + col1 + col0 * col2 ) NOT IN ( - col1 * - col0 )
----

query I rowsort
SELECT - col2 + - tab2.col2 + col2 * col2 FROM tab2
----
1368
624
675

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 / + col1 + col0 ) NOT IN ( + col0 * col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT col0 * col0 + tab2.col0 * - col2 * col1 + - col0 * + col1 FROM tab2
----
-118170
-46136
-6027

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + tab0.col1 / + col0 + col0 FROM tab0 WHERE NOT - col0 + col0 NOT IN ( col0 + - tab0.col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7617
SELECT DISTINCT col1 * tab2.col0 DIV col1 + - tab2.col0 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT col1 * tab2.col0 / col1 + - tab2.col0 AS col2 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 > ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7619
SELECT DISTINCT col2 DIV col0 + tab1.col1 col0 FROM tab1
----
10
14
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7619
SELECT DISTINCT col2 / col0 + tab1.col1 col0 FROM tab1
----
10
14
44

query I rowsort
SELECT ALL - col1 * col2 + tab2.col1 * col1 * col0 FROM tab2
----
22185
269984
5890

onlyif mysql # use DIV operator for integer division
query I rowsort label-7621
SELECT DISTINCT col1 DIV col1 + - tab1.col2 * col2 col0 FROM tab1
----
-2915
-3248
-9215

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT col1 / col1 + - tab1.col2 * col2 col0 FROM tab1
----
-2915
-3248
-9215

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col0 * - tab0.col2 + - col2 * - col0 AS col0 FROM tab0
----
14596
1584
70

query I rowsort
SELECT - cor0.col2 * + col2 + cor0.col1 AS col2 FROM tab1 cor0
----
-2890
-3239
-9203

query I rowsort
SELECT + col1 * - col2 * + col0 - - col1 FROM tab0
----
-3298
-664027
-68026

onlyif mysql # use DIV operator for integer division
query I rowsort label-7626
SELECT ALL col2 DIV + tab1.col0 + - col0 + + tab1.col2 DIV tab1.col2 FROM tab1
----
-63
-78
16

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL col2 / + tab1.col0 + - col0 + + tab1.col2 / tab1.col2 FROM tab1
----
-63
-78
16

query I rowsort
SELECT col0 * col0 - + col2 AS col1 FROM tab2
----
22
6058
6203

query I rowsort
SELECT DISTINCT - tab1.col0 + - col2 + col2 * col0 AS col0 FROM tab1
----
105
3527
7504

query I rowsort
SELECT tab0.col0 * - col0 * col2 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT col2 * + col2 * - col2 FROM tab1
----
-157464
-185193
-884736

query I rowsort
SELECT + col0 * + tab1.col2 * col1 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT - col1 * col0 + + col0 * + col1 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col0 ) BETWEEN col2 AND col0 * cor0.col0
----
35
97
1
89
91
82

query I rowsort
SELECT - col0 * + col2 + cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) < col2 * + col0 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 65 col1 FROM tab2 AS cor0
----
-65
-65
-65

query I rowsort
SELECT - - cor0.col0 + col0 * - ( col2 ) AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT + 68 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT - ( + col0 ) + col2 AS col1 FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT ( col2 + col0 ) * col0 FROM tab2
----
238
8112
9243

query I rowsort
SELECT ALL + ( ( - col1 ) ) FROM tab1
----
-10
-13
-26

query I rowsort
SELECT 74 * 16 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 061630226ac20f5a0257102f6ee1879b

query I rowsort
SELECT - 80 + col1 * 89 * + col1 FROM tab2 cor0
----
25641
309729
85449

onlyif mysql # use DIV operator for integer division
query I rowsort label-7644
SELECT ALL - - col1 DIV cor0.col1 col2 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7644
SELECT ALL - - col1 / cor0.col1 col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - - 77 AS col2 FROM tab2 AS cor0
----
77
77
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7646
SELECT - CAST( 25 AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

skipif mysql # not compatible
query I rowsort label-7646
SELECT - CAST ( 25 AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT 35 FROM tab2, tab0 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7648
SELECT - 14 + + 37 * + col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7648
SELECT - 14 + + 37 * + col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7649
SELECT DISTINCT col0 DIV col1 + col2 AS col2 FROM tab1
----
102
54
63

skipif mysql # not compatible
query I rowsort label-7649
SELECT DISTINCT col0 / col1 + col2 AS col2 FROM tab1
----
102
54
63

query I rowsort
SELECT - tab0.col2 + - cor0.col0 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 944025edd8c6c065c2ba878fd8b32301

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + ( - cor0.col0 ) col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL + - col1 * col1 + ( col2 * - ( col2 ) ) AS col2 FROM tab1 cor0
----
-3349
-3592
-9385

skipif mysql # not compatible
query I rowsort
SELECT - col1 * CAST ( col1 AS REAL ) FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT ( 48 ) * + col0 AS col2 FROM tab2
----
336
3744
3792

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col2 AS REAL ) FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT 28 * col2 AS col2 FROM tab0
----
2296
28
924

query I rowsort
SELECT + - col0 * col2 + col2 + - col1 FROM tab0 AS cor0
----
-131
-7307
-845

query I rowsort
SELECT - col2 + 14 * + col2 FROM tab2 AS cor0
----
338
351
494

query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col2 FROM tab0, tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL 10 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT ALL + + col0 * 60 FROM tab1 cor0
----
180
3840
4800

query I rowsort
SELECT + ( 76 ) + - col2 * - 3 + + 83 AS col2 FROM tab2 AS cor0
----
237
240
273

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7663
SELECT + CAST( NULL AS DECIMAL ) * + cor0.col1 + - col1 * cor0.col2 * - col1 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7663
SELECT + CAST ( NULL AS REAL ) * + cor0.col1 + - col1 * cor0.col2 * - col1 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 94 * - 18 AS col1 FROM tab2
----
1692
1692
1692

query I rowsort
SELECT - 14 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT 54 * cor0.col2 FROM tab0 AS cor0
----
1782
4428
54

query I rowsort
SELECT col0 * col2 + col0 AS col1 FROM tab0 cor0
----
70
7387
816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7668
SELECT - ( - col2 ) * + CAST( NULL AS SIGNED ) * - ( col0 ) + - 60 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7668
SELECT - ( - col2 ) * + CAST ( NULL AS INTEGER ) * - ( col0 ) + - 60 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 42 + - cor0.col0 * col0 FROM tab1 AS cor0
----
-4054
-6358
33

query I rowsort
SELECT DISTINCT + - 90 AS col1 FROM tab2, tab0 AS cor0, tab1, tab0 cor1
----
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7671
SELECT DISTINCT - + col1 DIV col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7671
SELECT DISTINCT - + col1 / col2 FROM tab1 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7672
SELECT + col0 DIV 82 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7672
SELECT + col0 / 82 FROM tab1
----
0
0
0

query I rowsort
SELECT - cor0.col2 - - col0 AS col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT col0 * - 0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7675
SELECT col1 DIV - col0 + - col1 FROM tab1 AS cor0
----
-10
-13
-34

skipif mysql # not compatible
query I rowsort label-7675
SELECT col1 / - col0 + - col1 FROM tab1 AS cor0
----
-10
-13
-34

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 8a7905bab027a06731ba57659d83981d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + col2 + col2 col0 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT + col0 * - 11 + - col1 * - cor0.col1 FROM tab1 AS cor0
----
-604
-711
643

query I rowsort
SELECT - - 14 + - col1 AS col2 FROM tab0 cor0
----
-72
-77
-83

query I rowsort
SELECT + ( 23 ) + + col2 AS col1 FROM tab2 AS cor0
----
49
50
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-7681
SELECT ( ( col0 DIV + col1 ) ) * col0 * col2 + 50 * cor0.col0 - + col0 * col2 FROM tab0 AS cor0
----
-2848
1715
408

skipif mysql # not compatible
query I rowsort label-7681
SELECT ( ( col0 / + col1 ) ) * col0 * col2 + 50 * cor0.col0 - + col0 * col2 FROM tab0 AS cor0
----
-2848
1715
408

query I rowsort
SELECT - 13 + + col2 AS col1 FROM tab1 AS cor0
----
41
44
83

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col2 AS REAL ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + tab0.col1 * - tab0.col0 + tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 7684dc8853bb23bc0597f7da16877add

onlyif mysql # use DIV operator for integer division
query I rowsort label-7685
SELECT - col2 * - col1 DIV + col1 AS col2 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-7685
SELECT - col2 * - col1 / + col1 AS col2 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT + col2 * col0 - - col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + + col0 * ( + 50 ) AS col1 FROM tab2 AS cor0
----
350
3900
3950

query I rowsort
SELECT ALL - cor0.col2 + - ( col2 ) AS col0 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT col1 * + col0 + col1 + + col1 * - col2 FROM tab2 cor0
----
-589
3127
714

query I rowsort
SELECT col1 + ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - + cor0.col2 - - col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + ( 14 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT ALL col0 + col2 * - 78 FROM tab1
----
-4209
-4382
-7408

query I rowsort
SELECT - col0 - 65 FROM tab2
----
-143
-144
-72

query I rowsort
SELECT ALL col1 * - ( col1 ) + col0 * + 44 FROM tab2
----
-49
-653
3187

query I rowsort
SELECT tab0.col2 * - ( 47 ) FROM tab0
----
-1551
-3854
-47

query I rowsort
SELECT ALL 83 + 18 FROM tab0, tab0 AS cor0
----
9 values hashing to abec6b3410aa771c209e22ecdf81edba

query I rowsort
SELECT DISTINCT + - col0 + + 51 AS col1 FROM tab2 AS cor0
----
-27
-28
44

query I rowsort
SELECT cor0.col2 * col0 + col0 + col0 FROM tab1 AS cor0
----
168
3776
7840

onlyif mysql # use DIV operator for integer division
query I rowsort label-7700
SELECT DISTINCT + col1 DIV 35 AS col0 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT + col1 / 35 AS col0 FROM tab0 AS cor0
----
2

query I rowsort
SELECT + col2 - tab1.col0 * - tab1.col0 AS col2 FROM tab1
----
4153
63
6496

query I rowsort
SELECT - col2 * - 97 + + col0 * col1 AS col1 FROM tab0
----
16053
3492
5265

query I rowsort
SELECT 48 FROM tab2, tab0 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT + - 4 * col1 FROM tab0 AS cor0
----
-344
-364
-388

query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col1 FROM tab2, tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL - col0 * - col1 + - 6 FROM tab2 AS cor0
----
1337
211
4596

query I rowsort
SELECT - + 50 * - cor0.col1 FROM tab1 AS cor0
----
1300
500
650

query I rowsort
SELECT 51 * + cor0.col0 - col2 FROM tab1 AS cor0
----
3207
3984
99

query I rowsort
SELECT ( + col1 ) + - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL + - col2 + col0 * + cor0.col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL - - col0 + + col2 * + col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT - - col0 * cor0.col2 - col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT DISTINCT - cor0.col1 * col2 * col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + col2 * cor0.col1 + ( col2 ) AS col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL ( - col0 * col2 ) + - col0 * col1 * - col1 FROM tab2
----
19829
269490
6538

query I rowsort
SELECT + - 21 AS col0 FROM tab0 cor0
----
-21
-21
-21

query I rowsort
SELECT ALL + 45 * + col0 * + 2 + col0 AS col1 FROM tab2
----
637
7098
7189

query I rowsort
SELECT ALL + + ( col2 ) + col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-7719
SELECT 88 * - col1 DIV + col1 FROM tab0 AS cor0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-7719
SELECT 88 * - col1 / + col1 FROM tab0 AS cor0
----
-88
-88
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 - col1 col2 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT + + col0 + col0 + 47 FROM tab0 AS cor0
----
117
225
95

query I rowsort
SELECT ALL + - col2 * - 3 AS col1 FROM tab1 AS cor0
----
162
171
288

query I rowsort
SELECT - col2 + 80 + - col0 * + col1 FROM tab1 cor0
----
-1056
-52
-617

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7724
SELECT + col1 * - col2 * col0 + col2 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7724
SELECT + col1 * - col2 * col0 + col2 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + col1 + col2 * - col2 + 67 FROM tab1 AS cor0
----
-3282
-3525
-9318

query I rowsort
SELECT ALL col2 + col2 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT - tab2.col0 + + tab2.col1 * col1 + 50 AS col1 FROM tab2
----
1004
260
3453

query I rowsort
SELECT + ( + col0 ) + col1 + + col2 AS col1 FROM tab1
----
131
189
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7729
SELECT DISTINCT + col0 + col2 + - CAST( + col0 * col1 AS SIGNED ) AS col0 FROM tab1
----
-21
-519
-864

skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT + col0 + col2 + - CAST ( + col0 * col1 AS INTEGER ) AS col0 FROM tab1
----
-21
-519
-864

query I rowsort
SELECT 9 + + col1 + ( 52 ) FROM tab2
----
120
78
92

query I rowsort
SELECT DISTINCT col0 * 78 * - col1 + + col1 * + 97 FROM tab0 AS cor0
----
-152650
-255401
-622895

query I rowsort
SELECT ALL - 38 - + ( cor0.col0 + 68 ) FROM tab1 AS cor0
----
-109
-170
-186

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7733
SELECT ALL CAST( NULL AS SIGNED ) + - cor0.col0 * - col2 col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL CAST ( NULL AS INTEGER ) + - cor0.col0 * - col2 col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col2 * col0 - + col1 AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT DISTINCT + col2 + + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT - 20 * + 48 AS col2 FROM tab1 AS cor0
----
-960
-960
-960

query I rowsort
SELECT DISTINCT 6 + col0 AS col0 FROM tab0 AS cor0
----
30
41
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7738
SELECT CAST( 19 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-7738
SELECT CAST ( 19 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT + - 90 + col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1444
556
747

query I rowsort
SELECT ALL 32 * col1 + - col1 FROM tab2 cor0
----
1829
527
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 72 col1 FROM tab0 AS cor0
----
6192
6552
6984

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7742
SELECT ALL - CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL - CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 42 * + col1 FROM tab2 AS cor0
----
-1302
-2478
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( col0 ) col2 FROM tab2
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) + - col2 col2 FROM tab0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7746
SELECT DISTINCT - cor0.col0 + col1 DIV - col1 FROM tab1 AS cor0
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT - cor0.col0 + col1 / - col1 FROM tab1 AS cor0
----
-4
-65
-81

query I rowsort
SELECT DISTINCT - - cor0.col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + - col2 + + col0 + 88 AS col1 FROM tab0 AS cor0
----
122
79
95

query I rowsort
SELECT col0 + 97 AS col2 FROM tab1 AS cor0
----
100
161
177

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7750
SELECT DISTINCT col1 + + CAST( col2 AS SIGNED ) * cor0.col2 * ( 49 ) + + col0 * + col2 AS col2 FROM tab1 AS cor0
----
143072
162859
459277

skipif mysql # not compatible
query I rowsort label-7750
SELECT DISTINCT col1 + + CAST ( col2 AS INTEGER ) * cor0.col2 * ( 49 ) + + col0 * + col2 AS col2 FROM tab1 AS cor0
----
143072
162859
459277

query I rowsort
SELECT DISTINCT - - col1 * col1 + + col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT - col0 * - ( - col0 ) + col0 AS col1 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT + + col1 + - 17 FROM tab2 cor0
----
0
14
42

query I rowsort
SELECT + col1 * 60 AS col0 FROM tab1 AS cor0
----
1560
600
780

query I rowsort
SELECT ALL + tab1.col1 + col0 + + tab1.col1 * tab1.col2 FROM tab1
----
1341
1433
644

query I rowsort
SELECT - cor0.col1 * cor0.col1 + col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT - - col2 * - 31 * ( col0 ) AS col2 FROM tab2 AS cor0
----
-5859
-62868
-93062

onlyif mysql # use DIV operator for integer division
query I rowsort label-7758
SELECT tab1.col2 + 99 DIV 52 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-7758
SELECT tab1.col2 + 99 / 52 FROM tab1
----
55
58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7760
SELECT - col2 * + CAST( NULL AS SIGNED ) + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT - col2 * + CAST ( NULL AS INTEGER ) + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col2 + + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-36
-7380
-825

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + col2 AS REAL ) * - col2 * 37 + col2 * col0 * col0 FROM tab0
----
1262
59301
898310

query I rowsort
SELECT ALL + 5 FROM tab0, tab0 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT ALL tab2.col0 * - tab2.col1 AS col1 FROM tab2
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7765
SELECT + ( col1 * - CAST( col2 AS SIGNED ) ) AS col0 FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-7765
SELECT + ( col1 * - CAST ( col2 AS INTEGER ) ) AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - - cor0.col1 + + cor0.col2 * + cor0.col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to f58f463ccb1f5edd84b6324c47155158

query I rowsort
SELECT ALL + 67 * - col0 + 48 FROM tab1
----
-153
-4240
-5312

query I rowsort
SELECT ALL - col1 + + col0 * - 61 AS col2 FROM tab2
----
-458
-4817
-4836

onlyif mysql # use DIV operator for integer division
query I rowsort label-7769
SELECT DISTINCT + + cor0.col2 + - col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT + + cor0.col2 + - col1 / + col2 AS col2 FROM tab0 AS cor0
----
-96
31
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-7770
SELECT - + 4 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7770
SELECT - + 4 / - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7771
SELECT - 14 DIV - 87 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-7771
SELECT - 14 / - 87 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT ALL + 48 * - col2 FROM tab1 AS cor0
----
-2592
-2736
-4608

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7773
SELECT ALL - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7773
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col2 * 0 + 30 FROM tab0 AS cor0
----
30
30
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7775
SELECT + ( col0 ) * - ( col2 * col0 + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7775
SELECT + ( col0 ) * - ( col2 * col0 + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - - cor0.col1 * col0 * col1 AS col0 FROM tab2 AS cor0
----
22814
271459
6696

query I rowsort
SELECT col2 + 79 - + 14 * - col2 AS col2 FROM tab0
----
1309
574
94

query I rowsort
SELECT ALL col0 * col1 + col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT col1 + col2 + + col2 FROM tab0
----
152
255
99

query I rowsort
SELECT ALL - col2 * col0 + 21 AS col0 FROM tab2
----
-168
-2007
-2981

query I rowsort
SELECT - + col2 + + col1 * ( - col1 + 43 ) * col1 AS col1 FROM tab0 AS cor0
----
-318061
-397570
-508087

query I rowsort
SELECT + + col1 * + cor0.col0 + cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT cor0.col2 * + col1 + col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1417
2080
670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) - col1 * 53 FROM tab2 cor0
----
-1616
-3101
-863

query I rowsort
SELECT + - 42 * col1 AS col2 FROM tab2 AS cor0
----
-1302
-2478
-714

onlyif mysql # use DIV operator for integer division
query I rowsort label-7787
SELECT col0 * col0 DIV + 59 AS col0 FROM tab2 AS cor0
----
0
103
105

skipif mysql # not compatible
query I rowsort label-7787
SELECT col0 * col0 / + 59 AS col0 FROM tab2 AS cor0
----
0
103
105

query I rowsort
SELECT col0 * col1 + col0 * 16 AS col1 FROM tab0 AS cor0
----
2448
3955
9523

query I rowsort
SELECT - col1 + col1 * + 40 AS col0 FROM tab0 AS cor0
----
3354
3549
3783

onlyif mysql # use DIV operator for integer division
query I rowsort label-7790
SELECT DISTINCT ( + col0 ) DIV col1 FROM tab1
----
0
6

skipif mysql # not compatible
query I rowsort label-7790
SELECT DISTINCT ( + col0 ) / col1 FROM tab1
----
0
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) col0 FROM tab2
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col1 FROM tab2
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + cor0.col0 col1 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT ALL + 39 + col1 AS col1 FROM tab2 AS cor0
----
56
70
98

query I rowsort
SELECT ALL - - 68 + + 23 * col0 FROM tab1 AS cor0
----
137
1540
1908

query I rowsort
SELECT + 50 + + 53 * col0 AS col0 FROM tab1 AS cor0
----
209
3442
4290

query I rowsort
SELECT ( + col2 ) + - col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL + col1 * col1 + col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT + + 72 * - col0 + + col1 FROM tab1 cor0
----
-190
-4598
-5747

query I rowsort
SELECT ALL 65 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ALL + 34 + - 1 FROM tab0 AS cor0
----
33
33
33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7802
SELECT - - CAST( col2 AS SIGNED ) + col1 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-7802
SELECT - - CAST ( col2 AS INTEGER ) + col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - col0 - - tab2.col1 AS col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT col0 + 34 * + col0 - col0 FROM tab2
----
238
2652
2686

query I rowsort
SELECT ALL 22 FROM tab2, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + tab2.col2 col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + ( - ( - col0 ) ) + col1 + 94 FROM tab0
----
204
226
274

query I rowsort
SELECT col2 * - ( col2 ) FROM tab2
----
-1444
-676
-729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7809
SELECT + + CAST( ( col0 ) AS SIGNED ) + - cor0.col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7809
SELECT + + CAST ( ( col0 ) AS INTEGER ) + - cor0.col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - tab0.col0 + + ( col2 ) * col2 AS col2 FROM tab0
----
-34
1065
6635

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7811
SELECT CAST( NULL AS SIGNED ) * + 8 col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7811
SELECT CAST ( NULL AS INTEGER ) * + 8 col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - col2 + col2 * ( col1 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT + - tab1.col0 AS col1 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) * tab0.col0 col2 FROM tab0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7815
SELECT + - col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7815
SELECT + - col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - ( 95 ) FROM tab2 AS cor0
----
-1615
-2945
-5605

query I rowsort
SELECT DISTINCT + col0 * ( + 2 ) FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL - - col0 * 12 FROM tab0 AS cor0
----
1068
288
420

onlyif mysql # use DIV operator for integer division
query I rowsort label-7819
SELECT ALL + 39 DIV - tab0.col2 AS col2 FROM tab0
----
-1
-39
0

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL + 39 / - tab0.col2 AS col2 FROM tab0
----
-1
-39
0

query I rowsort
SELECT ALL - cor1.col0 * - cor1.col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba

query I rowsort
SELECT - col0 + - col1 * 0 FROM tab0 AS cor0
----
-24
-35
-89

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to 862fba9ac85fdf2cec88a0bec0808b7e

query I rowsort
SELECT col2 * ( col2 + col0 ) AS col1 FROM tab2 cor0
----
2704
4446
918

query I rowsort
SELECT DISTINCT - col2 + + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2862
3192
9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-7825
SELECT DISTINCT + col2 DIV + col2 + col0 + + col2 DIV ( 74 * cor0.col0 ) AS col1 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-7825
SELECT DISTINCT + col2 / + col2 + col0 + + col2 / ( 74 * cor0.col0 ) AS col1 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT col1 * - 42 FROM tab2 AS cor0
----
-1302
-2478
-714

query I rowsort
SELECT col2 * + ( 98 * - col2 + - ( 37 ) ) FROM tab1 AS cor0
----
-287766
-320511
-906720

query I rowsort
SELECT + col2 * + ( - 73 * - col0 ) AS col1 FROM tab2 AS cor0
----
13797
148044
219146

query I rowsort
SELECT ALL - col2 * col0 * - col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT - col1 * + 89 AS col2 FROM tab0 AS cor0
----
-7654
-8099
-8633

query I rowsort
SELECT DISTINCT + - cor0.col2 * 64 FROM tab0 AS cor0
----
-2112
-5248
-64

query I rowsort
SELECT cor0.col0 * ( col1 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - col0 + cor0.col1 * + col0 FROM tab2 AS cor0
----
1264
210
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 61 + 56 * + col0 col2 FROM tab2 AS cor0
----
2039
5954
6742

query I rowsort
SELECT DISTINCT - - ( - 85 ) * col2 * col1 AS col2 FROM tab0 cor0
----
-241230
-634270
-8245

query I rowsort
SELECT DISTINCT col2 * - 52 FROM tab2 AS cor0
----
-1352
-1404
-1976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 * - col1 col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 7 ) col2 FROM tab0 AS cor0
----
-7
-7
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7839
SELECT - - CAST( - ( + col2 ) AS SIGNED ) DIV 13 AS col1 FROM tab1 AS cor0
----
-4
-4
-7

skipif mysql # not compatible
query I rowsort label-7839
SELECT - - CAST ( - ( + col2 ) AS INTEGER ) / 13 AS col1 FROM tab1 AS cor0
----
-4
-4
-7

query I rowsort
SELECT DISTINCT - tab2.col1 + 52 * - col1 AS col2 FROM tab2
----
-1643
-3127
-901

query I rowsort
SELECT DISTINCT + 2 * col1 AS col1 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7842
SELECT DISTINCT + CAST( - ( - cor0.col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7842
SELECT DISTINCT + CAST ( - ( - cor0.col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT 27 * + 11 * + cor0.col0 FROM tab0 AS cor0
----
10395
26433
7128

onlyif mysql # use DIV operator for integer division
query I rowsort label-7844
SELECT DISTINCT - col2 + cor0.col0 + - col1 DIV 26 FROM tab2 cor0
----
-21
41
50

skipif mysql # not compatible
query I rowsort label-7844
SELECT DISTINCT - col2 + cor0.col0 + - col1 / 26 FROM tab2 cor0
----
-21
41
50

query I rowsort
SELECT + col0 + + col1 * col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL + 23 + col0 * col1 AS col1 FROM tab1 cor0
----
101
1063
663

query I rowsort
SELECT + - 73 + col1 AS col1 FROM tab0 cor0
----
13
18
24

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col1 AS col0 FROM tab0, tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - 43 + + cor0.col2 FROM tab2 AS cor0
----
-16
-17
-5

query I rowsort
SELECT ALL - cor0.col0 * col0 * col0 + + col1 FROM tab0 AS cor0
----
-13738
-42778
-704878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 18 col0 FROM tab2 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT 10 * - col1 + + ( col2 ) * + col0 AS col0 FROM tab2 AS cor0
----
-121
1438
2832

query I rowsort
SELECT DISTINCT + col2 * - col1 + col1 FROM tab2 cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT - - col0 + col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT - cor0.col1 * - col2 + + ( col0 ) FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT - col1 * col1 * + col2 + col1 FROM tab2 AS cor0
----
-10965
-25916
-90447

query I rowsort
SELECT DISTINCT + cor0.col0 - - cor0.col1 AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + 14 + col0 AS col2 FROM tab1 AS cor0
----
17
78
94

query I rowsort
SELECT + + col1 + col2 * 63 AS col2 FROM tab1 AS cor0
----
3428
3601
6061

query I rowsort
SELECT ALL 99 + - col0 * + cor0.col2 FROM tab1 AS cor0
----
-3549
-63
-7581

onlyif mysql # use DIV operator for integer division
query I rowsort label-7861
SELECT DISTINCT + 79 DIV + col0 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT + 79 / + col0 FROM tab0 AS cor0
----
0
2
3

query I rowsort
SELECT ALL + cor0.col2 * col2 + 51 FROM tab2 AS cor0
----
1495
727
780

query I rowsort
SELECT DISTINCT + col0 * col1 + + ( tab0.col1 ) * col2 AS col1 FROM tab0
----
15561
3492
4902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT tab0.col1 + - col0 * + 11 FROM tab0
----
-178
-288
-888

query I rowsort
SELECT 42 * - col1 + - col2 * col2 FROM tab2 AS cor0
----
-2031
-2158
-3154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 33 col0 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT col0 * + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col2 * - 48 FROM tab1 AS cor0
----
-2592
-2736
-4608

query I rowsort
SELECT + - col1 + + 15 + col1 AS col1 FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT + - col1 * + col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-7872
SELECT - col0 * cor0.col1 + col2 DIV col1 + col1 * col2 FROM tab1 AS cor0
----
-65
1328
215

skipif mysql # not compatible
query I rowsort label-7872
SELECT - col0 * cor0.col1 + col2 / col1 + col1 * col2 FROM tab1 AS cor0
----
-65
1328
215

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7873
SELECT + - col0 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7873
SELECT + - col0 + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * + 35 + 22 * + col0 AS col1 FROM tab0 AS cor0
----
-1157
-312
-455

query I rowsort
SELECT + col2 * - col0 * col2 + + col2 * + col2 + col0 * + col1 FROM tab1 AS cor0
----
-204047
-5754
-727024

query I rowsort
SELECT DISTINCT + tab0.col1 + - col1 * col1 AS col2 FROM tab0
----
-7310
-8190
-9312

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND col2 + col1
----

query I rowsort
SELECT DISTINCT tab0.col1 * + col2 + col0 * tab0.col1 FROM tab0
----
15561
3492
4902

query I rowsort
SELECT DISTINCT - col0 + + col0 FROM tab1 WHERE NOT ( + col0 * + col1 ) <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7880
SELECT DISTINCT col1 DIV - col2 + col1 FROM tab0
----
0
84
90

skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT col1 / - col2 + col1 FROM tab0
----
0
84
90

query I rowsort
SELECT ALL + col0 * tab2.col0 * - col0 + col0 FROM tab2
----
-336
-474474
-492960

query I rowsort
SELECT + tab2.col2 + tab2.col0 - - tab2.col0 * + tab2.col0 FROM tab2
----
6188
6358
83

query I rowsort
SELECT DISTINCT tab1.col2 AS col0 FROM tab1 WHERE col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7884
SELECT ALL col0 DIV + col0 + col0 col2 FROM tab0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7884
SELECT ALL col0 / + col0 + col0 col2 FROM tab0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7885
SELECT - col1 - col1 DIV col2 AS col0 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-7885
SELECT - col1 - col1 / col2 AS col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT col1 FROM tab0 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT ALL - col2 + + col1 AS col1 FROM tab0 WHERE NOT col0 + + col1 = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7888
SELECT + col1 * + col2 + 53 DIV + 43 + col0 FROM tab0 AS cor0
----
133
2863
7552

skipif mysql # not compatible
query I rowsort label-7888
SELECT + col1 * + col2 + 53 / + 43 + col0 FROM tab0 AS cor0
----
133
2863
7552

onlyif mysql # use DIV operator for integer division
query I rowsort label-7889
SELECT - col1 + col0 DIV ( - col2 * + col0 ) + + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-63

skipif mysql # not compatible
query I rowsort label-7889
SELECT - col1 + col0 / ( - col2 * + col0 ) + + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-63

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN col1 AND NULL
----

query I rowsort
SELECT col1 + col0 * - col1 AS col0 FROM tab0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-7892
SELECT col0 DIV col0 + col2 * col0 AS col0 FROM tab1
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-7892
SELECT col0 / col0 + col2 * col0 AS col0 FROM tab1
----
163
3649
7681

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN col1 AND - col0
----

query I rowsort
SELECT - + 90 AS col0 FROM tab0 AS cor0
----
-90
-90
-90

query I rowsort
SELECT - ( - col1 ) + - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 33 * col1 AS col0 FROM tab2 AS cor0
----
1023
1947
561

query I rowsort
SELECT ( col0 ) * + col0 AS col1 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT + - 38 + col2 * + col0 AS col1 FROM tab0 cor0
----
-3
7260
754

query I rowsort
SELECT ALL 2 - 86 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4

query I rowsort
SELECT ALL - col0 + - ( col0 ) + col2 FROM tab0 AS cor0
----
-15
-69
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7901
SELECT - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7901
SELECT - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 * - 54 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 88c837392708b2879e949f7034646367

query I rowsort
SELECT 50 + - col1 AS col2 FROM tab1 AS cor0
----
24
37
40

query I rowsort
SELECT - ( 3 ) + col1 AS col2 FROM tab2 AS cor0
----
14
28
56

query I rowsort
SELECT ALL + - ( 90 ) AS col2 FROM tab2 AS cor0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT 99 * 4 FROM tab0, tab0 AS cor0, tab1, tab0 AS cor1
----
396

query I rowsort
SELECT - 18 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 39 col2 FROM tab1 AS cor0
----
117
2496
3120

query I rowsort
SELECT + col1 + + 96 * col2 FROM tab1 AS cor0
----
5210
5482
9229

query I rowsort
SELECT - 52 * - 90 FROM tab2 AS cor0
----
4680
4680
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7911
SELECT ALL - col1 * - col1 DIV + col1 AS col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7911
SELECT ALL - col1 * - col1 / + col1 AS col1 FROM tab0
----
86
91
97

query I rowsort
SELECT - ( col1 ) * col2 + col1 AS col1 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT col0 * + tab0.col1 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL 72 * col0 * col0 AS col0 FROM tab0
----
41472
570312
88200

query I rowsort
SELECT DISTINCT - + col2 + + col0 AS col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT - col1 + col1 * + col0 AS col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT ALL + 22 + col0 - col1 AS col1 FROM tab1 AS cor0
----
-1
76
89

query I rowsort
SELECT ALL + col2 * col0 * col2 + - col2 AS col1 FROM tab2 AS cor0
----
114038
5076
52702

query I rowsort
SELECT ALL col2 + col0 * + cor0.col2 * col1 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT DISTINCT + + cor0.col1 * + col0 + col1 * col1 + - col1 * col2 * cor0.col0 FROM tab1 cor0
----
-3458
-35740
-98631

query I rowsort
SELECT DISTINCT + 9 + col1 * + col0 FROM tab1 AS cor0
----
1049
649
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-7922
SELECT DISTINCT cor0.col1 + + col0 DIV col2 AS col0 FROM tab0 cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT cor0.col1 + + col0 / col2 AS col0 FROM tab0 cor0
----
132
86
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-7923
SELECT ALL + col1 DIV - cor0.col0 + col2 AS col2 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL + col1 / - cor0.col0 + col2 AS col2 FROM tab2 AS cor0
----
23
26
38

query I rowsort
SELECT + - 21 + col1 FROM tab2 AS cor0
----
-4
10
38

query I rowsort
SELECT ALL + 53 * - col1 + col2 FROM tab1 AS cor0
----
-1324
-473
-593

query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab0, tab2 AS cor0
----
23

query I rowsort
SELECT ALL 48 + col1 FROM tab1 cor0
----
58
61
74

query I rowsort
SELECT 5 + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1253
1409
575

query I rowsort
SELECT ALL + col1 * + col1 + col1 * col1 * col1 + col1 AS col1 FROM tab0 AS cor0
----
643538
761943
922179

query I rowsort
SELECT DISTINCT cor0.col1 * - 99 - - col1 AS col2 FROM tab0 AS cor0
----
-8428
-8918
-9506

query I rowsort
SELECT + 24 + col0 FROM tab1 AS cor0
----
104
27
88

query I rowsort
SELECT ALL - col2 * 88 - col2 * + col0 FROM tab0 AS cor0
----
-123
-14514
-3696

query I rowsort
SELECT DISTINCT - 13 * ( col1 ) + col2 * + col1 * + col1 AS col0 FROM tab2 AS cor0
----
10761
25544
89739

query I rowsort
SELECT DISTINCT 41 * - col2 - - col1 AS col1 FROM tab0 AS cor0
----
-1267
-3271
56

query I rowsort
SELECT - 94 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
3554
68
7586

onlyif mysql # use DIV operator for integer division
query I rowsort label-7936
SELECT ALL + 43 - + col1 DIV - col2 AS col1 FROM tab0 AS cor0
----
140
44
45

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL + 43 - + col1 / - col2 AS col1 FROM tab0 AS cor0
----
140
44
45

query I rowsort
SELECT ALL - 41 - col0 FROM tab2 AS cor0
----
-119
-120
-48

query I rowsort
SELECT + col2 - + 67 FROM tab1
----
-10
-13
29

query I rowsort
SELECT DISTINCT col2 + + col2 * - col2 AS col0 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT ALL - col2 * + col2 + col2 AS col2 FROM tab2 cor0
----
-1406
-650
-702

query I rowsort
SELECT + + 30 AS col0 FROM tab1 cor0
----
30
30
30

query I rowsort
SELECT DISTINCT - ( - col1 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + + cor0.col2 * cor0.col0 AS col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT col1 * - col1 * col2 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT col2 + col1 * col1 AS col0 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-7946
SELECT ALL col2 DIV col0 + + cor0.col1 * + col1 FROM tab2 cor0
----
289
3481
964

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL col2 / col0 + + cor0.col1 * + col1 FROM tab2 cor0
----
289
3481
964

query I rowsort
SELECT ALL 42 * - col2 FROM tab2
----
-1092
-1134
-1596

query I rowsort
SELECT DISTINCT - col1 + - col2 + col2 * + col1 AS col0 FROM tab0 AS cor0
----
-1
2719
7289

query I rowsort
SELECT DISTINCT + col0 + col2 * col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT - col2 * + col2 * + tab0.col2 + + col1 FROM tab0
----
-35851
-551277
96

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE ( NULL ) = ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7952
SELECT ALL col2 + + col1 DIV tab2.col1 AS col1 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL col2 + + col1 / tab2.col1 AS col1 FROM tab2
----
27
28
39

query I rowsort
SELECT ALL col0 + col0 + + col0 AS col2 FROM tab0
----
105
267
72

query I rowsort
SELECT + col2 + - col1 * + col0 AS col0 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT DISTINCT - col2 * - col1 + col2 FROM tab2
----
1560
684
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 * tab1.col0 col0 FROM tab1
----
35
4106
6413

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + tab0.col0 * col0 + - col2 * + col0 )
----

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NULL = col0
----

query I rowsort
SELECT - col1 + + col2 * col1 AS col0 FROM tab2 WHERE col1 <= - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 + + col0 col0 FROM tab2
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-7962
SELECT DISTINCT col2 DIV col1 + col1 AS col0 FROM tab2
----
19
31
59

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT col2 / col1 + col1 AS col0 FROM tab2
----
19
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7963
SELECT col0 + - col2 DIV col2 AS col0 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-7963
SELECT col0 + - col2 / col2 AS col0 FROM tab1
----
2
63
79

query I rowsort
SELECT + col0 + - col2 + + col1 * - col2 * - col1 FROM tab2
----
11023
25927
90558

onlyif mysql # use DIV operator for integer division
query I rowsort label-7965
SELECT DISTINCT col2 * col2 DIV - col1 + - col2 FROM tab0
----
-1
-155
-45

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT col2 * col2 / - col1 + - col2 FROM tab0
----
-1
-155
-45

query I rowsort
SELECT - col0 + + col1 - - col2 * tab2.col1 FROM tab2
----
1515
584
861

query I rowsort
SELECT col2 + - col2 + - col2 * col1 AS col0 FROM tab1
----
-1248
-1404
-570

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col1 - col1 * col1 AS col1 FROM tab2
----
-306
-3540
-992

query I rowsort
SELECT - col1 - - tab1.col2 AS col2 FROM tab1
----
28
47
83

query I rowsort
SELECT - col2 * col0 * col2 + col0 AS col0 FROM tab1
----
-207872
-737200
-8745

onlyif mysql # use DIV operator for integer division
query I rowsort label-7972
SELECT DISTINCT col2 - col0 DIV + col2 FROM tab0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-7972
SELECT DISTINCT col2 - col0 / + col2 FROM tab0
----
-34
33
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-7973
SELECT ALL col0 DIV col1 + col2 * col2 + - col0 AS col0 FROM tab0
----
-34
1065
6635

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL col0 / col1 + col2 * col2 + - col0 AS col0 FROM tab0
----
-34
1065
6635

query I rowsort
SELECT ALL col1 + - col0 + - col0 FROM tab1
----
-118
-147
20

query I rowsort
SELECT - col2 * col2 * col0 + - col2 * - col2 + col2 AS col1 FROM tab1
----
-204630
-5778
-727968

query I rowsort
SELECT - col1 * col1 + - col1 FROM tab0
----
-7482
-8372
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 col2 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT tab1.col2 / - col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - - col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-7980
SELECT - + col2 + col0 DIV col0 AS col2 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-7980
SELECT - + col2 + col0 / col0 AS col2 FROM tab2 AS cor0
----
-25
-26
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + col1 * col2 col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT col0 + col1 * - col2 + col2 * col2 AS col0 FROM tab1 AS cor0
----
1515
2743
8048

onlyif mysql # use DIV operator for integer division
query I rowsort label-7983
SELECT ALL - - col1 DIV col1 AS col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7983
SELECT ALL - - col1 / col1 AS col1 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ( 78 ) + - cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f5def429e40d8b7b2fe53850ac2d93e4

query I rowsort
SELECT DISTINCT tab0.col1 * ( + 29 ) FROM tab0
----
2494
2639
2813

query I rowsort
SELECT + - 35 + col1 AS col2 FROM tab2 AS cor0
----
-18
-4
24

query I rowsort
SELECT - col1 - cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT + cor0.col0 * - col2 + + col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL + 13 * + col0 AS col2 FROM tab1 AS cor0
----
1040
39
832

query I rowsort
SELECT col1 - cor0.col2 AS col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + - 78 + col1 FROM tab1 AS cor0
----
-52
-65
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-7992
SELECT + col1 DIV 54 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7992
SELECT + col1 / 54 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 48 + - col0 FROM tab1 AS cor0
----
-16
-32
45

query I rowsort
SELECT - 46 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

onlyif mysql # use DIV operator for integer division
query I rowsort label-7995
SELECT ALL + 53 DIV + col0 AS col1 FROM tab2
----
0
0
7

skipif mysql # not compatible
query I rowsort label-7995
SELECT ALL + 53 / + col0 AS col1 FROM tab2
----
0
0
7

query I rowsort
SELECT ALL + 67 * cor0.col0 - - 99 AS col1 FROM tab2 AS cor0
----
5325
5392
568

query I rowsort
SELECT ALL - + 26 * col2 + ( col1 ) * col0 AS col1 FROM tab0 AS cor0
----
1206
3369
5967

query I rowsort
SELECT DISTINCT + + ( col2 ) - ( col1 ) FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7999
SELECT + + col1 + - col2 DIV 67 AS col1 FROM tab1 AS cor0
----
10
12
26

skipif mysql # not compatible
query I rowsort label-7999
SELECT + + col1 + - col2 / 67 AS col1 FROM tab1 AS cor0
----
10
12
26

query I rowsort
SELECT DISTINCT + - 18 + cor0.col1 AS col2 FROM tab1 cor0
----
-5
-8
8

query I rowsort
SELECT col1 * col2 + + 59 FROM tab0 AS cor0
----
156
2897
7521

query I rowsort
SELECT ALL - - 79 * - col2 AS col2 FROM tab2 AS cor0
----
-2054
-2133
-3002

query I rowsort
SELECT ALL - ( col1 ) * col1 + 66 FROM tab0 AS cor0
----
-7330
-8215
-9343

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * - col2 col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + col0 + - col2 * 50 AS col0 FROM tab1 AS cor0
----
-2697
-2786
-4720

query I rowsort
SELECT DISTINCT + 93 AS col2 FROM tab1, tab0 AS cor0
----
93

query I rowsort
SELECT + col1 * col1 * + tab0.col2 + col1 FROM tab0
----
244154
679133
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * ( - col2 + + col1 ) * col2 col2 FROM tab0 AS cor0
----
3360
41976
65682

query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 + - col0 FROM tab1 AS cor0
----
1168
1401
506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 + + 97 * + col1 col2 FROM tab2 AS cor0
----
10325
2992
3224

query I rowsort
SELECT + 9 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT + 57 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT - 6 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT + + col0 * col1 * + col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT + 69 + - col2 * + 64 AS col2 FROM tab2 AS cor0
----
-1595
-1659
-2363

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8016
SELECT + col1 + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8016
SELECT + col1 + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - col0 ) * + 50 AS col2 FROM tab1
----
150
3200
4000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 + - tab1.col0 col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c195e9bceec48c7a8b3dbd6f3408a3c1

query I rowsort
SELECT + ( + col2 ) - + col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8020
SELECT CAST( ( cor0.col1 ) AS SIGNED ) + - 25 AS col0 FROM tab0 AS cor0
----
61
66
72

skipif mysql # not compatible
query I rowsort label-8020
SELECT CAST ( ( cor0.col1 ) AS INTEGER ) + - 25 AS col0 FROM tab0 AS cor0
----
61
66
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8021
SELECT + - cor0.col1 * col0 * + col1 + CAST( ( + cor0.col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-13424
-1974
-6343

skipif mysql # not compatible
query I rowsort label-8021
SELECT + - cor0.col1 * col0 * + col1 + CAST ( ( + cor0.col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-13424
-1974
-6343

query I rowsort
SELECT + - col2 * - col2 + + col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT + - 73 AS col2 FROM tab0 AS cor0
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 * cor0.col0 col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8025
SELECT DISTINCT ( col0 ) * + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT DISTINCT ( col0 ) * + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT ALL tab1.col1 * 23 FROM tab1, tab0 AS cor0
----
9 values hashing to 8c46ef9a46905a7cf8f63ea206c7693b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 * - col1 col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT - 0 * - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 85 * col0 FROM tab1 AS cor0
----
255
5440
6800

query I rowsort
SELECT DISTINCT 61 * - col0 AS col0 FROM tab1 AS cor0
----
-183
-3904
-4880

query I rowsort
SELECT ALL 15 * cor0.col1 FROM tab1 AS cor0
----
150
195
390

query I rowsort
SELECT ALL - cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab0 cor1, tab1 cor2
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

onlyif mysql # use DIV operator for integer division
query I rowsort label-8033
SELECT + tab2.col0 + col1 DIV + col0 FROM tab2
----
11
78
79

skipif mysql # not compatible
query I rowsort label-8033
SELECT + tab2.col0 + col1 / + col0 FROM tab2
----
11
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + - 32 * col2 col0 FROM tab2 AS cor0
----
-1199
-773
-833

query I rowsort
SELECT ALL - + col0 * + 82 + - col1 FROM tab0 AS cor0
----
-2054
-2967
-7389

query I rowsort
SELECT col0 + ( col1 ) * + col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
177528
329350
737098

query I rowsort
SELECT DISTINCT 20 + col0 FROM tab1 AS cor0
----
100
23
84

query I rowsort
SELECT + + col0 * - col0 + col2 AS col2 FROM tab0 cor0
----
-1224
-543
-7839

query I rowsort
SELECT col1 + - col0 * col1 + - 28 * + col2 AS col0 FROM tab0 AS cor0
----
-10304
-2902
-3326

query I rowsort
SELECT DISTINCT + ( + col2 ) * - col2 AS col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - ( - col2 ) * + col2 + - cor0.col1 FROM tab2 AS cor0
----
1427
617
698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 col1 FROM tab0 AS cor0
----
27

query I rowsort
SELECT ALL cor0.col0 + + col2 * - cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT + cor0.col0 * - 75 FROM tab0 AS cor0
----
-1800
-2625
-6675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 2 col2 FROM tab2
----
28
29
40

query I rowsort
SELECT - 66 * 29 AS col0 FROM tab1 AS cor0
----
-1914
-1914
-1914

onlyif mysql # use DIV operator for integer division
query I rowsort label-8047
SELECT ALL - ( - 77 ) DIV - col0 + col2 FROM tab0 AS cor0
----
-1
30
82

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL - ( - 77 ) / - col0 + col2 FROM tab0 AS cor0
----
-1
30
82

query I rowsort
SELECT ALL cor0.col1 * - col0 * col2 + col1 AS col0 FROM tab1 AS cor0
----
-36470
-4186
-99827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 92 + - 89 * - col1 col2 FROM tab0 AS cor0
----
7562
8007
8541

onlyif mysql # use DIV operator for integer division
query I rowsort label-8050
SELECT DISTINCT - 80 DIV + col2 + + col1 AS col1 FROM tab1 AS cor0
----
13
25
9

skipif mysql # not compatible
query I rowsort label-8050
SELECT DISTINCT - 80 / + col2 + + col1 AS col1 FROM tab1 AS cor0
----
13
25
9

query I rowsort
SELECT DISTINCT + - 54 + col1 FROM tab0 AS cor0
----
32
37
43

query I rowsort
SELECT + col0 * - ( col2 ) - - ( col0 ) * col0 FROM tab2 cor0
----
-140
3239
4056

query I rowsort
SELECT DISTINCT col2 * col1 + col1 - tab1.col2 AS col0 FROM tab1
----
1165
1376
523

query I rowsort
SELECT + ( + col2 ) + col0 AS col2 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8055
SELECT DISTINCT CAST( + col1 AS SIGNED ) + col0 col2 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + col0 col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - 26 * col2 + cor0.col2 * 70 AS col2 FROM tab2 AS cor0
----
1144
1188
1672

onlyif mysql # use DIV operator for integer division
query I rowsort label-8057
SELECT + + cor0.col0 DIV 2 + - col1 col2 FROM tab2 AS cor0
----
-20
-28
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8057
SELECT + + cor0.col0 / 2 + - col1 col2 FROM tab2 AS cor0
----
-20
-28
22

query I rowsort
SELECT ALL col1 + - col0 * + col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT + ( - cor0.col0 ) * + col1 + - cor0.col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-8060
SELECT col2 * col0 DIV - cor0.col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-8060
SELECT col2 * col0 / - cor0.col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + col0 * ( + col2 ) FROM tab2
----
189
2028
3002

query I rowsort
SELECT ALL + cor0.col2 * tab2.col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to c3fd7ac1d848da6e54fad73fc607f7da

query I rowsort
SELECT DISTINCT - col0 + + tab2.col0 AS col0 FROM tab2
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8064
SELECT ALL CAST( NULL AS SIGNED ) + - 46 * + col2 * ( 54 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL CAST ( NULL AS INTEGER ) + - 46 * + col2 * ( 54 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 61 + 51 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 5c4ae8b46ba4e16a3d91639b0f9e6a91

query I rowsort
SELECT ALL col2 + - ( - col1 ) AS col1 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8067
SELECT DISTINCT - - col1 DIV - CAST( 31 AS SIGNED ) - + col0 DIV - 79 FROM tab2 AS cor0
----
-1
1

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT - - col1 / - CAST ( 31 AS INTEGER ) - + col0 / - 79 FROM tab2 AS cor0
----
-1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 - col1 col0 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT + + cor0.col2 * - 51 AS col0 FROM tab0 AS cor0
----
-1683
-4182
-51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8070
SELECT ALL + col0 * CAST( NULL AS SIGNED ) + + cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) + + cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab2.col2 + - col2 * col0 AS col1 FROM tab2
----
-162
-2002
-2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8072
SELECT col0 + - CAST( NULL AS SIGNED ) * + tab1.col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8072
SELECT col0 + - CAST ( NULL AS INTEGER ) * + tab1.col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + + col2 * col0 FROM tab0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-8074
SELECT DISTINCT - col0 DIV 41 AS col0 FROM tab0 cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-8074
SELECT DISTINCT - col0 / 41 AS col0 FROM tab0 cor0
----
-2
0

query I rowsort
SELECT ALL - cor0.col1 + + col0 * - col1 FROM tab2 AS cor0
----
-1360
-248
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-8076
SELECT ALL - - cor0.col2 * col2 DIV + col1 FROM tab2 cor0
----
11
23
84

skipif mysql # not compatible
query I rowsort label-8076
SELECT ALL - - cor0.col2 * col2 / + col1 FROM tab2 cor0
----
11
23
84

query I rowsort
SELECT DISTINCT - - col0 + - ( col0 ) * - col2 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8078
SELECT ALL - + col0 * CAST( + ( + col1 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL - + col0 * CAST ( + ( + col1 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + 65 + - 82 AS col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8080
SELECT ALL + + col2 * + CAST( NULL AS DECIMAL ) - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL + + col2 * + CAST ( NULL AS REAL ) - - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col1 * col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT col0 * + col1 + + col1 AS col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT - ( ( col1 ) ) + + cor0.col2 AS col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + 44 * + 47 AS col1 FROM tab2 cor0
----
2068
2068
2068

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8085
SELECT + CAST( col2 AS SIGNED ) + + cor0.col2 FROM tab2 AS cor0
----
52
54
76

skipif mysql # not compatible
query I rowsort label-8085
SELECT + CAST ( col2 AS INTEGER ) + + cor0.col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT + col0 + cor0.col2 * - cor0.col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - col1 * - 51 + col1 FROM tab0
----
4472
4732
5044

query I rowsort
SELECT ALL + - cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT ALL + ( - col2 + + col1 ) AS col0 FROM tab0
----
53
9
96

query I rowsort
SELECT - ( - 97 ) + col2 FROM tab0 AS cor0
----
130
179
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8091
SELECT + CAST( col2 AS SIGNED ) * col0 + ( col1 ) + col2 AS col2 FROM tab0 AS cor0
----
133
7471
911

skipif mysql # not compatible
query I rowsort label-8091
SELECT + CAST ( col2 AS INTEGER ) * col0 + ( col1 ) + col2 AS col2 FROM tab0 AS cor0
----
133
7471
911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * col0 col1 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - ( cor0.col0 ) * + 13 col2 FROM tab1 AS cor0
----
-1120
-42
-896

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8094
SELECT DISTINCT ( col2 ) + col0 + CAST( + ( tab0.col1 ) AS SIGNED ) FROM tab0
----
133
143
262

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT ( col2 ) + col0 + CAST ( + ( tab0.col1 ) AS INTEGER ) FROM tab0
----
133
143
262

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8095
SELECT CAST( + col2 AS SIGNED ) * - col2 * + 88 AS col2 FROM tab2
----
-127072
-59488
-64152

skipif mysql # not compatible
query I rowsort label-8095
SELECT CAST ( + col2 AS INTEGER ) * - col2 * + 88 AS col2 FROM tab2
----
-127072
-59488
-64152

query I rowsort
SELECT ALL + 20 + 40 FROM tab2
----
60
60
60

query I rowsort
SELECT + 30 * col2 FROM tab0 AS cor0
----
2460
30
990

query I rowsort
SELECT - - col1 + + col1 * col0 * cor0.col1 + + 18 * - col0 FROM tab2 AS cor0
----
21426
270173
6632

query I rowsort
SELECT - col0 * - col1 - + col0 AS col2 FROM tab1
----
576
75
960

query I rowsort
SELECT DISTINCT 70 * - 67 * tab1.col1 + 69 * col0 + col2 FROM tab1
----
-121679
-42427
-55354

query I rowsort
SELECT DISTINCT tab2.col2 * tab2.col2 + col1 AS col0 FROM tab2
----
1461
735
760

onlyif mysql # use DIV operator for integer division
query I rowsort label-8102
SELECT DISTINCT - col0 + tab1.col0 + col1 DIV tab1.col2 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8102
SELECT DISTINCT - col0 + tab1.col0 + col1 / tab1.col2 AS col0 FROM tab1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8103
SELECT DISTINCT + cor0.col2 * + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT + cor0.col2 * + col1 / col1 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - 5 * - col2 AS col2 FROM tab1 AS cor0
----
270
285
480

query I rowsort
SELECT ALL + - col2 * col0 + - 98 * - 92 FROM tab2 AS cor0
----
6014
6988
8827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 10 * col0 col1 FROM tab0 cor0
----
-240
-350
-890

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8107
SELECT + - col1 + - cor0.col0 * - CAST( col1 AS SIGNED ) + col2 FROM tab0 AS cor0
----
2011
3299
8090

skipif mysql # not compatible
query I rowsort label-8107
SELECT + - col1 + - cor0.col0 * - CAST ( col1 AS INTEGER ) + col2 FROM tab0 AS cor0
----
2011
3299
8090

query I rowsort
SELECT DISTINCT - - 96 * + col0 + col2 * - 24 FROM tab2 AS cor0
----
24
6672
6864

query I rowsort
SELECT 24 * cor0.col2 + - 64 + + 37 AS col1 FROM tab0 AS cor0
----
-3
1941
765

query I rowsort
SELECT DISTINCT + col0 - 22 AS col2 FROM tab1
----
-19
42
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-8111
SELECT col2 DIV - 51 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8111
SELECT col2 / - 51 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
-34

query I rowsort
SELECT + - col2 * - col0 * col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT col0 - ( - cor0.col2 + cor0.col2 ) * cor0.col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + col2 + cor0.col0 + - col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL - - ( + col2 ) * - col2 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + cor0.col2 * - 52 + col1 FROM tab1 AS cor0
----
-2782
-2954
-4979

skipif mysql # not compatible
query I rowsort
SELECT + col0 * CAST ( + col2 * col2 AS REAL ) FROM tab2
----
114076
5103
52728

query I rowsort
SELECT + col2 * + col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL + - col0 + ( col1 ) * + col0 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-8122
SELECT DISTINCT + col2 DIV + 65 + 3 * + col1 AS col0 FROM tab1 AS cor0
----
30
40
78

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT + col2 / + 65 + 3 * + col1 AS col0 FROM tab1 AS cor0
----
30
40
78

query I rowsort
SELECT DISTINCT col2 * col1 * - col2 + col0 FROM tab0 cor0
----
-611795
-62
-93630

query I rowsort
SELECT ALL + col0 * 66 FROM tab0 AS cor0
----
1584
2310
5874

query I rowsort
SELECT col2 + - 76 FROM tab1 cor0
----
-19
-22
20

query I rowsort
SELECT DISTINCT - col1 * - 33 AS col1 FROM tab0 AS cor0
----
2838
3003
3201

query I rowsort
SELECT ALL col1 * - cor0.col0 + + 19 AS col2 FROM tab0 AS cor0
----
-2045
-3376
-8080

onlyif mysql # use DIV operator for integer division
query I rowsort label-8128
SELECT ALL - + col0 * + col1 + 40 DIV - col2 FROM tab1 cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL - + col0 * + col1 + 40 / - col2 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT - 80 AS col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd

query I rowsort
SELECT DISTINCT col2 + + col0 * - ( + 62 ) AS col0 FROM tab1
----
-132
-3911
-4864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8131
SELECT ALL col2 * CAST( + col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL col2 * CAST ( + col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8132
SELECT col1 * + CAST( col1 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
3559
368
968

skipif mysql # not compatible
query I rowsort label-8132
SELECT col1 * + CAST ( col1 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
3559
368
968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8133
SELECT - + cor0.col1 + CAST( + cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-8133
SELECT - + cor0.col1 + CAST ( + cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL col0 * col2 - + col1 AS col2 FROM tab1
----
136
3638
7667

query I rowsort
SELECT DISTINCT + 84 AS col2 FROM tab2, tab1 AS cor0
----
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-8136
SELECT col0 - col1 * col2 DIV col0 AS col2 FROM tab1
----
-465
56
65

skipif mysql # not compatible
query I rowsort label-8136
SELECT col0 - col1 * col2 / col0 AS col2 FROM tab1
----
-465
56
65

query I rowsort
SELECT ALL col2 * cor0.col1 - col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT + col1 * col0 + col1 + - cor0.col2 FROM tab0 cor0
----
2117
3491
8108

onlyif mysql # use DIV operator for integer division
query I rowsort label-8139
SELECT ALL - + cor0.col2 - + ( col2 ) DIV col2 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL - + cor0.col2 - + ( col2 ) / col2 FROM tab0 AS cor0
----
-2
-34
-83

query I rowsort
SELECT + + col1 * + 94 FROM tab2 AS cor0
----
1598
2914
5546

query I rowsort
SELECT - cor0.col1 + col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8142
SELECT + 41 * - col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8142
SELECT + 41 * - col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 36 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT DISTINCT + 45 + - col1 * - col1 AS col1 FROM tab2
----
1006
334
3526

query I rowsort
SELECT - col2 + + col1 * - col2 + + col1 AS col2 FROM tab2
----
-1501
-667
-833

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 90 col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c0d96679aba507520916e8654e5a6618

query I rowsort
SELECT - ( + col2 ) + ( col1 * col1 + + col0 ) AS col1 FROM tab2 AS cor0
----
330
3533
941

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8148
SELECT ALL - 96 + col1 * + CAST( tab1.col0 AS SIGNED ) + tab1.col0 * + col0 FROM tab1
----
-9
4640
7344

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL - 96 + col1 * + CAST ( tab1.col0 AS INTEGER ) + tab1.col0 * + col0 FROM tab1
----
-9
4640
7344

query I rowsort
SELECT ( cor0.col1 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL + col2 * - col0 + col1 + 14 FROM tab2 AS cor0
----
-144
-1955
-2971

query I rowsort
SELECT + ( - col0 ) * - col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-8152
SELECT ALL 75 + - col2 DIV 64 FROM tab0 AS cor0
----
74
75
75

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL 75 + - col2 / 64 FROM tab0 AS cor0
----
74
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col0 col1 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT - 79 * col0 FROM tab2 AS cor0
----
-553
-6162
-6241

query I rowsort
SELECT DISTINCT - - col2 * 70 + - cor0.col0 + + col1 FROM tab0 AS cor0
----
132
2372
5742

query I rowsort
SELECT col0 * + ( - cor0.col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + 40 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT + col0 * col0 + 33 * col0 AS col1 FROM tab0 AS cor0
----
10858
1368
2380

query I rowsort
SELECT 87 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT col1 * cor0.col2 + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL - col1 * 63 AS col2 FROM tab1 AS cor0
----
-1638
-630
-819

query I rowsort
SELECT ALL 46 + + cor0.col0 + + col1 FROM tab0 AS cor0
----
156
178
226

query I rowsort
SELECT DISTINCT + - col0 + col1 * col0 AS col2 FROM tab1 cor0
----
576
75
960

query I rowsort
SELECT + 71 * + 51 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 8066b271e62bc89cb065e4807187cabd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8165
SELECT CAST( - col0 AS SIGNED ) AS col1 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-8165
SELECT CAST ( - col0 AS INTEGER ) AS col1 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT ( col0 ) * - col2 AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - - 72 FROM tab1 AS cor0
----
72

query I rowsort
SELECT DISTINCT - col2 + + col1 AS col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + - col1 * + col1 + col0 + + col0 * col2 FROM tab1 AS cor0
----
-511
3612
7591

query I rowsort
SELECT ALL + ( - col2 ) * + col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 + cor0.col0 + 4 col0 FROM tab0 AS cor0
----
0
11
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ALL - col1 + + 5 FROM tab0 AS cor0
----
-81
-86
-92

query I rowsort
SELECT DISTINCT + 49 FROM tab2, tab1 AS cor0
----
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8175
SELECT ALL + CAST( 75 AS SIGNED ) FROM tab2, tab2 cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL + CAST ( 75 AS INTEGER ) FROM tab2, tab2 cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

skipif mysql # not compatible
query I rowsort
SELECT + + col2 + CAST ( col2 AS REAL ) AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT col0 + col1 * 66 AS col0 FROM tab1 AS cor0
----
1719
724
938

query I rowsort
SELECT + - col1 + + col2 * col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ( + 29 ) * + cor0.col0 AS col0 FROM tab0 AS cor0
----
1015
2581
696

query I rowsort
SELECT - col0 * col1 + + col1 AS col0 FROM tab0
----
-1978
-3298
-8008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8181
SELECT + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 * col2 + - col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT - - col1 * col0 + + col1 FROM tab0 cor0
----
2150
3492
8190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8184
SELECT + cor0.col2 * col2 - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-34
1065
6635

skipif mysql # not compatible
query I rowsort label-8184
SELECT + cor0.col2 * col2 - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-34
1065
6635

onlyif mysql # use DIV operator for integer division
query I rowsort label-8185
SELECT DISTINCT - ( + col2 ) DIV cor0.col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8185
SELECT DISTINCT - ( + col2 ) / cor0.col0 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT + - ( + col0 ) + + cor0.col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT tab1.col2 * - ( + col2 ) * - col2 + col1 * + col0 AS col0 FROM tab1
----
157542
185833
885776

query I rowsort
SELECT - col2 * - 99 FROM tab2
----
2574
2673
3762

onlyif mysql # use DIV operator for integer division
query I rowsort label-8189
SELECT 12 + col1 * col2 + col2 DIV col2 FROM tab0
----
110
2851
7475

skipif mysql # not compatible
query I rowsort label-8189
SELECT 12 + col1 * col2 + col2 / col2 FROM tab0
----
110
2851
7475

query I rowsort
SELECT col0 + col2 * col1 + col1 * ( col1 * - ( 40 ) ) FROM tab1
----
-25633
-3366
-5432

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
24
35
89

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab0, tab1 cor0, tab2 cor1
----
3
64
80

query I rowsort
SELECT 47 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT - cor0.col0 * + 32 AS col1 FROM tab1, tab1 AS cor0
----
-2048
-2560
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 * - ( 47 * col0 ) col2 FROM tab0 AS cor0
----
-159564
-380571
-96975

query I rowsort
SELECT ALL col1 * - col0 + + 96 * + col0 FROM tab2 AS cor0
----
2886
455
6241

query I rowsort
SELECT DISTINCT + + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + col1 * + 58 col0 FROM tab2 cor0
----
12586
266916
77894

query I rowsort
SELECT DISTINCT - - col1 - - col0 * - cor0.col0 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT col1 * col0 * ( - ( col2 ) ) AS col0 FROM tab1
----
-36480
-4212
-99840

skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 - CAST ( + 49 AS REAL ) * cor0.col1 FROM tab0 AS cor0
----
-4190
-4370
-4718

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8202
SELECT ALL - + col0 * - CAST( NULL AS SIGNED ) + - 42 * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8202
SELECT ALL - + col0 * - CAST ( NULL AS INTEGER ) + - 42 * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 + - 49 AS col1 FROM tab0 AS cor0
----
37
42
48

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c

query I rowsort
SELECT + 76 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT ALL tab2.col2 * tab2.col1 + col2 AS col2 FROM tab2
----
1560
684
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - col2 * + col2 col0 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT + cor0.col2 - - ( 23 + + col1 ) * - cor0.col0 FROM tab2 AS cor0
----
-3122
-351
-6370

query I rowsort
SELECT col2 * - 75 FROM tab0 AS cor0
----
-2475
-6150
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * col0 + 47 col0 FROM tab2 AS cor0
----
2075
236
3049

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 + - col2 col0 FROM tab1 AS cor0
----
-25
-28
-67

query I rowsort
SELECT ALL col0 * col2 - col2 AS col1 FROM tab2
----
162
2002
2964

query I rowsort
SELECT DISTINCT - col1 - col2 * - tab1.col0 * + col0 AS col0 FROM tab1
----
233462
460
614387

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8214
SELECT ( col1 ) * - CAST( col1 + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1417
-2080
-670

skipif mysql # not compatible
query I rowsort label-8214
SELECT ( col1 ) * - CAST ( col1 + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1417
-2080
-670

query I rowsort
SELECT ALL 49 + + col2 FROM tab1 AS cor0
----
103
106
145

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8216
SELECT - - ( 11 ) / col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8216
SELECT - - ( 11 ) / col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col0 + - cor0.col0 * + col2 + 59 * - 92 AS col0 FROM tab2 AS cor0
----
-5610
-7378
-8351

query I rowsort
SELECT + cor0.col1 * - 89 FROM tab1 AS cor0
----
-1157
-2314
-890

onlyif mysql # use DIV operator for integer division
query I rowsort label-8219
SELECT ALL + - col0 + col0 DIV + cor0.col2 AS col2 FROM tab0 AS cor0
----
-24
-88
0

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL + - col0 + col0 / + cor0.col2 AS col2 FROM tab0 AS cor0
----
-24
-88
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8220
SELECT ALL + col0 * 99 + - col2 DIV col0 col2 FROM tab1 AS cor0
----
279
6336
7919

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL + col0 * 99 + - col2 / col0 col2 FROM tab1 AS cor0
----
279
6336
7919

onlyif mysql # use DIV operator for integer division
query I rowsort label-8221
SELECT + 33 * col1 + + col1 DIV - col2 FROM tab0 AS cor0
----
2836
3002
3104

skipif mysql # not compatible
query I rowsort label-8221
SELECT + 33 * col1 + + col1 / - col2 FROM tab0 AS cor0
----
2836
3002
3104

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8222
SELECT + CAST( NULL AS SIGNED ) * + cor0.col0 + + col1 / col0 + 6 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8222
SELECT + CAST ( NULL AS INTEGER ) * + cor0.col0 + + col1 / col0 + 6 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + col2 * cor0.col2 FROM tab1 AS cor0
----
2913
3185
9136

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8224
SELECT + ( cor0.col2 ) * - col2 - CAST( 34 + col0 AS SIGNED ) FROM tab1 AS cor0
----
-2953
-3347
-9330

skipif mysql # not compatible
query I rowsort label-8224
SELECT + ( cor0.col2 ) * - col2 - CAST ( 34 + col0 AS INTEGER ) FROM tab1 AS cor0
----
-2953
-3347
-9330

query I rowsort
SELECT DISTINCT + ( 84 ) AS col1 FROM tab0 AS cor0
----
84

query I rowsort
SELECT + + 95 - col1 FROM tab2 cor0
----
36
64
78

query I rowsort
SELECT ALL - 45 + col1 FROM tab0 AS cor0
----
41
46
52

query I rowsort
SELECT ALL - + col2 + cor0.col1 * cor0.col2 * - ( + col0 ) AS col2 FROM tab1 AS cor0
----
-36537
-4266
-99936

onlyif mysql # use DIV operator for integer division
query I rowsort label-8229
SELECT DISTINCT + - col2 * col1 - col0 DIV col1 AS col2 FROM tab1 AS cor0
----
-1254
-1404
-576

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT + - col2 * col1 - col0 / col1 AS col2 FROM tab1 AS cor0
----
-1254
-1404
-576

query I rowsort
SELECT DISTINCT - col2 * ( - col0 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col1 FROM tab1 AS cor0
----
-18
-18
-18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8232
SELECT ALL + - CAST( NULL AS SIGNED ) * - cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL + - CAST ( NULL AS INTEGER ) * - cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 - col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-8234
SELECT ALL + - ( col0 ) * + col1 + + 50 DIV 93 + - col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-4736
-7440
-87

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL + - ( col0 ) * + col1 + + 50 / 93 + - col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-4736
-7440
-87

query I rowsort
SELECT 92 * col1 - + col1 * - col1 AS col2 FROM tab0 AS cor0
----
15308
16653
18333

query I rowsort
SELECT DISTINCT - - cor0.col0 + - cor0.col2 * - col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT + cor0.col1 * - col2 + 91 + col0 FROM tab1 AS cor0
----
-1077
-1310
-415

query I rowsort
SELECT 4 + + 44 + + col2 FROM tab1
----
102
105
144

query I rowsort
SELECT ALL col2 * 57 + - col2 - + col2 FROM tab1
----
2970
3135
5280

query I rowsort
SELECT DISTINCT + - 69 + - col1 * + col2 FROM tab0 AS cor0
----
-166
-2907
-7531

query I rowsort
SELECT + ( + col2 ) + 67 * + col2 AS col1 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT - col2 + col1 + 79 FROM tab1 AS cor0
----
-4
32
51

query I rowsort
SELECT DISTINCT 20 * col0 FROM tab1 cor0
----
1280
1600
60

query I rowsort
SELECT col1 + col0 * col1 - - col1 AS col1 FROM tab0 AS cor0
----
2236
3589
8281

query I rowsort
SELECT - - cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

onlyif mysql # use DIV operator for integer division
query I rowsort label-8246
SELECT ALL - col0 DIV - 54 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8246
SELECT ALL - col0 / - 54 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + col1 - - col2 * col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT + col1 + - 22 * ( + col2 ) FROM tab1 cor0
----
-1162
-1244
-2099

query I rowsort
SELECT DISTINCT cor0.col1 - - col1 * + cor0.col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT ALL + col2 * 20 FROM tab1 AS cor0
----
1080
1140
1920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8251
SELECT col2 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8251
SELECT col2 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + ( - col1 + col1 ) FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT + 72 FROM tab1, tab0, tab0 AS cor0, tab2 AS cor1
----
72

query I rowsort
SELECT + col1 * - tab1.col0 + col2 * - col2 AS col1 FROM tab1
----
-10256
-2994
-3889

query I rowsort
SELECT - - 69 + 34 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 931550b92da9295c340a42d3441fe745

query I rowsort
SELECT tab0.col0 + 91 FROM tab0
----
115
126
180

query I rowsort
SELECT cor0.col1 AS col1 FROM tab0, tab2 cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT ALL - col0 * ( ( + col0 ) ) FROM tab1
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - + 64 * 47 AS col2 FROM tab2 AS cor0
----
-3008
-3008
-3008

query I rowsort
SELECT ALL 63 * col1 FROM tab0
----
5418
5733
6111

onlyif mysql # use DIV operator for integer division
query I rowsort label-8262
SELECT ALL ( - col1 ) * - col0 + - ( col1 ) DIV - tab1.col1 FROM tab1
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-8262
SELECT ALL ( - col1 ) * - col0 + - ( col1 ) / - tab1.col1 FROM tab1
----
1041
641
79

query I rowsort
SELECT - 56 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80

query I rowsort
SELECT ALL + + col0 + - col1 * - col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - col1 * col2 + + 7 FROM tab1 AS cor0
----
-1241
-1397
-563

query I rowsort
SELECT ALL - - 24 AS col1 FROM tab2 AS cor0
----
24
24
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + + cor0.col0 col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL cor0.col0 * 60 * col1 FROM tab1 cor0
----
38400
4680
62400

query I rowsort
SELECT DISTINCT - col1 + - 96 * - ( col0 ) AS col0 FROM tab2 AS cor0
----
641
7429
7567

onlyif mysql # use DIV operator for integer division
query I rowsort label-8270
SELECT ALL - col0 DIV ( col0 ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL - col0 / ( col0 ) AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8271
SELECT - - col2 * CAST( - col0 AS SIGNED ) + col2 * col1 AS col1 FROM tab2 AS cor0
----
-2356
-494
648

skipif mysql # not compatible
query I rowsort label-8271
SELECT - - col2 * CAST ( - col0 AS INTEGER ) + col2 * col1 AS col1 FROM tab2 AS cor0
----
-2356
-494
648

onlyif mysql # use DIV operator for integer division
query I rowsort label-8272
SELECT DISTINCT col2 DIV 4 AS col1 FROM tab1 cor0
----
13
14
24

skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT col2 / 4 AS col1 FROM tab1 cor0
----
13
14
24

query I rowsort
SELECT ALL col2 + 38 * ( col2 ) AS col2 FROM tab0 AS cor0
----
1287
3198
39

query I rowsort
SELECT - - col2 + + 7 * col0 AS col2 FROM tab2 AS cor0
----
572
591
76

query I rowsort
SELECT ALL + col1 + ( + col0 ) * + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT col0 * - col0 * tab2.col0 FROM tab2
----
-343
-474552
-493039

query I rowsort
SELECT ALL col0 + - col2 * - 27 AS col1 FROM tab1
----
1461
1603
2672

skipif mysql # not compatible
query I rowsort
SELECT col1 + + CAST ( col2 AS REAL ) * + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL + col2 * ( + col1 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + + 12 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT DISTINCT - col0 + ( + 84 ) FROM tab2
----
5
6
77

query I rowsort
SELECT col2 * - 72 - col1 AS col1 FROM tab0
----
-169
-2462
-5995

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8283
SELECT + tab0.col0 * CAST( col2 AS SIGNED ) + col1 AS col0 FROM tab0
----
132
7389
878

skipif mysql # not compatible
query I rowsort label-8283
SELECT + tab0.col0 * CAST ( col2 AS INTEGER ) + col1 AS col0 FROM tab0
----
132
7389
878

query I rowsort
SELECT 68 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT + 97 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT - + col0 * + 73 + - col1 FROM tab1 AS cor0
----
-245
-4682
-5853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 * + tab1.col0 * tab1.col1 col0 FROM tab1
----
29440
3588
47840

query I rowsort
SELECT DISTINCT 49 * - ( col2 ) * + 93 FROM tab1 AS cor0
----
-246078
-259749
-437472

query I rowsort
SELECT DISTINCT - 72 FROM tab1, tab2, tab2 cor0
----
-72

query I rowsort
SELECT + + 4 + col1 AS col1 FROM tab0 cor0
----
101
90
95

query I rowsort
SELECT ( col0 ) * + col2 AS col1 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-8292
SELECT + + col2 DIV cor0.col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-8292
SELECT + + col2 / cor0.col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT + col1 - + col1 * + 55 AS col1 FROM tab1 cor0
----
-1404
-540
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-8294
SELECT - 82 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8294
SELECT - 82 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8295
SELECT - 13 DIV col2 AS col1 FROM tab0 cor0
----
-13
0
0

skipif mysql # not compatible
query I rowsort label-8295
SELECT - 13 / col2 AS col1 FROM tab0 cor0
----
-13
0
0

query I rowsort
SELECT + ( - col2 ) + + ( + col0 ) * col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT 36 * col2 + + tab0.col0 FROM tab0
----
1212
3041
71

query I rowsort
SELECT 72 + - col1 AS col0 FROM tab2
----
13
41
55

query I rowsort
SELECT + 85 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

query I rowsort
SELECT ALL ( + 81 ) FROM tab1
----
81
81
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8301
SELECT + col2 * col0 DIV 97 FROM tab0 AS cor0
----
0
75
8

skipif mysql # not compatible
query I rowsort label-8301
SELECT + col2 * col0 / 97 FROM tab0 AS cor0
----
0
75
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-8302
SELECT 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-8302
SELECT cor0.col1 / col2 col0 FROM tab0 AS cor0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8303
SELECT 73 + + col2 DIV + 63 AS col1 FROM tab0 AS cor0
----
73
73
74

skipif mysql # not compatible
query I rowsort label-8303
SELECT 73 + + col2 / + 63 AS col1 FROM tab0 AS cor0
----
73
73
74

query I rowsort
SELECT DISTINCT - 90 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-90

query I rowsort
SELECT ALL 72 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT DISTINCT - - 52 + col2 + - col1 FROM tab2 cor0
----
19
48
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8307
SELECT + - col1 * + CAST( NULL AS SIGNED ) * - col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8307
SELECT + - col1 * + CAST ( NULL AS INTEGER ) * - col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8308
SELECT - - col0 + col0 + col2 DIV col2 FROM tab0 AS cor0
----
179
49
71

skipif mysql # not compatible
query I rowsort label-8308
SELECT - - col0 + col0 + col2 / col2 FROM tab0 AS cor0
----
179
49
71

query I rowsort
SELECT ALL - ( + tab2.col0 ) AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL - cor0.col1 * 21 * - col1 + col2 FROM tab1 AS cor0
----
14250
2157
3645

query I rowsort
SELECT ALL - col2 * 20 AS col2 FROM tab2 AS cor0
----
-520
-540
-760

query I rowsort
SELECT + + cor0.col0 + - 16 FROM tab1 AS cor0
----
-13
48
64

query I rowsort
SELECT col0 * col1 - - tab1.col1 * col1 FROM tab1
----
1209
740
754

query I rowsort
SELECT 89 * 56 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to bb53d0d6bab713b2a95f625e33dd2220

query I rowsort
SELECT DISTINCT - + col2 + col1 * col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT + + 86 * - col0 + col2 * col2 AS col0 FROM tab2 AS cor0
----
-5350
-6032
127

query I rowsort
SELECT DISTINCT + col2 + 55 AS col0 FROM tab0 AS cor0
----
137
56
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 + 71 * col1 col0 FROM tab1 AS cor0
----
1885
749
962

query I rowsort
SELECT ALL - 95 + col1 AS col1 FROM tab0 cor0
----
-4
-9
2

query I rowsort
SELECT cor0.col0 + 77 FROM tab0 cor0
----
101
112
166

query I rowsort
SELECT + 27 + 76 AS col2 FROM tab2 AS cor0
----
103
103
103

query I rowsort
SELECT + - 48 + + col2 * cor0.col0 FROM tab0 AS cor0
----
-13
7250
744

query I rowsort
SELECT + + 70 * col2 AS col0 FROM tab0 AS cor0
----
2310
5740
70

query I rowsort
SELECT + 46 + ( col0 ) FROM tab1 AS cor0
----
110
126
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8325
SELECT CAST( col2 AS SIGNED ) * + col2 - col1 col1 FROM tab1
----
2890
3239
9203

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8325
SELECT CAST ( col2 AS INTEGER ) * + col2 - col1 col1 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT + ( col1 ) * + col1 + col0 FROM tab1
----
164
249
679

query I rowsort
SELECT tab2.col2 - 40 FROM tab2
----
-13
-14
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-8328
SELECT DISTINCT - col2 + - 67 DIV - 44 AS col0 FROM tab1 cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT - col2 + - 67 / - 44 AS col0 FROM tab1 cor0
----
-53
-56
-95

query I rowsort
SELECT DISTINCT ( 77 ) + col1 + col0 AS col1 FROM tab2 AS cor0
----
115
173
214

query I rowsort
SELECT + - 14 * cor0.col1 FROM tab1 AS cor0
----
-140
-182
-364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - cor0.col0 ) * + col1 + - 52 col0 FROM tab0 cor0
----
-2116
-3447
-8151

query I rowsort
SELECT DISTINCT - 39 * - col0 + col0 FROM tab2 AS cor0
----
280
3120
3160

query I rowsort
SELECT DISTINCT + + col1 + 98 - col0 AS col2 FROM tab1 AS cor0
----
121
31
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 + + col1 * + 71 col1 FROM tab0 cor0
----
6040
6297
6885

onlyif mysql # use DIV operator for integer division
query I rowsort label-8335
SELECT - col2 * + col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-8335
SELECT - col2 * + col0 / col0 AS col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL tab0.col1 * + ( - col1 ) FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL 46 + 77 * + col1 AS col1 FROM tab0 AS cor0
----
6668
7053
7515

onlyif mysql # use DIV operator for integer division
query I rowsort label-8338
SELECT DISTINCT - + 73 DIV + col1 + col1 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT - + 73 / + col1 + col1 FROM tab0 cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - 43 ) + cor0.col1 col0 FROM tab2 AS cor0
----
102
60
74

query I rowsort
SELECT DISTINCT + + col0 + col2 * - col1 * - cor0.col1 AS col1 FROM tab2 cor0
----
11061
25954
90584

query I rowsort
SELECT + cor0.col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-8342
SELECT DISTINCT + + col1 DIV col0 FROM tab2 cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT + + col1 / col0 FROM tab2 cor0
----
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-8343
SELECT DISTINCT col0 DIV col1 + col2 * 55 + col2 AS col1 FROM tab2 AS cor0
----
1457
1512
2132

skipif mysql # not compatible
query I rowsort label-8343
SELECT DISTINCT col0 / col1 + col2 * 55 + col2 AS col1 FROM tab2 AS cor0
----
1457
1512
2132

query I rowsort
SELECT - col1 * + col1 + cor0.col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT + 57 + col1 * cor0.col2 FROM tab0 AS cor0
----
154
2895
7519

onlyif mysql # use DIV operator for integer division
query I rowsort label-8346
SELECT DISTINCT + + col1 DIV + col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-8346
SELECT DISTINCT + + col1 / + col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT + col1 + col1 * col0 FROM tab1 cor0
----
104
1053
650

query I rowsort
SELECT ALL - - col0 * + cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - col2 * 42 + + cor0.col2 FROM tab1 AS cor0
----
-2214
-2337
-3936

query I rowsort
SELECT DISTINCT tab1.col0 * col0 + + col2 * col1 FROM tab1
----
1413
4666
7648

query I rowsort
SELECT 77 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT - + cor0.col2 * + ( ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8353
SELECT + cor0.col0 * + CAST( - cor0.col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-8353
SELECT + cor0.col0 * + CAST ( - cor0.col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + col2 + 38 * 91 AS col0 FROM tab2 AS cor0
----
3484
3485
3496

query I rowsort
SELECT - + col2 * col0 * + col0 + - col0 FROM tab2 AS cor0
----
-1330
-158262
-237237

query I rowsort
SELECT ALL + - col1 * + col1 + col0 FROM tab1 AS cor0
----
-36
-673
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-8357
SELECT col0 DIV col0 + col1 * - col0 FROM tab1
----
-1039
-639
-77

skipif mysql # not compatible
query I rowsort label-8357
SELECT col0 / col0 + col1 * - col0 FROM tab1
----
-1039
-639
-77

query I rowsort
SELECT + col0 * col0 + - ( col0 ) FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT col2 * + 55 AS col0 FROM tab2 AS cor0
----
1430
1485
2090

query I rowsort
SELECT DISTINCT + cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
24
35
89

query I rowsort
SELECT + col1 * 84 + + col1 AS col1 FROM tab2 AS cor0
----
1445
2635
5015

query I rowsort
SELECT ALL - col1 * + 76 FROM tab1
----
-1976
-760
-988

query I rowsort
SELECT DISTINCT cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8364
SELECT 14 DIV 11 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8364
SELECT 14 / 11 AS col1 FROM tab0
----
1
1
1

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643

query I rowsort
SELECT ALL - 15 * col1 AS col2 FROM tab0 AS cor0
----
-1290
-1365
-1455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col1 col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL col0 + col1 * 61 AS col1 FROM tab0 AS cor0
----
5270
5640
5952

query I rowsort
SELECT DISTINCT - ( col0 ) + - 2 FROM tab1 AS cor0
----
-5
-66
-82

skipif mysql # not compatible
query I rowsort
SELECT + col2 * + col0 * CAST ( col2 AS REAL ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
26160
598525
70

query I rowsort
SELECT cor0.col1 * 90 FROM tab0 AS cor0
----
7740
8190
8730

query I rowsort
SELECT ALL col0 * 36 AS col0 FROM tab1
----
108
2304
2880

query I rowsort
SELECT ALL + ( + tab0.col1 * col0 + + col1 ) FROM tab0
----
2150
3492
8190

query I rowsort
SELECT + - 69 + - col2 FROM tab0 AS cor0
----
-102
-151
-70

query I rowsort
SELECT col0 + 84 * col2 + 70 FROM tab0
----
189
2866
7047

query I rowsort
SELECT 71 + col1 AS col2 FROM tab0
----
157
162
168

query I rowsort
SELECT + col2 + 85 AS col0 FROM tab1 AS cor0
----
139
142
181

query I rowsort
SELECT DISTINCT - 53 * col1 FROM tab0
----
-4558
-4823
-5141

query I rowsort
SELECT + 89 AS col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

query I rowsort
SELECT ALL cor0.col0 * - col2 + ( + col0 ) FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - col2 * + cor0.col0 + - 49 + 92 FROM tab0 AS cor0
----
-7255
-749
8

query I rowsort
SELECT + 73 AS col0 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col1 FROM tab2
----
71
71
71

query I rowsort
SELECT DISTINCT - tab2.col1 * 64 AS col0 FROM tab2
----
-1088
-1984
-3776

query I rowsort
SELECT - - col1 * ( cor0.col2 * col0 ) AS col2 FROM tab2 cor0
----
119652
51034
5859

query I rowsort
SELECT - col1 * 24 AS col0 FROM tab2 AS cor0
----
-1416
-408
-744

query I rowsort
SELECT + col2 * + 68 AS col2 FROM tab2 AS cor0
----
1768
1836
2584

query I rowsort
SELECT - - col2 * 16 FROM tab0 AS cor0
----
1312
16
528

query I rowsort
SELECT col1 * 40 AS col0 FROM tab2 cor0
----
1240
2360
680

query I rowsort
SELECT ALL 78 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT col0 * col0 * + col1 + + col2 FROM tab1 cor0
----
288
41017
83296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + - col0 col2 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - - col1 + - 85 FROM tab2 AS cor0
----
-26
-54
-68

query I rowsort
SELECT ( + 72 ) AS col2 FROM tab1 AS cor0
----
72
72
72

query I rowsort
SELECT + ( ( + cor0.col0 ) ) * + col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + 56 + 13 * + col2 FROM tab1 AS cor0
----
1304
758
797

query I rowsort
SELECT DISTINCT ( 50 ) FROM tab2 AS cor0
----
50

query I rowsort
SELECT - 68 + 36 AS col1 FROM tab1 AS cor0
----
-32
-32
-32

query I rowsort
SELECT - + ( col2 ) * col0 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8400
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col0 * - 70 FROM tab1 AS cor0
----
-210
-4480
-5600

onlyif mysql # use DIV operator for integer division
query I rowsort label-8402
SELECT DISTINCT - ( 89 ) + + col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT - ( 89 ) + + col0 / + col0 AS col2 FROM tab2 AS cor0
----
-88

query I rowsort
SELECT - - col2 * + 57 AS col1 FROM tab0 AS cor0
----
1881
4674
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8404
SELECT CAST( NULL AS SIGNED ) * cor0.col0 * - col2 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-8404
SELECT CAST ( NULL AS INTEGER ) * cor0.col0 * - col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + col1 + - col1 * + 91 FROM tab1 AS cor0
----
-1010
-1352
-3042

query I rowsort
SELECT - col0 * col0 + cor0.col2 * col2 FROM tab1 cor0
----
-847
2816
2907

query I rowsort
SELECT DISTINCT 33 * col2 * ( ( col0 ) ) - 43 * col0 FROM tab1 AS cor0
----
117632
250000
5217

query I rowsort
SELECT - col1 * ( + col1 ) AS col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT col1 * col2 + + col2 * + col0 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT ALL + col2 + col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL - - col2 + + col1 * - col0 - + col0 FROM tab0 cor0
----
-2055
-3429
-8106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - - 61 col0 FROM tab1 AS cor0
----
115
118
157

onlyif mysql # use DIV operator for integer division
query I rowsort label-8413
SELECT DISTINCT - col2 * ( col0 ) + col2 DIV + col2 FROM tab0 AS cor0
----
-34
-7297
-791

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT - col2 * ( col0 ) + col2 / + col2 FROM tab0 AS cor0
----
-34
-7297
-791

query I rowsort
SELECT DISTINCT + cor0.col2 + cor0.col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT - col0 * - 12 * + col0 AS col0 FROM tab2 AS cor0
----
588
73008
74892

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8416
SELECT - col0 + CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8416
SELECT - col0 + CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * + 49 * col0 AS col0 FROM tab0 AS cor0
----
28224
388129
60025

query I rowsort
SELECT DISTINCT + - col2 * - 76 FROM tab2 AS cor0
----
1976
2052
2888

query I rowsort
SELECT - cor0.col1 + ( - ( col0 ) ) AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL tab1.col1 * cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 9337cab14248fdf0584f0cfce23b6e23

query I rowsort
SELECT - 98 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT + + col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT 37 * + col0 * col0 + - ( + col1 ) * + col2 FROM tab1
----
-1071
150982
235552

onlyif mysql # use DIV operator for integer division
query I rowsort label-8424
SELECT DISTINCT + tab1.col0 + 94 DIV - tab1.col0 AS col1 FROM tab1
----
-28
63
79

skipif mysql # not compatible
query I rowsort label-8424
SELECT DISTINCT + tab1.col0 + 94 / - tab1.col0 AS col1 FROM tab1
----
-28
63
79

query I rowsort
SELECT 67 - 21 * col2 AS col0 FROM tab1
----
-1067
-1130
-1949

query I rowsort
SELECT ALL - - cor0.col1 * - col0 AS col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT - 36 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT - 6 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 8be8910507908e6353d02a545b748252

query I rowsort
SELECT 37 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT ( - 34 ) * col1 FROM tab1
----
-340
-442
-884

query I rowsort
SELECT DISTINCT ( tab0.col1 ) * col0 AS col1 FROM tab0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8432
SELECT DISTINCT col2 * + col2 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT col2 * + col2 - + 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 DISTINCT - col2 + cor0.col0 * 72 AS col0 FROM tab0 cor0
----
1695
2519
6326

onlyif mysql # use DIV operator for integer division
query I rowsort label-8435
SELECT DISTINCT col0 DIV col0 - col0 AS col2 FROM tab0 cor0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT col0 / col0 - col0 AS col2 FROM tab0 cor0
----
-23
-34
-88

query I rowsort
SELECT ALL col0 * col2 * + col2 + 25 AS col1 FROM tab1 AS cor0
----
207961
737305
8773

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 - + 39 * col1 col0 FROM tab2 AS cor0
----
-1147
-2183
-629

query I rowsort
SELECT tab1.col1 + - 33 AS col1 FROM tab1
----
-20
-23
-7

query I rowsort
SELECT ALL + col0 * ( tab2.col2 ) + + col2 AS col1 FROM tab2
----
2054
216
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + 74 * 40 col1 FROM tab2 cor0
----
2977
2991
3019

query I rowsort
SELECT - + col0 - col0 * - col2 AS col1 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT ALL col1 + + 7 AS col2 FROM tab1 AS cor0
----
17
20
33

query I rowsort
SELECT DISTINCT col2 + - 13 * col2 FROM tab2 AS cor0
----
-312
-324
-456

query I rowsort
SELECT col1 * col0 + - col0 + col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - col1 * + cor0.col0 + col2 AS col2 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL col2 * ( + 76 ) + col1 FROM tab0
----
173
2594
6323

query I rowsort
SELECT DISTINCT - 66 + - col2 * - col1 + col2 AS col2 FROM tab2 AS cor0
----
1494
618
798

query I rowsort
SELECT DISTINCT - + ( + col0 ) * cor0.col1 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL col0 + - cor0.col1 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT - - 13 * + col2 AS col1 FROM tab2 AS cor0
----
338
351
494

query I rowsort
SELECT + ( tab0.col0 ) FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8452
SELECT + + CAST( col1 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-8452
SELECT + + CAST ( col1 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8453
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + ( 49 ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1519
-2891
-833

query I rowsort
SELECT ALL - + cor0.col0 * - col2 + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL + - 92 * + 80 FROM tab0 AS cor0
----
-7360
-7360
-7360

onlyif mysql # use DIV operator for integer division
query I rowsort label-8457
SELECT - col1 + - 99 + cor0.col1 DIV cor0.col1 FROM tab0 AS cor0
----
-184
-189
-195

skipif mysql # not compatible
query I rowsort label-8457
SELECT - col1 + - 99 + cor0.col1 / cor0.col1 FROM tab0 AS cor0
----
-184
-189
-195

query I rowsort
SELECT + cor0.col0 * - cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 9b23e5e74ef3405a4dbf05cceb18c8a8

query I rowsort
SELECT ALL - cor0.col2 * - 41 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 121a956ff89788c5d95fa7316c6730bd

query I rowsort
SELECT + + col2 + + 1 + col1 FROM tab2 AS cor0
----
56
59
86

query I rowsort
SELECT - + col1 * - 69 + + col1 + ( - 4 ) AS col0 FROM tab2 AS cor0
----
1186
2166
4126

query I rowsort
SELECT ALL - ( ( - col2 ) ) AS col0 FROM tab0 cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 col1 FROM tab0
----
13

query I rowsort
SELECT + - col2 * col0 + - cor0.col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT ALL + - col0 * 27 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-162
-2080
-2095

query I rowsort
SELECT + + ( col2 ) * col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL col0 + cor0.col0 + + col2 AS col2 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT + - 88 AS col1 FROM tab0 AS cor0
----
-88
-88
-88

query I rowsort
SELECT - + 97 FROM tab2, tab2 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT col1 + - cor0.col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 32 + + col0 AS col2 FROM tab2 AS cor0
----
-25
46
47

query I rowsort
SELECT - - ( col0 ) * - col0 + 1 AS col0 FROM tab2 AS cor0
----
-48
-6083
-6240

query I rowsort
SELECT ALL + - col1 + ( - 87 ) FROM tab2 AS cor0
----
-104
-118
-146

query I rowsort
SELECT ALL - col0 - - cor0.col2 * - 7 FROM tab2 AS cor0
----
-196
-260
-345

query I rowsort
SELECT 96 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to 6bef8087cd9f2d6405f56e239741e903

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8476
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) + - col0 + + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) + - col0 + + col0 FROM tab2
----
NULL

query I rowsort
SELECT 56 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT ALL - tab0.col1 * + col2 + col1 AS col0 FROM tab0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8479
SELECT DISTINCT col0 * + 92 * + col2 + col1 DIV - 82 FROM tab0
----
3219
671415
72863

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT col0 * + 92 * + col2 + col1 / - 82 FROM tab0
----
3219
671415
72863

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8480
SELECT + col0 + col0 * CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
1422
224
4680

skipif mysql # not compatible
query I rowsort label-8480
SELECT + col0 + col0 * CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-8481
SELECT + col2 * col2 DIV ( - 11 + col0 ) AS col0 FROM tab0 cor0
----
0
83
86

skipif mysql # not compatible
query I rowsort label-8481
SELECT + col2 * col2 / ( - 11 + col0 ) AS col0 FROM tab0 cor0
----
0
83
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-8482
SELECT ALL + 28 DIV col2 AS col1 FROM tab0 AS cor0
----
0
0
28

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL + 28 / col2 AS col1 FROM tab0 AS cor0
----
0
0
28

query I rowsort
SELECT - cor0.col0 * - col0 + + 53 FROM tab2 AS cor0
----
102
6137
6294

query I rowsort
SELECT ALL - - cor0.col0 * - col1 + - col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT + - col0 + + col0 * + col1 AS col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT + cor0.col0 + + col2 * col0 * - col0 AS col0 FROM tab2 AS cor0
----
-1316
-158106
-237079

query I rowsort
SELECT ALL + col0 * - 47 AS col0 FROM tab0 AS cor0
----
-1128
-1645
-4183

query I rowsort
SELECT + cor0.col0 * - cor0.col0 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b1a10d0ce1bd78a97a3f25900325a81f

query I rowsort
SELECT - - col2 * col0 + + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-8490
SELECT 76 DIV - col1 + col2 FROM tab2 cor0
----
25
25
34

skipif mysql # not compatible
query I rowsort label-8490
SELECT 76 / - col1 + col2 FROM tab2 cor0
----
25
25
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-8491
SELECT - col0 * 97 DIV col1 AS col2 FROM tab1
----
-11
-596
-620

skipif mysql # not compatible
query I rowsort label-8491
SELECT - col0 * 97 / col1 AS col2 FROM tab1
----
-11
-596
-620

query I rowsort
SELECT - col2 + 72 * col0 AS col1 FROM tab1 AS cor0
----
162
4551
5664

query I rowsort
SELECT DISTINCT 88 * + col1 + + col2 * - col2 FROM tab2 AS cor0
----
1999
4516
52

query I rowsort
SELECT ALL + ( - ( col1 ) * tab2.col1 ) FROM tab2
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 100c625e45715c20368551989514ba64

query I rowsort
SELECT + 59 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

onlyif mysql # use DIV operator for integer division
query I rowsort label-8497
SELECT DISTINCT tab0.col2 DIV + 53 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT tab0.col2 / + 53 FROM tab0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8498
SELECT DISTINCT col0 DIV - 34 + col0 AS col2 FROM tab0
----
24
34
87

skipif mysql # not compatible
query I rowsort label-8498
SELECT DISTINCT col0 / - 34 + col0 AS col2 FROM tab0
----
24
34
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8499
SELECT ALL tab2.col1 * + col2 * - tab2.col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8499
SELECT ALL tab2.col1 * + col2 * - tab2.col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + 63 + + col0 FROM tab1 AS cor0
----
-60
1
17

query I rowsort
SELECT ALL + col1 + col2 * 41 AS col1 FROM tab1 AS cor0
----
2240
2347
3949

query I rowsort
SELECT ( + col2 ) + + col1 * col1 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-17522
-2101
-943

query I rowsort
SELECT DISTINCT - ( + col1 ) AS col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT + col1 * + cor0.col1 AS col1 FROM tab0 cor0
----
7396
8281
9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8505
SELECT ALL CAST( NULL AS SIGNED ) + + col2 col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL CAST ( NULL AS INTEGER ) + + col2 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + tab1.col2 * + col0 * - col0 + + 42 FROM tab1
----
-233430
-444
-614358

query I rowsort
SELECT DISTINCT - col2 * col0 + 50 FROM tab2 AS cor0
----
-139
-1978
-2952

query I rowsort
SELECT ALL + ( - cor0.col2 ) + - col0 + + col0 AS col2 FROM tab1 cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8509
SELECT ALL - - col2 DIV - col2 - 64 FROM tab0 AS cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL - - col2 / - col2 - 64 FROM tab0 AS cor0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT - 91 * cor0.col1 FROM tab1 AS cor0
----
-1183
-2366
-910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 + - col1 col0 FROM tab1 AS cor0
----
65
78
81

query I rowsort
SELECT + + 40 + col1 FROM tab2 AS cor0
----
57
71
99

query I rowsort
SELECT ALL col0 * 88 - 75 AS col1 FROM tab0
----
2037
3005
7757

query I rowsort
SELECT - tab2.col2 + col0 * - col0 AS col1 FROM tab2
----
-6110
-6279
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-8515
SELECT + col2 + col2 * - col1 * - col0 + col1 DIV col0 FROM tab2
----
119678
51072
5890

skipif mysql # not compatible
query I rowsort label-8515
SELECT + col2 + col2 * - col1 * - col0 + col1 / col0 FROM tab2
----
119678
51072
5890

query I rowsort
SELECT - col0 * 24 + - ( col1 ) + - 60 FROM tab0
----
-2287
-722
-997

query I rowsort
SELECT ALL - col2 * 33 FROM tab1
----
-1782
-1881
-3168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 19 col2 FROM tab1, tab1 AS cor0
----
-19

query I rowsort
SELECT DISTINCT cor1.col0 AS col2 FROM tab0, tab2 AS cor0, tab0 cor1
----
24
35
89

query I rowsort
SELECT ALL col1 * tab0.col0 - 35 AS col0 FROM tab0
----
2029
3360
8064

query I rowsort
SELECT DISTINCT tab2.col1 - ( + col2 * - col0 + - ( - tab2.col1 ) ) FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 + 47 col1 FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT DISTINCT - col0 + - cor0.col0 * - col2 AS col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT - - ( + 25 ) FROM tab0 AS cor0
----
25
25
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-8525
SELECT + col1 - col0 DIV col0 AS col1 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-8525
SELECT + col1 - col0 / col0 AS col1 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT ALL - + ( cor0.col1 ) + + col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - + 47 + + 80 FROM tab1 AS cor0
----
33
33
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-8528
SELECT col1 DIV - col2 - - col0 * - col0 col1 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8528
SELECT col1 / - col2 - - col0 * - col0 col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + - ( + col2 ) + + col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL + col1 + col0 * + col2 * ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
233482
512
614413

query I rowsort
SELECT ALL + 69 * - col0 FROM tab0 AS cor0
----
-1656
-2415
-6141

query I rowsort
SELECT DISTINCT - 72 * col2 - - col2 FROM tab0 AS cor0
----
-2343
-5822
-71

query I rowsort
SELECT ALL + + col1 * cor0.col1 - - col2 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT - 52 + - 5 FROM tab0 AS cor0
----
-57
-57
-57

query I rowsort
SELECT + 92 - ( col1 ) FROM tab2 AS cor0
----
33
61
75

query I rowsort
SELECT - col0 * cor0.col0 + - col2 * + col2 FROM tab1 AS cor0
----
-15616
-2925
-7345

query I rowsort
SELECT - - col1 * 13 + col2 AS col0 FROM tab1 AS cor0
----
187
265
392

query I rowsort
SELECT ALL - + 50 * 0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + ( 67 ) + + cor0.col2 * col1 FROM tab0 AS cor0
----
164
2905
7529

query I rowsort
SELECT DISTINCT + - col0 * + col0 + - col1 AS col2 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT ALL + - cor0.col0 + + cor0.col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 + + 17 + + col2 FROM tab0 AS cor0
----
-17
10
26

query I rowsort
SELECT DISTINCT 51 AS col0 FROM tab1, tab2 AS cor0
----
51

query I rowsort
SELECT col1 - ( - 6 ) FROM tab2 AS cor0
----
23
37
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8545
SELECT ALL + CAST( NULL AS SIGNED ) col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL + CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col2 * - ( col2 ) * - cor0.col0 + ( - 3 ) * col2 AS col0 FROM tab2 AS cor0
----
113962
5022
52650

query I rowsort
SELECT + 92 + cor0.col1 FROM tab1 AS cor0
----
102
105
118

onlyif mysql # use DIV operator for integer division
query I rowsort label-8548
SELECT DISTINCT tab1.col2 DIV - ( col1 ) + - col1 AS col2 FROM tab1
----
-15
-20
-28

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT tab1.col2 / - ( col1 ) + - col1 AS col2 FROM tab1
----
-15
-20
-28

query I rowsort
SELECT ALL col1 + 61 FROM tab2
----
120
78
92

query I rowsort
SELECT DISTINCT - col0 + + col0 + - col1 * + col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT - col2 + + 66 + col1 AS col0 FROM tab0
----
119
162
75

query I rowsort
SELECT - col2 + 13 AS col2 FROM tab1
----
-41
-44
-83

query I rowsort
SELECT + cor0.col2 + + cor0.col2 FROM tab0 cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-8554
SELECT - 11 + - col0 DIV + col1 AS col2 FROM tab0 cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-8554
SELECT - 11 + - col0 / + col1 AS col2 FROM tab0 cor0
----
-11
-11
-11

query I rowsort
SELECT + col2 + col1 * ( tab0.col0 ) FROM tab0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-8556
SELECT ALL tab1.col2 DIV tab1.col2 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL tab1.col2 / tab1.col2 AS col2 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT col1 * - col0 + 49 * col2 FROM tab2 AS cor0
----
-3328
1106
519

onlyif mysql # use DIV operator for integer division
query I rowsort label-8558
SELECT ALL - - col1 + col2 DIV col1 AS col1 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-8558
SELECT ALL - - col1 + col2 / col1 AS col1 FROM tab2 AS cor0
----
19
31
59

query I rowsort
SELECT - col1 + col2 * - ( + ( col0 ) ) * col0 FROM tab2 AS cor0
----
-1354
-158243
-237175

query I rowsort
SELECT ALL 32 - + col2 FROM tab2 AS cor0
----
-6
5
6

query I rowsort
SELECT DISTINCT - col2 + col1 * col0 + col1 AS col0 FROM tab2 AS cor0
----
1322
221
4635

query I rowsort
SELECT DISTINCT col2 * col2 + + ( + col2 ) + + col2 FROM tab0 AS cor0
----
1155
3
6888

query I rowsort
SELECT ALL - ( + cor0.col2 ) - ( 27 ) FROM tab1 cor0
----
-123
-81
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + col0 col0 FROM tab2 AS cor0
----
-1365
-598
-722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 col0 FROM tab2 cor0
----
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-8566
SELECT - cor0.col0 DIV col2 - - col2 FROM tab1 AS cor0
----
54
56
96

skipif mysql # not compatible
query I rowsort label-8566
SELECT - cor0.col0 / col2 - - col2 FROM tab1 AS cor0
----
54
56
96

query I rowsort
SELECT ALL + cor0.col2 + col1 * - 75 AS col0 FROM tab1 cor0
----
-1896
-693
-879

onlyif mysql # use DIV operator for integer division
query I rowsort label-8568
SELECT ALL + col2 * cor0.col1 + - 35 DIV + col1 + col2 * col2 AS col2 FROM tab0 AS cor0
----
14186
3927
98

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL + col2 * cor0.col1 + - 35 / + col1 + col2 * col2 AS col2 FROM tab0 AS cor0
----
14186
3927
98

query I rowsort
SELECT DISTINCT + 1 + cor0.col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1533
-645
-836

query I rowsort
SELECT ALL - col2 + + col0 * col2 FROM tab2 AS cor0
----
162
2002
2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8571
SELECT + + col1 * + cor0.col1 - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8571
SELECT + + col1 * + cor0.col1 - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 1 * col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT 22 + - col0 FROM tab0 AS cor0
----
-13
-2
-67

query I rowsort
SELECT DISTINCT cor0.col2 + col2 * + ( + ( col1 ) ) FROM tab1 AS cor0
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 + ( - col0 ) col2 FROM tab2 AS cor0
----
42
6006
6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + + col1 col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT col2 + - col2 * + tab1.col2 FROM tab1
----
-2862
-3192
-9120

skipif mysql # not compatible
query I rowsort
SELECT + - col2 - CAST ( col2 AS REAL ) * col1 FROM tab1 AS cor0
----
-1344
-1458
-627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 + - col1 col0 FROM tab2 cor0
----
158
1969
2985

query I rowsort
SELECT + - col0 + + ( - 15 ) - col1 FROM tab0 AS cor0
----
-125
-147
-195

query I rowsort
SELECT col1 + - col2 + col2 AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT - - 81 * cor0.col0 FROM tab2 AS cor0
----
567
6318
6399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 * + col1 col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT - + col2 + + col1 * - col1 * col0 FROM tab2 AS cor0
----
-22869
-271544
-6754

query I rowsort
SELECT col1 - - 33 * + cor0.col2 FROM tab1 AS cor0
----
1808
1891
3181

query I rowsort
SELECT + col2 * + col1 + col2 - col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8587
SELECT + cor0.col2 * - col1 DIV col1 + - col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76

skipif mysql # not compatible
query I rowsort label-8587
SELECT + cor0.col2 * - col1 / col1 + - col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT 65 * col1 AS col1 FROM tab0
----
5590
5915
6305

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col2 * col0 AS REAL ) FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL 34 + + cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
7430
8315
9443

query I rowsort
SELECT ALL - 42 + - col0 FROM tab1 AS cor0
----
-106
-122
-45

query I rowsort
SELECT DISTINCT + col1 + col0 * cor0.col2 * + col1 AS col0 FROM tab2 AS cor0
----
119711
51051
5890

query I rowsort
SELECT + 61 * + col2 AS col0 FROM tab1 AS cor0
----
3294
3477
5856

query I rowsort
SELECT col2 * 1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL ( 54 ) FROM tab0 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT + 35 * cor0.col2 FROM tab1 cor0
----
1890
1995
3360

query I rowsort
SELECT + ( cor0.col1 ) * - col1 * - col0 AS col1 FROM tab0 cor0
----
177504
329315
737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + cor0.col1 * + col0 col2 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-8599
SELECT - CAST( - 94 AS SIGNED ) + col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-8599
SELECT - CAST ( - 94 AS INTEGER ) + col0 / - col1 AS col0 FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT DISTINCT + 36 * ( - col0 ) AS col2 FROM tab2 cor0
----
-252
-2808
-2844

query I rowsort
SELECT DISTINCT + 49 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
49

query I rowsort
SELECT + + ( col0 ) + col1 * + col1 FROM tab0 cor0
----
7420
8370
9444

query I rowsort
SELECT + + ( - col2 ) * ( ( - col0 ) * 95 ) AS col0 FROM tab0 cor0
----
3325
693310
75240

query I rowsort
SELECT DISTINCT col2 + col0 * - col0 * - col0 AS col0 FROM tab1
----
262201
512096
81

query I rowsort
SELECT DISTINCT - col1 * col2 + - col0 AS col2 FROM tab0
----
-132
-2862
-7551

query I rowsort
SELECT col2 + tab1.col0 - col1 * tab1.col1 FROM tab1
----
-619
21
7

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT col0 * col1 * tab0.col1 + + col0 FROM tab0
----
177528
329350
737098

query I rowsort
SELECT ALL + col0 + col2 + - col0 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT - col0 + + tab1.col1 + col2 FROM tab1
----
29
3
77

query I rowsort
SELECT + col0 * - tab0.col1 * - col0 AS col2 FROM tab0
----
118825
49536
720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + + col2 * cor0.col0 + - col1 AS col2 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT col1 + + col1 FROM tab2 WHERE NOT + col1 * col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8615
SELECT ALL - col0 DIV col0 + - col0 DIV col0 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL - col0 / col0 + - col0 / col0 FROM tab0
----
-2
-2
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-8616
SELECT col2 + col2 * col0 DIV col0 FROM tab1
----
108
114
192

skipif mysql # not compatible
query I rowsort label-8616
SELECT col2 + col2 * col0 / col0 FROM tab1
----
108
114
192

query I rowsort
SELECT - col0 * + col2 + cor0.col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + col0 + col2 * + col1 * col0 + col1 FROM tab1 cor0
----
36554
4241
99933

query I rowsort
SELECT col2 + - col0 + + col1 FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT col0 * - cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT + col1 + - col1 * col2 + - col1 * col0 AS col1 FROM tab0 AS cor0
----
-15470
-3395
-4816

query I rowsort
SELECT col1 * col0 - + col1 * col1 AS col0 FROM tab2
----
-744
1054
1121

query I rowsort
SELECT col2 - + col1 AS col0 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-8624
SELECT + col1 + cor0.col0 DIV col2 AS col0 FROM tab0 cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-8624
SELECT + col1 + cor0.col0 / col2 AS col0 FROM tab0 cor0
----
132
86
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-8625
SELECT col2 DIV - col1 + col1 * + col1 + - col0 FROM tab2 AS cor0
----
208
3403
954

skipif mysql # not compatible
query I rowsort label-8625
SELECT col2 / - col1 + col1 * + col1 + - col0 FROM tab2 AS cor0
----
208
3403
954

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8627
SELECT col0 DIV + col0 + col0 * - col1 * + col1 col2 FROM tab2
----
-22830
-271517
-6726

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8627
SELECT col0 / + col0 + col0 * - col1 * + col1 col2 FROM tab2
----
-22830
-271517
-6726

query I rowsort
SELECT col1 * + col1 + - col1 FROM tab2 WHERE col1 IN ( - col0 )
----

query I rowsort
SELECT DISTINCT tab1.col2 AS col1 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT - col0 * col0 + col0 AS col1 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT - col1 + - col0 + - tab1.col2 FROM tab1
----
-131
-189
-83

query I rowsort
SELECT col0 * - col0 * col1 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT ALL col1 * tab0.col0 AS col1 FROM tab0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT col1 FROM tab2 WHERE NULL NOT IN ( + col1 / col1 )
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NOT NULL IN ( - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8636
SELECT ALL + col1 * - col2 + - col0 DIV col1 AS col2 FROM tab1
----
-1254
-1404
-576

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL + col1 * - col2 + - col0 / col1 AS col2 FROM tab1
----
-1254
-1404
-576

query I rowsort
SELECT ALL col1 * col0 * col2 - col0 * tab0.col0 AS col1 FROM tab0
----
2170
656197
67536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab0 WHERE col1 NOT IN ( - tab0.col1 )
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - tab2.col0 * col0 + col2 * + col2 FROM tab2
----
-4797
-5408
680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 col1 FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT - cor0.col2 * + 74 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 96d9cb360e04be6ba49bac0a54b8cad8

query I rowsort
SELECT DISTINCT + 92 + col0 * - col1 FROM tab0 cor0
----
-1972
-3303
-8007

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 3eea7cef970c8ff51d71b8a23ee129bf

query I rowsort
SELECT - ( col2 ) + + col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - 68 + col1 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-115
-151
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8646
SELECT + 28 + - col1 * + col0 DIV col0 col1 FROM tab2 AS cor0
----
-3
-31
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8646
SELECT + 28 + - col1 * + col0 / col0 col1 FROM tab2 AS cor0
----
-3
-31
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8647
SELECT ALL + CAST( - 3 AS SIGNED ) col0 FROM tab1 AS cor0
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL + CAST ( - 3 AS INTEGER ) col0 FROM tab1 AS cor0
----
-3
-3
-3

query I rowsort
SELECT + + ( 80 ) * col1 + + col2 * + cor0.col2 FROM tab2 AS cor0
----
2804
3209
5396

query I rowsort
SELECT ALL + col0 * + cor0.col1 + col0 + col0 AS col1 FROM tab1 AS cor0
----
1200
768
84

query I rowsort
SELECT DISTINCT + col2 * - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-1593
-663
-868

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8651
SELECT + CAST( col2 AS SIGNED ) - col1 FROM tab2
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-8651
SELECT + CAST ( col2 AS INTEGER ) - col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT DISTINCT + ( + col2 ) + + col0 + + 89 FROM tab0
----
125
146
260

query I rowsort
SELECT DISTINCT 35 + col2 + - col0 AS col0 FROM tab2
----
-17
-6
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 + - col2 col0 FROM tab2 AS cor0
----
-72
-73
-84

query I rowsort
SELECT - 37 * + col2 + col1 * 18 - + col1 FROM tab1
----
-1556
-1939
-3331

query I rowsort
SELECT - col0 + - col0 * - col0 AS col1 FROM tab1
----
4032
6
6320

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8658
SELECT DISTINCT + - cor0.col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8658
SELECT DISTINCT + - cor0.col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0
----
NULL

query I rowsort
SELECT ( + 52 * + tab2.col1 ) + col0 + col0 AS col1 FROM tab2
----
1042
1626
3224

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8660
SELECT + CAST( NULL AS SIGNED ) + col0 / col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8660
SELECT + CAST ( NULL AS INTEGER ) + col0 / col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 49 + 6 AS col1 FROM tab1
----
-43

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 col2 FROM tab0
----
-56
-56
-56

query I rowsort
SELECT ALL cor1.col0 AS col2 FROM tab0, tab1, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT - col0 * 5 AS col2 FROM tab0 cor0
----
-120
-175
-445

query I rowsort
SELECT DISTINCT - - cor0.col0 + 30 FROM tab0 AS cor0
----
119
54
65

query I rowsort
SELECT DISTINCT col0 * 12 AS col2 FROM tab1 cor0
----
36
768
960

query I rowsort
SELECT ALL + col1 * + ( 29 ) FROM tab1 AS cor0
----
290
377
754

query I rowsort
SELECT col1 * - 40 FROM tab0 cor0
----
-3440
-3640
-3880

query I rowsort
SELECT DISTINCT - 7 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-8671
SELECT ALL + + col2 * - col2 DIV + col2 + col1 FROM tab1 AS cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-8671
SELECT ALL + + col2 * - col2 / + col2 + col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL + ( col1 ) + col1 * - col0 AS col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT + + ( 4 ) FROM tab0 AS cor0
----
4

query I rowsort
SELECT DISTINCT + ( 69 ) + col1 + tab2.col2 AS col0 FROM tab2
----
124
127
154

onlyif mysql # use DIV operator for integer division
query I rowsort label-8675
SELECT DISTINCT col0 + - col1 DIV + col0 AS col2 FROM tab2
----
3
78
79

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT col0 + - col1 / + col0 AS col2 FROM tab2
----
3
78
79

query I rowsort
SELECT ALL + 38 * - 4 AS col0 FROM tab0 AS cor0
----
-152
-152
-152

onlyif mysql # use DIV operator for integer division
query I rowsort label-8677
SELECT DISTINCT + 82 + cor0.col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
80
82

skipif mysql # not compatible
query I rowsort label-8677
SELECT DISTINCT + 82 + cor0.col2 / - col1 AS col1 FROM tab2 AS cor0
----
80
82

query I rowsort
SELECT DISTINCT + col0 + + ( - col2 ) * + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-8679
SELECT ALL col0 DIV + 72 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL col0 / + 72 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + col2 * col0 * + cor0.col2 + + col2 + col0 FROM tab0 AS cor0
----
26193
598607
71

query I rowsort
SELECT + - 84 * col0 FROM tab1 AS cor0
----
-252
-5376
-6720

query I rowsort
SELECT - 23 * col0 - + col2 FROM tab2 AS cor0
----
-1820
-1855
-188

query I rowsort
SELECT ALL - ( - col2 ) + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + col0 * - col0 col2 FROM tab0 AS cor0
----
-13824
-42875
-704969

query I rowsort
SELECT + 63 - col0 AS col2 FROM tab1 AS cor0
----
-1
-17
60

query I rowsort
SELECT DISTINCT - + 86 * - col1 AS col1 FROM tab0 AS cor0
----
7396
7826
8342

query I rowsort
SELECT DISTINCT - tab0.col0 + col2 + + tab0.col2 FROM tab0
----
-33
42
75

query I rowsort
SELECT + ( - col1 ) * - col0 + col1 * - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + 52 * ( - tab0.col0 ) + + col0 - col0 AS col1 FROM tab0
----
-1248
-1820
-4628

query I rowsort
SELECT - col2 + - 14 AS col1 FROM tab2 AS cor0
----
-40
-41
-52

query I rowsort
SELECT DISTINCT + cor0.col2 + + 73 FROM tab2 AS cor0
----
100
111
99

query I rowsort
SELECT ALL + col2 + + 97 + col1 FROM tab2 AS cor0
----
152
155
182

query I rowsort
SELECT ALL col0 * - 94 + col0 + + col2 AS col0 FROM tab0 AS cor0
----
-2199
-3254
-8195

query I rowsort
SELECT DISTINCT + col1 + 77 - col0 FROM tab0 AS cor0
----
139
79

query I rowsort
SELECT ALL col2 * 70 + + col0 AS col1 FROM tab2 AS cor0
----
1897
1898
2739

query I rowsort
SELECT + col0 * - col0 - ( ( - col0 ) ) FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT 22 - + tab1.col1 FROM tab1
----
-4
12
9

query I rowsort
SELECT DISTINCT + col0 * col1 + - 2 AS col2 FROM tab1
----
1038
638
76

query I rowsort
SELECT DISTINCT col0 * col1 * + 62 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
3432
39110
63232

query I rowsort
SELECT DISTINCT col0 * cor0.col1 + + 67 AS col1 FROM tab2 AS cor0
----
1410
284
4669

query I rowsort
SELECT DISTINCT col1 + ( + 80 ) * cor0.col2 + col0 FROM tab1 AS cor0
----
4349
4634
7773

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8702
SELECT CAST( + cor0.col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8702
SELECT CAST ( + cor0.col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col2 * - 51 AS col2 FROM tab0 AS cor0
----
-1683
-4182
-51

skipif mysql # not compatible
query I rowsort
SELECT ALL + cor0.col2 * CAST ( col2 AS REAL ) * + col1 + + col1 FROM tab2 AS cor0
----
22630
24565
39943

query I rowsort
SELECT col1 + col1 * tab2.col1 FROM tab2
----
306
3540
992

query I rowsort
SELECT + - cor0.col1 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND ( + col1 * col0 / + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col0 col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT col2 * + cor0.col2 + col2 + col2 FROM tab2 AS cor0
----
1520
728
783

query I rowsort
SELECT DISTINCT + col0 + cor0.col2 * col1 * col1 AS col0 FROM tab1 AS cor0
----
16304
36507
5764

onlyif mysql # use DIV operator for integer division
query I rowsort label-8711
SELECT DISTINCT 17 DIV + cor0.col0 AS col0 FROM tab1 cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-8711
SELECT DISTINCT 17 / + cor0.col0 AS col0 FROM tab1 cor0
----
0
5

query I rowsort
SELECT DISTINCT - col2 * col2 + col2 * col1 * + col1 AS col2 FROM tab2 cor0
----
25218
89830
9538

onlyif mysql # use DIV operator for integer division
query I rowsort label-8713
SELECT ALL - - col1 * col2 DIV col1 + cor0.col2 DIV col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL - - col1 * col2 / col1 + cor0.col2 / col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT col1 * + tab2.col2 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT cor0.col1 + col0 * - col1 * + col0 FROM tab1 AS cor0
----
-208
-40950
-83187

onlyif mysql # use DIV operator for integer division
query I rowsort label-8716
SELECT ALL + - col2 - - 60 DIV - 15 FROM tab0 cor0
----
-37
-5
-86

skipif mysql # not compatible
query I rowsort label-8716
SELECT ALL + - col2 - - 60 / - 15 FROM tab0 cor0
----
-37
-5
-86

query I rowsort
SELECT DISTINCT col0 + 33 AS col0 FROM tab1 cor0
----
113
36
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8718
SELECT + + col2 DIV + col1 + + col2 col0 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8718
SELECT + + col2 / + col1 + + col2 col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - cor0.col2 + col1 * 60 AS col2 FROM tab1 AS cor0
----
1506
543
684

query I rowsort
SELECT DISTINCT + + col0 + 24 AS col0 FROM tab1 AS cor0
----
104
27
88

query I rowsort
SELECT DISTINCT - - col1 * + 9 + + col2 FROM tab2 AS cor0
----
191
306
557

query I rowsort
SELECT ALL col2 * ( cor0.col2 ) FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT cor0.col1 * tab1.col0 + + 16 FROM tab1, tab0, tab2 AS cor0
----
9 values hashing to 6c59b9eb5f273671e721e75fe690b150

query I rowsort
SELECT + col1 + col0 * tab2.col1 * + col0 AS col0 FROM tab2
----
106114
1550
359015

query I rowsort
SELECT DISTINCT 58 + ( - tab0.col0 ) FROM tab0, tab0 AS cor0
----
-31
23
34

query I rowsort
SELECT + col2 - - col0 * 54 AS col1 FROM tab0 AS cor0
----
1329
1891
4888

query I rowsort
SELECT ALL - + ( - 85 ) FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

onlyif mysql # use DIV operator for integer division
query I rowsort label-8728
SELECT - col1 DIV col2 + - 29 AS col0 FROM tab0
----
-126
-30
-31

skipif mysql # not compatible
query I rowsort label-8728
SELECT - col1 / col2 + - 29 AS col0 FROM tab0
----
-126
-30
-31

query I rowsort
SELECT DISTINCT - col0 + 29 AS col0 FROM tab1
----
-35
-51
26

query I rowsort
SELECT ALL 76 * + 2 FROM tab1
----
152
152
152

query I rowsort
SELECT tab2.col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL + col0 * col0 * col0 AS col2 FROM tab0
----
13824
42875
704969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 91 * + col0 * col2 col2 FROM tab1 AS cor0
----
-14742
-331968
-698880

query I rowsort
SELECT ALL + ( + col2 ) * col1 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT 79 + col1 - + col0 AS col0 FROM tab2
----
103
17
60

query I rowsort
SELECT DISTINCT col1 - tab2.col1 * - ( 83 ) AS col0 FROM tab2
----
1428
2604
4956

query I rowsort
SELECT DISTINCT tab0.col1 - tab0.col1 * + col2 AS col1 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT ALL - + cor0.col0 * col0 + - 37 + 91 AS col1 FROM tab2 AS cor0
----
-6030
-6187
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) + cor0.col2 * col0 col2 FROM tab1 cor0
----
159
3584
7600

query I rowsort
SELECT + + 12 * col1 FROM tab0 AS cor0
----
1032
1092
1164

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8741
SELECT CAST( 36 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

skipif mysql # not compatible
query I rowsort label-8741
SELECT CAST ( 36 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT 6 * cor0.col2 FROM tab1 AS cor0
----
324
342
576

onlyif mysql # use DIV operator for integer division
query I rowsort label-8743
SELECT DISTINCT + col1 + - col2 DIV 54 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT + col1 + - col2 / 54 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT col0 + col0 * 17 AS col2 FROM tab0 AS cor0
----
1602
432
630

query I rowsort
SELECT + cor0.col2 * col2 + - ( + col0 ) AS col1 FROM tab1 AS cor0
----
2913
3185
9136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + ( col1 ) col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT col0 + - ( + 50 * + col0 ) FROM tab1 AS cor0
----
-147
-3136
-3920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 26 col1 FROM tab1 AS cor0
----
260
338
676

query I rowsort
SELECT col0 * + col1 - - 80 AS col0 FROM tab0
----
2144
3475
8179

onlyif mysql # use DIV operator for integer division
query I rowsort label-8750
SELECT DISTINCT - col0 + - CAST( - col0 + col0 AS SIGNED ) DIV col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-8750
SELECT DISTINCT - col0 + - CAST ( - col0 + col0 AS INTEGER ) / col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + col2 - 67 * + col1 AS col2 FROM tab1 AS cor0
----
-1688
-613
-775

query I rowsort
SELECT + - cor0.col2 + - cor0.col2 * cor0.col0 FROM tab2 cor0
----
-2054
-216
-3040

query I rowsort
SELECT ALL + ( col1 ) + col2 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - 53 * col2 - - cor0.col2 AS col0 FROM tab0 cor0
----
-1716
-4264
-52

query I rowsort
SELECT + col2 * - 49 AS col2 FROM tab1 AS cor0
----
-2646
-2793
-4704

query I rowsort
SELECT ALL + 30 + tab1.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to d56ce23fec79771e57ce43fe6396fe37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 * - col0 col2 FROM tab2 AS cor0
----
-567
-6318
-6399

query I rowsort
SELECT DISTINCT + col2 * 81 AS col1 FROM tab0 AS cor0
----
2673
6642
81

query I rowsort
SELECT DISTINCT + 18 AS col2 FROM tab2, tab1 AS cor0
----
18

query I rowsort
SELECT - 34 * 60 + - col0 AS col0 FROM tab0 cor0
----
-2064
-2075
-2129

onlyif mysql # use DIV operator for integer division
query I rowsort label-8761
SELECT + + 88 DIV col1 FROM tab2 cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-8761
SELECT + + 88 / col1 FROM tab2 cor0
----
1
2
5

query I rowsort
SELECT DISTINCT 37 + - col0 FROM tab1 AS cor0
----
-27
-43
34

query I rowsort
SELECT ALL - col2 * + col1 + - ( - col2 ) AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT 49 FROM tab2, tab2 AS cor0
----
49

query I rowsort
SELECT ( ( col0 ) + col2 * + col2 ) AS col0 FROM tab0
----
1113
36
6813

query I rowsort
SELECT DISTINCT 15 AS col2 FROM tab0, tab0 AS cor0
----
15

query I rowsort
SELECT ALL - ( + ( col1 ) ) * + col1 + + col2 FROM tab1 AS cor0
----
-43
-622
-73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8768
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 + tab1.col0 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 + tab1.col0 AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 21 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT ALL - ( + col2 ) * + col1 + + col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-8771
SELECT DISTINCT - - col2 + cor0.col2 DIV - cor0.col0 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT - - col2 + cor0.col2 / - cor0.col0 FROM tab0 AS cor0
----
1
32
82

query I rowsort
SELECT 68 + - col2 * - tab2.col2 AS col0 FROM tab2
----
1512
744
797

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8773
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8773
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-8774
SELECT col1 * - col2 + + col0 DIV 13 col2 FROM tab2
----
-1528
-640
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8774
SELECT col1 * - col2 + + col0 / 13 col2 FROM tab2
----
-1528
-640
-837

query I rowsort
SELECT + 72 * - col0 AS col0 FROM tab0 AS cor0
----
-1728
-2520
-6408

query I rowsort
SELECT DISTINCT cor0.col2 * col0 * col2 FROM tab1 AS cor0
----
207936
737280
8748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8777
SELECT DISTINCT col1 + col2 * - CAST( + col1 AS SIGNED ) * + cor0.col1 FROM tab2 AS cor0
----
-10965
-25916
-90447

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT col1 + col2 * - CAST ( + col1 AS INTEGER ) * + cor0.col1 FROM tab2 AS cor0
----
-10965
-25916
-90447

query I rowsort
SELECT - col0 * + 5 AS col2 FROM tab1 AS cor0
----
-15
-320
-400

query I rowsort
SELECT col2 + + col2 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-26
-3
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8780
SELECT ALL + col1 * + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL + col1 * + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL col2 * ( + col2 ) FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL cor0.col0 + + 38 * col2 AS col1 FROM tab0 AS cor0
----
1278
3205
73

query I rowsort
SELECT - + col0 * - ( - cor0.col2 ) + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT col2 * - 90 * tab2.col2 FROM tab2
----
-129960
-60840
-65610

query I rowsort
SELECT DISTINCT 48 AS col1 FROM tab2, tab2 cor0
----
48

query I rowsort
SELECT - + col2 * 43 + + ( col0 ) + + 83 AS col2 FROM tab1 AS cor0
----
-2236
-2304
-3965

query I rowsort
SELECT col1 + + col1 * 5 + + col0 FROM tab0 AS cor0
----
540
617
635

query I rowsort
SELECT + ( - 43 ) * col1 FROM tab1 cor0
----
-1118
-430
-559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 * + col1 col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - + 28 * - col2 * - col1 FROM tab2 AS cor0
----
-18088
-23436
-42952

query I rowsort
SELECT - tab0.col1 * cor0.col0 + 96 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 20d30334c95feec2063137a2c87957af

query I rowsort
SELECT DISTINCT col2 * + 12 AS col2 FROM tab2
----
312
324
456

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + - col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT col2 * 87 FROM tab1
----
4698
4959
8352

query I rowsort
SELECT - 30 + col2 * + 95 FROM tab0 AS cor0
----
3105
65
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-8796
SELECT col2 * + col1 + col2 DIV - cor0.col1 FROM tab2 cor0
----
1534
644
837

skipif mysql # not compatible
query I rowsort label-8796
SELECT col2 * + col1 + col2 / - cor0.col1 FROM tab2 cor0
----
1534
644
837

query I rowsort
SELECT DISTINCT ( col0 ) * + tab1.col0 * - 21 + col0 AS col1 FROM tab1
----
-134320
-186
-85952

onlyif mysql # use DIV operator for integer division
query I rowsort label-8798
SELECT - 70 * cor0.col2 + cor0.col1 DIV + col2 + col2 FROM tab0 AS cor0
----
-2275
-5657
28

skipif mysql # not compatible
query I rowsort label-8798
SELECT - 70 * cor0.col2 + cor0.col1 / + col2 + col2 FROM tab0 AS cor0
----
-2275
-5657
28

query I rowsort
SELECT DISTINCT ( + col1 ) + col0 FROM tab1
----
29
74
93

query I rowsort
SELECT + - col0 * + col1 + 57 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-526
-887
33

query I rowsort
SELECT - 92 * + col2 - col1 AS col2 FROM tab0 AS cor0
----
-189
-3122
-7635

onlyif mysql # use DIV operator for integer division
query I rowsort label-8802
SELECT DISTINCT - col0 DIV col0 + - 6 col0 FROM tab1 AS cor0
----
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8802
SELECT DISTINCT - col0 / col0 + - 6 col0 FROM tab1 AS cor0
----
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-8803
SELECT ALL cor0.col0 * col2 * 96 + - col1 DIV col1 AS col1 FROM tab0 AS cor0
----
3359
700607
76031

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL cor0.col0 * col2 * 96 + - col1 / col1 AS col1 FROM tab0 AS cor0
----
3359
700607
76031

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT 63 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT - ( 57 ) FROM tab0 AS cor0
----
-57
-57
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-8807
SELECT DISTINCT - ( col1 ) * col0 + - col1 DIV col0 + + col0 AS col1 FROM tab0 AS cor0
----
-2043
-3362
-8011

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT - ( col1 ) * col0 + - col1 / col0 + + col0 AS col1 FROM tab0 AS cor0
----
-2043
-3362
-8011

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 47 col1 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT ALL 11 + col2 FROM tab2 AS cor0
----
37
38
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 + col2 * - col1 col0 FROM tab1 AS cor0
----
-1206
-1362
-528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 81 col1 FROM tab2 AS cor0
----
-1377
-2511
-4779

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col1 col2 FROM tab1, tab2 cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT + col0 * - col1 - - col1 FROM tab0 cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT 75 + + col1 - + col1 * ( ( - col1 ) + ( tab2.col2 ) * col0 ) FROM tab2
----
-116037
-4792
-50653

query I rowsort
SELECT - ( col1 ) + tab0.col2 * - 69 + - col2 * tab0.col0 AS col2 FROM tab0
----
-13047
-201
-3155

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8816
SELECT ALL - col1 + - CAST( 18 AS SIGNED ) - + col0 * col0 AS col1 FROM tab1 cor0
----
-4124
-53
-6431

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL - col1 + - CAST ( 18 AS INTEGER ) - + col0 * col0 AS col1 FROM tab1 cor0
----
-4124
-53
-6431

query I rowsort
SELECT + col0 * + 49 + col1 + + col0 * - col1 * + 7 AS col0 FROM tab1 AS cor0
----
-1334
-3347
-373

query I rowsort
SELECT DISTINCT ( tab1.col0 ) AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT cor2.col2 * + 89 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 4d264328661afdb35cee5ee157cbe723

query I rowsort
SELECT ALL col0 * - 75 FROM tab0
----
-1800
-2625
-6675

query IIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT + 97 + - tab0.col0 AS col1 FROM tab0, tab2 AS cor0
----
62
73
8

query I rowsort
SELECT - col1 + ( col1 + cor0.col1 ) FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 * - col0 col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-8825
SELECT ALL - + col1 + - col0 DIV - ( col0 + - col1 ) FROM tab2 AS cor0
----
-16
-31
-55

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL - + col1 + - col0 / - ( col0 + - col1 ) FROM tab2 AS cor0
----
-16
-31
-55

query I rowsort
SELECT + 47 * + col2 AS col2 FROM tab2 AS cor0
----
1222
1269
1786

query I rowsort
SELECT ALL + + col0 + - 23 * + col0 * cor0.col2 FROM tab1 AS cor0
----
-176560
-3723
-83840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8828
SELECT ALL - CAST( 24 AS SIGNED ) - col1 FROM tab2 AS cor0
----
-41
-55
-83

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL - CAST ( 24 AS INTEGER ) - col1 FROM tab2 AS cor0
----
-41
-55
-83

query I rowsort
SELECT cor1.col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - ( - 43 ) + - col1 AS col2 FROM tab0
----
-43
-48
-54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8831
SELECT ALL + + CAST( NULL AS DECIMAL ) * - ( - col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8831
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-8832
SELECT ALL - ( col1 ) + col0 DIV col2 FROM tab1 AS cor0
----
-13
-26
-9

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL - ( col1 ) + col0 / col2 FROM tab1 AS cor0
----
-13
-26
-9

query I rowsort
SELECT 87 FROM tab2, tab2 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT DISTINCT - + ( 13 ) - col1 * col2 AS col0 FROM tab2 AS cor0
----
-1547
-659
-850

query I rowsort
SELECT DISTINCT + - 28 + col0 FROM tab1 AS cor0
----
-25
36
52

query I rowsort
SELECT - col0 + ( + col1 ) AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT + - ( - col0 ) - col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + tab1.col1 * + col2 * + col1 AS col2 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT ALL + - cor0.col2 * - col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - col2 + col0 * - 87 + + col0 FROM tab1 AS cor0
----
-312
-5561
-6976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8841
SELECT - col2 + - col2 * CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8841
SELECT - col2 + - col2 * CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 44 + col2 * - ( - cor0.col1 ) FROM tab0 cor0
----
141
2882
7506

query I rowsort
SELECT + - cor0.col1 + 32 + col2 FROM tab0 cor0
----
-21
-64
23

query I rowsort
SELECT DISTINCT - + col1 + - col2 * - 90 * col0 FROM tab0 AS cor0
----
3053
656729
71194

query I rowsort
SELECT + col1 + ( - col0 ) * col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL + col1 * col2 * col1 + - col1 + - col0 AS col0 FROM tab1 cor0
----
16131
36475
5626

query I rowsort
SELECT + col2 * - col0 + + col0 * col1 AS col0 FROM tab0 AS cor0
----
1272
3360
801

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8848
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8849
SELECT + col2 DIV col2 + + 57 AS col0 FROM tab0 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-8849
SELECT + col2 / col2 + + 57 AS col0 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT + + col2 + + col0 * 62 FROM tab2 AS cor0
----
461
4862
4936

query I rowsort
SELECT 42 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT ALL cor0.col1 * col2 + + 88 + col1 AS col0 FROM tab2 AS cor0
----
1681
751
956

query I rowsort
SELECT - ( col2 ) + 64 FROM tab0 AS cor0
----
-18
31
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 + + col1 col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT DISTINCT col1 * + col1 + col1 AS col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT 11 * col2 + + 32 FROM tab2
----
318
329
450

onlyif mysql # use DIV operator for integer division
query I rowsort label-8857
SELECT ALL + col2 + col2 DIV + col1 + - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-8857
SELECT ALL + col2 + col2 / + col1 + - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8858
SELECT + - col1 * - col1 + - CAST( col2 AS SIGNED ) FROM tab2 cor0
----
251
3455
934

skipif mysql # not compatible
query I rowsort label-8858
SELECT + - col1 * - col1 + - CAST ( col2 AS INTEGER ) FROM tab2 cor0
----
251
3455
934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 75 + col0 col1 FROM tab0
----
6474
6914
7310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 65 col0 FROM tab0
----
100
154
89

query I rowsort
SELECT DISTINCT - col1 * + tab1.col1 + tab1.col0 AS col1 FROM tab1
----
-36
-673
-89

query I rowsort
SELECT - col2 * tab1.col0 + col0 AS col0 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT ALL ( - cor0.col0 ) * col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + - 6 + - ( cor0.col2 ) FROM tab1 AS cor0
----
-102
-60
-63

query I rowsort
SELECT ALL - cor0.col0 * - col1 + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT ( - col0 ) + - col2 AS col2 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT - col2 * + ( + col1 ) + - col0 FROM tab0 cor0
----
-132
-2862
-7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-8868
SELECT col2 * col2 + + col2 DIV - col1 FROM tab2 cor0
----
1442
676
729

skipif mysql # not compatible
query I rowsort label-8868
SELECT col2 * col2 + + col2 / - col1 FROM tab2 cor0
----
1442
676
729

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 30 AS REAL ) * cor0.col2 FROM tab1 AS cor0
----
1620
1710
2880

query I rowsort
SELECT DISTINCT + 74 + col2 FROM tab1 cor0
----
128
131
170

query I rowsort
SELECT + 65 + - 32 AS col1 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT ALL - col0 + + col1 * - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8873
SELECT DISTINCT - CAST( 42 AS SIGNED ) + + col2 AS col1 FROM tab1 AS cor0
----
12
15
54

skipif mysql # not compatible
query I rowsort label-8873
SELECT DISTINCT - CAST ( 42 AS INTEGER ) + + col2 AS col1 FROM tab1 AS cor0
----
12
15
54

query I rowsort
SELECT ALL col0 * cor0.col0 + cor0.col2 FROM tab1 cor0
----
4153
63
6496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8875
SELECT DISTINCT + CAST( - col2 AS SIGNED ) + - cor0.col2 * cor0.col1 FROM tab2 AS cor0
----
-1560
-684
-864

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) + - cor0.col2 * cor0.col1 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT - 74 + + col1 AS col0 FROM tab0 cor0
----
12
17
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-8877
SELECT ALL - + CAST( + cor0.col0 AS SIGNED ) * col2 DIV ( - col2 ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL - + CAST ( + cor0.col0 AS INTEGER ) * col2 / ( - col2 ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT col0 * cor0.col1 + col0 * ( + 7 ) * col0 AS col2 FROM tab1 AS cor0
----
141
29312
45840

query I rowsort
SELECT ALL ( + col2 ) * + col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT + - 92 * - col2 FROM tab2 AS cor0
----
2392
2484
3496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8881
SELECT + CAST( col0 AS SIGNED ) + + cor0.col1 + col1 * col0 FROM tab1 AS cor0
----
107
1133
714

skipif mysql # not compatible
query I rowsort label-8881
SELECT + CAST ( col0 AS INTEGER ) + + cor0.col1 + col1 * col0 FROM tab1 AS cor0
----
107
1133
714

query I rowsort
SELECT ALL + + col2 * 66 AS col0 FROM tab1 AS cor0
----
3564
3762
6336

query I rowsort
SELECT DISTINCT col0 * 53 AS col0 FROM tab2
----
371
4134
4187

query I rowsort
SELECT - 52 + + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2116
-3447
-8151

query I rowsort
SELECT DISTINCT col2 + + col0 * + col1 AS col2 FROM tab1 AS cor0
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 * + 41 col2 FROM tab0 AS cor0
----
-1435
-3649
-984

onlyif mysql # use DIV operator for integer division
query I rowsort label-8887
SELECT - col0 + - col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-8887
SELECT - col0 + - col2 / + col2 AS col1 FROM tab0 AS cor0
----
-25
-36
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT DISTINCT - - col1 * + col1 + - 85 + col1 FROM tab0 AS cor0
----
7397
8287
9421

query I rowsort
SELECT - + col1 + - col1 * col1 * - col1 FROM tab0 cor0
----
635970
753480
912576

query I rowsort
SELECT - - col2 * 1 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - + col0 * - ( col0 + - col2 ) * col2 AS col2 FROM tab1 AS cor0
----
-122880
-8262
25536

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8893
SELECT + - cor0.col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8893
SELECT + - cor0.col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 + + cor0.col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8895
SELECT + - CAST( NULL AS SIGNED ) / - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8895
SELECT + - CAST ( NULL AS INTEGER ) / - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8896
SELECT col0 + 70 DIV - col0 + col0 FROM tab1
----
-17
127
160

skipif mysql # not compatible
query I rowsort label-8896
SELECT col0 + 70 / - col0 + col0 FROM tab1
----
-17
127
160

query I rowsort
SELECT ALL col1 - tab2.col1 AS col2 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8898
SELECT + tab0.col1 DIV + tab0.col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-8898
SELECT + tab0.col1 / + tab0.col2 FROM tab0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8899
SELECT tab0.col0 + col1 DIV + col2 AS col1 FROM tab0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-8899
SELECT tab0.col0 + col1 / + col2 AS col1 FROM tab0
----
132
26
90

query I rowsort
SELECT + col2 + + col1 + col1 AS col2 FROM tab1
----
106
122
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * - col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT col2 / col1 + - cor0.col1 * col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + col2
----

query I rowsort
SELECT DISTINCT col0 + + col2 FROM tab0 WHERE col2 NOT IN ( tab0.col0 )
----
171
36
57

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 IN ( + col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT ALL col1 + col1 * - col2 AS col2 FROM tab2
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-8906
SELECT - - col0 DIV + col1 - col0 * - col1 FROM tab1 AS cor0
----
1046
646
78

skipif mysql # not compatible
query I rowsort label-8906
SELECT - - col0 / + col1 - col0 * - col1 FROM tab1 AS cor0
----
1046
646
78

query I rowsort
SELECT ALL col0 + cor0.col1 * + cor0.col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL + col1 + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT col2 + - col0 * - col0 + + col2 AS col1 FROM tab0 AS cor0
----
1227
642
8085

query I rowsort
SELECT ALL col1 * - col0 + + col2 + - col2 * col2 FROM tab1 AS cor0
----
-10160
-2940
-3832

query I rowsort
SELECT ALL + col0 + - col1 * + col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE ( col1 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + col1 / col2 + - col0 * col1 AS col1 FROM tab1 WHERE col0 = ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8914
SELECT DISTINCT + col2 + col2 DIV - col2 FROM tab0 cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT + col2 + col2 / - col2 FROM tab0 cor0
----
0
32
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 + - 67 col2 FROM tab1 AS cor0
----
-4163
-6467
-76

query I rowsort
SELECT ALL - col0 * - ( ( + col0 ) ) - - col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT - + col1 * 80 AS col0 FROM tab2 AS cor0
----
-1360
-2480
-4720

query I rowsort
SELECT DISTINCT + - col0 * - col0 AS col1 FROM tab0 cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8919
SELECT DISTINCT + col1 + + CAST( + ( cor0.col2 ) AS SIGNED ) * col0 FROM tab1 AS cor0
----
188
3658
7693

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT + col1 + + CAST ( + ( cor0.col2 ) AS INTEGER ) * col0 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-8920
SELECT ALL - col0 DIV col2 + + 45 AS col1 FROM tab0 AS cor0
----
10
44
45

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL - col0 / col2 + + 45 AS col1 FROM tab0 AS cor0
----
10
44
45

query I rowsort
SELECT + col2 * + col0 + - col2 AS col2 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT - + col0 + ( - 86 ) FROM tab0 AS cor0
----
-110
-121
-175

query I rowsort
SELECT ALL + col1 * - ( - 49 ) FROM tab1 AS cor0
----
1274
490
637

query I rowsort
SELECT - + col1 * 54 + col2 AS col0 FROM tab0 AS cor0
----
-4611
-4832
-5237

query I rowsort
SELECT DISTINCT - 26 + col2 * 2 AS col1 FROM tab2
----
26
28
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8926
SELECT - ( col2 ) * ( + col1 ) * - tab0.col0 + CAST( + ( - col1 ) AS SIGNED ) + col1 AS col1 FROM tab0
----
3395
664118
68112

skipif mysql # not compatible
query I rowsort label-8926
SELECT - ( col2 ) * ( + col1 ) * - tab0.col0 + CAST ( + ( - col1 ) AS INTEGER ) + col1 AS col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT - col0 + + col1 + - col1 * + tab2.col0 FROM tab2
----
-1405
-193
-4621

query I rowsort
SELECT ALL + + col2 + 73 * - col1 AS col0 FROM tab1 AS cor0
----
-1844
-673
-853

query I rowsort
SELECT DISTINCT col1 + - 60 * 5 FROM tab1 AS cor0
----
-274
-287
-290

onlyif mysql # use DIV operator for integer division
query I rowsort label-8930
SELECT - col2 DIV + col0 + 96 FROM tab1 cor0
----
78
95
96

skipif mysql # not compatible
query I rowsort label-8930
SELECT - col2 / + col0 + 96 FROM tab1 cor0
----
78
95
96

query I rowsort
SELECT DISTINCT + col2 + - ( col0 ) FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL tab0.col2 + col1 * col0 + - col1 AS col0 FROM tab0 WHERE NULL NOT IN ( col1 + col2 + col2 )
----

query I rowsort
SELECT + col2 + - col0 - col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT tab2.col2 * + col2 AS col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT DISTINCT col2 + col1 * - 69 AS col2 FROM tab2 AS cor0
----
-1135
-2112
-4045

query I rowsort
SELECT + col0 + col1 * col2 AS col1 FROM tab1
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-8937
SELECT ALL col2 + col1 * col2 DIV col1 AS col1 FROM tab1
----
108
114
192

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL col2 + col1 * col2 / col1 AS col1 FROM tab1
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-8938
SELECT col1 DIV + col0 + + col0 + col1 AS col2 FROM tab2
----
137
42
96

skipif mysql # not compatible
query I rowsort label-8938
SELECT col1 / + col0 + + col0 + col1 AS col2 FROM tab2
----
137
42
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 + col0 col1 FROM tab0
----
20
31
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8940
SELECT DISTINCT + 19 + - col2 * + CAST( + col0 AS SIGNED ) FROM tab2
----
-170
-2009
-2983

skipif mysql # not compatible
query I rowsort label-8940
SELECT DISTINCT + 19 + - col2 * + CAST ( + col0 AS INTEGER ) FROM tab2
----
-170
-2009
-2983

query I rowsort
SELECT col1 + col0 * ( - 73 ) + col1 AS col1 FROM tab0
----
-1580
-2361
-6315

query I rowsort
SELECT 38 + + col2 * col1 FROM tab0
----
135
2876
7500

query I rowsort
SELECT - 14 + + col2 * + col2 * + 99 FROM tab0
----
107797
665662
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8944
SELECT + col1 * + col1 + CAST( 49 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
7445
8330
9458

skipif mysql # not compatible
query I rowsort label-8944
SELECT + col1 * + col1 + CAST ( 49 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
7445
8330
9458

query I rowsort
SELECT ALL + 11 AS col1 FROM tab0 cor0
----
11
11
11

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8946
SELECT ALL CAST( NULL AS SIGNED ) + 4 FROM tab0, tab1 cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45

skipif mysql # not compatible
query I rowsort label-8946
SELECT ALL CAST ( NULL AS INTEGER ) + 4 FROM tab0, tab1 cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to 76933ee8cce600e48802fbdea2376d45

query I rowsort
SELECT - - col1 * - col2 + - 21 FROM tab2 cor0
----
-1555
-667
-858

query I rowsort
SELECT + cor0.col0 + - 62 * - 66 * cor0.col2 FROM tab2 AS cor0
----
106470
110491
155575

query I rowsort
SELECT + col2 + + col1 + col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT - 77 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT - col2 + - 68 + 57 AS col0 FROM tab1 AS cor0
----
-107
-65
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 * - 19 + - cor0.col2 + + cor0.col2 col1 FROM tab1 AS cor0
----
-145920
-3078
-69312

query I rowsort
SELECT DISTINCT - col0 * + ( - col2 * col1 ) FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT col1 + col0 + ( col1 * - col1 ) FROM tab0 AS cor0
----
-7286
-8101
-9277

query I rowsort
SELECT ALL + col0 + 80 FROM tab2 cor0
----
158
159
87

query I rowsort
SELECT DISTINCT + cor0.col1 - + col2 * col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT + col1 + + ( + 79 ) AS col2 FROM tab0 cor0
----
165
170
176

query I rowsort
SELECT 0 + col0 + col0 * col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT cor0.col2 * + cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 8a9dbff4c424879f0bb94abfbb1a134b

query I rowsort
SELECT + + col1 + col1 + col1 AS col0 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT ALL 3 * cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 643559ac626975360fee96de89aa95ee

query I rowsort
SELECT - ( - 42 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # use DIV operator for integer division
query I rowsort label-8963
SELECT ALL col0 + cor0.col0 DIV - 96 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL col0 + cor0.col0 / - 96 AS col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-8964
SELECT 58 DIV cor0.col1 FROM tab2 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-8964
SELECT 58 / cor0.col1 FROM tab2 AS cor0
----
0
1
3

query I rowsort
SELECT - - col2 + col0 * col2 + + col0 FROM tab1 cor0
----
219
3769
7856

query I rowsort
SELECT cor0.col2 + - 92 FROM tab2, tab1 AS cor0
----
9 values hashing to cad8463b73f4b9560c5db4f0c07c299e

query I rowsort
SELECT DISTINCT + cor2.col2 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-8968
SELECT ALL col0 + col1 + CAST( + col1 AS SIGNED ) * col1 DIV + col0 AS col2 FROM tab1
----
254
75
95

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL col0 + col1 + CAST ( + col1 AS INTEGER ) * col1 / + col0 AS col2 FROM tab1
----
254
75
95

query I rowsort
SELECT DISTINCT + 14 + + col1 FROM tab2
----
31
45
73

query I rowsort
SELECT 6 + - col2 + 84 * + col2 AS col1 FROM tab2
----
2164
2247
3160

query I rowsort
SELECT col1 + - col2 + 89 AS col1 FROM tab1
----
42
6
61

query I rowsort
SELECT 39 * col0 * tab2.col2 FROM tab2
----
117078
7371
79092

query I rowsort
SELECT DISTINCT + + 9 * col0 FROM tab0 AS cor0
----
216
315
801

query I rowsort
SELECT DISTINCT - tab2.col2 + + col0 * col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT col2 * + col2 * - 94 + + col2 FROM tab1
----
-274050
-305349
-866208

query I rowsort
SELECT ALL + col0 * - col2 + col1 + - col2 * col1 FROM tab2 AS cor0
----
-3503
-3631
-995

onlyif mysql # use DIV operator for integer division
query I rowsort label-8977
SELECT ALL + cor0.col1 DIV - cor0.col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL + cor0.col1 / - cor0.col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT + cor0.col0 AS col2 FROM tab1, tab2, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL col1 + col1 - tab0.col0 FROM tab0
----
148
159
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-8980
SELECT - tab0.col0 DIV tab0.col2 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-8980
SELECT - tab0.col0 / tab0.col2 FROM tab0
----
-1
-35
0

query I rowsort
SELECT col0 * col0 + col0 * col0 + col1 AS col1 FROM tab0
----
1238
15933
2547

query I rowsort
SELECT col1 + cor0.col2 * col0 * + col1 AS col0 FROM tab1 cor0
----
36490
4238
99853

query I rowsort
SELECT DISTINCT + + 24 + + 33 FROM tab2 AS cor0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - cor0.col0 col1 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8985
SELECT + CAST( ( - col0 ) AS SIGNED ) * - col1 + col0 * col1 AS col2 FROM tab2 AS cor0
----
2686
434
9204

skipif mysql # not compatible
query I rowsort label-8985
SELECT + CAST ( ( - col0 ) AS INTEGER ) * - col1 + col0 * col1 AS col2 FROM tab2 AS cor0
----
2686
434
9204

query I rowsort
SELECT ALL - tab2.col2 * 22 FROM tab2
----
-572
-594
-836

query I rowsort
SELECT + 75 - cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 9cc707ebe3ac352dd6a326f4ba080035

query I rowsort
SELECT - ( col2 ) * col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT ( + col2 ) * + col0 - + col1 FROM tab0
----
-62
706
7207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col2 col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT cor0.col2 * col1 + col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8992
SELECT ( tab0.col2 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8992
SELECT ( tab0.col2 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ( + tab1.col1 ) * + col1 AS col1 FROM tab1
----
100
169
676

query I rowsort
SELECT col0 * + col2 * + col2 AS col1 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT - col0 + + col2 * col0 FROM tab2
----
182
1950
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 - col1 col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT + tab1.col1 * 86 FROM tab1
----
1118
2236
860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 98 * col1 col2 FROM tab0 AS cor0
----
8428
8918
9506

query I rowsort
SELECT - 44 * col2 FROM tab2 cor0
----
-1144
-1188
-1672

query I rowsort
SELECT DISTINCT cor2.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
7
78
79

query I rowsort
SELECT DISTINCT tab1.col2 + + ( tab1.col1 * + 57 ) AS col0 FROM tab1
----
1536
627
837

query I rowsort
SELECT - cor0.col2 * + col1 * 43 AS col0 FROM tab1 AS cor0
----
-24510
-53664
-60372

query I rowsort
SELECT DISTINCT 69 * + cor0.col2 + - col1 FROM tab2 AS cor0
----
1735
1832
2605

query I rowsort
SELECT DISTINCT + + col0 - + cor0.col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL col0 - col1 * - col1 AS col2 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT ALL - 6 * col2 * + 62 + - 30 * col0 + col0 FROM tab2 AS cor0
----
-10247
-11934
-16427

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 col0 FROM tab2 AS cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT - 51 - col2 * + col0 FROM tab2 AS cor0
----
-2079
-240
-3053

onlyif mysql # use DIV operator for integer division
query I rowsort label-9009
SELECT DISTINCT + 87 + - cor0.col0 + 83 DIV col0 AS col0 FROM tab0 AS cor0
----
-2
54
66

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT + 87 + - cor0.col0 + 83 / col0 AS col0 FROM tab0 AS cor0
----
-2
54
66

query I rowsort
SELECT DISTINCT - 14 * + col1 + + ( cor0.col1 ) FROM tab2 AS cor0
----
-221
-403
-767

query I rowsort
SELECT col2 * + ( + ( - col1 ) ) + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-9012
SELECT + col1 * col0 DIV col2 AS col0 FROM tab0 AS cor0
----
3395
62
98

skipif mysql # not compatible
query I rowsort label-9012
SELECT + col1 * col0 / col2 AS col0 FROM tab0 AS cor0
----
3395
62
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9013
SELECT + col1 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9013
SELECT + col1 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 79 AS col1 FROM tab0 cor0
----
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9015
SELECT DISTINCT - - CAST( ( col2 ) AS SIGNED ) FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT - - CAST ( ( col2 ) AS INTEGER ) FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT - 91 * 37 + col1 + + 85 FROM tab1 AS cor0
----
-3256
-3269
-3272

query I rowsort
SELECT ALL + ( col0 ) - col1 FROM tab1 cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col0 * col1 col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT col2 * - 33 AS col1 FROM tab0
----
-1089
-2706
-33

onlyif mysql # use DIV operator for integer division
query I rowsort label-9020
SELECT col0 DIV - ( col2 ) AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9020
SELECT col0 / - ( col2 ) AS col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT cor1.col1 + + 18 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c20540cd8118f7f814eb949c69a86f8d

query I rowsort
SELECT DISTINCT ( 95 ) - col2 FROM tab0 AS cor0
----
13
62
94

query I rowsort
SELECT col2 - + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9024
SELECT + ( col1 ) - + col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT + ( col1 ) - + col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9025
SELECT DISTINCT + - col0 + col1 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
-64
-80
5

skipif mysql # not compatible
query I rowsort label-9025
SELECT DISTINCT + - col0 + col1 / cor0.col0 AS col0 FROM tab1 AS cor0
----
-64
-80
5

query I rowsort
SELECT ALL 46 * - col2 + + col2 * - cor0.col1 FROM tab1 AS cor0
----
-3192
-3888
-5664

query I rowsort
SELECT DISTINCT + col0 + ( col1 ) * + ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 * cor0.col2 - col2 col1 FROM tab0 AS cor0
----
-1394
-17
-561

onlyif mysql # use DIV operator for integer division
query I rowsort label-9029
SELECT cor0.col1 * + col1 - cor0.col0 DIV - cor0.col2 FROM tab1 cor0
----
101
169
676

skipif mysql # not compatible
query I rowsort label-9029
SELECT cor0.col1 * + col1 - cor0.col0 / - cor0.col2 FROM tab1 cor0
----
101
169
676

query I rowsort
SELECT DISTINCT - 36 + - col1 AS col1 FROM tab0 cor0
----
-122
-127
-133

query I rowsort
SELECT ALL + 88 * + col1 FROM tab0 AS cor0
----
7568
8008
8536

query I rowsort
SELECT col2 * col2 + col0 * col0 + + col1 FROM tab1 AS cor0
----
15629
2951
7355

query I rowsort
SELECT DISTINCT cor0.col0 + + ( - cor0.col2 ) FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL + col1 * 40 + col2 AS col1 FROM tab1
----
1094
457
616

query I rowsort
SELECT DISTINCT col2 * + 32 AS col2 FROM tab0 AS cor0
----
1056
2624
32

query I rowsort
SELECT col1 * - col2 + + col0 + - col1 AS col0 FROM tab1 AS cor0
----
-1181
-1427
-516

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9037
SELECT ALL - - ( col0 ) * col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL - - ( col0 ) * col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9038
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 - ( col0 ) AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL - - 93 AS col1 FROM tab0 AS cor0
----
93
93
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9041
SELECT ALL cor0.col0 DIV - 69 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL cor0.col0 / - 69 AS col2 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9042
SELECT - 15 DIV + col1 - col2 * 21 FROM tab0 AS cor0
----
-1722
-21
-693

skipif mysql # not compatible
query I rowsort label-9042
SELECT - 15 / + col1 - col2 * 21 FROM tab0 AS cor0
----
-1722
-21
-693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col1 + 31 * 57 + + col1 col2 FROM tab2 AS cor0
----
-1655
1495
837

query I rowsort
SELECT DISTINCT 29 + + 9 AS col1 FROM tab0
----
38

query I rowsort
SELECT ALL + 64 + - tab1.col1 * col0 * 70 AS col1 FROM tab1
----
-44736
-5396
-72736

query I rowsort
SELECT DISTINCT + - col0 + 75 * + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
21596
260997
72068

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9047
SELECT ALL + + col0 * - CAST( NULL AS SIGNED ) + col2 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-9047
SELECT ALL + + col0 * - CAST ( NULL AS INTEGER ) + col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + 41 AS col2 FROM tab2
----
67
68
79

query I rowsort
SELECT ( 36 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # use DIV operator for integer division
query I rowsort label-9050
SELECT ALL + col1 DIV + 56 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL + col1 / + 56 AS col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9051
SELECT col1 + + CAST( + col2 AS SIGNED ) * + tab1.col1 FROM tab1
----
1261
1430
580

skipif mysql # not compatible
query I rowsort label-9051
SELECT col1 + + CAST ( + col2 AS INTEGER ) * + tab1.col1 FROM tab1
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 * col2 + + col2 col0 FROM tab2 cor0
----
1066
1107
1558

query I rowsort
SELECT ALL - - col2 - - col0 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 col1 FROM tab0 AS cor0
----
-61
-61
-61

query I rowsort
SELECT DISTINCT + - col2 * col1 * - col1 AS col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL - 37 * cor0.col1 FROM tab1 AS cor0
----
-370
-481
-962

query I rowsort
SELECT - - col1 * 80 + + col1 FROM tab1 AS cor0
----
1053
2106
810

query I rowsort
SELECT ALL + - col2 * ( + col2 * + col2 ) FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT + cor0.col0 * 32 + cor0.col1 FROM tab2 AS cor0
----
2545
255
2555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 94 col1 FROM tab2 AS cor0
----
658
7332
7426

onlyif mysql # use DIV operator for integer division
query I rowsort label-9061
SELECT ALL - + col1 + col1 DIV - ( col2 ) FROM tab0 cor0
----
-194
-88
-92

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL - + col1 + col1 / - ( col2 ) FROM tab0 cor0
----
-194
-88
-92

query I rowsort
SELECT - col2 + col2 * - ( col2 + - cor0.col2 * cor0.col2 ) FROM tab2 AS cor0
----
16874
18927
53390

query I rowsort
SELECT ALL + + 34 + col0 FROM tab1 AS cor0
----
114
37
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-9064
SELECT + - ( col1 ) DIV - col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9064
SELECT + - ( col1 ) / - col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col2 * col0 * + col1 AS col0 FROM tab2 cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + cor0.col1 * ( col0 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT + col2 * + 62 AS col0 FROM tab1 cor0
----
3348
3534
5952

query I rowsort
SELECT col0 * + col0 + cor0.col1 * 47 AS col0 FROM tab0 AS cor0
----
12198
4618
5784

query I rowsort
SELECT - 3 * + 20 * col2 FROM tab0 cor0
----
-1980
-4920
-60

query I rowsort
SELECT DISTINCT - + 46 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-15
-29
13

query I rowsort
SELECT DISTINCT - tab2.col1 + + cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to a315d120f944e987e8b5f24efc4da004

onlyif mysql # use DIV operator for integer division
query I rowsort label-9073
SELECT DISTINCT 5 DIV col0 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT 5 / col0 AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL + ( - 67 * col2 ) AS col0 FROM tab1
----
-3618
-3819
-6432

query I rowsort
SELECT - cor0.col1 * - 75 AS col0 FROM tab1 AS cor0
----
1950
750
975

query I rowsort
SELECT + - col0 * 31 AS col1 FROM tab1 AS cor0
----
-1984
-2480
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9077
SELECT col2 DIV 46 AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9077
SELECT col2 / 46 AS col1 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9078
SELECT DISTINCT col0 + 38 DIV cor0.col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT col0 + 38 / cor0.col2 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 * col1 col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + tab1.col2 + - 88 AS col2 FROM tab1
----
-31
-34
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9081
SELECT + CAST( NULL AS SIGNED ) + cor0.col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9081
SELECT + CAST ( NULL AS INTEGER ) + cor0.col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col0 col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-7
-78
-79

query I rowsort
SELECT + col0 * ( 0 ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT 65 AS col0 FROM tab2 cor0
----
65
65
65

query I rowsort
SELECT - + col0 + + 36 * + col1 AS col1 FROM tab0 AS cor0
----
3072
3187
3457

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9086
SELECT + CAST( NULL AS SIGNED ) + - 82 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT + CAST ( NULL AS INTEGER ) + - 82 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9087
SELECT + CAST( 66 AS SIGNED ) AS col2 FROM tab2 cor0
----
66
66
66

skipif mysql # not compatible
query I rowsort label-9087
SELECT + CAST ( 66 AS INTEGER ) AS col2 FROM tab2 cor0
----
66
66
66

query I rowsort
SELECT ALL + - col1 * col0 + col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT + - col2 + + col2 * 33 * col2 + + ( + col1 * + cor0.col1 ) AS col0 FROM tab0 AS cor0
----
230091
43300
9441

query I rowsort
SELECT - col0 + + col2 + + col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + col0 * + ( - col1 ) + + col2 FROM tab2 AS cor0
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + cor0.col2 * - col1 col0 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT cor0.col1 - + 14 FROM tab1, tab0 AS cor0
----
9 values hashing to e36a45752f8c153f7c91c8154f8a920f

onlyif mysql # use DIV operator for integer division
query I rowsort label-9094
SELECT DISTINCT - col1 DIV col0 + ( + 78 ) - tab0.col0 FROM tab0
----
-12
41
51

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT - col1 / col0 + ( + 78 ) - tab0.col0 FROM tab0
----
-12
41
51

query I rowsort
SELECT ALL + col0 * - ( 46 ) FROM tab1 AS cor0
----
-138
-2944
-3680

query I rowsort
SELECT DISTINCT col2 * + col1 + 59 FROM tab0 AS cor0
----
156
2897
7521

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9097
SELECT + col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9097
SELECT + col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + cor0.col0 * + 2 - col1 FROM tab1 AS cor0
----
-20
118
147

query I rowsort
SELECT ALL col0 + + col1 * col1 + col2 FROM tab1
----
221
345
733

query I rowsort
SELECT DISTINCT + 0 * col1 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 1 * col0 AS col0 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col2 * + tab2.col1 + col1 col0 FROM tab2
----
1671
742
875

query I rowsort
SELECT + col1 * - 7 * + 37 + - col0 * + ( - tab2.col0 + + col1 ) FROM tab2
----
-13799
-8197
495

query I rowsort
SELECT col0 + - 70 FROM tab1
----
-6
-67
10

query I rowsort
SELECT DISTINCT + col0 + 53 * col2 FROM tab1
----
2865
3085
5168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 + + cor0.col0 * - col1 col2 FROM tab1 AS cor0
----
-20
-582
-982

query I rowsort
SELECT ALL cor0.col2 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9108
SELECT DISTINCT + col2 DIV - col0 + 59 - 52 * - cor0.col1 FROM tab0 AS cor0
----
4530
4791
5103

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT + col2 / - col0 + 59 - 52 * - cor0.col1 FROM tab0 AS cor0
----
4530
4791
5103

onlyif mysql # use DIV operator for integer division
query I rowsort label-9109
SELECT DISTINCT + cor0.col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-9109
SELECT DISTINCT + cor0.col2 / + col0 AS col0 FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT ( - 18 ) FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e

query I rowsort
SELECT ALL ( + ( - col2 ) * col2 + + col1 ) FROM tab0
----
-1003
-6633
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9112
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT CAST ( NULL AS REAL ) * col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col1 - + col2 AS col2 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT ALL 13 * cor0.col1 AS col2 FROM tab2 cor0
----
221
403
767

query I rowsort
SELECT DISTINCT + 49 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
135
140
146

onlyif mysql # use DIV operator for integer division
query I rowsort label-9116
SELECT ALL - 52 DIV col0 FROM tab1 AS cor0
----
-17
0
0

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL - 52 / col0 FROM tab1 AS cor0
----
-17
0
0

query I rowsort
SELECT - 43 + col0 * col2 FROM tab1 AS cor0
----
119
3605
7637

query I rowsort
SELECT - col2 * col1 + ( - col1 ) * col0 FROM tab2
----
-1054
-1989
-6136

onlyif mysql # use DIV operator for integer division
query I rowsort label-9119
SELECT col0 * tab1.col2 DIV - 6 - - col1 FROM tab1
----
-1
-1267
-598

skipif mysql # not compatible
query I rowsort label-9119
SELECT col0 * tab1.col2 / - 6 - - col1 FROM tab1
----
-1
-1267
-598

query I rowsort
SELECT DISTINCT + - 28 * cor0.col2 - - 33 AS col0 FROM tab1 AS cor0
----
-1479
-1563
-2655

query I rowsort
SELECT ALL 48 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e

query I rowsort
SELECT + 65 + col0 FROM tab2 cor0
----
143
144
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9123
SELECT DISTINCT + col0 * + col1 - + CAST( col0 + col1 * + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-601
476
791

skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT + col0 * + col1 - + CAST ( col0 + col1 * + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-601
476
791

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9124
SELECT ALL + 27 + - cor0.col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL + 27 + - cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 * - cor1.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 5bcee6a8ffbd87f0429551bc7e631cdb

query I rowsort
SELECT DISTINCT col2 + - ( col1 ) * + cor0.col2 + + col1 FROM tab0 AS cor0
----
-2719
-7289
1

query I rowsort
SELECT ALL - + col1 * col0 - - 66 * col2 AS col2 FROM tab0 AS cor0
----
-2687
-3329
114

query I rowsort
SELECT + - col1 + col0 AS col2 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - - col0 - - 28 * col0 FROM tab2 cor0
----
203
2262
2291

query I rowsort
SELECT ALL + col2 * + 35 + - col0 * + cor0.col0 * - 83 + - col0 FROM tab1 AS cor0
----
2634
341899
534480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9131
SELECT - cor0.col0 + - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-178
-48
-70

skipif mysql # not compatible
query I rowsort label-9131
SELECT - cor0.col0 + - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-178
-48
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + - col0 * - col2 * col2 col2 FROM tab0 AS cor0
----
26160
598525
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9133
SELECT - col2 * CAST( col2 AS SIGNED ) FROM tab0 cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-9133
SELECT - col2 * CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-9134
SELECT ALL + - col2 DIV - 40 + col0 FROM tab1 AS cor0
----
4
65
82

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL + - col2 / - 40 + col0 FROM tab1 AS cor0
----
4
65
82

query I rowsort
SELECT DISTINCT cor0.col2 * - 42 * col0 FROM tab2 AS cor0
----
-126084
-7938
-85176

onlyif mysql # use DIV operator for integer division
query I rowsort label-9136
SELECT col0 + 13 DIV col2 FROM tab0
----
24
48
89

skipif mysql # not compatible
query I rowsort label-9136
SELECT col0 + 13 / col2 FROM tab0
----
24
48
89

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 4fe4780e49e612b93957f575d9b3e89f

query I rowsort
SELECT + col0 + + col0 + - col2 * + 74 FROM tab1 AS cor0
----
-3990
-4090
-6944

query I rowsort
SELECT DISTINCT - - cor0.col2 + + col0 * - col1 + col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1239
-3359
-719

query I rowsort
SELECT DISTINCT - - 14 + cor0.col2 * col0 FROM tab2 cor0
----
203
2042
3016

query I rowsort
SELECT 13 * col0 + col1 + col0 * 49 FROM tab1 AS cor0
----
212
3978
4973

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) * - col0 col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - ( 4 ) + col0 AS col1 FROM tab2 AS cor0
----
3
74
75

query I rowsort
SELECT + 61 * 91 + col0 * - 31 AS col2 FROM tab0 AS cor0
----
2792
4466
4807

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 col2 FROM tab2 cor0
----
-37

query I rowsort
SELECT ALL 91 * cor0.col2 AS col0 FROM tab0 AS cor0
----
3003
7462
91

query I rowsort
SELECT DISTINCT - cor0.col0 * 51 + + col0 * - cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
-20232
-3010
-654061

query I rowsort
SELECT cor0.col1 * ( col0 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + - 20 * + col0 + - col0 * + 69 AS col1 FROM tab2 cor0
----
-623
-6942
-7031

query I rowsort
SELECT DISTINCT - + ( + 53 ) * cor0.col0 * - col2 FROM tab2 AS cor0
----
10017
107484
159106

query I rowsort
SELECT - - col0 + col0 * ( col2 ) AS col0 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-9152
SELECT DISTINCT - col0 + + col1 DIV col1 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-9152
SELECT DISTINCT - col0 + + col1 / col1 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT ALL + ( - 65 * col2 ) FROM tab0
----
-2145
-5330
-65

query I rowsort
SELECT + 77 * + col1 FROM tab0 AS cor0
----
6622
7007
7469

onlyif mysql # use DIV operator for integer division
query I rowsort label-9155
SELECT + 70 DIV col0 col1 FROM tab1 AS cor0
----
0
1
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9155
SELECT + 70 / col0 col1 FROM tab1 AS cor0
----
0
1
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-9156
SELECT ALL col0 * col2 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-9156
SELECT ALL col0 * col2 / - col2 col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT ALL 70 * - tab1.col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
81 values hashing to 0d039b3b310f22f36c77df7908413595

query I rowsort
SELECT ALL ( 17 ) FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT - 60 * col0 AS col1 FROM tab2 AS cor0
----
-420
-4680
-4740

query I rowsort
SELECT DISTINCT + ( - 15 * tab0.col1 ) FROM tab0
----
-1290
-1365
-1455

query I rowsort
SELECT ALL - + col0 * + col0 * cor0.col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

query I rowsort
SELECT 5 * col0 AS col0 FROM tab2 AS cor0
----
35
390
395

query I rowsort
SELECT - - cor0.col0 + 74 * + 6 FROM tab0 AS cor0
----
468
479
533

query I rowsort
SELECT ALL + col0 + col2 * - 78 FROM tab0 AS cor0
----
-2550
-43
-6307

query I rowsort
SELECT DISTINCT + 28 + col1 FROM tab1 AS cor0
----
38
41
54

query I rowsort
SELECT ALL - - col1 * col0 + + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT - col0 + - cor0.col1 FROM tab2 cor0
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * ( col0 ) + - cor0.col0 * - col2 col1 FROM tab0 AS cor0
----
14596
1584
70

query I rowsort
SELECT DISTINCT + col0 + - cor0.col2 AS col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT ALL - cor0.col0 * + ( col1 ) * col0 - + col1 AS col2 FROM tab1 AS cor0
----
-260
-40970
-83213

query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 + col1 + col1 AS col2 FROM tab2 AS cor0
----
1652
680
899

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9172
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9172
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 + - 84 FROM tab2 AS cor0
----
-25
-53
-67

query I rowsort
SELECT + + col1 * + 25 AS col0 FROM tab0 AS cor0
----
2150
2275
2425

query I rowsort
SELECT - - 8 * col1 FROM tab1 AS cor0
----
104
208
80

query I rowsort
SELECT ALL - + col1 * + cor0.col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ( col2 ) + + 45 FROM tab1 AS cor0
----
102
141
99

query I rowsort
SELECT + ( + col0 ) * + col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL - + 4 FROM tab1, tab1 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT - col2 * - col0 + col1 + - 86 FROM tab0 AS cor0
----
46
7303
792

query I rowsort
SELECT col0 - - col1 * + 98 AS col2 FROM tab1 AS cor0
----
1044
1354
2551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9182
SELECT ALL CAST( NULL AS DECIMAL ) * - col1 + col2 / + 35 + + col2 * col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL CAST ( NULL AS REAL ) * - col1 + col2 / + 35 + + col2 * col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 98 + col1 * + col2 * - 19 col1 FROM tab0 cor0
----
-132860
-45494
7663

onlyif mysql # use DIV operator for integer division
query I rowsort label-9184
SELECT tab0.col2 + - col1 DIV col2 FROM tab0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-9184
SELECT tab0.col2 + - col1 / col2 FROM tab0
----
-96
31
81

query I rowsort
SELECT DISTINCT - col1 * 76 FROM tab0 AS cor0
----
-6536
-6916
-7372

query I rowsort
SELECT ALL 74 * col2 * col0 AS col2 FROM tab2
----
13986
150072
222148

query I rowsort
SELECT DISTINCT 66 FROM tab2, tab0, tab1 AS cor0
----
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-9188
SELECT - - ( cor0.col0 ) + - cor0.col2 DIV 20 FROM tab1 cor0
----
1
62
76

skipif mysql # not compatible
query I rowsort label-9188
SELECT - - ( cor0.col0 ) + - cor0.col2 / 20 FROM tab1 cor0
----
1
62
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-9189
SELECT ALL - col1 DIV + col1 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-9189
SELECT ALL - col1 / + col1 col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 31 + + tab0.col2 FROM tab0
----
113
32
64

query I rowsort
SELECT - 50 + + 58 FROM tab1 AS cor0
----
8
8
8

query I rowsort
SELECT ALL - ( 36 ) AS col0 FROM tab2 AS cor0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT 36 + - 84 * col1 AS col2 FROM tab1 AS cor0
----
-1056
-2148
-804

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9194
SELECT ALL + 25 * ( col2 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL + 25 * ( col2 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col1 + + col1 * 6 * col0 FROM tab2 AS cor0
----
1333
27671
8075

onlyif mysql # use DIV operator for integer division
query I rowsort label-9196
SELECT ALL + 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-9196
SELECT ALL + col0 / col2 col0 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT + + ( - col0 ) - + col2 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT + 13 * - col1 + - cor0.col2 FROM tab0 cor0
----
-1151
-1262
-1265

query I rowsort
SELECT + 71 + col1 * 33 FROM tab0 AS cor0
----
2909
3074
3272

query I rowsort
SELECT + - col2 * + col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT + - col0 * cor0.col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - col1 * - col2 * + col2 FROM tab2 cor0
----
22599
24548
39884

query I rowsort
SELECT ALL - col2 - - 15 * col1 FROM tab2
----
217
438
859

query I rowsort
SELECT ALL + ( col1 ) * col0 AS col0 FROM tab0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9205
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - col2 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT + CAST ( NULL AS REAL ) * - col2 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL + + col1 * - 44 AS col1 FROM tab0 AS cor0
----
-3784
-4004
-4268

onlyif mysql # use DIV operator for integer division
query I rowsort label-9207
SELECT ALL col1 DIV + ( 54 ) - col2 AS col1 FROM tab0 cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL col1 / + ( 54 ) - col2 AS col1 FROM tab0 cor0
----
-32
-81
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 51 col2 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT - + col2 * + col1 + col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL - + col1 * ( 9 ) + col1 FROM tab2 cor0
----
-136
-248
-472

query I rowsort
SELECT DISTINCT - col0 * ( - col0 ) + col1 AS col2 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT + cor1.col1 + + 25 * cor1.col2 AS col1 FROM tab2 cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 84f77654a4466eaad442b0b99b8fe2bb

query I rowsort
SELECT ALL tab1.col2 * 42 AS col0 FROM tab1
----
2268
2394
4032

query I rowsort
SELECT + col1 + - col2 * 53 AS col2 FROM tab0 AS cor0
----
-1663
-4255
44

query I rowsort
SELECT + col0 + - 94 FROM tab2 AS cor0
----
-15
-16
-87

query I rowsort
SELECT + tab0.col0 + tab0.col1 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT - col1 * ( + 14 ) FROM tab0
----
-1204
-1274
-1358

query I rowsort
SELECT col2 * col1 * tab0.col0 - - col2 AS col2 FROM tab0
----
3396
664200
68145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 col0 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL - col1 * 20 * + col0 FROM tab0
----
-161980
-41280
-67900

query I rowsort
SELECT ALL + col1 + 37 * + col2 AS col2 FROM tab0 AS cor0
----
1307
134
3125

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + col1 AS REAL ) + col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + - 23 AS col1 FROM tab1 AS cor0
----
-23

query I rowsort
SELECT - 9 * 39 FROM tab1 AS cor0
----
-351
-351
-351

query I rowsort
SELECT - 69 + ( col2 ) AS col0 FROM tab2 AS cor0
----
-31
-42
-43

query I rowsort
SELECT col0 * ( + col0 ) AS col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT - - ( ( col1 ) ) + col0 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 60 + - cor0.col1 col0 FROM tab1 AS cor0
----
34
47
50

query I rowsort
SELECT ALL + ( 67 ) FROM tab0 cor0
----
67
67
67

query I rowsort
SELECT DISTINCT + - 43 AS col1 FROM tab0 AS cor0
----
-43

query I rowsort
SELECT ALL - - ( + col1 ) + col1 AS col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT + cor0.col2 + 20 * + col2 * col0 FROM tab2 AS cor0
----
3807
40586
60078

onlyif mysql # use DIV operator for integer division
query I rowsort label-9233
SELECT ALL - 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-9233
SELECT ALL - col1 / + col1 col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 28 ) * + col1 col0 FROM tab0 cor0
----
2408
2548
2716

query I rowsort
SELECT DISTINCT + col0 + + col0 + - col1 * col0 AS col0 FROM tab2 AS cor0
----
-1185
-203
-4446

query I rowsort
SELECT - + ( + 12 ) * - col0 AS col0 FROM tab0 AS cor0
----
1068
288
420

query I rowsort
SELECT DISTINCT + + 18 + col2 FROM tab2 AS cor0
----
44
45
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-9238
SELECT ALL col2 DIV + col0 + tab2.col1 DIV 59 FROM tab2
----
0
1
3

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL col2 / + col0 + tab2.col1 / 59 FROM tab2
----
0
1
3

query I rowsort
SELECT ALL + 17 * col1 FROM tab1 AS cor0
----
170
221
442

query I rowsort
SELECT - 61 * col0 + + ( - col0 * - col2 ) FROM tab1 AS cor0
----
-21
-256
2800

query I rowsort
SELECT DISTINCT + - col1 * - col1 + ( - 42 ) FROM tab2 AS cor0
----
247
3439
919

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * cor0.col1 + - cor0.col1 col1 FROM tab2 AS cor0
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT - - 63 - + cor0.col0 * - col0 FROM tab0 AS cor0
----
1288
639
7984

query I rowsort
SELECT DISTINCT col1 + + col2 * col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - col2 + 87 * - col1 AS col1 FROM tab0 AS cor0
----
-7515
-7999
-8440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * - tab0.col2 * + 54 col2 FROM tab0
----
-363096
-54
-58806

query I rowsort
SELECT - col1 * - ( + 21 ) + cor0.col0 + col2 FROM tab2 AS cor0
----
1343
474
685

query I rowsort
SELECT DISTINCT - col1 * - 37 + + col1 * col2 * - 78 FROM tab0 AS cor0
----
-218182
-3977
-578669

query I rowsort
SELECT + + col2 + + col2 * - col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT + ( - cor0.col2 ) + + ( ( + col2 ) ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 12 + col0 FROM tab1 AS cor0
----
-9
52
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + col1 * + col0 col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + - col0 * col2 + + 74 AS col1 FROM tab1 AS cor0
----
-3574
-7606
-88

query I rowsort
SELECT 1 * - tab1.col0 * - tab1.col2 AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT 61 + 10 * col1 FROM tab1
----
161
191
321

query I rowsort
SELECT - 6 * col1 + - col2 FROM tab2 AS cor0
----
-140
-213
-380

query I rowsort
SELECT - col0 * col1 * + col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + 39 * col1 AS col0 FROM tab1
----
1014
390
507

query I rowsort
SELECT ALL + 28 AS col2 FROM tab1
----
28
28
28

query I rowsort
SELECT col1 + + tab2.col0 + 10 AS col0 FROM tab2
----
106
147
48

query I rowsort
SELECT col1 * + col0 + col2 AS col2 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT - col1 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-9264
SELECT col0 DIV + col1 + col1 AS col1 FROM tab1 AS cor0
----
16
19
26

skipif mysql # not compatible
query I rowsort label-9264
SELECT col0 / + col1 + col1 AS col1 FROM tab1 AS cor0
----
16
19
26

query I rowsort
SELECT 71 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT - 98 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT ALL + + col2 * col2 + + col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL + cor1.col0 AS col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL 74 * + col2 FROM tab0
----
2442
6068
74

query I rowsort
SELECT + 88 AS col2 FROM tab1 cor0
----
88
88
88

query I rowsort
SELECT DISTINCT + col1 - + tab1.col2 * + col2 AS col2 FROM tab1
----
-2890
-3239
-9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-9272
SELECT ( - col2 ) DIV - ( + col1 ) + col1 * col1 + 34 FROM tab1
----
139
210
712

skipif mysql # not compatible
query I rowsort label-9272
SELECT ( - col2 ) / - ( + col1 ) + col1 * col1 + 34 FROM tab1
----
139
210
712

query I rowsort
SELECT - col2 - + col2 * col2 AS col0 FROM tab1
----
-2970
-3306
-9312

query I rowsort
SELECT 28 * - col1 AS col1 FROM tab0 AS cor0
----
-2408
-2548
-2716

onlyif mysql # use DIV operator for integer division
query I rowsort label-9275
SELECT DISTINCT 33 * + col0 DIV tab1.col0 + - col2 * - tab1.col1 AS col1 FROM tab1
----
1281
1437
603

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT 33 * + col0 / tab1.col0 + - col2 * - tab1.col1 AS col1 FROM tab1
----
1281
1437
603

query I rowsort
SELECT col0 + + col0 * col2 AS col0 FROM tab1
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-9277
SELECT + ( col0 ) DIV CAST( 20 AS SIGNED ) + col2 FROM tab1 cor0
----
100
54
60

skipif mysql # not compatible
query I rowsort label-9277
SELECT + ( col0 ) / CAST ( 20 AS INTEGER ) + col2 FROM tab1 cor0
----
100
54
60

query I rowsort
SELECT - - ( - col1 ) * col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + 50 FROM tab2, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT DISTINCT - col1 * ( col2 ) * - col1 AS col0 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT - col0 * + ( 2 ) AS col1 FROM tab2 AS cor0
----
-14
-156
-158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9282
SELECT col2 * + CAST( ( col1 ) AS SIGNED ) FROM tab1 cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-9282
SELECT col2 * + CAST ( ( col1 ) AS INTEGER ) FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL cor2.col1 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT + + 1 + - 10 * - cor0.col2 FROM tab2 AS cor0
----
261
271
381

onlyif mysql # use DIV operator for integer division
query I rowsort label-9285
SELECT - 16 - - col1 DIV - col0 FROM tab0 AS cor0
----
-17
-18
-19

skipif mysql # not compatible
query I rowsort label-9285
SELECT - 16 - - col1 / - col0 FROM tab0 AS cor0
----
-17
-18
-19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9286
SELECT + CAST( - col2 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-9286
SELECT + CAST ( - col2 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ( + col1 ) * col2 - - 47 FROM tab0 cor0
----
144
2885
7509

query I rowsort
SELECT - - col2 + + col1 AS col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + col2 * - ( - cor0.col1 * col1 ) + col2 * + col2 AS col0 FROM tab2 AS cor0
----
12426
26676
91182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - cor0.col0 col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL - - col2 - + ( 4 ) AS col0 FROM tab1 AS cor0
----
50
53
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + 55 col1 FROM tab0 AS cor0
----
-27
22
54

query I rowsort
SELECT DISTINCT - + col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL cor0.col1 + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9295
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + col1 + col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + col1 + col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL cor0.col2 * ( col0 + 29 ) FROM tab2 AS cor0
----
2782
4104
972

query I rowsort
SELECT ( col2 ) + + col2 AS col2 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9298
SELECT DISTINCT CAST( col0 AS SIGNED ) - col1 AS col0 FROM tab0 AS cor0
----
-2
-62

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT CAST ( col0 AS INTEGER ) - col1 AS col0 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT ALL + col2 + - cor0.col2 * - col1 AS col2 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT ALL - ( + ( cor0.col2 ) ) AS col2 FROM tab1 cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9301
SELECT ALL - cor0.col1 + col0 DIV - col0 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-9301
SELECT ALL - cor0.col1 + col0 / - col0 FROM tab1 AS cor0
----
-11
-14
-27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9302
SELECT ALL + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL + - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 47 * - col0 * - ( col1 ) + - col2 + + 24 FROM tab0
----
159588
380595
96999

query I rowsort
SELECT 68 + col0 + + 94 * + col1 FROM tab0 AS cor0
----
8176
8711
9221

onlyif mysql # use DIV operator for integer division
query I rowsort label-9305
SELECT DISTINCT - 89 + col1 DIV CAST( col0 AS SIGNED ) col1 FROM tab2
----
-85
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT - 89 + col1 / CAST ( col0 AS INTEGER ) col1 FROM tab2
----
-85
-89

query I rowsort
SELECT col2 * col0 * 75 AS col2 FROM tab2
----
14175
152100
225150

query I rowsort
SELECT - col0 * col2 + - tab1.col0 AS col1 FROM tab1
----
-165
-3712
-7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9308
SELECT DISTINCT 72 + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT DISTINCT 72 + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT col1 * col1 + 9 FROM tab1 AS cor0
----
109
178
685

query I rowsort
SELECT - 8 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 852581644118629bf652b1aa4b8f4363

query I rowsort
SELECT + + col1 + col1 * cor0.col2 * cor0.col2 + - col0 * - 65 FROM tab1 AS cor0
----
125021
36660
76037

query I rowsort
SELECT - col1 * col0 * col2 + - 75 + col1 FROM tab0 AS cor0
----
-3373
-664102
-68101

query I rowsort
SELECT - - col0 * 5 + cor0.col1 FROM tab0 AS cor0
----
206
272
536

query I rowsort
SELECT ALL + col0 + + col0 AS col2 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT col2 + - ( 21 ) FROM tab2 AS cor0
----
17
5
6

query I rowsort
SELECT ALL - col2 + 17 FROM tab1 cor0
----
-37
-40
-79

query I rowsort
SELECT ALL col0 + col0 * col1 AS col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT - col2 * col2 * col0 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT + col1 * - 56 FROM tab1 AS cor0
----
-1456
-560
-728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9320
SELECT ALL - col2 + - CAST( col1 AS SIGNED ) - - col2 FROM tab1 cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL - col2 + - CAST ( col1 AS INTEGER ) - - col2 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL + col1 + 90 + ( - col1 ) * 82 FROM tab2 AS cor0
----
-1287
-2421
-4689

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col2 col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - - cor0.col2 + + 32 FROM tab1 AS cor0
----
128
86
89

query I rowsort
SELECT DISTINCT + - cor0.col1 * 74 - - col1 FROM tab0 AS cor0
----
-6278
-6643
-7081

onlyif mysql # use DIV operator for integer division
query I rowsort label-9325
SELECT - col0 DIV + tab0.col2 - 56 AS col0 FROM tab0
----
-56
-57
-91

skipif mysql # not compatible
query I rowsort label-9325
SELECT - col0 / + tab0.col2 - 56 AS col0 FROM tab0
----
-56
-57
-91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9326
SELECT + col2 * + CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-9326
SELECT + col2 * + CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT col2 * + ( + cor0.col1 ) + - col2 + col0 FROM tab2 AS cor0
----
1586
687
817

query I rowsort
SELECT - col2 + ( 32 ) AS col2 FROM tab2 AS cor0
----
-6
5
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9329
SELECT + - col0 + CAST( ( - col0 ) AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-21
-234
-237

skipif mysql # not compatible
query I rowsort label-9329
SELECT + - col0 + CAST ( ( - col0 ) AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-21
-234
-237

query I rowsort
SELECT - + col1 + - 82 * col1 FROM tab0 cor0
----
-7138
-7553
-8051

onlyif mysql # use DIV operator for integer division
query I rowsort label-9331
SELECT DISTINCT + col2 DIV + col0 + - 59 FROM tab2 AS cor0
----
-56
-59

skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT + col2 / + col0 + - 59 FROM tab2 AS cor0
----
-56
-59

query I rowsort
SELECT + col0 * ( col1 ) + - col1 + + cor0.col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
15470
3395
4816

query I rowsort
SELECT col1 + - 34 FROM tab2 AS cor0
----
-17
-3
25

query I rowsort
SELECT - col1 + - ( col0 ) + col1 * + 6 FROM tab1 AS cor0
----
-14
-15
127

query I rowsort
SELECT - 36 * + col2 AS col2 FROM tab0 AS cor0
----
-1188
-2952
-36

query I rowsort
SELECT - col2 + col2 * + tab0.col2 FROM tab0
----
0
1056
6642

onlyif mysql # use DIV operator for integer division
query I rowsort label-9337
SELECT ALL - col1 DIV 66 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9337
SELECT ALL - col1 / 66 AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT + + cor0.col1 * + 14 AS col2 FROM tab0 AS cor0
----
1204
1274
1358

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9339
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9339
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + ( - col1 ) FROM tab1
----
-23
54
67

query I rowsort
SELECT DISTINCT + col1 * - 74 FROM tab1
----
-1924
-740
-962

query I rowsort
SELECT + ( + col0 ) - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - col1 - col2 * - 4 FROM tab2 AS cor0
----
135
45
77

query I rowsort
SELECT ALL col0 * - col0 + - col2 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT ALL + col2 * - col1 * col1 + col0 FROM tab2 AS cor0
----
-10903
-25940
-90428

query I rowsort
SELECT - - col0 + cor0.col1 + + cor0.col1 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT ALL - cor0.col2 * + cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9348
SELECT + 64 + cor0.col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9348
SELECT + 64 + cor0.col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - + 6 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT ALL 5 + col0 FROM tab0
----
29
40
94

query I rowsort
SELECT DISTINCT 8 AS col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9352
SELECT col1 * col0 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9352
SELECT col1 * col0 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - - col0 AS col2 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT - cor0.col0 + - col0 * + 60 * + cor0.col0 + col1 FROM tab2 AS cor0
----
-2916
-365059
-374522

query I rowsort
SELECT col2 * - cor0.col1 + cor0.col0 + + col2 * col0 AS col2 FROM tab1 cor0
----
-1239
3142
6512

query I rowsort
SELECT DISTINCT - col0 + col0 * 57 FROM tab1
----
168
3584
4480

query I rowsort
SELECT ALL - - col2 + + col0 * cor0.col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT - cor0.col1 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-10
-13
-26

query I rowsort
SELECT ALL - col2 * - 80 FROM tab1
----
4320
4560
7680

query I rowsort
SELECT ALL + 74 * + 15 AS col0 FROM tab1
----
1110
1110
1110

query I rowsort
SELECT + - col0 + + col0 * - ( ( - cor0.col2 ) ) * - 76 AS col0 FROM tab1 AS cor0
----
-12315
-277312
-583760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9362
SELECT - - CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9362
SELECT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - col1 * + 12 FROM tab1
----
-120
-156
-312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 col0 FROM tab1 AS cor0
----
16
16
16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9365
SELECT col1 * + cor0.col2 * CAST( col2 * col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3090582
50174488
97

skipif mysql # not compatible
query I rowsort label-9365
SELECT col1 * + cor0.col2 * CAST ( col2 * col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3090582
50174488
97

query I rowsort
SELECT ALL col1 * 40 AS col1 FROM tab1 AS cor0
----
1040
400
520

query I rowsort
SELECT - col0 + - 42 * 80 * + col2 FROM tab0 AS cor0
----
-110904
-275609
-3395

onlyif mysql # use DIV operator for integer division
query I rowsort label-9368
SELECT + col1 + - col1 DIV + col1 FROM tab0 cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-9368
SELECT + col1 + - col1 / + col1 FROM tab0 cor0
----
85
90
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 90 * col2 + cor0.col2 col1 FROM tab0 AS cor0
----
3003
7462
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9370
SELECT ALL col0 + + CAST( NULL AS SIGNED ) * - ( tab0.col1 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) * - ( tab0.col1 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
10
13
26

query I rowsort
SELECT + + 38 + - col2 * + col0 AS col1 FROM tab2 AS cor0
----
-151
-1990
-2964

query I rowsort
SELECT ALL + col0 * 88 + + col1 AS col1 FROM tab0 AS cor0
----
2198
3177
7923

query I rowsort
SELECT col0 + + col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - - col0 + - col0 - + col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ( - col0 ) + + cor0.col1 FROM tab0 cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - 96 * + col2 AS col1 FROM tab1 cor0
----
-5184
-5472
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 80 * + col1 + col1 col1 FROM tab2 AS cor0
----
-1343
-2449
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-9380
SELECT DISTINCT + ( col0 ) DIV + tab1.col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT + ( col0 ) / + tab1.col0 FROM tab1
----
1

query I rowsort
SELECT DISTINCT cor0.col0 - cor0.col0 FROM tab1, tab0 AS cor0
----
0

query I rowsort
SELECT + 42 + - col0 AS col0 FROM tab0 cor0
----
-47
18
7

query I rowsort
SELECT DISTINCT + col1 + - col2 + + ( + cor0.col0 + ( col0 ) ) FROM tab2 AS cor0
----
137
18
189

query I rowsort
SELECT DISTINCT + cor2.col0 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
7
78
79

query I rowsort
SELECT ALL col1 * - 62 AS col2 FROM tab0 AS cor0
----
-5332
-5642
-6014

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - col2 * + tab2.col0 * + 51 + col1 * - 78 AS col0 FROM tab2
----
-108030
-12057
-154428

query I rowsort
SELECT - + col2 + 75 * col2 * col0 AS col0 FROM tab0 AS cor0
----
2624
547268
59367

query I rowsort
SELECT ALL 6 * col2 + col2 AS col1 FROM tab2 AS cor0
----
182
189
266

query I rowsort
SELECT DISTINCT + 59 + + col2 FROM tab1 AS cor0
----
113
116
155

query I rowsort
SELECT - - 10 + - col2 * col1 FROM tab0 AS cor0
----
-2828
-7452
-87

query I rowsort
SELECT ALL - cor0.col0 + + col1 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-9393
SELECT DISTINCT - col2 + col1 DIV - 42 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT - col2 + col1 / - 42 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9394
SELECT - col0 DIV - col2 + + col1 col0 FROM tab0 AS cor0
----
132
86
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9394
SELECT - col0 / - col2 + + col1 col0 FROM tab0 AS cor0
----
132
86
92

query I rowsort
SELECT ALL 94 * col2 + col0 FROM tab0
----
129
3126
7797

query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-7
-78
-79

query I rowsort
SELECT 66 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT + col2 * col2 * - 82 - col2 AS col2 FROM tab2
----
-118446
-55458
-59805

query I rowsort
SELECT ALL col2 * - cor0.col2 + col1 AS col2 FROM tab2 cor0
----
-1427
-617
-698

query I rowsort
SELECT ALL - 56 + - col0 FROM tab2 cor0
----
-134
-135
-63

query I rowsort
SELECT DISTINCT + 87 + + col1 * - 97 AS col1 FROM tab1 AS cor0
----
-1174
-2435
-883

onlyif mysql # use DIV operator for integer division
query I rowsort label-9402
SELECT + 28 DIV + col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9402
SELECT + 28 / + col1 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9403
SELECT ALL + col2 - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL + col2 - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + + tab2.col1 * col2 * col2 - col0 AS col2 FROM tab2
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-9405
SELECT ALL - col0 - - 81 * - col0 DIV col0 FROM tab1
----
-145
-161
-84

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL - col0 - - 81 * - col0 / col0 FROM tab1
----
-145
-161
-84

skipif mysql # not compatible
query I rowsort
SELECT - col2 + CAST ( 11 AS REAL ) FROM tab0 AS cor0
----
-22
-71
10

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9407
SELECT DISTINCT + + ( col1 ) + - col1 * CAST( col0 + cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
-1196
-728
-730

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT + + ( col1 ) + - col1 * CAST ( col0 + cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
-1196
-728
-730

query I rowsort
SELECT ALL col1 + 39 * - col1 FROM tab0 AS cor0
----
-3268
-3458
-3686

onlyif mysql # use DIV operator for integer division
query I rowsort label-9409
SELECT ALL - + col2 DIV col1 - + cor0.col1 * ( - col2 ) FROM tab2 AS cor0
----
1534
644
837

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL - + col2 / col1 - + cor0.col1 * ( - col2 ) FROM tab2 AS cor0
----
1534
644
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) * + col0 * 32 col0 FROM tab0 AS cor0
----
-1120
-233536
-25344

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9411
SELECT ALL col1 + ( - col0 + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9411
SELECT ALL col1 + ( - col0 + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9412
SELECT - col0 DIV + col0 + - col0 * col0 col1 FROM tab2 AS cor0
----
-50
-6085
-6242

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9412
SELECT - col0 / + col0 + - col0 * col0 col1 FROM tab2 AS cor0
----
-50
-6085
-6242

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + - col1 + - 66 AS col2 FROM tab0 AS cor0
----
-152
-157
-163

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9415
SELECT col1 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9415
SELECT col1 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9416
SELECT DISTINCT + + 88 DIV + 3 + col0 - - col1 AS col0 FROM tab1 cor0
----
103
122
58

skipif mysql # not compatible
query I rowsort label-9416
SELECT DISTINCT + + 88 / + 3 + col0 - - col1 AS col0 FROM tab1 cor0
----
103
122
58

query I rowsort
SELECT DISTINCT - 6 * - col0 + col2 FROM tab1 AS cor0
----
441
576
72

query I rowsort
SELECT ALL - + 33 + - cor0.col2 FROM tab1 AS cor0
----
-129
-87
-90

query I rowsort
SELECT - + col1 * 80 AS col2 FROM tab1 AS cor0
----
-1040
-2080
-800

query I rowsort
SELECT col0 - - col1 * col2 * col0 FROM tab0 AS cor0
----
3430
664207
68136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + ( col2 ) col0 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-9422
SELECT ALL + - col1 * - cor0.col0 + col2 DIV col1 + - col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL + - col1 * - cor0.col0 + col2 / col1 + - col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-9423
SELECT DISTINCT col1 DIV - 22 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9423
SELECT DISTINCT col1 / - 22 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT col2 * - col0 + + col1 + + col0 FROM tab2
----
-151
-1891
-2906

query I rowsort
SELECT ALL + - 42 FROM tab1 cor0
----
-42
-42
-42

query I rowsort
SELECT - 81 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81

query I rowsort
SELECT ALL + 6 * 58 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 4fb79f5f083c64f1981a06985adb1e93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9428
SELECT ALL 68 + + 57 DIV - col0 FROM tab2
----
60
68
68

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL 68 + + 57 / - col0 FROM tab2
----
60
68
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 + - col0 col1 FROM tab2
----
-24
51
7

query I rowsort
SELECT - - ( - 7 ) + + col0 AS col2 FROM tab2 AS cor0
----
0
71
72

query I rowsort
SELECT DISTINCT - ( 24 ) FROM tab0 AS cor0
----
-24

query I rowsort
SELECT - - ( 30 ) FROM tab0 AS cor0
----
30
30
30

query I rowsort
SELECT ALL - - ( col2 ) * col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + ( col1 ) + - col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 89 + - cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
-125
-146
-260

query I rowsort
SELECT - - ( + col0 ) + - cor0.col0 * 90 FROM tab0 AS cor0
----
-2136
-3115
-7921

query I rowsort
SELECT ( col0 ) + 2 AS col1 FROM tab1 AS cor0
----
5
66
82

query I rowsort
SELECT DISTINCT - col1 + - col1 * - col2 AS col1 FROM tab0 AS cor0
----
0
2752
7371

onlyif mysql # use DIV operator for integer division
query I rowsort label-9439
SELECT ALL - col2 + - col1 DIV - col0 + col1 FROM tab0 AS cor0
----
10
56
98

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL - col2 + - col1 / - col0 + col1 FROM tab0 AS cor0
----
10
56
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-9440
SELECT + 47 + + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
47
47
48

skipif mysql # not compatible
query I rowsort label-9440
SELECT + 47 + + col2 / col0 AS col1 FROM tab0 AS cor0
----
47
47
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-9441
SELECT ALL + col1 DIV - col0 + 34 AS col2 FROM tab1 cor0
----
26
34
34

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL + col1 / - col0 + 34 AS col2 FROM tab1 cor0
----
26
34
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-9442
SELECT ALL col1 + - col1 DIV 76 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL col1 + - col1 / 76 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT 69 AS col1 FROM tab0 AS cor0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - col1 col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT 76 * col2 AS col1 FROM tab0
----
2508
6232
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9446
SELECT CAST( NULL AS DECIMAL ) * + tab0.col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9446
SELECT CAST ( NULL AS REAL ) * + tab0.col0 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9447
SELECT DISTINCT ( + 40 * + col1 ) + + CAST( tab2.col0 AS SIGNED ) AS col1 FROM tab2
----
1247
2438
759

skipif mysql # not compatible
query I rowsort label-9447
SELECT DISTINCT ( + 40 * + col1 ) + + CAST ( tab2.col0 AS INTEGER ) AS col1 FROM tab2
----
1247
2438
759

query I rowsort
SELECT DISTINCT ( + ( tab1.col2 ) ) * col1 + - col0 AS col1 FROM tab1
----
1168
1401
506

query I rowsort
SELECT - + 99 + col1 FROM tab1 AS cor0
----
-73
-86
-89

query I rowsort
SELECT ALL - + cor0.col1 + 60 FROM tab1 AS cor0
----
34
47
50

query I rowsort
SELECT DISTINCT col1 * 87 * + ( + col1 ) FROM tab2 cor0
----
25143
302847
83607

query I rowsort
SELECT + col1 * + cor0.col2 * 75 AS col1 FROM tab1 AS cor0
----
105300
42750
93600

query I rowsort
SELECT DISTINCT + + col1 * 28 FROM tab0 AS cor0
----
2408
2548
2716

query I rowsort
SELECT ALL - col2 + ( - col0 ) * + col2 + ( col1 ) FROM tab1 AS cor0
----
-190
-3695
-7763

onlyif mysql # use DIV operator for integer division
query I rowsort label-9455
SELECT + - col2 DIV ( ( col2 ) ) FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9455
SELECT + - col2 / ( ( col2 ) ) FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col2 * + 15 AS col2 FROM tab2 AS cor0
----
-390
-405
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-9457
SELECT DISTINCT - col2 * col1 DIV + col0 AS col1 FROM tab2 cor0
----
-119
-19
-8

skipif mysql # not compatible
query I rowsort label-9457
SELECT DISTINCT - col2 * col1 / + col0 AS col1 FROM tab2 cor0
----
-119
-19
-8

query I rowsort
SELECT + col1 - - col1 AS col2 FROM tab2
----
118
34
62

query I rowsort
SELECT ALL + - col1 + - col2 * + col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT + col1 * ( + cor0.col1 ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT col2 * + 90 AS col1 FROM tab2 cor0
----
2340
2430
3420

query I rowsort
SELECT - col1 * 68 * col1 FROM tab2 AS cor0
----
-19652
-236708
-65348

query I rowsort
SELECT col0 + 20 FROM tab0
----
109
44
55

query I rowsort
SELECT DISTINCT + tab0.col2 * tab0.col2 AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT + - col1 + - col0 * - col2 * ( col0 * - cor0.col0 ) FROM tab2 AS cor0
----
-12338411
-18735499
-9292

query I rowsort
SELECT + 93 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # use DIV operator for integer division
query I rowsort label-9467
SELECT DISTINCT - tab2.col1 DIV 70 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9467
SELECT DISTINCT - tab2.col1 / 70 FROM tab2
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9468
SELECT ALL + CAST( NULL AS SIGNED ) col2 FROM tab0, 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-9468
SELECT ALL + CAST ( NULL AS INTEGER ) col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + + col2 * - 59 + - 4 * - col2 FROM tab1 AS cor0
----
-2970
-3135
-5280

query I rowsort
SELECT tab1.col1 * + 88 - cor0.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to dca5b1d80637f4cd38c675a2b7a6ff79

query I rowsort
SELECT - 62 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT - - col2 * ( col0 ) + - col2 - ( col0 ) AS col1 FROM tab0 AS cor0
----
-1
7127
735

query I rowsort
SELECT col2 * + ( cor0.col1 ) + - col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT + - col2 + + 21 AS col2 FROM tab1 AS cor0
----
-33
-36
-75

query I rowsort
SELECT - col1 * - 43 - + col0 AS col2 FROM tab1 AS cor0
----
1115
366
479

query I rowsort
SELECT col1 * - ( cor0.col1 * col1 ) - + col1 FROM tab2 AS cor0
----
-205438
-29822
-4930

query I rowsort
SELECT + + col0 * - ( ( - col1 ) ) - col1 * 23 AS col0 FROM tab1 AS cor0
----
-520
410
741

query I rowsort
SELECT DISTINCT + 35 * - ( - col2 + 85 ) FROM tab0 AS cor0
----
-105
-1820
-2940

query I rowsort
SELECT - 48 * - col0 FROM tab2 AS cor0
----
336
3744
3792

query I rowsort
SELECT ALL ( col2 ) + + col0 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - - ( - col2 ) + col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9482
SELECT DISTINCT + col2 DIV - cor0.col1 - cor0.col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-40

skipif mysql # not compatible
query I rowsort label-9482
SELECT DISTINCT + col2 / - cor0.col1 - cor0.col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-40

onlyif mysql # use DIV operator for integer division
query I rowsort label-9483
SELECT DISTINCT col2 + col0 DIV col2 AS col0 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT col2 + col0 / col2 AS col0 FROM tab1 AS cor0
----
54
58
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9484
SELECT ALL + col1 * + col1 - + CAST( 61 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
228
3420
900

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL + col1 * + col1 - + CAST ( 61 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
228
3420
900

query I rowsort
SELECT 38 * col2 AS col1 FROM tab0 cor0
----
1254
3116
38

query I rowsort
SELECT + 66 * - col2 FROM tab0 AS cor0
----
-2178
-5412
-66

query I rowsort
SELECT ALL cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL + 70 * col1 AS col0 FROM tab0
----
6020
6370
6790

query I rowsort
SELECT + - col0 + - cor0.col0 * + col2 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT col2 + col1 * 27 FROM tab0 AS cor0
----
2355
2539
2620

query I rowsort
SELECT col1 * col0 * col2 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + + col2 * - ( cor0.col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL + col0 * 39 FROM tab2 AS cor0
----
273
3042
3081

query I rowsort
SELECT - cor0.col0 * - 10 FROM tab1 AS cor0
----
30
640
800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9495
SELECT DISTINCT col2 * CAST( cor0.col1 AS SIGNED ) * col1 FROM tab0 AS cor0
----
244068
679042
9409

skipif mysql # not compatible
query I rowsort label-9495
SELECT DISTINCT col2 * CAST ( cor0.col1 AS INTEGER ) * col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT + + 25 * + col0 + col1 FROM tab2 AS cor0
----
1992
2009
206

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9497
SELECT ALL - CAST( NULL AS SIGNED ) * - 98 + - col2 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL - CAST ( NULL AS INTEGER ) * - 98 + - col2 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9498
SELECT - + col2 + - col0 DIV - col1 FROM tab2 cor0
----
-25
-27
-34

skipif mysql # not compatible
query I rowsort label-9498
SELECT - + col2 + - col0 / - col1 FROM tab2 cor0
----
-25
-27
-34

query I rowsort
SELECT ALL + cor0.col0 + cor0.col0 AS col1 FROM tab1, tab0 cor0, tab2, tab2 AS cor1
----
81 values hashing to 53dd309081147c8e6c57e740f9f718b5

query I rowsort
SELECT ALL - + ( - col2 ) * col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9501
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 + col0 * + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 + col0 * + col2 FROM tab0
----
NULL

query I rowsort
SELECT - 21 + 80 AS col0 FROM tab2 AS cor0
----
59
59
59

query I rowsort
SELECT DISTINCT - - cor0.col1 + - col1 * 6 AS col0 FROM tab1 AS cor0
----
-130
-50
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-9504
SELECT + + col2 * 47 - + 36 DIV + col0 FROM tab0 AS cor0
----
1550
3854
46

skipif mysql # not compatible
query I rowsort label-9504
SELECT + + col2 * 47 - + 36 / + col0 FROM tab0 AS cor0
----
1550
3854
46

query I rowsort
SELECT + col2 + + col0 * col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
118826
49569
720893

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 * + col2 col2 FROM tab2
----
1508
608
810

query I rowsort
SELECT DISTINCT + col1 * - 75 FROM tab0 AS cor0
----
-6450
-6825
-7275

query I rowsort
SELECT DISTINCT cor0.col0 + + ( - ( col1 ) ) * 64 FROM tab0 AS cor0
----
-5480
-5735
-6173

query I rowsort
SELECT - col2 + + ( - ( col2 ) ) * - col1 * col2 FROM tab1 AS cor0
----
119712
32433
75762

onlyif mysql # use DIV operator for integer division
query I rowsort label-9510
SELECT ALL - col1 DIV ( + 5 * col1 ) - + 96 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-96

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL - col1 / ( + 5 * col1 ) - + 96 / col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9511
SELECT ALL + col0 DIV - 62 AS col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL + col0 / - 62 AS col0 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT + col0 * 33 + + cor0.col0 FROM tab2 AS cor0
----
238
2652
2686

query I rowsort
SELECT DISTINCT + cor0.col0 + 13 AS col0 FROM tab1 AS cor0
----
16
77
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT - - col0 + col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
2919
3313
9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9516
SELECT - col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT - col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - 89 + col2 col2 FROM tab1 AS cor0
----
103
19
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-9518
SELECT DISTINCT - col0 DIV ( - cor0.col0 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT - col0 / ( - cor0.col0 ) AS col0 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 * + cor0.col1 * col1 + - 28 * + 82 col2 FROM tab1 AS cor0
----
13252
1591
4

query I rowsort
SELECT + - 54 + - col2 AS col2 FROM tab0 AS cor0
----
-136
-55
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 + + 46 col1 FROM tab1
----
120
139
75

query I rowsort
SELECT ALL - col2 + col0 * + col0 * + col1 AS col1 FROM tab1 cor0
----
180
40903
83104

query I rowsort
SELECT ALL - - ( + ( + col1 ) ) + col2 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9524
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT DISTINCT + ( - col1 ) * col2 - col1 FROM tab1 cor0
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT ( - 18 ) FROM tab0, tab2 AS cor0
----
-18

query I rowsort
SELECT ALL col0 + 61 FROM tab0
----
150
85
96

query I rowsort
SELECT 56 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT DISTINCT 27 * - col2 AS col2 FROM tab2 AS cor0
----
-1026
-702
-729

query I rowsort
SELECT DISTINCT + - 5 + col1 FROM tab1 cor0
----
21
5
8

query I rowsort
SELECT + - col2 + col0 * 10 FROM tab0 AS cor0
----
207
349
808

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col1 AS col2 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT ALL + 92 * + col0 FROM tab1
----
276
5888
7360

query I rowsort
SELECT ALL + col0 - col0 * - 96 AS col2 FROM tab2
----
679
7566
7663

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab1, tab2, tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL tab0.col0 + tab0.col2 - - col2 FROM tab0
----
253
37
90

query I rowsort
SELECT DISTINCT + - 56 * + col0 FROM tab2 AS cor0
----
-392
-4368
-4424

query I rowsort
SELECT cor0.col1 + + 44 FROM tab2, tab0 AS cor0
----
9 values hashing to 73486caa1f28ad626dadef4a3bdfedbd

query I rowsort
SELECT ALL 41 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # use DIV operator for integer division
query I rowsort label-9540
SELECT - col0 DIV + 13 FROM tab1
----
-4
-6
0

skipif mysql # not compatible
query I rowsort label-9540
SELECT - col0 / + 13 FROM tab1
----
-4
-6
0

query I rowsort
SELECT - col0 * + 58 AS col1 FROM tab2
----
-406
-4524
-4582

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9542
SELECT DISTINCT - col1 / CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9542
SELECT DISTINCT - col1 / CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 + - col0 + + 74 AS col1 FROM tab1
----
125
67
90

query I rowsort
SELECT col1 * + 77 AS col1 FROM tab1
----
1001
2002
770

query I rowsort
SELECT + col2 + + 3 FROM tab0 AS cor0
----
36
4
85

query I rowsort
SELECT DISTINCT 68 AS col0 FROM tab0, tab2 AS cor0
----
68

query I rowsort
SELECT ALL col2 * + 39 - - 91 * - col2 FROM tab1 cor0
----
-2808
-2964
-4992

query I rowsort
SELECT + tab1.col1 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

onlyif mysql # use DIV operator for integer division
query I rowsort label-9549
SELECT + 33 DIV + col2 + col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9549
SELECT + 33 / + col2 + col0 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL + 49 AS col2 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to e587c122dea39a2488ff88b884cea462

query I rowsort
SELECT 16 * + col2 FROM tab1
----
1536
864
912

query I rowsort
SELECT DISTINCT - cor1.col2 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-26
-27
-38

query I rowsort
SELECT DISTINCT - - col0 * 66 * + col0 + - col0 AS col0 FROM tab1 AS cor0
----
270272
422320
591

query I rowsort
SELECT ALL + 98 * - 52 + col2 + + col0 AS col1 FROM tab0 AS cor0
----
-4925
-5039
-5060

query I rowsort
SELECT DISTINCT - + col2 + col0 * 74 * - col1 FROM tab0 AS cor0
----
-152769
-251231
-599408

query I rowsort
SELECT DISTINCT - 39 * cor0.col2 + + ( - 67 ) * col0 + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-1529
-6318
-6854

query I rowsort
SELECT ALL + col0 * cor0.col1 + - ( cor0.col0 + col2 ) AS col1 FROM tab2 AS cor0
----
1226
183
4498

query I rowsort
SELECT ALL + 36 + col1 AS col2 FROM tab1 AS cor0
----
46
49
62

query I rowsort
SELECT ALL - col1 + - col0 * - col1 + col1 * + cor0.col0 FROM tab0 AS cor0
----
16107
4042
6693

onlyif mysql # use DIV operator for integer division
query I rowsort label-9560
SELECT ALL - + ( col0 ) * + col1 * 28 + col2 DIV col0 AS col2 FROM tab2 AS cor0
----
-128856
-37604
-6073

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL - + ( col0 ) * + col1 * 28 + col2 / col0 AS col2 FROM tab2 AS cor0
----
-128856
-37604
-6073

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 + + col1 AS REAL ) FROM tab2
----
55
58
85

query I rowsort
SELECT - 57 AS col2 FROM tab2 cor0
----
-57
-57
-57

query I rowsort
SELECT 12 * - col2 AS col2 FROM tab2 cor0
----
-312
-324
-456

query I rowsort
SELECT DISTINCT - 9 AS col1 FROM tab1, tab0 cor0, tab2 AS cor1, tab2 AS cor2
----
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9565
SELECT + CAST( + col2 AS SIGNED ) * col2 col1 FROM tab1 AS cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9565
SELECT + CAST ( + col2 AS INTEGER ) * col2 col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT ( + 77 ) FROM tab1, tab1 AS cor0
----
77

query I rowsort
SELECT 64 + col1 * cor0.col2 * + ( col2 ) FROM tab2 AS cor0
----
22663
24612
39948

query I rowsort
SELECT + + col2 * 47 FROM tab2 cor0
----
1222
1269
1786

query I rowsort
SELECT - col2 + col0 * + col2 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT ALL 31 + + col0 AS col2 FROM tab1 AS cor0
----
111
34
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-9571
SELECT DISTINCT 71 - - col0 DIV + ( col1 ) AS col2 FROM tab1 AS cor0
----
71
77

skipif mysql # not compatible
query I rowsort label-9571
SELECT DISTINCT 71 - - col0 / + ( col1 ) AS col2 FROM tab1 AS cor0
----
71
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( tab1.col1 ) col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT col2 * 16 AS col2 FROM tab2 AS cor0
----
416
432
608

query I rowsort
SELECT + col1 + col0 * ( col0 ) AS col2 FROM tab0
----
1322
662
8012

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9575
SELECT col0 * - CAST( NULL AS SIGNED ) + - ( col0 * - cor0.col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9575
SELECT col0 * - CAST ( NULL AS INTEGER ) + - ( col0 * - cor0.col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - col2 + 1 AS col0 FROM tab0 AS cor0
----
-2837
-7461
-96

query I rowsort
SELECT - col1 + - col0 * - 98 FROM tab0 AS cor0
----
2266
3333
8631

query I rowsort
SELECT 78 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to f0487ba81d377516702723e098c02ba1

query I rowsort
SELECT DISTINCT col0 * 87 + + 85 AS col1 FROM tab0
----
2173
3130
7828

query I rowsort
SELECT ALL + + 86 * 11 * + col2 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
24655
25573
35965

query I rowsort
SELECT ALL + tab0.col1 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - ( col0 ) * + col2 + 39 AS col1 FROM tab2 AS cor0
----
-150
-1989
-2963

query I rowsort
SELECT ALL + 23 * - 12 FROM tab0 AS cor0
----
-276
-276
-276

onlyif mysql # use DIV operator for integer division
query I rowsort label-9584
SELECT DISTINCT col0 * col0 + col2 DIV - tab1.col1 col2 FROM tab1
----
4091
6393
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT col0 * col0 + col2 / - tab1.col1 col2 FROM tab1
----
4091
6393
7

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT - col1 * ( ( - col0 ) ) FROM tab1
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9587
SELECT DISTINCT - tab0.col0 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9587
SELECT DISTINCT - tab0.col0 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - cor0.col2 + + 34 FROM tab1 AS cor0
----
-20
-23
-62

query I rowsort
SELECT - + 9 AS col0 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9590
SELECT ALL col1 DIV + 62 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL col1 / + 62 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT + 14 * cor0.col0 FROM tab1 AS cor0
----
1120
42
896

query I rowsort
SELECT DISTINCT ( + 48 ) * + cor0.col2 FROM tab2 AS cor0
----
1248
1296
1824

query I rowsort
SELECT - + 63 * + 9 FROM tab0 AS cor0
----
-567
-567
-567

query I rowsort
SELECT ALL - ( - 73 ) + + cor0.col2 * col1 FROM tab2 cor0
----
1607
719
910

onlyif mysql # use DIV operator for integer division
query I rowsort label-9595
SELECT ALL + col1 DIV + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL + col1 / + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT DISTINCT ( - col0 ) + col0 * 48 * col2 AS col1 FROM tab0 cor0
----
1645
350215
37992

query I rowsort
SELECT + ( - 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-9598
SELECT ALL + col2 * 65 * cor0.col1 - - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
41973
54374
99651

skipif mysql # not compatible
query I rowsort label-9598
SELECT ALL + col2 * 65 * cor0.col1 - - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
41973
54374
99651

query I rowsort
SELECT ALL cor0.col0 + cor0.col0 * col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT col0 + + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9601
SELECT - col0 + - ( - cor0.col2 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9601
SELECT - col0 + - ( - cor0.col2 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 45 + - ( col2 ) + ( + col2 * - cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-1605
-729
-909

query I rowsort
SELECT DISTINCT ( tab1.col2 * - tab1.col0 ) - - tab1.col0 FROM tab1
----
-159
-3584
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-9604
SELECT col0 + col1 DIV ( + 16 ) FROM tab1 AS cor0
----
4
64
80

skipif mysql # not compatible
query I rowsort label-9604
SELECT col0 + col1 / ( + 16 ) FROM tab1 AS cor0
----
4
64
80

query I rowsort
SELECT - col0 - col0 * 93 FROM tab0 AS cor0
----
-2256
-3290
-8366

query I rowsort
SELECT ALL + col0 + col0 * col0 * 30 FROM tab1 AS cor0
----
122944
192080
273

query I rowsort
SELECT - - 61 + cor0.col0 * - ( - cor0.col0 ) - - col1 FROM tab2 AS cor0
----
141
6204
6319

query I rowsort
SELECT DISTINCT col1 + 12 AS col0 FROM tab2 AS cor0
----
29
43
71

query I rowsort
SELECT - col2 + + ( 14 ) FROM tab1 AS cor0
----
-40
-43
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + 72 col2 FROM tab1 AS cor0
----
-8
69
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-9611
SELECT + col1 + - col2 DIV - tab2.col0 AS col1 FROM tab2
----
17
34
59

skipif mysql # not compatible
query I rowsort label-9611
SELECT + col1 + - col2 / - tab2.col0 AS col1 FROM tab2
----
17
34
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-9612
SELECT col1 DIV - col2 + col0 AS col2 FROM tab0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-9612
SELECT col1 / - col2 + col0 AS col2 FROM tab0
----
-62
22
88

query I rowsort
SELECT col0 + - col2 * + col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT ALL - col1 * - col1 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
7429
8363
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + col1 col0 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL + cor0.col0 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 * + col2 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9618
SELECT - col1 + cor0.col0 DIV col2 FROM tab1 AS cor0
----
-13
-26
-9

skipif mysql # not compatible
query I rowsort label-9618
SELECT - col1 + cor0.col0 / col2 FROM tab1 AS cor0
----
-13
-26
-9

query I rowsort
SELECT + col1 + col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT + col0 + + col2 AS col1 FROM tab2 cor0 WHERE NOT + col1 BETWEEN NULL AND col2 * + col2 + - col0 / + col0 + cor0.col1 * + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT DISTINCT + col0 + + cor0.col2 * col0 AS col0 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT - + col0 * col0 + - col1 AS col2 FROM tab2 AS cor0
----
-6143
-6258
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9624
SELECT - col2 DIV cor0.col0 col1 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9624
SELECT - col2 / cor0.col0 col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - - col1 + + col1 + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-1014
-26
-620

query I rowsort
SELECT ALL + + col2 * - col0 + - col2 * col0 * col0 + - col0 FROM tab2 AS cor0
----
-1519
-160290
-240239

query I rowsort
SELECT col0 * + col0 - + col0 * col2 AS col1 FROM tab0
----
-216
1190
623

query I rowsort
SELECT ALL - col0 * col1 + + col2 + col1 * + cor0.col1 AS col2 FROM tab1 cor0
----
-483
-775
652

query I rowsort
SELECT + cor0.col2 * - col0 * - col2 AS col0 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT + col0 + col0 * col0 AS col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT + col1 - col1 * col2 * col1 AS col0 FROM tab1
----
-16211
-36478
-5690

query I rowsort
SELECT + 96 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT DISTINCT - col1 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT col2 + col1 * col0 + col0 * col0 * - col2 FROM tab1
----
-232775
-354
-613264

query I rowsort
SELECT - col0 / col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( col0 )
----

query I rowsort
SELECT - tab2.col0 FROM tab2 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - tab0.col0 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + ( + col0 ) + col1 FROM tab0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * ( - tab1.col0 ) col1 FROM tab1, tab0 cor0
----
9 values hashing to c51b32df5863551bb4dad3fddcd65620

query I rowsort
SELECT col0 + 85 * 70 AS col1 FROM tab0 AS cor0
----
5974
5985
6039

query I rowsort
SELECT ALL 36 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1116
2124
612

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * tab1.col0 col2 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-9644
SELECT + col0 * + col0 DIV col0 - - tab1.col0 FROM tab1
----
128
160
6

skipif mysql # not compatible
query I rowsort label-9644
SELECT + col0 * + col0 / col0 - - tab1.col0 FROM tab1
----
128
160
6

query I rowsort
SELECT ALL - col0 + col2 * - col2 + tab2.col2 FROM tab2
----
-1485
-709
-728

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + + tab1.col0 <= NULL
----

query I rowsort
SELECT + col1 * col1 * col2 + - col0 FROM tab0
----
244044
678953
9374

query I rowsort
SELECT ALL - col0 + + col1 * - col1 FROM tab2 WHERE ( NULL ) NOT IN ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND col1 * col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9650
SELECT tab0.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-9650
SELECT tab0.col1 / col2 col0 FROM tab0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9651
SELECT ALL - tab0.col0 * col1 + col1 DIV col1 + + col2 FROM tab0
----
-2030
-3393
-8016

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL - tab0.col0 * col1 + col1 / col1 + + col2 FROM tab0
----
-2030
-3393
-8016

query I rowsort
SELECT DISTINCT + col2 + - tab2.col1 + col1 AS col2 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-9653
SELECT + col2 * col0 + - col1 DIV tab1.col0 FROM tab1
----
154
3648
7680

skipif mysql # not compatible
query I rowsort label-9653
SELECT + col2 * col0 + - col1 / tab1.col0 FROM tab1
----
154
3648
7680

query I rowsort
SELECT - cor0.col1 * + col2 - + col1 * + cor0.col2 FROM tab2 AS cor0
----
-1292
-1674
-3068

onlyif mysql # use DIV operator for integer division
query I rowsort label-9655
SELECT DISTINCT - col1 * col1 + col0 DIV col1 FROM tab1
----
-163
-676
-94

skipif mysql # not compatible
query I rowsort label-9655
SELECT DISTINCT - col1 * col1 + col0 / col1 FROM tab1
----
-163
-676
-94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( + col1 ) AND ( + col2 )
----

query I rowsort
SELECT col2 * - col1 + + col1 * col2 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + tab2.col1 * - col0 + tab2.col1 * col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT NULL BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * + col2 + + col0 * + col1 AS col0 FROM tab2
----
-620
3068
697

query I rowsort
SELECT - col2 * col2 FROM tab2 WHERE col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + col0 + col0 AND + col1 - - col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9663
SELECT DISTINCT + col2 DIV + tab0.col1 + col2 * col1 * + col2 + - tab0.col2 AS col1 FROM tab0
----
611802
93621
96

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT + col2 / + tab0.col1 + col2 * col1 * + col2 + - tab0.col2 AS col1 FROM tab0
----
611802
93621
96

query I rowsort
SELECT DISTINCT col2 * col2 * - col0 AS col2 FROM tab1
----
-207936
-737280
-8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-9665
SELECT ALL + col1 + col0 DIV + col0 + - col2 FROM tab0
----
10
54
97

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL + col1 + col0 / + col0 + - col2 FROM tab0
----
10
54
97

query I rowsort
SELECT col0 * col2 - col0 * + tab1.col0 * col2 FROM tab1
----
-229824
-324
-606720

query I rowsort
SELECT 57 + + col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
7355
849
92

query I rowsort
SELECT - - col1 + - col1 + + ( + col2 + col0 ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + col0 * - col1 * + tab0.col1 AS col0 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT - 90 * col2 * - col1 AS col1 FROM tab0
----
255420
671580
8730

query I rowsort
SELECT - col2 * + col2 + cor0.col0 AS col2 FROM tab0 cor0
----
-1065
-6635
34

query I rowsort
SELECT + 30 + cor0.col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2034
-3365
-8069

query I rowsort
SELECT - 96 + col1 * 15 + + 99 FROM tab1 AS cor0
----
153
198
393

query I rowsort
SELECT - col1 + - ( + col1 ) * col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT + cor0.col1 * 64 AS col1 FROM tab0 AS cor0
----
5504
5824
6208

onlyif mysql # use DIV operator for integer division
query I rowsort label-9676
SELECT - - cor0.col2 DIV + col1 + col0 col0 FROM tab1 AS cor0
----
5
69
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9676
SELECT - - cor0.col2 / + col1 + col0 col0 FROM tab1 AS cor0
----
5
69
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-9677
SELECT - ( + 98 ) * - col0 + 30 DIV ( cor0.col0 ) + + col1 AS col0 FROM tab0 AS cor0
----
2439
3527
8813

skipif mysql # not compatible
query I rowsort label-9677
SELECT - ( + 98 ) * - col0 + 30 / ( cor0.col0 ) + + col1 AS col0 FROM tab0 AS cor0
----
2439
3527
8813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9678
SELECT + - CAST( NULL AS DECIMAL ) * ( - col2 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT + - CAST ( NULL AS REAL ) * ( - col2 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 17 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT ( - col0 ) + - cor0.col2 + - col0 AS col2 FROM tab0 AS cor0
----
-260
-71
-81

query I rowsort
SELECT DISTINCT - col0 + ( - 60 ) * col2 + col2 * col0 FROM tab1
----
-3081
164
1840

query I rowsort
SELECT tab0.col1 * 93 FROM tab0
----
7998
8463
9021

query I rowsort
SELECT - col2 + + col1 + - col2 * + ( col1 ) AS col2 FROM tab1 AS cor0
----
-1331
-1432
-617

onlyif mysql # use DIV operator for integer division
query I rowsort label-9684
SELECT + + col1 DIV - col2 + + col0 AS col0 FROM tab0 AS cor0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-9684
SELECT + + col1 / - col2 + + col0 AS col0 FROM tab0 AS cor0
----
-62
22
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-9685
SELECT col1 DIV + col0 + col0 + 67 FROM tab0 AS cor0
----
104
157
94

skipif mysql # not compatible
query I rowsort label-9685
SELECT col1 / + col0 + col0 + 67 FROM tab0 AS cor0
----
104
157
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + + col2 + - col2 + + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col2 col1 FROM tab1 cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9689
SELECT - ( - col1 ) + + col1 * + col2 + col2 DIV cor0.col1 FROM tab2 AS cor0
----
1593
665
868

skipif mysql # not compatible
query I rowsort label-9689
SELECT - ( - col1 ) + + col1 * + col2 + col2 / cor0.col1 FROM tab2 AS cor0
----
1593
665
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-9690
SELECT ALL - col2 * col0 DIV col0 + col1 * + col2 + cor0.col0 DIV col0 AS col1 FROM tab2 AS cor0
----
1509
609
811

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL - col2 * col0 / col0 + col1 * + col2 + cor0.col0 / col0 AS col1 FROM tab2 AS cor0
----
1509
609
811

query I rowsort
SELECT col2 + + col0 + - cor0.col1 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT + col2 * - col1 + cor0.col0 + - col1 AS col0 FROM tab2 AS cor0
----
-1515
-584
-861

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 - - col1 col1 FROM tab1
----
106
122
77

query I rowsort
SELECT + 15 * + 40 AS col0 FROM tab2
----
600
600
600

onlyif mysql # use DIV operator for integer division
query I rowsort label-9695
SELECT ALL col1 + - col2 DIV col2 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL col1 + - col2 / col2 FROM tab0
----
85
90
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9696
SELECT + 12 DIV + col1 - - col0 * col1 DIV - col2 FROM tab0
----
-3395
-62
-98

skipif mysql # not compatible
query I rowsort label-9696
SELECT + 12 / + col1 - - col0 * col1 / - col2 FROM tab0
----
-3395
-62
-98

query I rowsort
SELECT DISTINCT tab1.col1 * col1 + tab1.col0 AS col2 FROM tab1
----
164
249
679

query I rowsort
SELECT - col1 * + col1 + - cor0.col0 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT - + 85 + col2 + col0 AS col0 FROM tab2 AS cor0
----
-51
19
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col0 + + col2 + col2 col2 FROM tab0 AS cor0
----
-1223
-510
-7757

query I rowsort
SELECT - - 31 * cor0.col0 + - col1 FROM tab1 AS cor0
----
1974
2467
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-9702
SELECT DISTINCT + 21 DIV - 74 - tab1.col1 FROM tab1, tab2 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-9702
SELECT DISTINCT + 21 / - 74 - tab1.col1 FROM tab1, tab2 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + col0 * - tab0.col2 AS col0 FROM tab0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9704
SELECT + CAST( - col1 AS SIGNED ) * - cor0.col0 - + col1 * - col2 FROM tab2 cor0
----
1054
1989
6136

skipif mysql # not compatible
query I rowsort label-9704
SELECT + CAST ( - col1 AS INTEGER ) * - cor0.col0 - + col1 * - col2 FROM tab2 cor0
----
1054
1989
6136

query I rowsort
SELECT - 23 - col2 AS col0 FROM tab1
----
-119
-77
-80

query I rowsort
SELECT ALL - col2 * - col2 * - tab2.col1 - - col1 * + col0 FROM tab2
----
-22382
-23205
-35282

query I rowsort
SELECT DISTINCT 72 - col1 * col0 FROM tab0
----
-1992
-3323
-8027

query I rowsort
SELECT + col1 * 41 AS col2 FROM tab1 AS cor0
----
1066
410
533

query I rowsort
SELECT ALL - - col1 * col1 * col0 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT ALL - col2 * + ( + col1 ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT ( + col0 ) * cor0.col0 + + col1 AS col0 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT DISTINCT + col0 * - 96 + - col2 FROM tab2 AS cor0
----
-699
-7514
-7622

query I rowsort
SELECT - 86 AS col2 FROM tab0 AS cor0
----
-86
-86
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-9714
SELECT - ( col2 ) * + col1 DIV ( - col1 ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-9714
SELECT - ( col2 ) * + col1 / ( - col1 ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + tab0.col1 - - 12 FROM tab0
----
103
109
98

query I rowsort
SELECT DISTINCT tab2.col1 * - tab2.col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - ( - col1 ) + cor0.col2 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - - 44 * 87 FROM tab1 AS cor0
----
3828
3828
3828

query I rowsort
SELECT ALL + 57 + - col1 FROM tab1 AS cor0
----
31
44
47

query I rowsort
SELECT col2 + - 44 * + col0 AS col0 FROM tab0 AS cor0
----
-1023
-1539
-3834

query I rowsort
SELECT ALL + ( - col1 ) + col1 + - ( - col1 ) AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT 13 * col1 + + col2 * + col2 FROM tab2
----
1132
1443
1665

query I rowsort
SELECT ALL col2 * col1 + col0 AS col2 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT + - cor0.col0 * col2 + + ( col2 ) FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL - - 51 * - col2 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1300
-1350
-1900

query I rowsort
SELECT - col1 + - col1 * 14 FROM tab0 cor0
----
-1290
-1365
-1455

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9727
SELECT ALL - cor0.col2 * - col1 * + CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
36480
4212
99840

skipif mysql # not compatible
query I rowsort label-9727
SELECT ALL - cor0.col2 * - col1 * + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - ( col2 ) - + ( + col2 ) * col2 FROM tab2 AS cor0
----
-1482
-702
-756

onlyif mysql # use DIV operator for integer division
query I rowsort label-9729
SELECT ALL cor0.col2 DIV - col2 + 38 * col1 AS col2 FROM tab1 cor0
----
379
493
987

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL cor0.col2 / - col2 + 38 * col1 AS col2 FROM tab1 cor0
----
379
493
987

query I rowsort
SELECT DISTINCT + + col2 * col0 + 98 AS col2 FROM tab0 cor0
----
133
7396
890

query I rowsort
SELECT - 26 * + col2 - - 28 AS col2 FROM tab2 cor0
----
-648
-674
-960

query I rowsort
SELECT ALL - - cor0.col1 * col1 + - 43 AS col0 FROM tab1 AS cor0
----
126
57
633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 + + col2 col1 FROM tab0 AS cor0
----
108
27
59

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9735
SELECT + cor0.col0 + - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-9735
SELECT + cor0.col0 + - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * 6 + 58 col0 FROM tab0 cor0
----
-140
-434
52

query I rowsort
SELECT + + cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9738
SELECT ALL col1 / CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL col1 / CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - ( + col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT col2 + 27 * - col2 FROM tab0 AS cor0
----
-2132
-26
-858

query I rowsort
SELECT + 7 - + col0 FROM tab2
----
-71
-72
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - col1 col0 FROM tab1 AS cor0
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0

query I rowsort
SELECT DISTINCT col1 + col0 * + col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT DISTINCT - cor0.col0 - 58 * 51 FROM tab2 cor0
----
-2965
-3036
-3037

query I rowsort
SELECT + col2 * + 28 + 12 FROM tab1 AS cor0
----
1524
1608
2700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 96 col1 FROM tab2 AS cor0
----
-37
-65
-79

query I rowsort
SELECT ALL + + col2 + ( - col2 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9749
SELECT col1 * col1 + + 52 DIV col2 AS col2 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-9749
SELECT col1 * col1 + + 52 / col2 AS col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - - cor0.col1 + col0 * col0 AS col2 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT cor0.col2 * + cor0.col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT - col2 + - col1 * - col0 FROM tab0 AS cor0
----
2031
3394
8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 + + col0 col1 FROM tab0 AS cor0
----
108
43
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9754
SELECT + + CAST( + col2 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-9754
SELECT + + CAST ( + col2 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL 16 FROM tab0, tab2 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to 9ffb4aaf972de606a4957894645b6216

query I rowsort
SELECT DISTINCT 60 * + col0 AS col1 FROM tab1 AS cor0
----
180
3840
4800

query I rowsort
SELECT + col1 + col1 * 41 FROM tab1 AS cor0
----
1092
420
546

onlyif mysql # use DIV operator for integer division
query I rowsort label-9758
SELECT ALL + col2 DIV col2 col2 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL + col2 / col2 col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + ( tab0.col1 * 20 ) + + col2 FROM tab0
----
1753
1902
1941

query I rowsort
SELECT ALL col1 + - col0 * col2 + + ( - col2 ) * + tab1.col1 * + tab1.col2 AS col1 FROM tab1
----
-127475
-36128
-75952

query I rowsort
SELECT + col0 * col1 - 24 * - col1 FROM tab2 cor0
----
1751
6018
961

query I rowsort
SELECT - col0 * col2 * - col2 + - 26 FROM tab0
----
26110
598410
9

query I rowsort
SELECT ALL + + col2 * - col1 - 17 FROM tab0 AS cor0
----
-114
-2855
-7479

query I rowsort
SELECT - tab2.col1 + col0 AS col1 FROM tab2
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 * - tab0.col2 col0 FROM tab0, tab2 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - col0 + col2 * col1 FROM tab0 cor0
----
2814
62
7373

query I rowsort
SELECT + col1 + + col1 + col0 AS col0 FROM tab2 AS cor0
----
113
196
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-9768
SELECT + + col0 DIV col0 + - col0 + - col2 FROM tab0 AS cor0
----
-170
-35
-56

skipif mysql # not compatible
query I rowsort label-9768
SELECT + + col0 / col0 + - col0 + - col2 FROM tab0 AS cor0
----
-170
-35
-56

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 CROSS JOIN tab2, tab0, tab1 AS cor1
----
3645 values hashing to def82b52aa9c83b91991d7d043276abe

query I rowsort
SELECT - tab0.col2 * - tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to b2e5b025b1c725661248b0f29aaef908

query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col2 + - ( + tab1.col2 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to da768cd29f10713f418e344c4f77cdc9

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2, tab0 AS cor1
----
3645 values hashing to 58b53d9f2c5d79e6fe94b4a97272440e

query I rowsort
SELECT + ( tab2.col1 ) - - col2 AS col1 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-9774
SELECT + col1 DIV + tab1.col2 + col0 col2 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9774
SELECT + col1 / + tab1.col2 + col0 col2 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT 97 + + col2 + + 43 * - col0 AS col1 FROM tab2
----
-177
-3231
-3262

query I rowsort
SELECT - 44 * tab1.col1 - + col1 * col0 * col1 FROM tab1
----
-14092
-3172
-6840

onlyif mysql # use DIV operator for integer division
query I rowsort label-9777
SELECT ALL 85 * - col1 + - tab1.col1 DIV col0 AS col0 FROM tab1
----
-1105
-2218
-850

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL 85 * - col1 + - tab1.col1 / col0 AS col0 FROM tab1
----
-1105
-2218
-850

query I rowsort
SELECT 53 - col1 * + 66 AS col0 FROM tab0
----
-5623
-5953
-6349

query I rowsort
SELECT DISTINCT + 26 + + col0 * col2 * col2 AS col2 FROM tab2
----
114102
5129
52754

onlyif mysql # use DIV operator for integer division
query I rowsort label-9780
SELECT - col0 DIV - col1 + - ( 96 ) AS col0 FROM tab0 AS cor0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-9780
SELECT - col0 / - col1 + - ( 96 ) AS col0 FROM tab0 AS cor0
----
-96
-96
-96

query I rowsort
SELECT - 20 * col0 * + ( cor0.col2 * col1 ) AS col0 FROM tab0 AS cor0
----
-13282360
-1362240
-67900

query I rowsort
SELECT + col0 * - cor0.col2 + + 72 FROM tab0 AS cor0
----
-720
-7226
37

query I rowsort
SELECT - + col1 * 97 FROM tab2 AS cor0
----
-1649
-3007
-5723

query I rowsort
SELECT + + cor1.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8

query I rowsort
SELECT + col1 + + col2 * + 77 AS col0 FROM tab0 AS cor0
----
174
2627
6405

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9786
SELECT - + CAST( 36 AS SIGNED ) + col1 FROM tab0 AS cor0
----
50
55
61

skipif mysql # not compatible
query I rowsort label-9786
SELECT - + CAST ( 36 AS INTEGER ) + col1 FROM tab0 AS cor0
----
50
55
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9787
SELECT - - CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-9787
SELECT - - CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + 98 + col0 + - cor0.col0 AS col2 FROM tab2 cor0
----
98
98
98

query I rowsort
SELECT - col2 + col2 - - col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - 64 * + 94 + cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
-2621
-3952
2083

onlyif mysql # use DIV operator for integer division
query I rowsort label-9791
SELECT + - 95 DIV - 21 + col2 FROM tab2 AS cor0
----
30
31
42

skipif mysql # not compatible
query I rowsort label-9791
SELECT + - 95 / - 21 + col2 FROM tab2 AS cor0
----
30
31
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9792
SELECT - CAST( cor0.col2 AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

skipif mysql # not compatible
query I rowsort label-9792
SELECT - CAST ( cor0.col2 AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT - col1 - + ( col0 ) FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT ( - col0 ) - - col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * 5 - col0 AS col1 FROM tab2 AS cor0
----
111
128
52

query I rowsort
SELECT 67 * col0 + + col2 * 32 FROM tab0 cor0
----
2377
2664
8587

query I rowsort
SELECT - + 32 + 57 * + col2 FROM tab2 AS cor0
----
1450
1507
2134

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9798
SELECT + CAST( NULL AS SIGNED ) + col2 * + col2 * + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9798
SELECT + CAST ( NULL AS INTEGER ) + col2 * + col2 * + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + 29 ) AS col2 FROM tab1 AS cor0
----
-29
-29
-29

query I rowsort
SELECT + ( - col2 ) + + col1 * ( + col1 ) AS col2 FROM tab1 cor0
----
43
622
73

query I rowsort
SELECT ALL - ( + col0 ) + - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) + col2 + col1 col2 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT ALL + ( + 80 ) * col2 AS col0 FROM tab2 AS cor0
----
2080
2160
3040

query I rowsort
SELECT ALL 34 * + col1 AS col1 FROM tab2 AS cor0
----
1054
2006
578

query I rowsort
SELECT ALL + + 83 + col2 * ( col1 ) AS col0 FROM tab0 AS cor0
----
180
2921
7545

query I rowsort
SELECT col1 + col1 * - 1 * - col1 FROM tab2 AS cor0
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-9807
SELECT ALL col2 - col0 DIV - col1 FROM tab2 AS cor0
----
27
27
42

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL col2 - col0 / - col1 FROM tab2 AS cor0
----
27
27
42

query I rowsort
SELECT - 2 * + cor0.col0 + col2 AS col2 FROM tab0 AS cor0
----
-15
-69
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9809
SELECT + 0 * - 94 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-9809
SELECT + 0 * - 94 / - col1 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 29 * + col2 FROM tab2 AS cor0
----
-1102
-754
-783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 col2 FROM tab2 AS cor0
----
66
66
66

query I rowsort
SELECT DISTINCT col0 * + col0 + col2 * - cor0.col2 FROM tab2 AS cor0
----
-680
4797
5408

onlyif mysql # use DIV operator for integer division
query I rowsort label-9813
SELECT ALL - cor0.col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL - cor0.col2 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 26 * + col1 - - col1 AS col1 FROM tab2 AS cor0
----
-1475
-425
-775

query I rowsort
SELECT ALL cor0.col0 + + col2 AS col2 FROM tab1 cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9816
SELECT + col0 + col2 * CAST( NULL AS SIGNED ) / 3 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9816
SELECT + col0 + col2 * CAST ( NULL AS INTEGER ) / 3 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9817
SELECT DISTINCT - col2 * cor0.col1 + + cor0.col2 DIV 71 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT - col2 * cor0.col1 + + cor0.col2 / 71 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - col2 * col2 * + 54 - - 31 FROM tab2 AS cor0
----
-36473
-39335
-77945

query I rowsort
SELECT ALL + col2 * - col0 - col1 AS col1 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT ALL - col1 - + 76 FROM tab1
----
-102
-86
-89

query I rowsort
SELECT ALL + col0 - tab2.col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - 6 - - 40 AS col2 FROM tab0
----
34
34
34

query I rowsort
SELECT DISTINCT + col2 + cor0.col2 * + 20 FROM tab2 AS cor0
----
546
567
798

query I rowsort
SELECT ALL + col1 + - col2 * + 17 FROM tab2 AS cor0
----
-383
-428
-629

onlyif mysql # use DIV operator for integer division
query I rowsort label-9825
SELECT - + col1 DIV + cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9825
SELECT - + col1 / + cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - + col0 + col1 * col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT - - cor0.col1 + 72 * + 96 FROM tab1 AS cor0
----
6922
6925
6938

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9828
SELECT ALL col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 97 * col0 AS col1 FROM tab1
----
291
6208
7760

query I rowsort
SELECT DISTINCT - col1 + 20 * col2 AS col0 FROM tab1 AS cor0
----
1054
1130
1907

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 26 col1 FROM tab0 AS cor0
----
2314
624
910

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

onlyif mysql # use DIV operator for integer division
query I rowsort label-9833
SELECT - cor0.col1 + - ( col2 ) DIV + col0 FROM tab1 AS cor0
----
-10
-14
-44

skipif mysql # not compatible
query I rowsort label-9833
SELECT - cor0.col1 + - ( col2 ) / + col0 FROM tab1 AS cor0
----
-10
-14
-44

query I rowsort
SELECT DISTINCT - + col2 + col2 * - ( col2 ) FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT DISTINCT + - 10 * + cor0.col1 FROM tab0 AS cor0
----
-860
-910
-970

query I rowsort
SELECT ALL + - 20 * - col1 AS col2 FROM tab0 AS cor0
----
1720
1820
1940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 * - ( + col2 ) col0 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ALL col2 + tab0.col1 * col1 * ( col1 ) FROM tab0
----
636089
753653
912674

query I rowsort
SELECT DISTINCT - 37 * col2 + col0 AS col1 FROM tab1
----
-1995
-2045
-3472

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9840
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col2 + + ( col1 ) AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT + col1 * + col0 + - 28 + - col2 FROM tab0 AS cor0
----
2003
3366
7989

query I rowsort
SELECT + ( + col2 ) - + tab0.col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 46 * col1 FROM tab1 AS cor0
----
-1196
-460
-598

query I rowsort
SELECT DISTINCT + 46 * + cor0.col2 AS col1 FROM tab1 cor0
----
2484
2622
4416

query I rowsort
SELECT + + col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 * cor0.col0 * 20 col0 FROM tab2 AS cor0
----
-560
-6240
-6320

query I rowsort
SELECT - cor0.col1 * col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT 27 * + tab2.col1 FROM tab2
----
1593
459
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9850
SELECT col1 * ( - 75 ) + - col0 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9850
SELECT col1 * ( - 75 ) + - col0 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 - - 73 AS col1 FROM tab1
----
137
153
76

query I rowsort
SELECT DISTINCT - + col2 * 37 FROM tab2 AS cor0
----
-1406
-962
-999

onlyif mysql # use DIV operator for integer division
query I rowsort label-9853
SELECT DISTINCT - col0 DIV ( col1 + + 18 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT - col0 / ( col1 + + 18 ) FROM tab0 cor0
----
0

query I rowsort
SELECT cor1.col1 AS col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9855
SELECT - - CAST( NULL AS SIGNED ) + col2 * col1 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9855
SELECT - - CAST ( NULL AS INTEGER ) + col2 * col1 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + col2 ) + col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - - ( - cor0.col1 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

onlyif mysql # use DIV operator for integer division
query I rowsort label-9858
SELECT ALL 45 + tab0.col0 DIV 52 FROM tab0, tab0 AS cor0
----
9 values hashing to c4209542f63158fd8a12e079250c798c

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL 45 + tab0.col0 / 52 FROM tab0, tab0 AS cor0
----
9 values hashing to c4209542f63158fd8a12e079250c798c

query I rowsort
SELECT 93 FROM tab1, tab2 cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT DISTINCT 83 + + col0 AS col1 FROM tab0
----
107
118
172

onlyif mysql # use DIV operator for integer division
query I rowsort label-9861
SELECT DISTINCT 87 DIV col1 + - col2 + tab1.col0 AS col2 FROM tab1
----
-10
-48
15

skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT 87 / col1 + - col2 + tab1.col0 AS col2 FROM tab1
----
-10
-48
15

query I rowsort
SELECT 68 + + col2 + col0 AS col0 FROM tab1 AS cor0
----
125
189
244

query I rowsort
SELECT ALL - col1 + - col0 * - col0 AS col1 FROM tab2 AS cor0
----
18
6025
6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 94 col0 FROM tab1 AS cor0
----
-158
-174
-97

query I rowsort
SELECT ALL + col2 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-9866
SELECT ALL ( + 47 ) * - tab2.col0 + col1 DIV + col0 FROM tab2
----
-325
-3666
-3713

skipif mysql # not compatible
query I rowsort label-9866
SELECT ALL ( + 47 ) * - tab2.col0 + col1 / + col0 FROM tab2
----
-325
-3666
-3713

query I rowsort
SELECT col0 + - col0 + col2 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-9868
SELECT DISTINCT - ( + col1 ) DIV col0 AS col1 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT - ( + col1 ) / col0 AS col1 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT ALL cor0.col2 * - cor0.col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT + 31 * + col0 + + cor0.col1 + + col1 FROM tab2 cor0
----
2483
2536
279

query I rowsort
SELECT ALL - 90 * - 65 FROM tab0 AS cor0
----
5850
5850
5850

onlyif mysql # use DIV operator for integer division
query I rowsort label-9872
SELECT + cor0.col1 * col2 + + col2 DIV 75 AS col1 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-9872
SELECT + cor0.col1 * col2 + + col2 / 75 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - 81 * - col2 AS col1 FROM tab1
----
4374
4617
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - col1 * - col0 col2 FROM tab1 cor0
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + col0 * 70 * cor0.col0 FROM tab0 cor0
----
40320
554470
85750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 * + 49 col1 FROM tab1 AS cor0
----
-1274
-490
-637

query I rowsort
SELECT DISTINCT - + col0 * 45 + + col2 AS col1 FROM tab1 cor0
----
-2823
-3504
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * ( col2 ) col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-9879
SELECT ALL - - col0 + col0 DIV + col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-9879
SELECT ALL - - col0 + col0 / + col0 FROM tab0 AS cor0
----
25
36
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9880
SELECT col2 * + CAST( col1 AS SIGNED ) * col2 + + 96 + - col0 FROM tab0 AS cor0
----
158
611891
93726

skipif mysql # not compatible
query I rowsort label-9880
SELECT col2 * + CAST ( col1 AS INTEGER ) * col2 + + 96 + - col0 FROM tab0 AS cor0
----
158
611891
93726

query I rowsort
SELECT - - col0 * + 45 FROM tab0 AS cor0
----
1080
1575
4005

query I rowsort
SELECT - 1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9883
SELECT ALL - CAST( - 24 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

skipif mysql # not compatible
query I rowsort label-9883
SELECT ALL - CAST ( - 24 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT ALL col0 * 71 FROM tab1
----
213
4544
5680

query I rowsort
SELECT ALL 96 AS col2 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e

query I rowsort
SELECT ALL - 90 * - 18 FROM tab1, tab1 AS cor0
----
9 values hashing to e15c529b050aea1c7ee32f3db31d2ed5

query I rowsort
SELECT DISTINCT - ( 61 ) AS col0 FROM tab1, tab2 AS cor0
----
-61

query I rowsort
SELECT + col2 + - ( col0 * col1 + ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + col2 - col0 * + col0 FROM tab0
----
-1224
-543
-7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-9890
SELECT col0 DIV ( ( col2 ) ) AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9890
SELECT col0 / ( ( col2 ) ) AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( 21 AS REAL ) AS col2 FROM tab0
----
21
21
21

query I rowsort
SELECT ALL + + tab1.col2 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT - - 84 - + 57 FROM tab0, tab1, tab1 AS cor0
----
27

query I rowsort
SELECT ALL - tab1.col2 * 26 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to f489df5bf6bb1223a0839fb15215f1c5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + cor0.col2 col0 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 col0 FROM tab2 AS cor0
----
87
87
87

query I rowsort
SELECT + + tab0.col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + + col0 * + col0 AS col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL + col2 - + col1 AS col1 FROM tab1 cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9900
SELECT DISTINCT + col2 + - CAST( NULL AS SIGNED ) * + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT + col2 + - CAST ( NULL AS INTEGER ) * + col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9901
SELECT DISTINCT - col2 DIV CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT - col2 / CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT ALL col2 + 14 * + col2 AS col0 FROM tab2 AS cor0
----
390
405
570

query I rowsort
SELECT DISTINCT + col2 * + 89 + - 36 AS col2 FROM tab1 cor0
----
4770
5037
8508

query I rowsort
SELECT ALL - col1 * + 52 + col0 * + col1 FROM tab2 AS cor0
----
-1395
1534
459

query I rowsort
SELECT ALL - + col1 + 38 AS col1 FROM tab0 AS cor0
----
-48
-53
-59

query I rowsort
SELECT ALL + + col1 + - 35 FROM tab1 cor0
----
-22
-25
-9

query I rowsort
SELECT DISTINCT + - col0 * 24 AS col2 FROM tab0 cor0
----
-2136
-576
-840

query I rowsort
SELECT DISTINCT - - col1 * cor0.col2 + col1 * + cor0.col0 FROM tab1 AS cor0
----
1210
1482
2288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 77 ) col0 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125

query I rowsort
SELECT DISTINCT - - col0 * col2 - cor0.col1 * + col2 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT DISTINCT cor0.col1 * - col0 * col1 - - col0 FROM tab2 cor0
----
-22752
-271440
-6720

query I rowsort
SELECT + 92 + - col0 + col0 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT 90 + + col0 FROM tab2 AS cor0
----
168
169
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + cor0.col1 col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL + col1 + - col0 * + col0 FROM tab1 AS cor0
----
-4086
-6387
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( cor0.col1 ) - col2 col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT - 8 * col0 + col1 * col0 FROM tab0 cor0
----
1872
3115
7387

query I rowsort
SELECT - - 47 * col1 * col1 FROM tab1 AS cor0
----
31772
4700
7943

query I rowsort
SELECT DISTINCT - + 71 * col2 FROM tab1 AS cor0
----
-3834
-4047
-6816

query I rowsort
SELECT + - 94 + + col0 + + col0 * ( - col2 ) AS col1 FROM tab0 AS cor0
----
-7303
-862
-94

query I rowsort
SELECT DISTINCT + ( 89 ) FROM tab0 AS cor0
----
89

query I rowsort
SELECT ALL 98 * - col1 + + col2 * - col1 * ( cor0.col2 + + ( 72 ) ) FROM tab0 AS cor0
----
-1158066
-16587
-306418

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9923
SELECT DISTINCT CAST( col2 AS SIGNED ) + + col0 * col1 AS col0 FROM tab2 AS cor0
----
1381
244
4628

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT CAST ( col2 AS INTEGER ) + + col0 * col1 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + + col2 * + col1 + - col1 * + col0 AS col1 FROM tab2 AS cor0
----
-3068
-697
620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
243 values hashing to 455e4df3bf7b0fa681c56e89df1a761f

query I rowsort
SELECT ALL + + ( col0 ) * 49 AS col0 FROM tab2 AS cor0
----
343
3822
3871

query I rowsort
SELECT ALL 32 - + col2 AS col2 FROM tab1 cor0
----
-22
-25
-64

query I rowsort
SELECT DISTINCT + cor0.col2 - + col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT - - 52 AS col1 FROM tab2 AS cor0
----
52

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab0 cor1
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237

query I rowsort
SELECT - col0 + + col0 + col1 * + tab0.col0 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT col1 + cor0.col1 * + col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + col1 * col2 * col0 + + cor0.col2 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT ALL - + col0 * + col2 + - col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT - col2 + - col2 * + col1 AS col2 FROM tab0 AS cor0
----
-2871
-7544
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-9936
SELECT col2 + col1 DIV - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-9936
SELECT col2 + col1 / - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1
30
81

query I rowsort
SELECT DISTINCT + + col2 + col2 * col1 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT - col1 * cor0.col0 + + col1 + col1 AS col2 FROM tab1 AS cor0
----
-1014
-26
-620

onlyif mysql # use DIV operator for integer division
query I rowsort label-9939
SELECT col0 DIV - col1 + col1 * cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-9939
SELECT col0 / - col1 + col1 * cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + tab1.col1 * + tab1.col0 + + tab1.col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT DISTINCT - col2 * col2 + + col0 * + col1 AS col2 FROM tab2
----
-101
-512
3926

query I rowsort
SELECT ALL cor0.col0 * col1 + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL - 53 * + col1 AS col0 FROM tab1 AS cor0
----
-1378
-530
-689

query I rowsort
SELECT ALL - 54 + cor0.col0 FROM tab1 AS cor0
----
-51
10
26

query I rowsort
SELECT DISTINCT + col1 + + col1 + - col1 * col0 AS col0 FROM tab0 AS cor0
----
-1892
-3201
-7917

query I rowsort
SELECT - col2 * + 62 + - col2 AS col0 FROM tab1
----
-3402
-3591
-6048

query I rowsort
SELECT ( col0 ) * + col0 + col1 AS col1 FROM tab2
----
6143
6258
80

query I rowsort
SELECT DISTINCT - - cor0.col1 * + cor0.col2 AS col2 FROM tab1, tab2, tab1 cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 59 + + col0 col1 FROM tab0 AS cor0
----
148
83
94

query I rowsort
SELECT ALL + - 25 * + col1 FROM tab2 AS cor0
----
-1475
-425
-775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 + - col1 col0 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT col0 + cor0.col1 * cor0.col2 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-9953
SELECT - col0 + + col2 DIV + col2 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-9953
SELECT - col0 + + col2 / + col2 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT tab2.col1 + col0 * + col2 AS col1 FROM tab2
----
2087
220
3019

query III rowsort
SELECT * FROM tab0 WHERE - col1 * - tab0.col2 * + col0 NOT IN ( col1 + + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NULL NOT IN ( - tab2.col2 )
----

query I rowsort
SELECT col1 + - col2 * col2 FROM tab1
----
-2890
-3239
-9203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col1 col1 FROM tab1
----
0

query I rowsort
SELECT - tab1.col1 * + tab1.col2 FROM tab1 WHERE ( NULL ) NOT IN ( - col0 * col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9961
SELECT DISTINCT col0 * - col1 + - tab0.col2 DIV col0 AS col1 FROM tab0
----
-2065
-3395
-8099

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT col0 * - col1 + - tab0.col2 / col0 AS col1 FROM tab0
----
-2065
-3395
-8099

query I rowsort
SELECT DISTINCT col2 * + col2 * col2 + - col1 FROM tab0
----
-96
35851
551277

query I rowsort
SELECT ALL col2 + col0 * + col2 AS col1 FROM tab0
----
36
7380
825

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 BETWEEN NULL AND + col1
----
78
59
26
79
17
38

query I rowsort
SELECT ALL - tab1.col1 + col0 * + col1 AS col1 FROM tab1
----
1027
52
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 * - tab2.col0 col2 FROM tab2
----
-343
-474552
-493039

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + col1 < + col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + tab2.col1 - - tab2.col0 col1 FROM tab2 WHERE NULL NOT BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT col1 * - col1 + col0 AS col1 FROM tab0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT + tab1.col0 + - col0 * + col1 FROM tab1
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab1 WHERE NULL IN ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9972
SELECT col2 + tab1.col0 DIV col2 - + col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9972
SELECT col2 + tab1.col0 / col2 - + col2 FROM tab1
----
0
0
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 BETWEEN ( + col0 ) AND + col2
----
78
59
26
79
17
38

query I rowsort
SELECT col0 + col1 * + col1 * tab2.col2 FROM tab2
----
11061
25954
90584

query I rowsort
SELECT ALL col0 + - tab2.col2 * - col1 AS col1 FROM tab2
----
1612
725
844

query I rowsort
SELECT col0 * col2 * col1 + + tab0.col1 AS col1 FROM tab0
----
3492
664209
68198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 col0 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9978
SELECT ALL - col1 * col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL - col1 * col2 / - col2 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE col1 * - col2 BETWEEN NULL AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9980
SELECT DISTINCT tab0.col0 + col2 * col0 DIV tab0.col2 AS col1 FROM tab0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-9980
SELECT DISTINCT tab0.col0 + col2 * col0 / tab0.col2 AS col1 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL - tab0.col0 + tab0.col0 * - col0 AS col0 FROM tab0
----
-1260
-600
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 col0 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT cor0.col0 * - cor0.col2 FROM tab2, tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 AS cor0 WHERE - col0 NOT IN ( - col1 / col0 + col0 )
----
7
78
79

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE + col1 + col0 > NULL
----

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab1 cor0 WHERE NULL < ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9987
SELECT - cor0.col2 + - col2 DIV col0 AS col1 FROM tab1 AS cor0
----
-57
-72
-97

skipif mysql # not compatible
query I rowsort label-9987
SELECT - cor0.col2 + - col2 / col0 AS col1 FROM tab1 AS cor0
----
-57
-72
-97

query I rowsort
SELECT - - ( + ( col2 ) ) AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + 85 * 14 FROM tab2 AS cor0
----
1190
1190
1190

query I rowsort
SELECT ALL + 88 * 59 AS col0 FROM tab0 AS cor0
----
5192
5192
5192

query I rowsort
SELECT DISTINCT 76 + ( col1 ) AS col1 FROM tab0 AS cor0
----
162
167
173

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9992
SELECT CAST( NULL AS SIGNED ) / + 29 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9992
SELECT CAST ( NULL AS INTEGER ) / + 29 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 70 + col0 * 12 * 70 FROM tab0 AS cor0
----
20090
29330
74690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 13 * col0 * - col1 col1 FROM tab2 AS cor0
----
17459
2821
59826

query I rowsort
SELECT ALL - 85 + col1 AS col1 FROM tab0 AS cor0
----
1
12
6

query I rowsort
SELECT + cor0.col1 + + cor0.col0 FROM tab1, tab1 cor0
----
9 values hashing to d994d266bacb99d3939b70b2c7903ce8

query I rowsort
SELECT DISTINCT ( col2 ) * + col0 * + 48 AS col1 FROM tab0 cor0
----
1680
350304
38016

query I rowsort
SELECT ALL + ( + 38 ) FROM tab0
----
38
38
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-9999
SELECT - cor0.col2 + cor0.col0 DIV - col2 + cor0.col0 FROM tab0 AS cor0
----
-1
-9
6

skipif mysql # not compatible
query I rowsort label-9999
SELECT - cor0.col2 + cor0.col0 / - col2 + cor0.col0 FROM tab0 AS cor0
----
-1
-9
6

