sqllogictest

Artifact [818ee85aa9]
Login

Artifact 818ee85aa9698826e449be1a74dd46d12454caba:


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 ALL cor1.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

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

query I rowsort
SELECT ALL + 30 FROM tab2, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3
SELECT DISTINCT + + cor0.col1 + col0 DIV ( + col0 * ( - cor0.col0 ) ) FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3
SELECT DISTINCT + + cor0.col1 + col0 / ( + col0 * ( - cor0.col0 ) ) FROM tab1 AS cor0
----
10
13
26

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

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

query I rowsort
SELECT DISTINCT col2 + + 19 + col0 AS col0 FROM tab1 cor0
----
140
195
76

query I rowsort
SELECT DISTINCT + cor0.col0 + - 69 FROM tab1 AS cor0
----
-5
-66
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-8
SELECT + + col1 + 45 DIV 1 AS col2 FROM tab0 cor0
----
131
136
142

skipif mysql # not compatible
query I rowsort label-8
SELECT + + col1 + 45 / 1 AS col2 FROM tab0 cor0
----
131
136
142

query I rowsort
SELECT ALL col1 + - col2 * cor0.col0 + + ( + col1 ) AS col1 FROM tab0 AS cor0
----
-620
-7116
159

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

query I rowsort
SELECT ALL 79 FROM tab1, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-13
SELECT ALL ( + col0 ) + col1 DIV ( + col2 ) FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL ( + col0 ) + col1 / ( + col2 ) FROM tab0 AS cor0
----
132
26
90

query I rowsort
SELECT + - col0 * 76 + - col2 FROM tab0 AS cor0
----
-1857
-2661
-6846

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

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

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

query I rowsort
SELECT 64 * + cor0.col1 AS col1 FROM tab1 cor0
----
1664
640
832

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

query I rowsort
SELECT DISTINCT + 47 * cor0.col1 + 65 AS col0 FROM tab2 cor0
----
1522
2838
864

query I rowsort
SELECT DISTINCT - 69 + col1 + col0 AS col1 FROM tab0 AS cor0
----
111
41
63

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

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

skipif mysql # not compatible
query I rowsort label-22
SELECT DISTINCT + col1 + + cor0.col0 + CAST ( + cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT + - col1 * col2 - - ( + col0 ) * + col1 * - 80 AS col1 FROM tab0 AS cor0
----
-167958
-271697
-655382

query I rowsort
SELECT DISTINCT + col2 * - col2 + - col1 * ( + col2 ) AS col1 FROM tab0 AS cor0
----
-14186
-3927
-98

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

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

query I rowsort
SELECT 89 * col2 + + col2 FROM tab2 AS cor0
----
2340
2430
3420

query I rowsort
SELECT ALL col1 - ( col0 + - col1 ) FROM tab0
----
148
159
93

query I rowsort
SELECT - 68 * + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to d0c28b3ac3146e5de87ee8101376f910

query I rowsort
SELECT DISTINCT 90 - tab0.col2 FROM tab0
----
57
8
89

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col2 * + 58 col1 FROM tab1, tab0, tab2 AS cor0, tab2
----
-3132
-3306
-5568

query I rowsort
SELECT + 63 * col0 + - cor0.col1 * + col2 * col1 FROM tab1 AS cor0
----
-11184
-1668
-36315

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

query I rowsort
SELECT ALL + 23 * 82 AS col1 FROM tab1
----
1886
1886
1886

query I rowsort
SELECT - col2 * - col1 * - ( 48 * + col2 ) FROM tab1 AS cor0
----
-1559520
-3639168
-5750784

query I rowsort
SELECT + cor0.col0 * ( + 9 * col2 ) - - ( - col1 ) * col2 FROM tab1 AS cor0
----
32262
54
67872

query I rowsort
SELECT + col2 * - ( 3 ) FROM tab0 AS cor0
----
-246
-3
-99

query I rowsort
SELECT + col1 * 31 + 9 FROM tab2 AS cor0
----
1838
536
970

query I rowsort
SELECT ALL - col0 * - col0 * - 36 AS col0 FROM tab1
----
-147456
-230400
-324

onlyif mysql # use DIV operator for integer division
query I rowsort label-40
SELECT ALL 11 DIV - col0 FROM tab1
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-40
SELECT ALL 11 / - col0 FROM tab1
----
-3
0
0

query I rowsort
SELECT - - tab1.col2 FROM tab1, tab0, tab2 cor0, tab2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT DISTINCT col1 + - col0 * - 82 * - col0 AS col0 FROM tab0
----
-100353
-47146
-649431

query I rowsort
SELECT ALL - col1 * col2 * + ( col1 + - col0 ) FROM tab1
----
-32292
30780
83616

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

query I rowsort
SELECT - 30 * 44 FROM tab0 AS cor0
----
-1320
-1320
-1320

query I rowsort
SELECT - 80 * col0 AS col0 FROM tab1 cor0
----
-240
-5120
-6400

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

query I rowsort
SELECT col0 + - tab0.col1 * + ( col1 + + 72 ) AS col0 FROM tab0
----
-13564
-14744
-16358

query I rowsort
SELECT ALL col1 * - 27 * col1 FROM tab2 AS cor0
----
-25947
-7803
-93987

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

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

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

query I rowsort
SELECT DISTINCT col0 * ( col2 ) + 93 FROM tab1 AS cor0
----
255
3741
7773

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

query I rowsort
SELECT DISTINCT 86 * 0 * - col2 AS col2 FROM tab0 cor0
----
0

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-59
SELECT - - col0 + - col2 + + 36 DIV col2 FROM tab0 AS cor0
----
-8
7
70

skipif mysql # not compatible
query I rowsort label-59
SELECT - - col0 + - col2 + + 36 / col2 FROM tab0 AS cor0
----
-8
7
70

query I rowsort
SELECT - col0 * - col1 + - 86 + - col2 * col0 FROM tab2 cor0
----
-1745
-58
2488

query I rowsort
SELECT 22 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

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

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

query I rowsort
SELECT + - 35 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b

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

query I rowsort
SELECT col2 + - 59 AS col0 FROM tab0 AS cor0
----
-26
-58
23

query I rowsort
SELECT DISTINCT - col1 + - 29 + col1 * + col1 AS col2 FROM tab2
----
243
3393
901

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

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

query I rowsort
SELECT DISTINCT + col1 * - col1 + + 64 AS col1 FROM tab0 AS cor0
----
-7332
-8217
-9345

query I rowsort
SELECT DISTINCT 87 * + col2 + + col1 FROM tab1
----
4724
4969
8365

onlyif mysql # use DIV operator for integer division
query I rowsort label-72
SELECT DISTINCT + 1 DIV - tab0.col0 FROM tab0, tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-72
SELECT DISTINCT + 1 / - tab0.col0 FROM tab0, tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-73
SELECT DISTINCT 54 * - col2 - + col1 DIV - col0 FROM tab2
----
-1404
-1454
-2052

skipif mysql # not compatible
query I rowsort label-73
SELECT DISTINCT 54 * - col2 - + col1 / - col0 FROM tab2
----
-1404
-1454
-2052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + ( - col0 ) col1 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT - 51 + - col0 + 24 FROM tab2
----
-105
-106
-34

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col2 ) + 66 col2 FROM tab2 AS cor0
----
104
92
93

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-82
SELECT ALL + 39 DIV col0 + ( 23 ) AS col1 FROM tab1
----
23
23
36

skipif mysql # not compatible
query I rowsort label-82
SELECT ALL + 39 / col0 + ( 23 ) AS col1 FROM tab1
----
23
23
36

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

query I rowsort
SELECT 69 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT DISTINCT - col1 * 94 + 68 + - col2 * ( - col0 ) AS col2 FROM tab1 AS cor0
----
-2214
2776
6526

query I rowsort
SELECT + + col2 + - 67 * col0 FROM tab2 cor0
----
-442
-5200
-5255

query I rowsort
SELECT ALL - col0 + + ( cor0.col1 ) * + col1 AS col0 FROM tab0 cor0
----
7372
8192
9374

query I rowsort
SELECT + 75 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

onlyif mysql # use DIV operator for integer division
query I rowsort label-89
SELECT - + col0 * + cor0.col2 + col2 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-89
SELECT - + col0 * + cor0.col2 + col2 / cor0.col1 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-90
SELECT ALL + CAST( - 79 AS SIGNED ) + cor0.col0 * - ( + 33 ) FROM tab1, tab2 AS cor0
----
9 values hashing to bb47902e10201445ae4a851bf3a2934a

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL + CAST ( - 79 AS INTEGER ) + cor0.col0 * - ( + 33 ) FROM tab1, tab2 AS cor0
----
9 values hashing to bb47902e10201445ae4a851bf3a2934a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col2 + - col0 col2 FROM tab0 cor0
----
-34
1065
6635

query I rowsort
SELECT col1 - + 89 * - col0 FROM tab2 AS cor0
----
654
7001
7048

query I rowsort
SELECT DISTINCT - - 76 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
76

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 + - col1 + col0 * + 18 col0 FROM tab2 AS cor0
----
-122
-3257
62

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

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

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

query I rowsort
SELECT + + col1 * - 33 AS col1 FROM tab0 AS cor0
----
-2838
-3003
-3201

onlyif mysql # use DIV operator for integer division
query I rowsort label-99
SELECT - col2 + col1 DIV col0 FROM tab1
----
-46
-57
-96

skipif mysql # not compatible
query I rowsort label-99
SELECT - col2 + col1 / col0 FROM tab1
----
-46
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-100
SELECT DISTINCT CAST( ( col0 ) AS SIGNED ) FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT CAST ( ( col0 ) AS INTEGER ) FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 * col1 col1 FROM tab0 cor0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT + cor0.col2 * + 78 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
4212
4446
7488

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

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

query I rowsort
SELECT - 83 * cor0.col1 * + cor0.col0 FROM tab0 AS cor0
----
-171312
-281785
-672217

query I rowsort
SELECT + ( - 95 ) * - col2 * + 85 AS col2 FROM tab0 AS cor0
----
266475
662150
8075

onlyif mysql # use DIV operator for integer division
query I rowsort label-106
SELECT ALL - 39 DIV col0 col2 FROM tab1 AS cor0
----
-13
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-106
SELECT ALL - 39 / col0 col2 FROM tab1 AS cor0
----
-13
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-108
SELECT col2 DIV col0 - - col2 * cor0.col1 DIV col0 AS col0 FROM tab0 AS cor0
----
119
2
83

skipif mysql # not compatible
query I rowsort label-108
SELECT col2 / col0 - - col2 * cor0.col1 / col0 AS col0 FROM tab0 AS cor0
----
119
2
83

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

query I rowsort
SELECT ALL + col1 * - col1 + - col2 * col2 FROM tab2 AS cor0
----
-1690
-1733
-4157

query I rowsort
SELECT DISTINCT + 34 - col2 FROM tab0 AS cor0
----
-48
1
33

query I rowsort
SELECT ALL + col0 + col0 * ( 33 * + col0 ) AS col1 FROM tab0 AS cor0
----
19032
261482
40460

onlyif mysql # use DIV operator for integer division
query I rowsort label-113
SELECT DISTINCT cor0.col0 + + col1 DIV col2 + col2 AS col2 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-113
SELECT DISTINCT cor0.col0 + + col1 / col2 + col2 AS col2 FROM tab1 AS cor0
----
121
176
57

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

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

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

query I rowsort
SELECT DISTINCT - 8 * tab2.col0 AS col0 FROM tab2
----
-56
-624
-632

query I rowsort
SELECT - 87 + col0 - col1 * col0 FROM tab1 AS cor0
----
-1047
-162
-663

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

query I rowsort
SELECT DISTINCT + - 81 * col2 FROM tab1 AS cor0
----
-4374
-4617
-7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 45 + tab0.col2 col2 FROM tab0
----
-43
119
21

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

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

query I rowsort
SELECT ALL - 97 + + col2 FROM tab1
----
-1
-40
-43

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 + + col0 col1 FROM tab2
----
7
78
79

query I rowsort
SELECT + ( col2 ) + col1 * 49 AS col1 FROM tab1
----
1328
547
733

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col0 col1 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT ALL - col0 + cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT ALL cor1.col0 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

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

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

query I rowsort
SELECT - col1 * 94 + - col2 * - col2 AS col0 FROM tab2 AS cor0
----
-154
-2185
-4870

query I rowsort
SELECT ALL 33 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

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

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

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

query I rowsort
SELECT ALL col1 + + col1 + + col0 AS col0 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT DISTINCT + col2 * col1 + - cor0.col2 * - col2 * + col0 FROM tab2 AS cor0
----
114722
54262
5940

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + col0 col2 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-137
SELECT DISTINCT - col1 * - col1 + col0 * col0 DIV + 86 + + 5 FROM tab0 AS cor0
----
7407
8378
9428

skipif mysql # not compatible
query I rowsort label-137
SELECT DISTINCT - col1 * - col1 + col0 * col0 / + 86 + + 5 FROM tab0 AS cor0
----
7407
8378
9428

query I rowsort
SELECT col0 + - 29 FROM tab2 AS cor0
----
-22
49
50

query I rowsort
SELECT col1 + + ( - col2 ) * tab0.col2 * 40 FROM tab0
----
-268869
-43474
57

query I rowsort
SELECT ALL + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL - col0 * - col1 + - col1 + - col2 FROM tab0 AS cor0
----
1945
3297
7926

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

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

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

query I rowsort
SELECT DISTINCT + col1 + - ( - 20 ) * + col2 AS col1 FROM tab0 AS cor0
----
117
1731
746

query I rowsort
SELECT DISTINCT - cor0.col2 * + col0 + cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-147
SELECT DISTINCT + + col0 * - 84 + cor0.col1 DIV col0 FROM tab2 AS cor0
----
-584
-6552
-6636

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT + + col0 * - 84 + cor0.col1 / col0 FROM tab2 AS cor0
----
-584
-6552
-6636

query I rowsort
SELECT col1 + + 60 AS col2 FROM tab0 AS cor0
----
146
151
157

onlyif mysql # use DIV operator for integer division
query I rowsort label-149
SELECT ALL + cor0.col0 DIV - col1 + ( col0 ) - - 80 col2 FROM tab2 cor0
----
155
157
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-149
SELECT ALL + cor0.col0 / - col1 + ( col0 ) - - 80 col2 FROM tab2 cor0
----
155
157
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-150
SELECT DISTINCT - col2 * 56 DIV + 47 AS col0 FROM tab1 AS cor0
----
-114
-64
-67

skipif mysql # not compatible
query I rowsort label-150
SELECT DISTINCT - col2 * 56 / + 47 AS col0 FROM tab1 AS cor0
----
-114
-64
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * - 18 col1 FROM tab0 AS cor0
----
-1385
-508
79

query I rowsort
SELECT ALL - + col0 * - 7 AS col0 FROM tab2 cor0
----
49
546
553

query I rowsort
SELECT ALL 93 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-155
SELECT + cor0.col0 * + col2 + - CAST( - col2 AS SIGNED ) DIV + col0 AS col2 FROM tab0 AS cor0
----
35
7298
793

skipif mysql # not compatible
query I rowsort label-155
SELECT + cor0.col0 * + col2 + - CAST ( - col2 AS INTEGER ) / + col0 AS col2 FROM tab0 AS cor0
----
35
7298
793

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col0 * col1 col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

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

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

query I rowsort
SELECT + 51 * col0 + + 56 AS col0 FROM tab0 AS cor0
----
1280
1841
4595

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

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

skipif mysql # not compatible
query I rowsort label-161
SELECT - col2 + - col1 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-7429
-8363
-9410

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-165
SELECT - 62 DIV + tab0.col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-165
SELECT - 62 / + tab0.col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + cor0.col0 + + cor0.col2 * - 71 AS col0 FROM tab0 AS cor0
----
-2319
-36
-5733

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - - tab1.col1 AS col0 FROM tab1, tab0 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 * 73 + + col0 * col2 col1 FROM tab2 AS cor0
----
5445
7284
8258

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

query I rowsort
SELECT + col2 + + tab0.col2 + tab0.col2 AS col0 FROM tab0
----
246
3
99

query I rowsort
SELECT - 73 + - col2 * col0 AS col1 FROM tab2
----
-2101
-262
-3075

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

skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT + ( + 22 ) / + col1 - + col2 AS col0 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT col1 + 21 * tab1.col2 FROM tab1
----
1160
1207
2029

query I rowsort
SELECT DISTINCT - col2 - - col1 * - col1 * - col2 FROM tab1
----
16128
36450
5643

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

query I rowsort
SELECT - + 75 + col2 * col2 FROM tab0 AS cor0
----
-74
1014
6649

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

query I rowsort
SELECT + + ( col0 ) + + col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT col1 + col2 + - col2 * col1 FROM tab1 cor0
----
-1139
-1324
-503

query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab0 AS cor0
----
90

query I rowsort
SELECT DISTINCT + - 42 + cor0.col1 + + col2 * col2 FROM tab0 AS cor0
----
1133
56
6773

query I rowsort
SELECT ALL + col0 * + col0 + col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
6760
7685
778

query I rowsort
SELECT + 44 * + col0 + - col1 FROM tab2 AS cor0
----
277
3373
3459

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

skipif mysql # not compatible
query I rowsort label-187
SELECT - - 95 / - cor0.col0 + col1 FROM tab0 AS cor0
----
83
90
95

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

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

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

query I rowsort
SELECT tab2.col1 * 94 FROM tab2
----
1598
2914
5546

query I rowsort
SELECT DISTINCT 7 * + col1 AS col1 FROM tab1
----
182
70
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-193
SELECT - 22 DIV - col1 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-193
SELECT - 22 / - col1 AS col2 FROM tab0
----
0
0
0

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

query I rowsort
SELECT DISTINCT 25 * col2 FROM tab0
----
2050
25
825

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

query I rowsort
SELECT DISTINCT 23 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-41
-57
20

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

query I rowsort
SELECT ALL + col2 * + col1 * - col1 + - col2 - col2 * col1 AS col1 FROM tab2 AS cor0
----
-11666
-26811
-92066

query I rowsort
SELECT + col2 * + 55 AS col0 FROM tab1 AS cor0
----
2970
3135
5280

query I rowsort
SELECT - - col1 * - 49 AS col0 FROM tab1 AS cor0
----
-1274
-490
-637

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

query I rowsort
SELECT DISTINCT - cor0.col0 * - 4 + 35 FROM tab1 AS cor0
----
291
355
47

query I rowsort
SELECT ALL col2 * - 42 + - col1 AS col2 FROM tab1 cor0
----
-2294
-2404
-4045

query I rowsort
SELECT DISTINCT col1 + + col0 * 15 FROM tab2 AS cor0
----
1202
1229
136

onlyif mysql # use DIV operator for integer division
query I rowsort label-206
SELECT ALL col0 DIV + 15 FROM tab1 AS cor0
----
0
4
5

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL col0 / + 15 FROM tab1 AS cor0
----
0
4
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 18 * + col2 col2 FROM tab1 AS cor0
----
10260
22464
25272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + 94 + col0 AS col1 FROM tab1 AS cor0
----
158
174
97

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

query I rowsort
SELECT + col2 * col1 * col1 + col1 FROM tab2
----
10999
25978
90565

query I rowsort
SELECT + 57 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

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

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

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

query I rowsort
SELECT ALL + col1 * col1 * col1 AS col2 FROM tab1 AS cor0
----
1000
17576
2197

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 - cor0.col2 col2 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN ( NULL ) AND + col2 OR NOT ( NULL ) IN ( - col1 )
----

query I rowsort
SELECT DISTINCT col2 * - col1 + cor0.col2 * cor0.col0 * + col1 FROM tab1 cor0
----
2808
35910
98592

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

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 + col1 * - col2 + col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

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

query I rowsort
SELECT 94 * col1 FROM tab2
----
1598
2914
5546

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

query I rowsort
SELECT 13 + - col2 FROM tab0 AS cor0
----
-20
-69
12

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

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

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

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

query I rowsort
SELECT col2 + - col1 * + col0 * tab0.col2 AS col1 FROM tab0
----
-3394
-664036
-68079

query I rowsort
SELECT DISTINCT + tab2.col1 * - col1 * col1 AS col1 FROM tab2
----
-205379
-29791
-4913

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-235
SELECT DISTINCT - + col1 * + col1 DIV + col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT - + col1 * + col1 / + col1 FROM tab0 AS cor0
----
-86
-91
-97

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

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

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

query I rowsort
SELECT ALL + col0 + + col2 - - cor0.col2 * - cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
-119548
-50917
-5825

query I rowsort
SELECT DISTINCT - ( col0 ) * col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9

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

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

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

query I rowsort
SELECT - - col1 * col2 * - col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT - ( col0 ) + - 39 * col0 AS col0 FROM tab1 AS cor0
----
-120
-2560
-3200

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

query I rowsort
SELECT ALL + 13 * col0 AS col1 FROM tab0 AS cor0
----
1157
312
455

query I rowsort
SELECT + + 32 * + col2 * - 19 AS col0 FROM tab1 AS cor0
----
-32832
-34656
-58368

onlyif mysql # use DIV operator for integer division
query I rowsort label-249
SELECT - col2 DIV - col1 + - col0 * - col1 + col2 FROM tab2 AS cor0
----
1383
244
4628

skipif mysql # not compatible
query I rowsort label-249
SELECT - col2 / - col1 + - col0 * - col1 + col2 FROM tab2 AS cor0
----
1383
244
4628

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-251
SELECT + 32 DIV 62 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-251
SELECT + 32 / 62 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + 15 col1 FROM tab2 cor0
----
41
42
53

query I rowsort
SELECT tab0.col0 * - ( 54 ) + + col1 FROM tab0
----
-1210
-1793
-4715

query I rowsort
SELECT ALL + 58 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 793ce5fda3f22b0a251dca7e8a07baed

onlyif mysql # use DIV operator for integer division
query I rowsort label-257
SELECT - 98 DIV + cor0.col2 FROM tab0 AS cor0
----
-1
-2
-98

skipif mysql # not compatible
query I rowsort label-257
SELECT - 98 / + cor0.col2 FROM tab0 AS cor0
----
-1
-2
-98

query I rowsort
SELECT DISTINCT + 27 FROM tab0, tab1 cor0, tab0 AS cor1, tab0 cor2
----
27

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

query I rowsort
SELECT ALL + - 81 FROM tab1 cor0
----
-81
-81
-81

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

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

query I rowsort
SELECT DISTINCT - 59 * col0 FROM tab1 AS cor0
----
-177
-3776
-4720

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

query I rowsort
SELECT 11 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT DISTINCT - 9 + cor0.col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 cor1
----
-2
69
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-266
SELECT ALL + CAST( - col0 * col1 AS SIGNED ) FROM tab1
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL + CAST ( - col0 * col1 AS INTEGER ) FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT col2 * col2 + 25 + col1 FROM tab1 AS cor0
----
2967
3284
9254

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

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

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

skipif mysql # not compatible
query I rowsort label-269
SELECT col2 / + 77 FROM tab0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-270
SELECT tab1.col2 + col2 + col0 DIV + col2 FROM tab1
----
108
115
192

skipif mysql # not compatible
query I rowsort label-270
SELECT tab1.col2 + col2 + col0 / + col2 FROM tab1
----
108
115
192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-271
SELECT ALL + col2 + CAST( - 29 * col1 + + ( - col1 ) AS SIGNED ) AS col0 FROM tab2
----
-1744
-472
-903

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL + col2 + CAST ( - 29 * col1 + + ( - col1 ) AS INTEGER ) AS col0 FROM tab2
----
-1744
-472
-903

query I rowsort
SELECT ALL col0 * - ( - 76 ) FROM tab2 AS cor0
----
532
5928
6004

onlyif mysql # use DIV operator for integer division
query I rowsort label-273
SELECT DISTINCT + cor0.col0 DIV 80 + 52 AS col0 FROM tab0 AS cor0
----
52
53

skipif mysql # not compatible
query I rowsort label-273
SELECT DISTINCT + cor0.col0 / 80 + 52 AS col0 FROM tab0 AS cor0
----
52
53

query I rowsort
SELECT ALL + col2 + col0 + - col0 * - col1 AS col1 FROM tab2 cor0
----
1460
251
4706

query I rowsort
SELECT cor0.col1 + col0 + col1 FROM tab0 cor0
----
196
229
271

query I rowsort
SELECT - 99 + col2 * + col1 FROM tab1 AS cor0
----
1149
1305
471

query I rowsort
SELECT + - col0 * 16 + + col2 * + cor0.col1 + + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1562
1820
28

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

query I rowsort
SELECT + col2 * col0 + col1 AS col1 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT - 34 * + 73 * + col1 + - col1 FROM tab0 cor0
----
-213538
-225953
-240851

query I rowsort
SELECT + col1 * - 25 - col0 * cor0.col2 FROM tab1 AS cor0
----
-3898
-8005
-812

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

query I rowsort
SELECT + col1 * + 6 - 49 * - col2 AS col1 FROM tab1
----
2802
2853
4782

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

query I rowsort
SELECT col0 * - 33 * - ( - tab1.col0 ) + col2 FROM tab1
----
-135111
-211104
-243

query I rowsort
SELECT + col0 - 13 FROM tab0 AS cor0
----
11
22
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-287
SELECT + 69 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
9

skipif mysql # not compatible
query I rowsort label-287
SELECT + 69 / col0 AS col1 FROM tab2 AS cor0
----
0
0
9

query I rowsort
SELECT 9 + 13 AS col1 FROM tab1 cor0
----
22
22
22

query I rowsort
SELECT DISTINCT + cor0.col1 + + 95 * col2 FROM tab0 AS cor0
----
192
3221
7881

query I rowsort
SELECT DISTINCT col1 + + 22 FROM tab2 cor0
----
39
53
81

query I rowsort
SELECT - 81 * col2 AS col2 FROM tab0 AS cor0
----
-2673
-6642
-81

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

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

query I rowsort
SELECT - ( + col1 ) * - col0 * col1 + + col2 AS col0 FROM tab2 AS cor0
----
22869
271544
6754

query I rowsort
SELECT ALL + + 26 AS col0 FROM tab0 AS cor0
----
26
26
26

query I rowsort
SELECT DISTINCT + 80 + 81 * - col0 FROM tab0 AS cor0
----
-1864
-2755
-7129

skipif mysql # not compatible
query I rowsort
SELECT ALL - + col1 * ( + col2 * + CAST ( ( col1 ) AS REAL ) ) + + col0 AS col1 FROM tab0 AS cor0
----
-244044
-678953
-9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + + cor0.col2 + + col0 col1 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT + - col2 * 71 + + col2 * - col1 FROM tab2 AS cor0
----
-2754
-3344
-3380

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

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL + - CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT col1 * col1 - cor0.col0 FROM tab2 AS cor0
----
210
3403
954

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

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

query I rowsort
SELECT + col0 * col1 * cor0.col0 - - 65 AS col1 FROM tab0 AS cor0
----
118890
49601
720876

query I rowsort
SELECT ALL - cor0.col0 + col1 * + cor0.col1 AS col0 FROM tab2 cor0
----
210
3403
954

query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) * - cor0.col1 + - ( 35 ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
-10577
-1322
-3678

query I rowsort
SELECT - - col2 + 82 FROM tab2 AS cor0
----
108
109
120

query I rowsort
SELECT ALL cor0.col1 * 66 AS col0 FROM tab0 AS cor0
----
5676
6006
6402

query I rowsort
SELECT + ( - col1 ) * - col0 * col1 + col2 FROM tab2 AS cor0
----
22869
271544
6754

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

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

query I rowsort
SELECT - - 50 + col2 + + cor0.col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1458
-558
-760

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

query I rowsort
SELECT ALL + + cor0.col0 * - col0 + - 33 + + cor0.col0 FROM tab2 cor0
----
-6039
-6195
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-313
SELECT ALL + col1 * - col2 + - col2 DIV - col0 AS col0 FROM tab2 AS cor0
----
-1534
-646
-834

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL + col1 * - col2 + - col2 / - col0 AS col0 FROM tab2 AS cor0
----
-1534
-646
-834

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

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

query I rowsort
SELECT + 66 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

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

query I rowsort
SELECT - col2 + ( - col2 ) AS col0 FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT ALL + + col0 * - 44 FROM tab2 AS cor0
----
-308
-3432
-3476

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-321
SELECT ALL + - col0 DIV + 33 AS col2 FROM tab2 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-321
SELECT ALL + - col0 / + 33 AS col2 FROM tab2 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - cor0.col2 * CAST ( + 98 AS REAL ) AS col1 FROM tab2 AS cor0
----
-2548
-2646
-3724

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

query I rowsort
SELECT DISTINCT + col0 * tab2.col2 + ( col2 ) * + col0 FROM tab2
----
378
4056
6004

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

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

query I rowsort
SELECT DISTINCT + - col0 * + 7 FROM tab1 AS cor0
----
-21
-448
-560

query I rowsort
SELECT col2 + col0 * col0 * - col1 + - col0 FROM tab0 cor0
----
-118859
-49527
-720818

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

query I rowsort
SELECT DISTINCT - col2 * ( + col0 ) + col0 * col0 + + 14 AS col0 FROM tab0 AS cor0
----
-202
1204
637

query I rowsort
SELECT DISTINCT col1 * 45 AS col1 FROM tab0
----
3870
4095
4365

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

skipif mysql # not compatible
query I rowsort label-331
SELECT ALL col0 * col1 + - col0 / col0 FROM tab0 AS cor0
----
2063
3394
8098

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-333
SELECT DISTINCT col1 / + CAST ( + col2 AS INTEGER ) col0 FROM tab1
----
0

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

query I rowsort
SELECT DISTINCT + 74 * - col0 FROM tab1 AS cor0
----
-222
-4736
-5920

query I rowsort
SELECT 24 + col2 * 91 AS col0 FROM tab0 AS cor0
----
115
3027
7486

query I rowsort
SELECT ALL col0 + col2 * 0 * + 27 AS col2 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-338
SELECT - col2 DIV + col0 + col2 FROM tab2
----
24
26
38

skipif mysql # not compatible
query I rowsort label-338
SELECT - col2 / + col0 + col2 FROM tab2
----
24
26
38

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

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

query I rowsort
SELECT + col0 * col2 + - 27 FROM tab1
----
135
3621
7653

query I rowsort
SELECT ALL + col0 + col1 + tab1.col2 * col0 AS col0 FROM tab1
----
191
3722
7773

query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab2, tab1, tab1 AS cor0, tab0
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

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

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

query I rowsort
SELECT DISTINCT 67 + - cor0.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-22
32
43

query I rowsort
SELECT ALL - col1 + col1 + - 95 AS col2 FROM tab1 AS cor0
----
-95
-95
-95

query I rowsort
SELECT + col2 * cor0.col1 + col1 * col0 * col1 FROM tab0 AS cor0
----
180342
329412
744471

query I rowsort
SELECT + col2 + col2 + + 61 FROM tab2 AS cor0
----
113
115
137

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 * tab1.col1 col1 FROM tab1
----
43
622
73

query I rowsort
SELECT ALL + tab0.col2 * col2 * + col2 - - col0 FROM tab0
----
35961
36
551457

query I rowsort
SELECT col1 + tab2.col0 * col1 * col1 + col2 AS col1 FROM tab2
----
22886
271603
6785

query I rowsort
SELECT + tab2.col2 + - col0 * col2 FROM tab2
----
-162
-2002
-2964

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 * col0 col1 FROM tab2 AS cor0
----
-301
-3354
-3397

query I rowsort
SELECT - 17 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1513
-408
-595

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

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

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

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

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

query I rowsort
SELECT col0 * col0 + + tab0.col2 * - col0 AS col2 FROM tab0
----
-216
1190
623

onlyif mysql # use DIV operator for integer division
query I rowsort label-366
SELECT ALL col0 + + col1 * + col0 DIV col0 - col2 AS col1 FROM tab2 AS cor0
----
11
111
58

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL col0 + + col1 * + col0 / col0 - col2 AS col1 FROM tab2 AS cor0
----
11
111
58

query I rowsort
SELECT ALL - col0 * - col2 * + col2 + + col2 * + col1 AS col1 FROM tab2 AS cor0
----
114722
54262
5940

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

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

query I rowsort
SELECT - col2 * col2 + + col1 - col0 FROM tab1 AS cor0
----
-2893
-3303
-9283

query I rowsort
SELECT ALL - tab0.col0 AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT ALL + col1 * col1 - col1 FROM tab0
----
7310
8190
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-373
SELECT col1 DIV col1 + col1 * col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1001
17577
2198

skipif mysql # not compatible
query I rowsort label-373
SELECT col1 / col1 + col1 * col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1001
17577
2198

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

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

skipif mysql # not compatible
query I rowsort label-375
SELECT ALL + col1 * col2 / col1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-376
SELECT ALL col0 + col0 DIV + tab0.col2 + col1 FROM tab0
----
110
167
181

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL col0 + col0 / + tab0.col2 + col1 FROM tab0
----
110
167
181

query I rowsort
SELECT DISTINCT col0 + - col0 AS col0 FROM tab1 WHERE NOT ( NULL ) IN ( tab1.col0 * col0 + col0 )
----

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

skipif mysql # not compatible
query I rowsort label-378
SELECT ALL col1 / + col1 + + col0 / + col2 AS col2 FROM tab0
----
1
2
36

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-381
SELECT + col1 * col0 DIV col0 AS col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-381
SELECT + col1 * col0 / col0 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE col0 + + col2 * col2 >= ( - col1 * + col1 )
----
86
91
97

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-387
SELECT col2 DIV ( col2 ) + cor0.col2 FROM tab1 cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-387
SELECT col2 / ( col2 ) + cor0.col2 FROM tab1 cor0
----
55
58
97

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

query I rowsort
SELECT 88 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT tab1.col1 + 17 - col0 FROM tab1
----
-37
-50
40

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

skipif mysql # not compatible
query I rowsort label-391
SELECT DISTINCT col1 / + col2 AS col0 FROM tab0
----
1
2
97

query I rowsort
SELECT DISTINCT - 93 * - col1 * + col2 FROM tab2
----
142662
60078
77841

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2, tab0, tab0 AS cor0, tab2 AS cor1
----
-86
-91
-97

query I rowsort
SELECT 26 * - 19 FROM tab1, tab0 AS cor0
----
9 values hashing to 5c2d37cf7542be4cea5a1199efdc7be4

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

skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT col2 + 8 / ( - col2 + col0 ) FROM tab0 AS cor0
----
1
33
83

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-397
SELECT - col2 * CAST( col0 AS SIGNED ) + cor0.col1 - col2 DIV + col2 FROM tab0 cor0
----
-707
-7208
61

skipif mysql # not compatible
query I rowsort label-397
SELECT - col2 * CAST ( col0 AS INTEGER ) + cor0.col1 - col2 / + col2 FROM tab0 cor0
----
-707
-7208
61

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

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

skipif mysql # not compatible
query I rowsort label-399
SELECT + col1 + col0 / col2 FROM tab1 AS cor0
----
11
13
26

query I rowsort
SELECT ALL - 63 + col2 * + cor0.col1 AS col2 FROM tab1 cor0
----
1185
1341
507

query I rowsort
SELECT DISTINCT - + 14 * - col0 AS col2 FROM tab2 AS cor0
----
1092
1106
98

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

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

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE tab2.col1 > ( NULL )
----

query I rowsort
SELECT ALL + + 4 * col0 FROM tab2 AS cor0
----
28
312
316

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

query I rowsort
SELECT ALL - + 84 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 * col0 col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT col0 + 66 FROM tab0 AS cor0
----
101
155
90

query I rowsort
SELECT + col2 * ( col2 ) * + col1 + col0 FROM tab1
----
119888
32554
75819

query I rowsort
SELECT - 68 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col2 + + col1 + col1 * tab2.col2 col1 FROM tab2
----
1619
701
895

query I rowsort
SELECT 15 * col2 + + col1 FROM tab2 AS cor0
----
436
449
587

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-414
SELECT ALL - CAST( ( col2 ) AS SIGNED ) * 47 + col0 FROM tab0 AS cor0
----
-12
-1527
-3765

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL - CAST ( ( col2 ) AS INTEGER ) * 47 + col0 FROM tab0 AS cor0
----
-12
-1527
-3765

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-415
SELECT ALL CAST( 35 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-415
SELECT ALL CAST ( 35 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + col2 + + col0 col1 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT - cor0.col1 + + col1 * - cor0.col1 * - ( col0 * cor0.col1 ) + - col0 FROM tab2 AS cor0
----
16019425
208499
388031

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

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL - CAST ( col2 AS INTEGER ) * - col0 + CAST ( col2 + col0 AS INTEGER ) * - ( + col2 ) FROM tab1
----
-2916
-3249
-9216

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 * - ( col0 ) + tab0.col2 * - col0 col2 FROM tab0
----
1513
1584
3430

query I rowsort
SELECT - ( + tab1.col0 ) * col1 + col0 * tab1.col0 FROM tab1
----
-69
3456
5360

query I rowsort
SELECT ALL - col0 + 98 FROM tab0
----
63
74
9

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-425
SELECT DISTINCT - - CAST( - col0 AS SIGNED ) + + col2 - col0 FROM tab0 AS cor0
----
-15
-69
-96

skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT - - CAST ( - col0 AS INTEGER ) + + col2 - col0 FROM tab0 AS cor0
----
-15
-69
-96

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

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

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + 53 AS REAL ) + + col1 / + ( 84 ) AS col1 FROM tab2 AS cor0
----
53
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * cor0.col0 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + 86 * - cor0.col1 + - 26 FROM tab0 AS cor0
----
-7422
-7852
-8368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 + - col1 col2 FROM tab1 AS cor0
----
-103
-87
-90

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

query I rowsort
SELECT DISTINCT + - 56 * col1 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1453
-496
-648

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

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

query I rowsort
SELECT - 1 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2
-34
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col2 + 27 * - 33 * col0 col2 FROM tab1 AS cor0
----
-1269
-56454
-70032

query I rowsort
SELECT ( - 16 ) + - tab0.col2 + col0 * + 32 AS col0 FROM tab0
----
1103
2750
719

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

skipif mysql # not compatible
query I rowsort label-438
SELECT DISTINCT 41 / - col1 + + col2 AS col2 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-439
SELECT DISTINCT - - col2 DIV col0 AS col1 FROM tab1 cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-439
SELECT DISTINCT - - col2 / col0 AS col1 FROM tab1 cor0
----
0
1
18

query I rowsort
SELECT DISTINCT + col0 * col0 - + 87 AS col1 FROM tab2 AS cor0
----
-38
5997
6154

query I rowsort
SELECT cor0.col0 - col2 AS col1 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT - col0 + col2 * + cor0.col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT ALL + + col2 + + 65 * col2 FROM tab0 AS cor0
----
2178
5412
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 95 + cor0.col0 col1 FROM tab0 AS cor0
----
205
227
275

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-445
SELECT + - col2 + CAST( - 32 AS SIGNED ) col1 FROM tab1 AS cor0
----
-128
-86
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-445
SELECT + - col2 + CAST ( - 32 AS INTEGER ) col1 FROM tab1 AS cor0
----
-128
-86
-89

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

query I rowsort
SELECT ALL col2 - 10 FROM tab2 AS cor0
----
16
17
28

query I rowsort
SELECT ALL col1 + 82 FROM tab2 AS cor0
----
113
141
99

query I rowsort
SELECT ALL col2 * - col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT - col2 * 30 FROM tab2 AS cor0
----
-1140
-780
-810

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-452
SELECT DISTINCT + - cor0.col1 DIV - 3 AS col1 FROM tab1 AS cor0
----
3
4
8

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT + - cor0.col1 / - 3 AS col1 FROM tab1 AS cor0
----
3
4
8

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-454
SELECT ALL col2 * CAST( + 42 AS SIGNED ) - col2 AS col2 FROM tab1 AS cor0
----
2214
2337
3936

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL col2 * CAST ( + 42 AS INTEGER ) - col2 AS col2 FROM tab1 AS cor0
----
2214
2337
3936

query I rowsort
SELECT DISTINCT + col0 + 80 FROM tab0 AS cor0
----
104
115
169

query I rowsort
SELECT DISTINCT - col0 + - ( - col2 ) * col2 FROM tab2 AS cor0
----
1365
598
722

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

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

query I rowsort
SELECT DISTINCT + - col2 + col1 * + col1 FROM tab2 AS cor0
----
251
3455
934

onlyif mysql # use DIV operator for integer division
query I rowsort label-459
SELECT 55 DIV - col0 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
84
91
96

skipif mysql # not compatible
query I rowsort label-459
SELECT 55 / - col0 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
84
91
96

query I rowsort
SELECT DISTINCT col1 + + 87 * col0 FROM tab2 cor0
----
640
6845
6890

query I rowsort
SELECT - 54 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

onlyif mysql # use DIV operator for integer division
query I rowsort label-462
SELECT DISTINCT + col2 * 48 DIV col0 FROM tab1 AS cor0
----
42
57
864

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT + col2 * 48 / col0 FROM tab1 AS cor0
----
42
57
864

query I rowsort
SELECT ALL + 49 + 6 FROM tab0 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT + - 77 * 4 + - col0 + + ( - col1 ) * col0 FROM tab2 AS cor0
----
-1730
-4988
-532

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

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

query I rowsort
SELECT DISTINCT + 10 AS col2 FROM tab1, tab0 cor0, tab1 AS cor1
----
10

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

query I rowsort
SELECT 8 * - tab0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 133027b7616524290ec6272746bccede

onlyif mysql # use DIV operator for integer division
query I rowsort label-470
SELECT ALL + 60 DIV col0 + - 58 * col0 AS col2 FROM tab2
----
-398
-4524
-4582

skipif mysql # not compatible
query I rowsort label-470
SELECT ALL + 60 / col0 + - 58 * col0 AS col2 FROM tab2
----
-398
-4524
-4582

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

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

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

query I rowsort
SELECT DISTINCT col0 * ( - tab1.col1 ) * - tab1.col1 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT - cor0.col1 + 92 * 35 AS col2 FROM tab2 AS cor0
----
3161
3189
3203

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

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

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

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

query I rowsort
SELECT ALL col1 * - 3 * col2 + col1 * tab0.col2 AS col2 FROM tab0
----
-14924
-194
-5676

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + 27 + + ( cor0.col2 ) AS col0 FROM tab0 cor0
----
109
28
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + 54 col2 FROM tab2 cor0
----
132
133
61

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

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

query I rowsort
SELECT ALL + - col2 * 21 + col1 + col0 FROM tab0 AS cor0
----
-1542
-583
111

query I rowsort
SELECT - cor0.col2 - col0 * - 43 * - col2 AS col0 FROM tab1 AS cor0
----
-156921
-330336
-7020

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

query I rowsort
SELECT + col2 + + 44 * + 40 * - col1 + col0 FROM tab0 AS cor0
----
-151303
-159989
-170684

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

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

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

query I rowsort
SELECT DISTINCT + col2 * - col0 + - 81 * + col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
48192
6156
76560

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col2 - col1 col0 FROM tab2 AS cor0
----
-1593
-663
-868

onlyif mysql # use DIV operator for integer division
query I rowsort label-496
SELECT - - 52 * 39 DIV - col0 col1 FROM tab1 AS cor0
----
-25
-31
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-496
SELECT - - 52 * 39 / - col0 col1 FROM tab1 AS cor0
----
-25
-31
-676

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

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

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

query I rowsort
SELECT DISTINCT - - 91 AS col1 FROM tab0 AS cor0
----
91

query I rowsort
SELECT ALL - ( col0 ) * cor0.col2 + 91 * col1 AS col1 FROM tab0 AS cor0
----
7034
8792
983

query I rowsort
SELECT ALL - tab2.col1 * col1 * + col1 AS col1 FROM tab2
----
-205379
-29791
-4913

query I rowsort
SELECT col1 + + 95 * 21 * col2 AS col1 FROM tab2 cor0
----
51929
53896
75827

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

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

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

query I rowsort
SELECT ALL - col2 * 58 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
37468
48546
88972

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

query I rowsort
SELECT col2 + - 86 * cor0.col1 FROM tab0 AS cor0
----
-7363
-7744
-8341

onlyif mysql # use DIV operator for integer division
query I rowsort label-509
SELECT ALL - - col0 DIV col1 + col0 + + 63 * - 77 FROM tab2 AS cor0
----
-4768
-4772
-4844

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL - - col0 / col1 + col0 + + 63 * - 77 FROM tab2 AS cor0
----
-4768
-4772
-4844

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

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

query I rowsort
SELECT ALL + 1 - col2 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT ALL - col2 + cor0.col1 + col0 FROM tab0 AS cor0
----
131
77
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-514
SELECT ALL col0 DIV + 6 + col0 FROM tab1
----
3
74
93

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL col0 / + 6 + col0 FROM tab1
----
3
74
93

query I rowsort
SELECT ALL tab2.col0 + - tab2.col2 * 99 AS col2 FROM tab2
----
-2496
-2666
-3683

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

query I rowsort
SELECT col1 - - 69 FROM tab2
----
100
128
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-518
SELECT DISTINCT + 61 DIV + col0 FROM tab1 AS cor0
----
0
20

skipif mysql # not compatible
query I rowsort label-518
SELECT DISTINCT + 61 / + col0 FROM tab1 AS cor0
----
0
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-519
SELECT + - col2 + - col1 DIV col1 - + col0 FROM tab1 AS cor0
----
-122
-177
-58

skipif mysql # not compatible
query I rowsort label-519
SELECT + - col2 + - col1 / col1 - + col0 FROM tab1 AS cor0
----
-122
-177
-58

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

query I rowsort
SELECT DISTINCT + 42 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1486
718
771

query I rowsort
SELECT - col0 + - col2 * + 37 FROM tab1 AS cor0
----
-2001
-2173
-3632

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

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT CAST ( 73 AS INTEGER ) FROM tab0
----
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-524
SELECT - 3 * - col1 DIV - col1 + 14 AS col0 FROM tab1 AS cor0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-524
SELECT - 3 * - col1 / - col1 + 14 AS col0 FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT ALL col2 + - col0 - 96 FROM tab0
----
-103
-130
-87

query I rowsort
SELECT DISTINCT 72 * - col2 - - ( - 97 * col0 ) AS col2 FROM tab2
----
-10399
-2623
-9438

query I rowsort
SELECT ALL + - col1 + 39 AS col2 FROM tab1 AS cor0
----
13
26
29

query I rowsort
SELECT col2 * + 26 FROM tab0 AS cor0
----
2132
26
858

query I rowsort
SELECT ALL 95 * - tab1.col0 * - 65 - - col1 FROM tab1
----
18551
395210
494013

onlyif mysql # use DIV operator for integer division
query I rowsort label-530
SELECT - 1 * tab0.col1 DIV - ( + 43 ) + - tab0.col1 FROM tab0
----
-84
-89
-95

skipif mysql # not compatible
query I rowsort label-530
SELECT - 1 * tab0.col1 / - ( + 43 ) + - tab0.col1 FROM tab0
----
-84
-89
-95

query I rowsort
SELECT 68 + col0 + - col1 * - col1 FROM tab1
----
232
317
747

query I rowsort
SELECT ALL 14 + + col2 FROM tab2
----
40
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-533
SELECT col0 * col0 DIV col0 AS col0 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-533
SELECT col0 * col0 / col0 AS col0 FROM tab1
----
3
64
80

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

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

query I rowsort
SELECT DISTINCT - 41 + col2 * - 83 FROM tab2
----
-2199
-2282
-3195

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-536
SELECT DISTINCT - tab2.col0 * - col2 + - CAST( 94 AS SIGNED ) FROM tab2
----
1934
2908
95

skipif mysql # not compatible
query I rowsort label-536
SELECT DISTINCT - tab2.col0 * - col2 + - CAST ( 94 AS INTEGER ) FROM tab2
----
1934
2908
95

query I rowsort
SELECT col0 * - 3 FROM tab1
----
-192
-240
-9

query I rowsort
SELECT col0 * - 7 FROM tab1
----
-21
-448
-560

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

query I rowsort
SELECT - tab1.col1 + + ( - tab1.col1 ) FROM tab1
----
-20
-26
-52

query I rowsort
SELECT + col0 * ( ( col0 ) ) * 63 AS col2 FROM tab1
----
258048
403200
567

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

query I rowsort
SELECT - col0 + + 16 FROM tab1 AS cor0
----
-48
-64
13

query I rowsort
SELECT + col0 * + ( + ( + cor0.col0 ) + ( - col2 ) ) * col1 AS col2 FROM tab1 AS cor0
----
-16640
-3978
4480

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

query I rowsort
SELECT ALL - col1 * 70 AS col1 FROM tab1 AS cor0
----
-1820
-700
-910

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

query I rowsort
SELECT DISTINCT + col2 * 41 * - cor0.col2 FROM tab1 cor0
----
-119556
-133209
-377856

query I rowsort
SELECT - - col0 + 5 FROM tab1 AS cor0
----
69
8
85

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - cor0.col2 col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT - ( 15 ) AS col1 FROM tab1 AS cor0
----
-15

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

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

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

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

query I rowsort
SELECT + 58 * + ( col2 ) AS col2 FROM tab1 AS cor0
----
3132
3306
5568

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

query I rowsort
SELECT DISTINCT - 96 * 16 + col1 AS col1 FROM tab2 AS cor0
----
-1477
-1505
-1519

query I rowsort
SELECT - - 76 * + col0 AS col2 FROM tab2 AS cor0
----
532
5928
6004

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

query I rowsort
SELECT ( 7 ) * + col0 + ( col2 ) AS col1 FROM tab0
----
201
246
705

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

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

query I rowsort
SELECT 34 + - ( + cor0.col1 + - col1 ) AS col2 FROM tab1 AS cor0
----
34
34
34

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-566
SELECT - ( - col1 ) + - col2 * + 92 + + 68 DIV col1 FROM tab2 AS cor0
----
-2332
-2451
-3475

skipif mysql # not compatible
query I rowsort label-566
SELECT - ( - col1 ) + - col2 * + 92 + + 68 / col1 FROM tab2 AS cor0
----
-2332
-2451
-3475

query I rowsort
SELECT ALL + 17 * + col2 FROM tab0 cor0
----
1394
17
561

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

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

query I rowsort
SELECT - 38 + + col2 * + col0 FROM tab2 AS cor0
----
151
1990
2964

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

query I rowsort
SELECT DISTINCT + 46 + cor0.col2 - col1 * - col1 FROM tab0 AS cor0
----
7475
8409
9456

query I rowsort
SELECT - 14 + - col2 AS col2 FROM tab2 AS cor0
----
-40
-41
-52

query I rowsort
SELECT - + 40 * col1 FROM tab2 cor0
----
-1240
-2360
-680

query I rowsort
SELECT + ( 42 ) + + tab2.col0 AS col0 FROM tab2
----
120
121
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-575
SELECT + col2 + - 86 DIV col0 - - col2 AS col0 FROM tab0 AS cor0
----
0
164
63

skipif mysql # not compatible
query I rowsort label-575
SELECT + col2 + - 86 / col0 - - col2 AS col0 FROM tab0 AS cor0
----
0
164
63

query I rowsort
SELECT DISTINCT + ( 63 ) * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-441
-4914
-4977

query I rowsort
SELECT 43 + + cor0.col0 * col0 FROM tab0 AS cor0
----
1268
619
7964

query I rowsort
SELECT DISTINCT + - 41 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-41

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( col0 ) + - col0 * + ( col0 ) col0 FROM tab1
----
-3456
-5360
69

query I rowsort
SELECT - col2 + - col2 * col0 * col2 AS col0 FROM tab1 AS cor0
----
-207993
-737376
-8802

query I rowsort
SELECT DISTINCT col0 * - 79 FROM tab1 AS cor0
----
-237
-5056
-6320

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-585
SELECT tab0.col0 DIV ( 8 ) + col0 AS col0 FROM tab0
----
100
27
39

skipif mysql # not compatible
query I rowsort label-585
SELECT tab0.col0 / ( 8 ) + col0 AS col0 FROM tab0
----
100
27
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to 455e4df3bf7b0fa681c56e89df1a761f

query I rowsort
SELECT + col0 + ( - col1 + col0 ) FROM tab0
----
-27
-38
87

query I rowsort
SELECT - ( - 65 ) + + col0 AS col2 FROM tab1
----
129
145
68

query I rowsort
SELECT - 12 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to 60b4654b2477631ac8f4a95ec4a22fd3

query I rowsort
SELECT ALL + 97 AS col1 FROM tab1 AS cor0
----
97
97
97

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

query I rowsort
SELECT - + col1 * 50 FROM tab0 AS cor0
----
-4300
-4550
-4850

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

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

query I rowsort
SELECT 59 + - col0 AS col0 FROM tab1 AS cor0
----
-21
-5
56

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

skipif mysql # not compatible
query I rowsort
SELECT + - col0 * + col2 * - CAST ( col2 AS REAL ) - col1 AS col0 FROM tab0 AS cor0
----
-62
26050
598345

query I rowsort
SELECT + + col2 + - cor0.col2 * 87 FROM tab2 cor0
----
-2236
-2322
-3268

query I rowsort
SELECT - 5 * col0 * col1 AS col2 FROM tab2 AS cor0
----
-1085
-23010
-6715

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-600
SELECT cor0.col0 + col2 DIV 28 FROM tab0 AS cor0
----
25
35
91

skipif mysql # not compatible
query I rowsort label-600
SELECT cor0.col0 + col2 / 28 FROM tab0 AS cor0
----
25
35
91

query I rowsort
SELECT ALL - 87 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9

query I rowsort
SELECT ALL - 37 AS col2 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 395d44ccbce08828bc493e93ec3d9207

skipif mysql # not compatible
query I rowsort
SELECT tab2.col1 + CAST ( - 9 AS REAL ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 01b3303cca4ea3b91d315ef2b5ea24ee

query I rowsort
SELECT + 61 * - cor0.col0 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to e117dc30140ec64259173627be34b7fd

query I rowsort
SELECT ALL - col1 * + tab2.col1 * col2 + + col0 FROM tab2
----
-10903
-25940
-90428

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

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

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

query I rowsort
SELECT ALL - 30 - - col1 * - col1 AS col0 FROM tab2 AS cor0
----
-319
-3511
-991

query I rowsort
SELECT + col0 + col2 * 67 AS col2 FROM tab1 AS cor0
----
3621
3883
6512

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

query I rowsort
SELECT ALL - col1 * + cor0.col0 - - 74 FROM tab1 AS cor0
----
-4
-566
-966

query I rowsort
SELECT DISTINCT - col0 * 82 + col1 FROM tab2 AS cor0
----
-543
-6337
-6461

query I rowsort
SELECT col0 + 67 + - 3 * cor0.col2 FROM tab1 AS cor0
----
-141
-40
-92

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 60 ) * col1 col1 FROM tab0 AS cor0
----
-5160
-5460
-5820

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

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

query I rowsort
SELECT DISTINCT ( - col0 ) * + col2 + - 25 FROM tab0 AS cor0
----
-60
-7323
-817

query I rowsort
SELECT ALL + ( col0 ) * + col2 + col1 * + col1 * 51 FROM tab0 AS cor0
----
377988
429629
479894

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

skipif mysql # not compatible
query I rowsort label-620
SELECT DISTINCT - - 38 / + col1 AS col1 FROM tab2 AS cor0
----
0
1
2

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

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

query I rowsort
SELECT ALL - col0 + col2 * + ( 40 ) FROM tab2 AS cor0
----
1073
1441
962

query I rowsort
SELECT + - col1 * - col2 + 72 FROM tab1 AS cor0
----
1320
1476
642

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

skipif mysql # not compatible
query I rowsort label-625
SELECT DISTINCT + - col0 * + col0 - CAST ( cor0.col0 AS INTEGER ) * + col0 AS col1 FROM tab1 AS cor0
----
-12800
-18
-8192

query I rowsort
SELECT DISTINCT 97 * + col1 * ( ( col0 ) ) AS col1 FROM tab1 AS cor0
----
100880
62080
7566

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 * 2 + col2 col0 FROM tab0
----
149
181
230

onlyif mysql # use DIV operator for integer division
query I rowsort label-631
SELECT DISTINCT + 61 DIV 44 FROM tab0, tab2, tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-631
SELECT DISTINCT + 61 / 44 FROM tab0, tab2, tab0 AS cor0
----
1

query I rowsort
SELECT ALL ( 28 ) AS col2 FROM tab1
----
28
28
28

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

query I rowsort
SELECT DISTINCT + col0 * - col2 + col1 + + col1 FROM tab0 AS cor0
----
-620
-7116
159

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

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT + 68 / + col1 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT + + 21 + col2 FROM tab2 AS cor0
----
47
48
59

query I rowsort
SELECT DISTINCT 5 * col1 FROM tab0 AS cor0
----
430
455
485

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

query I rowsort
SELECT ( col2 ) * - 27 FROM tab0
----
-2214
-27
-891

query I rowsort
SELECT 65 * - col1 * col2 + 10 FROM tab0
----
-184460
-485020
-6295

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * cor0.col2 * col2 col2 FROM tab0 AS cor0
----
-611884
-93654
-97

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

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

query I rowsort
SELECT DISTINCT 97 * col1 AS col2 FROM tab2
----
1649
3007
5723

query I rowsort
SELECT 81 * - 37 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c54dfe53288912f7706413b50a7afc01

query I rowsort
SELECT DISTINCT col2 * 91 + col2 FROM tab0
----
3036
7544
92

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

query I rowsort
SELECT 71 * - 84 FROM tab2 AS cor0
----
-5964
-5964
-5964

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

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

query I rowsort
SELECT DISTINCT + + 2 AS col1 FROM tab0 AS cor0
----
2

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

query I rowsort
SELECT ALL + cor0.col2 + 41 AS col0 FROM tab2 AS cor0
----
67
68
79

query I rowsort
SELECT ALL col1 * col2 + + col0 + - col2 AS col2 FROM tab1
----
1232
1353
577

query I rowsort
SELECT + tab1.col2 + 97 * col0 AS col0 FROM tab1
----
345
6265
7856

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-657
SELECT ALL col1 DIV col0 + col1 + col2 AS col2 FROM tab2
----
55
62
85

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL col1 / col0 + col1 + col2 AS col2 FROM tab2
----
55
62
85

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

skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT tab0.col0 + col2 / col0 FROM tab0
----
25
35
89

query I rowsort
SELECT DISTINCT + 68 * + col0 FROM tab0 cor0
----
1632
2380
6052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - 23 col1 FROM tab1 AS cor0
----
1242
1311
2208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 * col0 col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL + - 31 AS col2 FROM tab1 AS cor0
----
-31
-31
-31

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-664
SELECT DISTINCT col2 DIV 96 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-664
SELECT DISTINCT col2 / 96 FROM tab0 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-665
SELECT + col2 DIV + 32 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-665
SELECT + col2 / + 32 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT ALL - ( 74 ) * col2 FROM tab2 AS cor0
----
-1924
-1998
-2812

query I rowsort
SELECT 17 + col0 + col0 FROM tab2 cor0
----
173
175
31

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

query I rowsort
SELECT + col1 + tab0.col1 * + col1 AS col0 FROM tab0
----
7482
8372
9506

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

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

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

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

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

query I rowsort
SELECT ALL - col2 * - col0 * + col2 - - col0 FROM tab0
----
26160
598525
70

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

query I rowsort
SELECT DISTINCT col0 * - col0 + col2 * + col1 FROM tab1
----
-3526
-5152
1395

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

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

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

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

query I rowsort
SELECT + col2 + - col2 * - col2 AS col0 FROM tab1
----
2970
3306
9312

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col2 col0 FROM tab1 AS cor0
----
-162
-3648
-7680

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

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

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

query I rowsort
SELECT DISTINCT - col2 * 77 - col1 FROM tab0 cor0
----
-174
-2627
-6405

onlyif mysql # use DIV operator for integer division
query I rowsort label-692
SELECT ALL + - col1 DIV - col2 + - col1 DIV + col0 + col0 * + 89 FROM tab0 AS cor0
----
2135
3210
7921

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL + - col1 / - col2 + - col1 / + col0 + col0 * + 89 FROM tab0 AS cor0
----
2135
3210
7921

query I rowsort
SELECT - + col2 * + 85 + col2 * col0 FROM tab0 AS cor0
----
-2013
-50
328

query I rowsort
SELECT + col1 * - col1 * - 73 + + col2 AS col2 FROM tab2 AS cor0
----
21135
254139
70180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + ( col2 ) + + col2 col1 FROM tab0 AS cor0
----
152
255
99

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-698
SELECT + col2 DIV tab0.col1 - + col0 * + col2 AS col0 FROM tab0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-698
SELECT + col2 / tab0.col1 - + col0 * + col2 AS col0 FROM tab0
----
-35
-7298
-792

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

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

query I rowsort
SELECT ALL col1 * 24 + tab0.col0 FROM tab0
----
2088
2273
2363

onlyif mysql # use DIV operator for integer division
query I rowsort label-702
SELECT + col1 + col1 DIV col1 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-702
SELECT + col1 + col1 / col1 FROM tab2
----
18
32
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-703
SELECT - col2 DIV col0 + tab1.col1 * + col1 FROM tab1
----
100
168
658

skipif mysql # not compatible
query I rowsort label-703
SELECT - col2 / col0 + tab1.col1 * + col1 FROM tab1
----
100
168
658

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col1 * col1 ) NOT IN ( col1 )
----

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

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

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

query I rowsort
SELECT DISTINCT - 27 * col2 + + 43 AS col0 FROM tab2 AS cor0
----
-659
-686
-983

query I rowsort
SELECT ALL col2 * col2 - col2 * col2 FROM tab1
----
0
0
0

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

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT ( - col1 * + col1 ) >= - col0 + - col2 * + col2
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-712
SELECT - col2 DIV + col2 + col0 * col1 AS col1 FROM tab0
----
2063
3394
8098

skipif mysql # not compatible
query I rowsort label-712
SELECT - col2 / + col2 + col0 * col1 AS col1 FROM tab0
----
2063
3394
8098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + tab0.col2 ) col2 FROM tab0
----
1
33
82

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

query I rowsort
SELECT ALL 39 + col2 FROM tab2
----
65
66
77

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

query I rowsort
SELECT + 70 * - col0 + + col0 * col0 AS col0 FROM tab1 AS cor0
----
-201
-384
800

query I rowsort
SELECT DISTINCT 31 + - col1 FROM tab1
----
18
21
5

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

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

query I rowsort
SELECT 57 + tab0.col0 + - cor0.col1 FROM tab0, tab1 cor0
----
9 values hashing to 89e15ddf3e0306160b65fc5cc1a917f9

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

query I rowsort
SELECT ALL + 99 FROM tab1 cor0
----
99
99
99

query I rowsort
SELECT ALL col2 + ( + col0 * - 64 ) AS col0 FROM tab1
----
-138
-4039
-5024

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-724
SELECT - CAST( + 61 AS SIGNED ) FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c91d7b51e91f33d302e697913fb438b6

skipif mysql # not compatible
query I rowsort label-724
SELECT - CAST ( + 61 AS INTEGER ) FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c91d7b51e91f33d302e697913fb438b6

onlyif mysql # use DIV operator for integer division
query I rowsort label-725
SELECT 67 DIV + 62 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-725
SELECT 67 / + 62 FROM tab2
----
1
1
1

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

query I rowsort
SELECT DISTINCT ( - col1 ) * + col1 - 59 FROM tab0
----
-7455
-8340
-9468

query I rowsort
SELECT - 24 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f

query I rowsort
SELECT DISTINCT + col0 * 0 + tab0.col2 - 56 FROM tab0
----
-23
-55
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 25 + col1 col2 FROM tab1
----
-12
-15
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-731
SELECT DISTINCT col2 DIV + tab1.col1 + col1 * + ( tab1.col2 ) col2 FROM tab1
----
1255
1406
575

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-731
SELECT DISTINCT col2 / + tab1.col1 + col1 * + ( tab1.col2 ) col2 FROM tab1
----
1255
1406
575

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

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

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

skipif mysql # not compatible
query I rowsort label-733
SELECT + ( tab2.col1 ) / + col0 AS col0 FROM tab2
----
0
0
4

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

query I rowsort
SELECT ALL - 52 + + col2 + col1 AS col0 FROM tab0 AS cor0
----
121
46
67

query I rowsort
SELECT ALL - + col2 * + 63 AS col0 FROM tab1 AS cor0
----
-3402
-3591
-6048

onlyif mysql # use DIV operator for integer division
query I rowsort label-737
SELECT 13 * 72 + + col2 DIV + col2 FROM tab0 AS cor0
----
937
937
937

skipif mysql # not compatible
query I rowsort label-737
SELECT 13 * 72 + + col2 / + col2 FROM tab0 AS cor0
----
937
937
937

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-739
SELECT + tab0.col0 DIV - cor0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 29844d745afa30f9b00c6522b448856a

skipif mysql # not compatible
query I rowsort label-739
SELECT + tab0.col0 / - cor0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 29844d745afa30f9b00c6522b448856a

onlyif mysql # use DIV operator for integer division
query I rowsort label-740
SELECT DISTINCT - col0 + col2 DIV + col0 FROM tab2
----
-4
-78
-79

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT - col0 + col2 / + col0 FROM tab2
----
-4
-78
-79

query I rowsort
SELECT ALL + col2 + + col2 * tab1.col0 + col0 AS col1 FROM tab1
----
219
3769
7856

query I rowsort
SELECT 47 + - cor0.col0 * 88 FROM tab0 AS cor0
----
-2065
-3033
-7785

onlyif mysql # use DIV operator for integer division
query I rowsort label-743
SELECT DISTINCT + col0 DIV 95 + + col2 * col2 col0 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-743
SELECT DISTINCT + col0 / 95 + + col2 * col2 col0 FROM tab0 AS cor0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - col2 * col1 col2 FROM tab1 cor0
----
-1152
-1350
-513

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

skipif mysql # not compatible
query I rowsort label-745
SELECT - col2 / - CAST ( col2 + + col2 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 + 98 FROM tab1 AS cor0
----
101
162
178

query I rowsort
SELECT ALL - col2 * - cor0.col1 + - 85 FROM tab0 cor0
----
12
2753
7377

query I rowsort
SELECT ALL - col1 + col2 + + 68 AS col1 FROM tab0 AS cor0
----
-28
15
59

query I rowsort
SELECT ALL 57 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT ALL col0 * + 46 + - col1 * col1 * 59 AS col0 FROM tab1 cor0
----
-2956
-39746
-6291

query I rowsort
SELECT ALL col2 + ( 95 * col0 ) FROM tab1 AS cor0
----
339
6137
7696

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 76 + cor0.col2 col2 FROM tab2 AS cor0
----
-1950
-2025
-2850

query I rowsort
SELECT tab0.col0 * + col2 * 42 + - tab0.col2 FROM tab0
----
1469
306434
33231

onlyif mysql # use DIV operator for integer division
query I rowsort label-755
SELECT 50 DIV + 92 AS col0 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

skipif mysql # not compatible
query I rowsort label-755
SELECT 50 / + 92 AS col0 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-759
SELECT - col1 + + col0 DIV col0 AS col0 FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-759
SELECT - col1 + + col0 / col0 AS col0 FROM tab2 AS cor0
----
-16
-30
-58

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

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

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL - col0 / 89 - + col1 AS col1 FROM tab1 cor0
----
-10
-13
-26

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

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

query I rowsort
SELECT DISTINCT - col2 - cor0.col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL - 93 * col1 + col1 FROM tab2 cor0
----
-1564
-2852
-5428

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

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

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

skipif mysql # not compatible
query I rowsort label-768
SELECT + col1 * + col2 + col2 / tab0.col1 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - col0 * + ( + col2 ) + - tab0.col2 FROM tab0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT - col1 * 50 AS col0 FROM tab1
----
-1300
-500
-650

query I rowsort
SELECT + - 13 + cor0.col1 AS col2 FROM tab2 AS cor0
----
18
4
46

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

query I rowsort
SELECT ALL + + 67 * - col1 AS col0 FROM tab0 cor0
----
-5762
-6097
-6499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + - col2 col2 FROM tab2 cor0
----
251
3455
934

query I rowsort
SELECT ALL - col2 * col1 * 23 FROM tab1 cor0
----
-13110
-28704
-32292

query I rowsort
SELECT cor0.col0 * col0 + - col1 AS col1 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT + col2 * col2 + 78 AS col1 FROM tab0 AS cor0
----
1167
6802
79

query I rowsort
SELECT DISTINCT + + 92 + cor0.col0 FROM tab2 AS cor0
----
170
171
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * + col2 + col0 col0 FROM tab2
----
2288
2302
3309

query I rowsort
SELECT DISTINCT 10 * + col0 FROM tab0 AS cor0
----
240
350
890

onlyif mysql # use DIV operator for integer division
query I rowsort label-781
SELECT ALL 84 DIV - col2 + ( col1 + tab0.col2 ) * - 76 FROM tab0
----
-13149
-7532
-9046

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL 84 / - col2 + ( col1 + tab0.col2 ) * - 76 FROM tab0
----
-13149
-7532
-9046

query I rowsort
SELECT + col0 + + 66 AS col2 FROM tab1 AS cor0
----
130
146
69

query I rowsort
SELECT DISTINCT 74 * - 17 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1258

query I rowsort
SELECT - 3 + col1 AS col0 FROM tab2
----
14
28
56

query I rowsort
SELECT + - 64 * - col1 * col2 AS col1 FROM tab0 AS cor0
----
181632
477568
6208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 * col2 col2 FROM tab0
----
10
330
820

query I rowsort
SELECT - 91 * col1 FROM tab1
----
-1183
-2366
-910

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-789
SELECT DISTINCT - ( col2 ) + col0 + - 81 * col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
-101
-29
-40

skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT - ( col2 ) + col0 + - 81 * col0 / + col0 AS col0 FROM tab2 AS cor0
----
-101
-29
-40

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

query I rowsort
SELECT 12 + - col0 FROM tab2 AS cor0
----
-66
-67
5

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

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

query I rowsort
SELECT + col0 * + col2 + + ( 36 ) AS col0 FROM tab2 AS cor0
----
2064
225
3038

query I rowsort
SELECT ALL + col2 + col1 * 74 + - col1 * + 59 FROM tab1 AS cor0
----
207
291
444

query I rowsort
SELECT ALL + ( + 5 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT col0 * ( col1 * col1 + + col0 * col2 ) FROM tab1
----
239872
2514
627920

query I rowsort
SELECT ALL + cor0.col1 + + col0 + - col2 AS col0 FROM tab1 AS cor0
----
-25
-3
17

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

skipif mysql # not compatible
query I rowsort label-798
SELECT col1 - + CAST ( - col1 + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
100
139
193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + - cor0.col1 col2 FROM tab1 cor0
----
156
650
90

query I rowsort
SELECT col2 + 10 AS col2 FROM tab0 AS cor0
----
11
43
92

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-802
SELECT ALL col2 - CAST( ( col1 ) + + 86 AS SIGNED ) DIV - col1 FROM tab0 cor0
----
2
35
83

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL col2 - CAST ( ( col1 ) + + 86 AS INTEGER ) / - col1 FROM tab0 cor0
----
2
35
83

query I rowsort
SELECT - col2 * 60 - - col2 AS col2 FROM tab0 AS cor0
----
-1947
-4838
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-804
SELECT + - cor0.col2 DIV col1 + - 64 * + col2 AS col2 FROM tab1 AS cor0
----
-3458
-3653
-6151

skipif mysql # not compatible
query I rowsort label-804
SELECT + - cor0.col2 / col1 + - 64 * + col2 AS col2 FROM tab1 AS cor0
----
-3458
-3653
-6151

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

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

query I rowsort
SELECT ALL + col1 + - col1 * - ( + col1 + + col2 * - cor0.col2 ) FROM tab0 AS cor0
----
-603512
-86172
9409

query I rowsort
SELECT DISTINCT + col2 * col2 * + col2 + col0 * - col2 + + 83 AS col1 FROM tab0 cor0
----
35228
49
544153

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-809
SELECT ALL + 27 * col2 + - col1 DIV - col0 FROM tab1 AS cor0
----
1466
1539
2592

skipif mysql # not compatible
query I rowsort label-809
SELECT ALL + 27 * col2 + - col1 / - col0 FROM tab1 AS cor0
----
1466
1539
2592

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-811
SELECT - tab1.col1 + + 31 DIV - col2 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-811
SELECT - tab1.col1 + + 31 / - col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT + + cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT + 16 + col1 AS col2 FROM tab2 cor0
----
33
47
75

query I rowsort
SELECT - 36 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
3120
3365
3527

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

query I rowsort
SELECT DISTINCT ( + col0 ) * col2 + + col0 FROM tab0
----
70
7387
816

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

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

query I rowsort
SELECT ( 76 ) + col2 AS col0 FROM tab2 AS cor0
----
102
103
114

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

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

query I rowsort
SELECT - 97 - + col2 FROM tab0 AS cor0
----
-130
-179
-98

query I rowsort
SELECT + - col2 * 77 AS col1 FROM tab0 AS cor0
----
-2541
-6314
-77

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

query I rowsort
SELECT ALL - 95 * - col1 FROM tab0 AS cor0
----
8170
8645
9215

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

query I rowsort
SELECT DISTINCT - - col2 + + col1 - - col2 * col1 AS col1 FROM tab2 AS cor0
----
1619
701
895

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

query I rowsort
SELECT + col1 * - 16 AS col0 FROM tab2 AS cor0
----
-272
-496
-944

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

query I rowsort
SELECT + 23 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # use DIV operator for integer division
query I rowsort label-831
SELECT tab1.col0 DIV + 25 FROM tab1
----
0
2
3

skipif mysql # not compatible
query I rowsort label-831
SELECT tab1.col0 / + 25 FROM tab1
----
0
2
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-832
SELECT - - col1 * col1 * ( - col1 * + col1 + + CAST( ( + col1 ) AS SIGNED ) ) FROM tab1 cor0
----
-26364
-439400
-9000

skipif mysql # not compatible
query I rowsort label-832
SELECT - - col1 * col1 * ( - col1 * + col1 + + CAST ( ( + col1 ) AS INTEGER ) ) FROM tab1 cor0
----
-26364
-439400
-9000

query I rowsort
SELECT ALL - - col2 * col1 + col0 * + col2 + cor0.col0 AS col2 FROM tab2 cor0
----
1033
3640
3727

query I rowsort
SELECT DISTINCT + 67 * + col0 - - col1 FROM tab0 AS cor0
----
1694
2442
6054

query I rowsort
SELECT ALL - - 4 * - col2 AS col2 FROM tab1 AS cor0
----
-216
-228
-384

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

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

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

query I rowsort
SELECT ALL + 29 * - col2 + col2 FROM tab0 AS cor0
----
-2296
-28
-924

query I rowsort
SELECT DISTINCT + 73 * col0 FROM tab1 AS cor0
----
219
4672
5840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 * + cor0.col2 col0 FROM tab1 AS cor0
----
-3996
-4218
-7104

query I rowsort
SELECT 60 + - 26 * col2 AS col1 FROM tab1
----
-1344
-1422
-2436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 + cor0.col0 - - 21 * - 52 col0 FROM tab0 AS cor0
----
-1092

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

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

query I rowsort
SELECT + 18 + col2 AS col2 FROM tab0 AS cor0
----
100
19
51

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-848
SELECT DISTINCT - 14 DIV - col1 + cor0.col2 + + col1 AS col0 FROM tab1 AS cor0
----
110
68
80

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT - 14 / - col1 + cor0.col2 + + col1 AS col0 FROM tab1 AS cor0
----
110
68
80

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

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

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

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

skipif mysql # not compatible
query I rowsort label-852
SELECT - ( col0 ) - + CAST ( col0 + col2 AS INTEGER ) AS col1 FROM tab1
----
-185
-256
-60

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-854
SELECT DISTINCT + col1 - CAST( col1 + cor0.col0 AS SIGNED ) FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-854
SELECT DISTINCT + col1 - CAST ( col1 + cor0.col0 AS INTEGER ) FROM tab1 AS cor0
----
-3
-64
-80

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

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

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

query I rowsort
SELECT ALL - ( cor0.col0 ) + col1 * - 8 AS col0 FROM tab1 cor0
----
-144
-184
-211

query I rowsort
SELECT - col0 + + 14 FROM tab0 AS cor0
----
-10
-21
-75

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 53 + + col2 FROM tab0
----
135
54
86

query I rowsort
SELECT ALL 96 FROM tab2, tab2 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 * + col1 col0 FROM tab1
----
1183
2366
910

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

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

query I rowsort
SELECT + + ( cor0.col1 ) * + 62 FROM tab2 AS cor0
----
1054
1922
3658

query I rowsort
SELECT - ( + col2 ) * col1 * - col1 AS col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT DISTINCT - ( - 89 ) AS col0 FROM tab1 AS cor0
----
89

query I rowsort
SELECT ALL - col2 + + 40 AS col1 FROM tab0 AS cor0
----
-42
39
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-873
SELECT ALL col0 + + 37 DIV col2 AS col2 FROM tab0
----
25
72
89

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL col0 + + 37 / col2 AS col2 FROM tab0
----
25
72
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-874
SELECT ALL col0 + + col0 DIV - 60 AS col2 FROM tab1 AS cor0
----
3
63
79

skipif mysql # not compatible
query I rowsort label-874
SELECT ALL col0 + + col0 / - 60 AS col2 FROM tab1 AS cor0
----
3
63
79

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

query I rowsort
SELECT col2 * + col2 * 68 FROM tab2
----
45968
49572
98192

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

query I rowsort
SELECT + + col1 * + cor0.col1 + + col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
7515
8454
9507

query I rowsort
SELECT 89 + col0 * - 86 + - col1 * col2 FROM tab2 AS cor0
----
-1350
-7351
-8153

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-880
SELECT DISTINCT + 38 / cor0.col1 col0 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT ALL + 12 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT 9 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT - col2 * - col1 * - 92 + - tab0.col2 FROM tab0
----
-261129
-686586
-8925

query I rowsort
SELECT + col0 + + col2 + 37 * col0 * col1 FROM tab2
----
170378
49808
8063

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

skipif mysql # not compatible
query I rowsort label-886
SELECT DISTINCT tab0.col2 * + CAST ( col1 AS INTEGER ) + col0 AS col1 FROM tab0
----
132
2862
7551

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-893
SELECT DISTINCT 73 DIV + col2 + - cor0.col2 * + col2 * ( col0 ) AS col2 FROM tab0 AS cor0
----
-26134
-598436
38

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT 73 / + col2 + - cor0.col2 * + col2 * ( col0 ) AS col2 FROM tab0 AS cor0
----
-26134
-598436
38

query I rowsort
SELECT ALL - 44 + + col1 AS col1 FROM tab2 AS cor0
----
-13
-27
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-895
SELECT + - CAST( col1 AS SIGNED ) * col0 + - 45 DIV + col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-93

skipif mysql # not compatible
query I rowsort label-895
SELECT + - CAST ( col1 AS INTEGER ) * col0 + - 45 / + col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 22 col0 FROM tab2
----
48
49
60

query I rowsort
SELECT - col0 + col2 * + 22 + - col2 AS col1 FROM tab1
----
1131
1133
1936

query I rowsort
SELECT col2 * ( + ( + col0 ) ) + + ( + 28 + col1 ) FROM tab2
----
2115
248
3047

query I rowsort
SELECT ALL - col0 * - 62 - col0 * - tab0.col2 FROM tab0
----
12816
2205
2280

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-904
SELECT - ( col0 ) DIV col2 + col0 * - 68 FROM tab0 AS cor0
----
-1632
-2415
-6053

skipif mysql # not compatible
query I rowsort label-904
SELECT - ( col0 ) / col2 + col0 * - 68 FROM tab0 AS cor0
----
-1632
-2415
-6053

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

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

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

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

query I rowsort
SELECT + cor0.col0 * col0 + col2 * cor0.col0 FROM tab1 AS cor0
----
14080
171
7744

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

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

query I rowsort
SELECT cor2.col2 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT DISTINCT + col0 * - 57 FROM tab2
----
-399
-4446
-4503

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

query I rowsort
SELECT + 12 * cor0.col1 + - col1 FROM tab2 AS cor0
----
187
341
649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 9 ) * col0 + 25 col2 FROM tab1 AS cor0
----
-2
-551
-695

query I rowsort
SELECT DISTINCT cor0.col0 - col0 AS col2 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT - col2 - + 70 FROM tab2
----
-108
-96
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-918
SELECT col1 DIV - ( col1 ) - tab1.col2 AS col0 FROM tab1
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-918
SELECT col1 / - ( col1 ) - tab1.col2 AS col0 FROM tab1
----
-55
-58
-97

query I rowsort
SELECT + tab1.col1 * 11 + tab1.col2 * - 79 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 41ad74bf847caa2bca23d81001a33ff4

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

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

query I rowsort
SELECT DISTINCT + cor0.col1 * - 73 AS col0 FROM tab0, tab1 AS cor0
----
-1898
-730
-949

onlyif mysql # use DIV operator for integer division
query I rowsort label-922
SELECT DISTINCT + tab0.col2 DIV 64 + col0 AS col2 FROM tab0
----
24
35
90

skipif mysql # not compatible
query I rowsort label-922
SELECT DISTINCT + tab0.col2 / 64 + col0 AS col2 FROM tab0
----
24
35
90

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

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

query I rowsort
SELECT DISTINCT - col0 * + 83 * col0 AS col0 FROM tab1
----
-339968
-531200
-747

query I rowsort
SELECT - ( - 55 + - col0 ) FROM tab0
----
144
79
90

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-928
SELECT DISTINCT 95 DIV 33 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-928
SELECT DISTINCT 95 / 33 FROM tab0
----
2

query I rowsort
SELECT + 51 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT DISTINCT + 54 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
54

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

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

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

query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 + - ( col0 ) AS col1 FROM tab2 cor0
----
210
3403
954

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + 50 col1 FROM tab0 AS cor0
----
-1200
-1750
-4450

query I rowsort
SELECT col2 - - 91 FROM tab2 AS cor0
----
117
118
129

onlyif mysql # use DIV operator for integer division
query I rowsort label-937
SELECT - + cor0.col1 DIV 63 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-937
SELECT - + cor0.col1 / 63 FROM tab1 cor0
----
0
0
0

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

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

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

query I rowsort
SELECT ALL - + cor0.col0 + 6 AS col2 FROM tab0 AS cor0
----
-18
-29
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-942
SELECT + - col0 DIV - 35 - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1224
-576
-7919

skipif mysql # not compatible
query I rowsort label-942
SELECT + - col0 / - 35 - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1224
-576
-7919

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

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

query I rowsort
SELECT DISTINCT - col2 * - 35 FROM tab0 AS cor0
----
1155
2870
35

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

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

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

query I rowsort
SELECT col2 + cor0.col0 * 11 FROM tab0 cor0
----
1061
297
386

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col0 AS REAL ) + + col2 col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT + 20 - col0 * col0 FROM tab1
----
-4076
-6380
11

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

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

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

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

query I rowsort
SELECT + - col2 + - col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-4153
-63
-6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-957
SELECT ( + col2 ) DIV + 33 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-957
SELECT ( + col2 ) / + 33 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-958
SELECT col2 * col2 DIV + cor0.col0 AS col2 FROM tab0 AS cor0
----
0
45
75

skipif mysql # not compatible
query I rowsort label-958
SELECT col2 * col2 / + cor0.col0 AS col2 FROM tab0 AS cor0
----
0
45
75

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-960
SELECT + col2 + + CAST( - 57 AS SIGNED ) * - col0 AS col2 FROM tab2
----
426
4472
4541

skipif mysql # not compatible
query I rowsort label-960
SELECT + col2 + + CAST ( - 57 AS INTEGER ) * - col0 AS col2 FROM tab2
----
426
4472
4541

query I rowsort
SELECT + cor0.col2 * + col2 + - ( col1 + col2 ) AS col2 FROM tab2 AS cor0
----
1389
591
671

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

query I rowsort
SELECT col1 + ( 8 ) FROM tab1 AS cor0
----
18
21
34

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

query I rowsort
SELECT ALL + cor0.col1 * ( - cor0.col2 * - col2 ) + + cor0.col1 FROM tab2 AS cor0
----
22630
24565
39943

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 DISTINCT col0 * + ( 28 ) + - col1 * - col2 - col1 AS col2 FROM tab2 cor0
----
1002
2841
3659

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 19 col0 FROM tab1 AS cor0
----
-6
-9
7

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

query I rowsort
SELECT ALL + + col2 + + 91 + + ( - col1 ) * col2 FROM tab1 AS cor0
----
-1061
-1259
-422

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

query I rowsort
SELECT ALL col2 - ( 29 ) FROM tab2 cor0
----
-2
-3
9

query I rowsort
SELECT ALL - + col1 * cor0.col0 * col0 + + cor0.col2 * col1 AS col0 FROM tab1 AS cor0
----
-40390
-81952
1170

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-975
SELECT ALL - CAST ( + cor0.col1 AS INTEGER ) * - col1 col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL - 35 + + 36 * + col1 FROM tab1 AS cor0
----
325
433
901

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

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

query I rowsort
SELECT ALL 65 * col1 FROM tab0 AS cor0
----
5590
5915
6305

query I rowsort
SELECT DISTINCT col2 * cor0.col2 + + 93 FROM tab1 AS cor0
----
3009
3342
9309

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - col1 - - ( col0 ) * col0 col0 FROM tab0 cor0
----
16020
2640
4620

query I rowsort
SELECT + - col0 * col2 + cor0.col1 * 61 * col1 AS col1 FROM tab0 AS cor0
----
450364
497843
573914

query I rowsort
SELECT + 40 * col0 + + 31 FROM tab0 AS cor0
----
1431
3591
991

query I rowsort
SELECT DISTINCT 67 * - 74 FROM tab1
----
-4958

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

query I rowsort
SELECT + + cor0.col2 * - col1 - 31 * + col0 * col2 FROM tab0 AS cor0
----
-1182
-233700
-27390

query I rowsort
SELECT DISTINCT - 26 - + col0 AS col2 FROM tab0
----
-115
-50
-61

query I rowsort
SELECT - tab1.col0 + - col1 * - tab1.col0 - col0 FROM tab1
----
512
72
880

query I rowsort
SELECT + col2 * col1 * - 99 - col0 * - col1 AS col0 FROM tab0
----
-278898
-6208
-730639

query I rowsort
SELECT ALL + col0 * 69 AS col2 FROM tab0 AS cor0
----
1656
2415
6141

query I rowsort
SELECT ALL 91 * + col1 AS col0 FROM tab2
----
1547
2821
5369

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

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

query I rowsort
SELECT tab1.col1 + col0 * - tab1.col0 - 58 FROM tab1
----
-41
-4144
-6445

query I rowsort
SELECT DISTINCT - 26 + - col0 AS col2 FROM tab0
----
-115
-50
-61

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

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

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

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

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

query I rowsort
SELECT - col1 * col2 + col2 - col0 FROM tab0 AS cor0
----
-131
-2829
-7469

query I rowsort
SELECT ALL 74 + + col2 AS col0 FROM tab2
----
100
101
112

query I rowsort
SELECT DISTINCT col1 * + col1 + + col2 - col0 FROM tab2
----
248
3429
981

query I rowsort
SELECT DISTINCT tab2.col1 + - tab2.col0 * + col1 + col1 FROM tab2
----
-1309
-155
-4484

onlyif mysql # use DIV operator for integer division
query I rowsort label-1005
SELECT + col2 DIV + col0 + - col1 FROM tab1
----
-10
-12
-8

skipif mysql # not compatible
query I rowsort label-1005
SELECT + col2 / + col0 + - col1 FROM tab1
----
-10
-12
-8

query I rowsort
SELECT ALL col1 + - col0 * col2 FROM tab1
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-1007
SELECT ALL col0 * tab0.col0 * col2 + - col2 * + col0 DIV col0 FROM tab0
----
1224
18975
649440

skipif mysql # not compatible
query I rowsort label-1007
SELECT ALL col0 * tab0.col0 * col2 + - col2 * + col0 / col0 FROM tab0
----
1224
18975
649440

query I rowsort
SELECT cor0.col1 + - tab1.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 2b5ce14343793e82b2c07b009299e0dd

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1012
SELECT DISTINCT col1 * 38 + col2 * col0 DIV col1 AS col0 FROM tab1 AS cor0
----
1084
744
994

skipif mysql # not compatible
query I rowsort label-1012
SELECT DISTINCT col1 * 38 + col2 * col0 / col1 AS col0 FROM tab1 AS cor0
----
1084
744
994

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

query I rowsort
SELECT DISTINCT - - col2 + 29 * col0 AS col0 FROM tab2 cor0
----
2288
230
2329

query I rowsort
SELECT ALL - ( - 35 ) * col2 FROM tab2 cor0
----
1330
910
945

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

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

query I rowsort
SELECT ( + 55 ) FROM tab1
----
55
55
55

query I rowsort
SELECT DISTINCT - col0 + col1 * col0 + col1 * col0 * col0 AS col2 FROM tab1 AS cor0
----
309
41536
84160

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

query I rowsort
SELECT DISTINCT col0 * col1 * col0 AS col2 FROM tab2 AS cor0
----
106097
1519
358956

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

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

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

query I rowsort
SELECT 4 * col2 FROM tab1 cor0
----
216
228
384

query I rowsort
SELECT + 14 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
1148
14
462

query I rowsort
SELECT + + ( - cor0.col1 ) + - col2 * - col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT DISTINCT - 37 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
1221
3034
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 37 + cor0.col1 col0 FROM tab0 AS cor0
----
123
128
134

query I rowsort
SELECT + col0 * 95 + + col1 FROM tab2 AS cor0
----
696
7469
7522

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

query I rowsort
SELECT + 40 + - 35 FROM tab1 cor0
----
5
5
5

query I rowsort
SELECT + - col1 * col1 * + ( col1 ) - + col1 AS col2 FROM tab2 AS cor0
----
-205438
-29822
-4930

query I rowsort
SELECT DISTINCT + col1 * + col1 + + 95 * - col0 + - col2 AS col2 FROM tab1 AS cor0
----
-6037
-7527
337

query I rowsort
SELECT ( col1 ) + + 83 AS col2 FROM tab2 AS cor0
----
100
114
142

query I rowsort
SELECT ALL 98 * cor0.col1 + - col2 * cor0.col0 * + col1 AS col1 FROM tab1 AS cor0
----
-1664
-35500
-98566

query I rowsort
SELECT - ( 30 ) FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142

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

query I rowsort
SELECT + - col1 + + col2 * 56 FROM tab0 AS cor0
----
-41
1762
4501

query I rowsort
SELECT - col2 * - 73 * col0 FROM tab2
----
13797
148044
219146

query I rowsort
SELECT + col2 + - 57 FROM tab1 AS cor0
----
-3
0
39

query I rowsort
SELECT + + col0 + + 12 * col1 FROM tab1 cor0
----
184
236
315

onlyif mysql # use DIV operator for integer division
query I rowsort label-1042
SELECT - col1 + col1 * 47 DIV col0 FROM tab0 cor0
----
-43
33
82

skipif mysql # not compatible
query I rowsort label-1042
SELECT - col1 + col1 * 47 / col0 FROM tab0 cor0
----
-43
33
82

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

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT - col1 + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - col2 * - 47 * - ( col2 ) FROM tab1
----
-137052
-152703
-433152

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

query I rowsort
SELECT DISTINCT - 67 + col2 FROM tab0 AS cor0
----
-34
-66
15

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

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

query I rowsort
SELECT ALL col0 * 85 + col1 FROM tab2 AS cor0
----
626
6689
6732

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL col1 * col2 + + col2 * col0 FROM tab2
----
1026
3562
3648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1051
SELECT ALL - CAST( cor0.col2 AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL - CAST ( cor0.col2 AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT ( 55 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL cor0.col0 + 22 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to e28665a74caac26b300fcbaaa75b6dcd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1054
SELECT CAST( + 15 AS SIGNED ) * + col0 AS col0 FROM tab0 AS cor0
----
1335
360
525

skipif mysql # not compatible
query I rowsort label-1054
SELECT CAST ( + 15 AS INTEGER ) * + col0 AS col0 FROM tab0 AS cor0
----
1335
360
525

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

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

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

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

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

query I rowsort
SELECT col1 * col1 * col1 AS col1 FROM tab2 AS cor0
----
205379
29791
4913

onlyif mysql # use DIV operator for integer division
query I rowsort label-1060
SELECT - + col1 * col1 + cor0.col0 DIV col1 FROM tab2 AS cor0
----
-285
-3480
-961

skipif mysql # not compatible
query I rowsort label-1060
SELECT - + col1 * col1 + cor0.col0 / col1 FROM tab2 AS cor0
----
-285
-3480
-961

query I rowsort
SELECT + - col1 + + col1 * col2 * - col1 FROM tab1 AS cor0
----
-16237
-36530
-5710

query I rowsort
SELECT ( cor0.col0 ) * cor0.col2 * 87 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 6e609d7bab9f9b7f0b8238880b188784

query I rowsort
SELECT DISTINCT - - col2 * + 50 + col1 AS col2 FROM tab0 AS cor0
----
147
1736
4191

query I rowsort
SELECT - - col1 + 92 + + cor0.col1 * - cor0.col0 FROM tab2 AS cor0
----
-1234
-4451
-94

query I rowsort
SELECT DISTINCT col0 * ( - col1 + - col1 ) FROM tab1 AS cor0
----
-1280
-156
-2080

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1068
SELECT ( + cor0.col2 ) * - CAST ( NULL AS REAL ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query I rowsort
SELECT ( - col2 ) + col1 - + 51 FROM tab0
----
-42
2
45

query I rowsort
SELECT ALL - col2 + col2 * col1 * - 12 FROM tab2
----
-10071
-18434
-7790

query I rowsort
SELECT + cor0.col1 + ( + 13 ) * - col1 - 32 * ( col1 ) AS col1 FROM tab0 AS cor0
----
-3784
-4004
-4268

query I rowsort
SELECT cor0.col2 * + ( + 38 ) + col2 AS col2 FROM tab1 AS cor0
----
2106
2223
3744

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

query I rowsort
SELECT ALL + 95 * - tab2.col0 * - 39 - tab2.col0 AS col0 FROM tab2
----
25928
288912
292616

query I rowsort
SELECT - 3 * + cor0.col1 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to ec52b2fd14628f591b1eac88c416461c

query I rowsort
SELECT DISTINCT + 15 + tab2.col0 FROM tab2
----
22
93
94

query I rowsort
SELECT DISTINCT + cor0.col0 + + tab0.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
9 values hashing to 727cf91885da1564b9eb8c57fe9a5d27

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

query I rowsort
SELECT + col0 + + col0 + col2 FROM tab0
----
260
71
81

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

query I rowsort
SELECT ALL - col2 + col1 * - 62 AS col1 FROM tab1 AS cor0
----
-1666
-677
-902

query I rowsort
SELECT ALL + col1 * + 39 + - col1 * + col1 * 93 FROM tab0 AS cor0
----
-684474
-766584
-871254

query I rowsort
SELECT DISTINCT - col2 * + 40 AS col1 FROM tab0 AS cor0
----
-1320
-3280
-40

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

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

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

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

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

query I rowsort
SELECT ALL + + col0 * - col2 * + 41 + col1 * cor0.col2 FROM tab1 AS cor0
----
-148998
-313632
-5238

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1090
SELECT - - col1 * CAST( - 21 AS SIGNED ) FROM tab1 AS cor0
----
-210
-273
-546

skipif mysql # not compatible
query I rowsort label-1090
SELECT - - col1 * CAST ( - 21 AS INTEGER ) FROM tab1 AS cor0
----
-210
-273
-546

query I rowsort
SELECT - col2 * 96 + col0 * col1 AS col0 FROM tab1 AS cor0
----
-4832
-5106
-8176

query I rowsort
SELECT ALL col2 + + 12 FROM tab1 AS cor0
----
108
66
69

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1095
SELECT + 28 * cor0.col2 + CAST( 12 AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c8e590c285342990c19fa5901d477385

skipif mysql # not compatible
query I rowsort label-1095
SELECT + 28 * cor0.col2 + CAST ( 12 AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c8e590c285342990c19fa5901d477385

query I rowsort
SELECT + tab0.col0 - 64 FROM tab0
----
-29
-40
25

query I rowsort
SELECT ALL 48 + cor0.col2 AS col0 FROM tab1 AS cor0
----
102
105
144

query I rowsort
SELECT DISTINCT - 95 * - col1 FROM tab2 AS cor0
----
1615
2945
5605

query I rowsort
SELECT - 33 * ( col1 ) FROM tab0 cor0
----
-2838
-3003
-3201

query I rowsort
SELECT ALL - ( 78 ) * col0 + ( col1 ) * col1 + 83 AS col2 FROM tab2 AS cor0
----
-2520
-5790
498

query I rowsort
SELECT DISTINCT 87 * + col2 FROM tab0 AS cor0
----
2871
7134
87

query I rowsort
SELECT - col0 * 91 AS col1 FROM tab2 AS cor0
----
-637
-7098
-7189

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1105
SELECT col2 * - col2 + 26 * col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
-2942
-3275
-9242

skipif mysql # not compatible
query I rowsort label-1105
SELECT col2 * - col2 + 26 * col2 / - col2 AS col2 FROM tab1 AS cor0
----
-2942
-3275
-9242

onlyif mysql # use DIV operator for integer division
query I rowsort label-1106
SELECT DISTINCT - 41 + col1 * ( + col1 ) DIV + col1 AS col0 FROM tab0 AS cor0
----
45
50
56

skipif mysql # not compatible
query I rowsort label-1106
SELECT DISTINCT - 41 + col1 * ( + col1 ) / + col1 AS col0 FROM tab0 AS cor0
----
45
50
56

query I rowsort
SELECT DISTINCT + - col2 * - col2 * - 24 FROM tab2 AS cor0
----
-16224
-17496
-34656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - cor0.col0 * 18 col1 FROM tab0 AS cor0
----
-10368
-142578
-22050

query I rowsort
SELECT - 52 * - col1 + + col2 FROM tab0 AS cor0
----
4505
4814
5045

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

query I rowsort
SELECT - 93 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
5022
5301
8928

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

query I rowsort
SELECT ALL - - col1 + col2 * 46 AS col1 FROM tab0 AS cor0
----
143
1604
3863

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + col2 - ( 94 * - col2 + + col1 ) col0 FROM tab1 AS cor0
----
5101
5341
9027

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

query I rowsort
SELECT + col2 * col2 + col1 * + 41 AS col1 FROM tab1 cor0
----
3659
3982
9749

query I rowsort
SELECT ALL - col1 + - col0 * 69 AS col2 FROM tab2 AS cor0
----
-514
-5441
-5468

query I rowsort
SELECT DISTINCT + 73 + col2 + col1 FROM tab2 cor0
----
128
131
158

query I rowsort
SELECT - 0 * col2 AS col1 FROM tab1 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT + + col2 * 68 - - col1 AS col0 FROM tab0 AS cor0
----
165
2330
5667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 - 70 col1 FROM tab2 AS cor0
----
1273
147
4532

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1126
SELECT - col2 DIV col0 + 93 AS col0 FROM tab1
----
75
92
93

skipif mysql # not compatible
query I rowsort label-1126
SELECT - col2 / col0 + 93 AS col0 FROM tab1
----
75
92
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-1127
SELECT ALL - col0 DIV 42 + + col1 FROM tab1
----
12
26
9

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL - col0 / 42 + + col1 FROM tab1
----
12
26
9

query I rowsort
SELECT 24 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - 71 ) - - col0 col1 FROM tab2 AS cor0
----
-64
7
8

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

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

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

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

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

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

query I rowsort
SELECT - - cor0.col1 * 71 FROM tab0 AS cor0
----
6106
6461
6887

query I rowsort
SELECT + 97 + - cor0.col0 * - col0 * + cor0.col0 AS col1 FROM tab0 cor0
----
13921
42972
705066

query I rowsort
SELECT + 14 * - 0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 4 * - 68 * + tab0.col1 AS col1 FROM tab0
----
23392
24752
26384

query I rowsort
SELECT DISTINCT - 26 * - 94 * - col2 AS col1 FROM tab1
----
-131976
-139308
-234624

query I rowsort
SELECT - 26 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

onlyif mysql # use DIV operator for integer division
query I rowsort label-1141
SELECT ALL - - 78 DIV + 8 FROM tab2 AS cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL - - 78 / + 8 FROM tab2 AS cor0
----
9
9
9

query I rowsort
SELECT + + ( - 69 ) * - col1 * col0 AS col0 FROM tab1 AS cor0
----
44160
5382
71760

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

skipif mysql # not compatible
query I rowsort label-1143
SELECT + cor0.col0 + col1 / ( - col1 ) AS col1 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT + - col2 + col0 * 65 FROM tab2 AS cor0
----
428
5044
5097

query I rowsort
SELECT + col1 + col0 * - 69 * col1 FROM tab0 AS cor0
----
-142330
-234158
-558740

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

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

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

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

query I rowsort
SELECT - 7 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT col0 / - ( - col1 + col2 * + 5 ) col2 FROM tab1 AS cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT - cor0.col2 * + CAST ( - 39 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1287
3198
39

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

skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL + col0 * ( col1 ) * col2 + CAST ( - col2 AS INTEGER ) * - col1 AS col1 FROM tab1 AS cor0
----
101088
37050
5616

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

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

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

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

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

query I rowsort
SELECT ALL 29 + col1 FROM tab2 AS cor0
----
46
60
88

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

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

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

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

query I rowsort
SELECT - tab0.col1 * + 42 + col0 FROM tab0
----
-3588
-3733
-4039

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

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

query I rowsort
SELECT col1 * - col0 + tab2.col2 * + col0 AS col1 FROM tab2
----
-2574
-28
1659

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 + - 35 - - ( cor0.col1 ) col2 FROM tab2 AS cor0
----
-307
-3457
-965

onlyif mysql # use DIV operator for integer division
query I rowsort label-1169
SELECT DISTINCT + cor0.col2 DIV cor0.col1 + - ( col1 * col1 ) AS col0 FROM tab1 AS cor0
----
-162
-674
-95

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT + cor0.col2 / cor0.col1 + - ( col1 * col1 ) AS col0 FROM tab1 AS cor0
----
-162
-674
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - cor0.col1 col1 FROM tab2 AS cor0
----
-24
19
62

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

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

query I rowsort
SELECT 96 * + col2 FROM tab1
----
5184
5472
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-1173
SELECT DISTINCT 2 DIV 78 AS col0 FROM tab2, tab0, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1173
SELECT DISTINCT 2 / 78 AS col0 FROM tab2, tab0, tab0 AS cor0
----
0

query I rowsort
SELECT 98 * - cor0.col1 - cor0.col2 FROM tab1 AS cor0
----
-1037
-1370
-2602

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

query I rowsort
SELECT col1 + col1 + + col1 AS col2 FROM tab1
----
30
39
78

query I rowsort
SELECT - 3 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT + col2 * 70 FROM tab2 cor0
----
1820
1890
2660

query I rowsort
SELECT ALL - 77 + col2 AS col0 FROM tab1 cor0
----
-20
-23
19

query I rowsort
SELECT DISTINCT - cor0.col0 * ( + cor0.col0 * + col1 + col2 ) FROM tab1 AS cor0
----
-396
-44608
-90880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - col0 ) col1 FROM tab2 AS cor0
----
-7
-78
-79

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL + + 41 / col0 col2 FROM tab1 AS cor0
----
0
0
13

onlyif mysql # use DIV operator for integer division
query I rowsort label-1184
SELECT DISTINCT ( - col1 ) * - col0 + col2 DIV col2 FROM tab0 AS cor0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-1184
SELECT DISTINCT ( - col1 ) * - col0 + col2 / col2 FROM tab0 AS cor0
----
2065
3396
8100

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 75 * + cor0.col0 FROM tab0 AS cor0
----
1800
2625
6675

query I rowsort
SELECT ( 19 ) * - col1 * - col1 FROM tab1 AS cor0
----
12844
1900
3211

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 + 87 col0 FROM tab0
----
98
98
98

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

query I rowsort
SELECT ALL 4 * + col0 + - col2 AS col0 FROM tab1
----
-42
199
224

query I rowsort
SELECT - - 9 - col1 AS col0 FROM tab0 AS cor0
----
-77
-82
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-1194
SELECT ALL - ( col1 ) + col0 DIV - col0 AS col1 FROM tab1 cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL - ( col1 ) + col0 / - col0 AS col1 FROM tab1 cor0
----
-11
-14
-27

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

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

query I rowsort
SELECT ALL + 67 FROM tab1, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

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

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

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

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

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

query I rowsort
SELECT + + col0 * + 44 AS col2 FROM tab1 AS cor0
----
132
2816
3520

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

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

query I rowsort
SELECT ALL - col1 * col0 + + 13 * col1 AS col2 FROM tab1 AS cor0
----
-510
-871
260

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

skipif mysql # not compatible
query I rowsort label-1205
SELECT col1 * + CAST ( - cor0.col1 AS INTEGER ) * + col2 AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

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

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

query I rowsort
SELECT cor0.col0 AS col2 FROM tab1, tab0 cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( col1 ) col0 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT + col1 + 80 * - col1 AS col0 FROM tab0
----
-6794
-7189
-7663

query I rowsort
SELECT col1 * 67 + col1 * col1 FROM tab1 AS cor0
----
1040
2418
770

query I rowsort
SELECT DISTINCT + - col0 * + col1 + col1 * col2 AS col1 FROM tab0 AS cor0
----
-3298
-637
774

query I rowsort
SELECT - - col2 * + ( 84 ) + - col2 AS col0 FROM tab1 AS cor0
----
4482
4731
7968

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

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

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

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

query I rowsort
SELECT cor0.col1 * 66 FROM tab0 AS cor0
----
5676
6006
6402

query I rowsort
SELECT ALL - 44 + - col1 * col2 FROM tab0 AS cor0
----
-141
-2882
-7506

query I rowsort
SELECT DISTINCT - - 27 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
1458
1539
2592

query I rowsort
SELECT ( + 69 ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # use DIV operator for integer division
query I rowsort label-1220
SELECT - 63 DIV - 20 col0 FROM tab2 AS cor0
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1220
SELECT - 63 / - 20 col0 FROM tab2 AS cor0
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 * col1 + col1 col1 FROM tab0 AS cor0
----
860
910
970

query I rowsort
SELECT 2 + 89 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT - ( col2 * - ( 40 ) ) FROM tab0
----
1320
3280
40

query I rowsort
SELECT ALL + - cor0.col0 * - col1 * col1 + col0 * col1 - col2 AS col1 FROM tab1 AS cor0
----
14464
2052
6983

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

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

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

query I rowsort
SELECT + col2 * - cor0.col2 - 32 FROM tab1 AS cor0
----
-2948
-3281
-9248

query I rowsort
SELECT ALL - 68 + col2 + + col2 FROM tab2 AS cor0
----
-14
-16
8

query I rowsort
SELECT - 86 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af

query I rowsort
SELECT ALL + 35 * col1 * col2 + col0 AS col0 FROM tab1 AS cor0
----
20014
43760
49143

query I rowsort
SELECT + col1 + 30 * + 74 * col1 FROM tab0 AS cor0
----
191006
202111
215437

query I rowsort
SELECT - col2 + col1 + 67 FROM tab1
----
-16
20
39

query I rowsort
SELECT + col0 + ( + col0 ) * + cor0.col0 FROM tab1 cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT + ( - col1 ) + + 96 * col1 FROM tab1
----
1235
2470
950

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1238
SELECT DISTINCT - 66 * col1 DIV - ( col2 ) FROM tab0
----
172
6402
73

skipif mysql # not compatible
query I rowsort label-1238
SELECT DISTINCT - 66 * col1 / - ( col2 ) FROM tab0
----
172
6402
73

query I rowsort
SELECT ALL 48 * tab1.col0 * 30 AS col0 FROM tab1
----
115200
4320
92160

onlyif mysql # use DIV operator for integer division
query I rowsort label-1240
SELECT + col0 DIV + col0 - 9 * - col2 FROM tab1
----
487
514
865

skipif mysql # not compatible
query I rowsort label-1240
SELECT + col0 / + col0 - 9 * - col2 FROM tab1
----
487
514
865

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col0 col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - 86 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT - col1 * + ( col0 + col0 ) FROM tab0
----
-16198
-4128
-6790

query I rowsort
SELECT DISTINCT + cor0.col2 - cor0.col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
-53
-9
-96

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

query I rowsort
SELECT ALL tab0.col0 * 12 FROM tab0
----
1068
288
420

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1247
SELECT col1 + CAST( + 73 AS SIGNED ) * col2 FROM tab2 AS cor0
----
1957
2002
2791

skipif mysql # not compatible
query I rowsort label-1247
SELECT col1 + CAST ( + 73 AS INTEGER ) * col2 FROM tab2 AS cor0
----
1957
2002
2791

query I rowsort
SELECT 85 + 54 AS col0 FROM tab1 AS cor0
----
139
139
139

query I rowsort
SELECT + - cor0.col1 * col2 + col0 * col2 * + 72 FROM tab2 AS cor0
----
12771
144482
215498

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1250
SELECT + CAST( - 83 AS SIGNED ) + + col2 AS col1 FROM tab0 cor0
----
-1
-50
-82

skipif mysql # not compatible
query I rowsort label-1250
SELECT + CAST ( - 83 AS INTEGER ) + + col2 AS col1 FROM tab0 cor0
----
-1
-50
-82

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

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

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS INTEGER ) * col1 + CAST ( - col0 AS REAL ) * - col0 * 24 + - col2 FROM tab0 cor0
----
15855
198121
32794

onlyif mysql # use DIV operator for integer division
query I rowsort label-1253
SELECT + + 21 * 99 + - col0 DIV col1 + 17 AS col1 FROM tab1 AS cor0
----
2090
2090
2096

skipif mysql # not compatible
query I rowsort label-1253
SELECT + + 21 * 99 + - col0 / col1 + 17 AS col1 FROM tab1 AS cor0
----
2090
2090
2096

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1254
SELECT tab2.col1 + CAST( + 41 AS SIGNED ) * + col1 + - CAST( col2 AS SIGNED ) * - col2 FROM tab2
----
2031
2158
3154

skipif mysql # not compatible
query I rowsort label-1254
SELECT tab2.col1 + CAST ( + 41 AS INTEGER ) * + col1 + - CAST ( col2 AS INTEGER ) * - col2 FROM tab2
----
2031
2158
3154

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

query I rowsort
SELECT cor0.col2 * + col1 + + col2 * ( 52 ) FROM tab0 AS cor0
----
11726
149
4554

query I rowsort
SELECT tab2.col2 - 5 * - col1 AS col0 FROM tab2
----
123
182
321

query I rowsort
SELECT cor0.col0 + + cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 00ff93cbcc751be1393f9e1fd72170f8

query I rowsort
SELECT ( col0 ) * col2 + + col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT + 37 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1261
SELECT DISTINCT col1 * - col0 + - col2 DIV + 97 AS col1 FROM tab0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-1261
SELECT DISTINCT col1 * - col0 + - col2 / + 97 AS col1 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-1262
SELECT col0 + + col0 DIV + col1 + col0 AS col1 FROM tab0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-1262
SELECT col0 + + col0 / + col1 + col0 AS col1 FROM tab0
----
178
48
70

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

query I rowsort
SELECT + col0 + - 56 * - col1 AS col1 FROM tab1 AS cor0
----
1459
624
808

onlyif mysql # use DIV operator for integer division
query I rowsort label-1265
SELECT DISTINCT CAST( col2 AS SIGNED ) DIV + col0 + cor0.col0 DIV + col0 FROM tab0 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-1265
SELECT DISTINCT CAST ( col2 AS INTEGER ) / + col0 + cor0.col0 / + col0 FROM tab0 AS cor0
----
1
2

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

query I rowsort
SELECT DISTINCT + col1 + 78 AS col1 FROM tab2 AS cor0
----
109
137
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col2 AS REAL ) * col2 - 60 col0 FROM tab2 AS cor0
----
1384
616
669

query I rowsort
SELECT ( - col1 ) * cor0.col1 - - ( - col0 ) AS col0 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT ALL 81 + col2 * + col1 AS col2 FROM tab0 AS cor0
----
178
2919
7543

query I rowsort
SELECT cor0.col0 * + col1 + - col0 * col2 FROM tab2 AS cor0
----
-1659
2574
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 + - col0 * + ( col1 ) * col2 col0 FROM tab0 AS cor0
----
-3329
-664052
-68046

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

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

query I rowsort
SELECT ALL - 98 + - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1542
-774
-827

query I rowsort
SELECT ALL + - col1 + cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
-20
-95
73

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

query I rowsort
SELECT ALL - col1 * - cor0.col1 + + col0 * 35 AS col2 FROM tab2 AS cor0
----
1206
3054
6211

query I rowsort
SELECT - ( col0 ) * 47 FROM tab0 cor0
----
-1128
-1645
-4183

query I rowsort
SELECT DISTINCT + col2 * + col1 + ( - col2 ) + - col0 AS col0 FROM tab0 AS cor0
----
2781
61
7291

onlyif mysql # use DIV operator for integer division
query I rowsort label-1280
SELECT DISTINCT - ( tab1.col1 ) * col0 DIV - 69 FROM tab1
----
1
15
9

skipif mysql # not compatible
query I rowsort label-1280
SELECT DISTINCT - ( tab1.col1 ) * col0 / - 69 FROM tab1
----
1
15
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + col0 col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + col1 * + 36 AS col1 FROM tab1 cor0
----
360
468
936

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

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

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

query I rowsort
SELECT + 32 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

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

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

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

query I rowsort
SELECT ALL + - ( - col1 ) - col1 * col2 * 71 AS col2 FROM tab1 AS cor0
----
-40460
-88595
-99658

query I rowsort
SELECT cor1.col1 + + cor0.col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 57351d452a382e227a12f019d3a3f0c9

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

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

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

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

query I rowsort
SELECT + - col2 + ( - col2 ) FROM tab1 AS cor0
----
-108
-114
-192

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

query I rowsort
SELECT DISTINCT col2 * - 60 * - 25 FROM tab1 AS cor0
----
144000
81000
85500

query I rowsort
SELECT DISTINCT + - cor0.col2 * + col0 + - col0 FROM tab2 AS cor0
----
-196
-2106
-3081

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

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

query I rowsort
SELECT ALL + + col1 + + col2 * col0 * + col2 FROM tab2 AS cor0
----
114093
5134
52787

onlyif mysql # use DIV operator for integer division
query I rowsort label-1300
SELECT ALL 50 DIV + tab0.col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL 50 / + tab0.col0 FROM tab0
----
0
1
2

query I rowsort
SELECT 17 * col1 + + col1 FROM tab2 cor0
----
1062
306
558

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

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

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

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

query I rowsort
SELECT ALL - + 40 - col2 * + col0 AS col0 FROM tab0 cor0
----
-7338
-75
-832

query I rowsort
SELECT DISTINCT 57 + + ( col1 + - col0 ) * + col2 FROM tab2 AS cor0
----
-2299
-437
705

query I rowsort
SELECT DISTINCT + + 50 + col2 AS col0 FROM tab0 cor0
----
132
51
83

query I rowsort
SELECT ALL - + col1 + + col2 * - col1 - cor0.col2 FROM tab0 AS cor0
----
-195
-2957
-7635

query I rowsort
SELECT ALL + col1 - + 43 AS col1 FROM tab0
----
43
48
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1311
SELECT DISTINCT col0 - - CAST( col1 * col1 AS SIGNED ) AS col2 FROM tab1
----
164
249
679

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT col0 - - CAST ( col1 * col1 AS INTEGER ) AS col2 FROM tab1
----
164
249
679

query I rowsort
SELECT tab1.col1 + - ( tab1.col0 ) * col0 + - col0 * - col0 FROM tab1
----
10
13
26

query I rowsort
SELECT col2 + + 88 * col1 FROM tab0 AS cor0
----
7601
8090
8537

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1314
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * 96 col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col2 * 51 + - col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-208
1292
540

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

skipif mysql # not compatible
query I rowsort label-1316
SELECT - tab2.col2 + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT col1 * col0 * col0 FROM tab0 cor0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-1319
SELECT DISTINCT + - 2 DIV col0 + - cor0.col0 - col0 DIV col0 AS col2 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-1319
SELECT DISTINCT + - 2 / col0 + - cor0.col0 - col0 / col0 AS col2 FROM tab2 AS cor0
----
-79
-8
-80

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

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL cor0.col1 / + 25 AS col1 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT + col2 + + 81 FROM tab0 cor0
----
114
163
82

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1324
SELECT - col0 + cor0.col0 * col2 DIV col1 AS col1 FROM tab1 AS cor0
----
3
300
510

skipif mysql # not compatible
query I rowsort label-1324
SELECT - col0 + cor0.col0 * col2 / col1 AS col1 FROM tab1 AS cor0
----
3
300
510

query I rowsort
SELECT DISTINCT col0 + + tab0.col1 * col1 * + col1 FROM tab0
----
636080
753660
912708

query I rowsort
SELECT 66 + col2 AS col0 FROM tab2
----
104
92
93

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1329
SELECT - 33 * col2 + + col2 DIV + col0 FROM tab1 AS cor0
----
-1764
-1881
-3167

skipif mysql # not compatible
query I rowsort label-1329
SELECT - 33 * col2 + + col2 / + col0 FROM tab1 AS cor0
----
-1764
-1881
-3167

query I rowsort
SELECT + col2 * + col2 + col2 * - col1 * col2 AS col1 FROM tab2 AS cor0
----
-21870
-23104
-39208

onlyif mysql # use DIV operator for integer division
query I rowsort label-1331
SELECT ALL col2 DIV col2 + + col1 AS col2 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-1331
SELECT ALL col2 / col2 + + col1 AS col2 FROM tab1
----
11
14
27

query I rowsort
SELECT tab2.col2 * 97 AS col2 FROM tab2
----
2522
2619
3686

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

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

query I rowsort
SELECT + col1 + cor0.col0 * + col0 * col0 FROM tab0 AS cor0
----
13910
42972
705060

onlyif mysql # use DIV operator for integer division
query I rowsort label-1336
SELECT - + 30 * col1 DIV col0 + - col0 AS col0 FROM tab1 AS cor0
----
-263
-68
-84

skipif mysql # not compatible
query I rowsort label-1336
SELECT - + 30 * col1 / col0 + - col0 AS col0 FROM tab1 AS cor0
----
-263
-68
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-1337
SELECT + + col1 * - col1 * + col2 + col1 * - col0 DIV - cor0.col0 AS col0 FROM tab2 AS cor0
----
-10965
-25916
-90447

skipif mysql # not compatible
query I rowsort label-1337
SELECT + + col1 * - col1 * + col2 + col1 * - col0 / - cor0.col0 AS col0 FROM tab2 AS cor0
----
-10965
-25916
-90447

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1340
SELECT ALL + col0 DIV 35 + col0 FROM tab1
----
3
65
82

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL + col0 / 35 + col0 FROM tab1
----
3
65
82

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 + - 63 col2 FROM tab2 AS cor0
----
-32
-4
-46

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

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

query I rowsort
SELECT - + ( col2 ) * col0 + col0 * + col2 * - col1 FROM tab1 AS cor0
----
-107520
-40128
-4374

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

query I rowsort
SELECT - 60 * - cor0.col1 + + col1 AS col2 FROM tab2 cor0
----
1037
1891
3599

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

query I rowsort
SELECT - ( + col1 ) + - col0 * col2 - - cor0.col2 FROM tab0 cor0
----
-131
-7307
-845

query I rowsort
SELECT - + 53 + col2 FROM tab1 AS cor0
----
1
4
43

query I rowsort
SELECT - col1 * + 85 FROM tab0 AS cor0
----
-7310
-7735
-8245

query I rowsort
SELECT col1 - ( - 81 ) * col0 AS col0 FROM tab2 cor0
----
598
6377
6416

query I rowsort
SELECT ALL - + col0 * 44 FROM tab1 AS cor0
----
-132
-2816
-3520

query I rowsort
SELECT - cor0.col1 * col1 + + 29 FROM tab1 AS cor0
----
-140
-647
-71

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1359
SELECT DISTINCT col1 * 11 + cor0.col1 DIV - col2 FROM tab0 AS cor0
----
1000
944
970

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT col1 * 11 + cor0.col1 / - col2 FROM tab0 AS cor0
----
1000
944
970

onlyif mysql # use DIV operator for integer division
query I rowsort label-1360
SELECT - col0 DIV col1 - col1 FROM tab1 AS cor0
----
-16
-19
-26

skipif mysql # not compatible
query I rowsort label-1360
SELECT - col0 / col1 - col1 FROM tab1 AS cor0
----
-16
-19
-26

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) * 52 col2 FROM tab2 AS cor0
----
-1352
-1404
-1976

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col2 AS REAL ) AS col2 FROM tab0
----
-1
-33
-82

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

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

query I rowsort
SELECT col2 * - col2 + col0 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT ALL col1 - + col2 * - 73 AS col2 FROM tab2
----
1957
2002
2791

query I rowsort
SELECT DISTINCT + 67 - - col2 FROM tab0
----
100
149
68

query I rowsort
SELECT + 22 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

query I rowsort
SELECT ( col1 ) - 6 FROM tab2
----
11
25
53

query I rowsort
SELECT + - 76 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT DISTINCT + cor0.col0 * - 37 * col2 FROM tab2 AS cor0
----
-111074
-6993
-75036

query I rowsort
SELECT - col0 * ( cor0.col0 ) * + col2 + + ( - col1 ) - - col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1571
-162845
-238518

query I rowsort
SELECT + - col2 * col1 * 96 AS col1 FROM tab2 AS cor0
----
-147264
-62016
-80352

query I rowsort
SELECT ALL col0 * - 64 FROM tab2 AS cor0
----
-448
-4992
-5056

query I rowsort
SELECT ALL - 93 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT col1 * + col2 * - ( + col0 ) + + col0 FROM tab0
----
-3360
-664029
-68088

query I rowsort
SELECT DISTINCT col0 + 6 AS col2 FROM tab1
----
70
86
9

query I rowsort
SELECT + col1 + + 80 * col0 FROM tab2
----
591
6299
6337

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

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

skipif mysql # not compatible
query I rowsort
SELECT - col0 * - CAST ( 11 AS REAL ) - + col2 FROM tab1 AS cor0
----
-21
647
784

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

query I rowsort
SELECT DISTINCT col2 + + 20 * + col0 FROM tab0 AS cor0
----
1862
513
701

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

query I rowsort
SELECT ALL - cor0.col0 * + cor0.col1 + + 68 AS col0 FROM tab0 AS cor0
----
-1996
-3327
-8031

query I rowsort
SELECT - - cor0.col1 * 64 * 12 + col0 FROM tab2 AS cor0
----
13135
23815
45390

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

query I rowsort
SELECT ( 77 * + tab1.col1 ) FROM tab1
----
1001
2002
770

query I rowsort
SELECT DISTINCT + ( - col0 ) * - col1 + - col2 + - ( col0 ) FROM tab0
----
2007
3359
7928

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

skipif mysql # not compatible
query I rowsort label-1393
SELECT - - col1 / + 47 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * - col2 + col1 * + col0 FROM tab0 cor0
----
-774
3298
637

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1400
SELECT ALL - col0 DIV - cor0.col0 + 1 * 15 AS col2 FROM tab2 AS cor0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL - col0 / - cor0.col0 + 1 * 15 AS col2 FROM tab2 AS cor0
----
16
16
16

query I rowsort
SELECT ALL - + col0 * - col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT + 32 * col1 + - col1 * - col1 AS col1 FROM tab1
----
1508
420
585

onlyif mysql # use DIV operator for integer division
query I rowsort label-1403
SELECT + col2 + col2 * col1 DIV + 92 AS col2 FROM tab2 AS cor0
----
36
42
45

skipif mysql # not compatible
query I rowsort label-1403
SELECT + col2 + col2 * col1 / + 92 AS col2 FROM tab2 AS cor0
----
36
42
45

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

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

query I rowsort
SELECT + 65 * col1 FROM tab0 cor0
----
5590
5915
6305

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

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

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

query I rowsort
SELECT + ( col0 * col1 ) + - col2 + - col2 * col1 AS col2 FROM tab1
----
-1380
-304
13

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1412
SELECT ALL col0 + + col1 DIV - col1 FROM tab2
----
6
77
78

skipif mysql # not compatible
query I rowsort label-1412
SELECT ALL col0 + + col1 / - col1 FROM tab2
----
6
77
78

query I rowsort
SELECT + - 11 + + col2 * + col1 + + ( - col0 ) FROM tab0 AS cor0
----
2803
51
7362

query I rowsort
SELECT DISTINCT col1 + ( col0 ) * + 88 * + 36 FROM tab0 AS cor0
----
110977
282043
76118

query I rowsort
SELECT - 66 + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-117
-59
-82

query I rowsort
SELECT DISTINCT + + 42 * col1 * col1 AS col1 FROM tab1 AS cor0
----
28392
4200
7098

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

query I rowsort
SELECT + col0 + 79 * col2 FROM tab0 AS cor0
----
114
2631
6567

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

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT - col1 / col1 AS col0 FROM tab0 cor0
----
-1

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

query I rowsort
SELECT ALL 63 * col0 FROM tab1 AS cor0
----
189
4032
5040

query I rowsort
SELECT DISTINCT - + 2 + col0 FROM tab1 AS cor0
----
1
62
78

query I rowsort
SELECT DISTINCT + 43 + col1 AS col1 FROM tab0 cor0
----
129
134
140

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col2 + col0 + + 79 col0 FROM tab2 AS cor0
----
-1377
-488
-751

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

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

query I rowsort
SELECT - 12 * col1 + + 69 AS col2 FROM tab1 AS cor0
----
-243
-51
-87

query I rowsort
SELECT + col1 + col2 * 94 AS col2 FROM tab0 AS cor0
----
191
3188
7799

query I rowsort
SELECT col1 + col1 + col0 AS col0 FROM tab2 AS cor0
----
113
196
69

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

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

query I rowsort
SELECT - cor0.col0 * col2 - - 71 * col2 AS col2 FROM tab1 AS cor0
----
-864
3672
399

query I rowsort
SELECT DISTINCT - col2 * cor0.col0 - 60 FROM tab0 AS cor0
----
-7358
-852
-95

query I rowsort
SELECT ALL cor0.col2 * 69 AS col1 FROM tab1 AS cor0
----
3726
3933
6624

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

query I rowsort
SELECT ALL col2 * col0 + col2 + col0 * - 86 AS col2 FROM tab2 AS cor0
----
-3754
-386
-4654

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1440
SELECT ALL col0 DIV + 58 - + ( - col2 ) * col1 AS col1 FROM tab0 AS cor0
----
2838
7463
97

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL col0 / + 58 - + ( - col2 ) * col1 AS col1 FROM tab0 AS cor0
----
2838
7463
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * ( - col1 * col1 ) col0 FROM tab0 cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + cor0.col2 * - 40 + - col0 AS col1 FROM tab2 AS cor0
----
-1087
-1118
-1599

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

query I rowsort
SELECT - col1 * - cor0.col2 * + cor0.col0 - col1 * - col0 FROM tab2 AS cor0
----
124254
52377
6076

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1446
SELECT + col0 DIV ( 74 ) + col2 * - ( col0 ) FROM tab0 cor0
----
-35
-7297
-792

skipif mysql # not compatible
query I rowsort label-1446
SELECT + col0 / ( 74 ) + col2 * - ( col0 ) FROM tab0 cor0
----
-35
-7297
-792

query I rowsort
SELECT - col0 * + cor0.col1 - 64 * col0 * + cor0.col0 FROM tab0 AS cor0
----
-38928
-515043
-81795

query I rowsort
SELECT DISTINCT + cor0.col0 + 91 FROM tab2 AS cor0
----
169
170
98

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

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

query I rowsort
SELECT 1 - + col0 FROM tab0 AS cor0
----
-23
-34
-88

query I rowsort
SELECT ALL 30 + + cor0.col0 FROM tab1 AS cor0
----
110
33
94

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 73 ) col0 FROM tab2, tab1 AS cor0
----
-73

query I rowsort
SELECT + col0 + 50 FROM tab2 AS cor0
----
128
129
57

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1457
SELECT + - col2 * 90 + - col0 DIV + cor0.col0 FROM tab2 AS cor0
----
-2341
-2431
-3421

skipif mysql # not compatible
query I rowsort label-1457
SELECT + - col2 * 90 + - col0 / + cor0.col0 FROM tab2 AS cor0
----
-2341
-2431
-3421

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

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

query I rowsort
SELECT + 92 + col0 FROM tab0 AS cor0
----
116
127
181

query I rowsort
SELECT - + cor0.col2 * 87 AS col2 FROM tab0 cor0
----
-2871
-7134
-87

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

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

query I rowsort
SELECT ALL + 16 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT 37 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT ALL + tab0.col2 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col0 col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-24
-35
-89

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( 32 ) AS col2 FROM tab0, tab1, tab2 AS cor0, tab2
----
32

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

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

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

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

query I rowsort
SELECT + 26 FROM tab2, tab1 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT DISTINCT col0 * ( 87 ) FROM tab0 AS cor0
----
2088
3045
7743

query I rowsort
SELECT ALL - col0 + - ( - col0 ) + - col2 * - 26 AS col2 FROM tab2 AS cor0
----
676
702
988

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

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

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

query I rowsort
SELECT + cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

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

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

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

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

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

query I rowsort
SELECT + 60 + col2 * col2 FROM tab0
----
1149
61
6784

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

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

query I rowsort
SELECT DISTINCT - + col0 + col0 * + cor0.col0 + - col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
6808
7540
879

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + col1 + 17 FROM tab2 AS cor0
----
34
48
76

query I rowsort
SELECT ALL 37 * tab2.col2 FROM tab2
----
1406
962
999

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 NOT IN ( - tab0.col2 )
----

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

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

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

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

query I rowsort
SELECT DISTINCT col2 + col2 + col0 FROM tab2
----
130
155
61

query I rowsort
SELECT DISTINCT + col1 / + col2 FROM tab2 WHERE NOT ( NULL ) >= ( NULL )
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) <> ( NULL )
----

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1511
SELECT - col2 * col1 + + col0 DIV - col1 FROM tab2
----
-1535
-650
-837

skipif mysql # not compatible
query I rowsort label-1511
SELECT - col2 * col1 + + col0 / - col1 FROM tab2
----
-1535
-650
-837

query I rowsort
SELECT ALL + col0 * + tab1.col2 * - col0 FROM tab1
----
-233472
-486
-614400

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1514
SELECT col2 DIV + col0 FROM tab2 WHERE col0 NOT IN ( - tab2.col0 * col1 + col2 )
----
0
0
3

skipif mysql # not compatible
query I rowsort label-1514
SELECT col2 / + col0 FROM tab2 WHERE col0 NOT IN ( - tab2.col0 * col1 + col2 )
----
0
0
3

query I rowsort
SELECT ALL + col0 + - col1 FROM tab1 WHERE col2 NOT BETWEEN col2 + - col1 AND ( col0 * col1 )
----

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

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

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

query I rowsort
SELECT - col0 * - ( 72 ) + + col1 * + 3 * col2 AS col1 FROM tab0 AS cor0
----
10242
2811
28794

query I rowsort
SELECT ALL + 21 + tab1.col0 AS col1 FROM tab1
----
101
24
85

query I rowsort
SELECT DISTINCT 51 + - col1 + + col1 AS col0 FROM tab1
----
51

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

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

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

skipif mysql # not compatible
query I rowsort label-1524
SELECT col1 * CAST ( - col1 AS INTEGER ) FROM tab0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1525
SELECT + col0 * 95 + col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
2280
3290
8454

skipif mysql # not compatible
query I rowsort label-1525
SELECT + col0 * 95 + col0 / - col2 AS col0 FROM tab0 AS cor0
----
2280
3290
8454

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

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

query I rowsort
SELECT col2 * 77 - - 70 AS col2 FROM tab2 cor0
----
2072
2149
2996

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + 48 - - col1 * - col2 col1 FROM tab0 cor0
----
-2814
-7503
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-1531
SELECT ALL + + col0 + col1 * ( + col1 ) DIV + 37 FROM tab2 AS cor0
----
172
32
86

skipif mysql # not compatible
query I rowsort label-1531
SELECT ALL + + col0 + col1 * ( + col1 ) / + 37 FROM tab2 AS cor0
----
172
32
86

query I rowsort
SELECT 3 + ( tab1.col1 ) FROM tab1
----
13
16
29

query I rowsort
SELECT + 61 * - col0 AS col2 FROM tab2 AS cor0
----
-427
-4758
-4819

query I rowsort
SELECT ALL 21 * - col0 * + col2 + col0 AS col2 FROM tab0
----
-153169
-16608
-700

query I rowsort
SELECT ALL - col1 + - col0 * 55 * + col2 FROM tab0
----
-2022
-401481
-43646

query I rowsort
SELECT + - 53 * + col2 FROM tab0 AS cor0
----
-1749
-4346
-53

query I rowsort
SELECT - ( - col2 ) * + 52 FROM tab1 AS cor0
----
2808
2964
4992

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

query I rowsort
SELECT DISTINCT - 35 * col1 FROM tab0
----
-3010
-3185
-3395

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

query I rowsort
SELECT DISTINCT - 99 * cor1.col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-5346
-5643
-9504

query I rowsort
SELECT - col0 + - col2 * - col2 AS col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT + - 21 * + col2 FROM tab1 AS cor0
----
-1134
-1197
-2016

query I rowsort
SELECT ALL 83 * col1 FROM tab1 AS cor0
----
1079
2158
830

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

query I rowsort
SELECT + - col0 + col2 + cor0.col2 FROM tab0 AS cor0
----
-33
42
75

query I rowsort
SELECT col1 + - 3 AS col2 FROM tab2 AS cor0
----
14
28
56

query I rowsort
SELECT + - col1 + col0 - cor0.col0 * col2 AS col2 FROM tab2 cor0
----
-2009
-213
-2940

onlyif mysql # use DIV operator for integer division
query I rowsort label-1549
SELECT - col1 + ( + 77 ) DIV - col0 - col0 * 9 * col1 FROM tab0 AS cor0
----
-18665
-30654
-72982

skipif mysql # not compatible
query I rowsort label-1549
SELECT - col1 + ( + 77 ) / - col0 - col0 * 9 * col1 FROM tab0 AS cor0
----
-18665
-30654
-72982

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

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

query I rowsort
SELECT DISTINCT + cor0.col1 * 3 FROM tab1 AS cor0
----
30
39
78

query I rowsort
SELECT + col1 * col1 + + 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 * col2 + col2 col2 FROM tab1 AS cor0
----
1344
1458
627

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

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL - 53 + cor0.col0 / + cor0.col0 AS col2 FROM tab1 AS cor0
----
-52
-52
-52

query I rowsort
SELECT + + 83 FROM tab1 cor0
----
83
83
83

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

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

query I rowsort
SELECT col2 + + 43 FROM tab1
----
100
139
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 49 * + col0 col0 FROM tab0
----
1143
1714
4279

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

query I rowsort
SELECT - col1 + - 18 * - col0 FROM tab0 AS cor0
----
1511
346
533

query I rowsort
SELECT 5 + - col1 * + col2 AS col1 FROM tab1
----
-1243
-1399
-565

onlyif mysql # use DIV operator for integer division
query I rowsort label-1564
SELECT ALL col2 * 84 DIV col0 AS col2 FROM tab1
----
100
1512
74

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL col2 * 84 / col0 AS col2 FROM tab1
----
100
1512
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 * ( - cor0.col2 ) col0 FROM tab2 AS cor0
----
-1170
-1215
-1710

query I rowsort
SELECT + 81 * + col0 AS col1 FROM tab0 AS cor0
----
1944
2835
7209

query I rowsort
SELECT ALL col1 * - col2 * col0 FROM tab2
----
-119652
-51034
-5859

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col0 ) * col0 + col1 col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT 35 + col1 FROM tab0 AS cor0
----
121
126
132

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

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

query I rowsort
SELECT ALL 44 FROM tab0, tab2 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # use DIV operator for integer division
query I rowsort label-1573
SELECT col0 * + col2 - - col2 DIV - col1 FROM tab2
----
189
2028
3000

skipif mysql # not compatible
query I rowsort label-1573
SELECT col0 * + col2 - - col2 / - col1 FROM tab2
----
189
2028
3000

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

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

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

query I rowsort
SELECT + - 90 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT col2 + - col2 + 82 * col0 AS col1 FROM tab0 AS cor0
----
1968
2870
7298

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

query I rowsort
SELECT DISTINCT + + col0 + 26 FROM tab2 AS cor0
----
104
105
33

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

query I rowsort
SELECT + col1 + + 11 + + col2 AS col2 FROM tab1 AS cor0
----
120
78
91

query I rowsort
SELECT ALL col2 + + ( - 11 ) + - col0 FROM tab1 AS cor0
----
-18
40
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + 20 col0 FROM tab0 AS cor0
----
102
21
53

query I rowsort
SELECT DISTINCT - col0 + + col2 + col0 * + col2 FROM tab1 AS cor0
----
213
3641
7696

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

skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 + CAST ( - col2 AS REAL ) AS col1 FROM tab1 AS cor0
----
-121
-176
-57

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

query I rowsort
SELECT DISTINCT cor0.col2 * col1 + - 8 * col0 FROM tab0 AS cor0
----
-183
2646
6750

query I rowsort
SELECT DISTINCT - col0 + 91 - + col2 FROM tab2 AS cor0
----
-13
-26
57

query I rowsort
SELECT - - col2 + - 88 + 80 * + col0 FROM tab1 AS cor0
----
206
5089
6408

query I rowsort
SELECT DISTINCT - 0 * - 40 AS col0 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL ( 14 ) + cor0.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 099b8bfd782d8960506a491e8cd4110e

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

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

query I rowsort
SELECT DISTINCT + 81 - - cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
105
116
170

onlyif mysql # use DIV operator for integer division
query I rowsort label-1597
SELECT - col1 DIV - 49 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1597
SELECT - col1 / - 49 FROM tab0 AS cor0
----
1
1
1

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

query I rowsort
SELECT ALL col2 * col1 + + col2 * col1 + + col0 AS col2 FROM tab2
----
1371
1681
3146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 * - cor0.col0 + 94 col0 FROM tab1 AS cor0
----
175
1822
2254

query I rowsort
SELECT ALL - + 59 - col0 FROM tab1 AS cor0
----
-123
-139
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-1602
SELECT - + col0 DIV col2 - - col2 * col0 AS col2 FROM tab1 AS cor0
----
162
3647
7680

skipif mysql # not compatible
query I rowsort label-1602
SELECT - + col0 / col2 - - col2 * col0 AS col2 FROM tab1 AS cor0
----
162
3647
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1603
SELECT ALL col2 * - col0 + + ( cor0.col2 ) DIV - col1 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL col2 * - col0 + + ( cor0.col2 ) / - col1 FROM tab0 AS cor0
----
-35
-7298
-792

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

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

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

query I rowsort
SELECT + 84 * 94 + cor0.col2 AS col2 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to f57eca7eb5ed5480665d5a1a26953290

query I rowsort
SELECT ALL + - ( col1 ) * col2 + + 15 * + cor0.col2 + col1 AS col2 FROM tab0 AS cor0
----
-2257
-6141
15

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1609
SELECT ALL col0 DIV col1 + col2 * 40 FROM tab1
----
2160
2286
3846

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL col0 / col1 + col2 * 40 FROM tab1
----
2160
2286
3846

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col2 * + tab0.col1 col0 FROM tab0
----
-2752
-7371
0

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1613
SELECT ALL tab0.col2 * col0 + col1 * col0 DIV col2 col2 FROM tab0
----
3430
7396
854

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1613
SELECT ALL tab0.col2 * col0 + col1 * col0 / col2 col2 FROM tab0
----
3430
7396
854

query I rowsort
SELECT DISTINCT + col1 + - col1 * + ( col1 ) AS col1 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT DISTINCT + ( col0 ) + + 3 AS col0 FROM tab2
----
10
81
82

query I rowsort
SELECT DISTINCT + + 28 * 13 FROM tab0 AS cor0
----
364

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 * ( col1 ) col2 FROM tab2 AS cor0
----
1615
2945
5605

onlyif mysql # use DIV operator for integer division
query I rowsort label-1619
SELECT 8 DIV + col0 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1619
SELECT 8 / + col0 FROM tab1
----
0
0
2

query I rowsort
SELECT ALL - ( col0 ) * col0 + ( + 11 ) FROM tab0
----
-1214
-565
-7910

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

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

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

query I rowsort
SELECT - 85 + - col0 AS col1 FROM tab0 AS cor0
----
-109
-120
-174

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1625
SELECT 98 DIV tab0.col2 FROM tab0
----
1
2
98

skipif mysql # not compatible
query I rowsort label-1625
SELECT 98 / tab0.col2 FROM tab0
----
1
2
98

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + 10 * col1 AS REAL ) + col2 * col1 AS col0 FROM tab1
----
1378
1664
670

onlyif mysql # use DIV operator for integer division
query I rowsort label-1627
SELECT col0 * ( + col2 ) + col0 DIV 74 FROM tab2 AS cor0
----
189
2029
3003

skipif mysql # not compatible
query I rowsort label-1627
SELECT col0 * ( + col2 ) + col0 / 74 FROM tab2 AS cor0
----
189
2029
3003

query I rowsort
SELECT ALL - 30 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142

query I rowsort
SELECT DISTINCT col1 + 70 AS col2 FROM tab2 AS cor0
----
101
129
87

query I rowsort
SELECT ALL cor0.col1 * + 92 * col0 FROM tab2 AS cor0
----
123556
19964
423384

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

query I rowsort
SELECT DISTINCT - - col0 * 28 AS col2 FROM tab1 AS cor0
----
1792
2240
84

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

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

query I rowsort
SELECT ALL tab2.col1 * col1 + - ( + col1 ) AS col0 FROM tab2
----
272
3422
930

query I rowsort
SELECT 27 + col0 AS col1 FROM tab2
----
105
106
34

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

query I rowsort
SELECT + + 12 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 + col1 col0 FROM tab1
----
72
75
88

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

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

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

query I rowsort
SELECT ALL + - col1 + - col0 - + ( + col1 * + 69 + col1 * + col0 ) FROM tab1 AS cor0
----
-1404
-1901
-2030

query I rowsort
SELECT ALL - - col2 + 28 FROM tab0 AS cor0
----
110
29
61

query I rowsort
SELECT DISTINCT + - col0 * - 2 + col0 AS col0 FROM tab0 cor0
----
105
267
72

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

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

query I rowsort
SELECT 54 - + 21 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT ALL + col0 * 39 AS col1 FROM tab1
----
117
2496
3120

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 * ( col2 * - col2 ) col1 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT 82 * - cor1.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
-4428
-4674
-7872

query I rowsort
SELECT - col2 + + cor0.col1 + - 89 FROM tab0 AS cor0
----
-36
-80
7

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

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

query I rowsort
SELECT - + 58 * 16 AS col2 FROM tab2 cor0
----
-928
-928
-928

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

query I rowsort
SELECT + col0 * 68 FROM tab1 AS cor0
----
204
4352
5440

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

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

query I rowsort
SELECT - - 74 * + col2 * col2 AS col2 FROM tab1 AS cor0
----
215784
240426
681984

query I rowsort
SELECT DISTINCT - col2 * col1 + 68 FROM tab0 AS cor0
----
-2770
-29
-7394

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

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

query I rowsort
SELECT DISTINCT 98 * col2 + - 48 + col0 * cor0.col0 * - col1 FROM tab1 AS cor0
----
-35422
-73840
5010

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 70 * - col0 col1 FROM tab1 AS cor0
----
210
4480
5600

query I rowsort
SELECT 11 + cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
108
2849
7473

query I rowsort
SELECT ALL - 64 * - col2 AS col1 FROM tab0 AS cor0
----
2112
5248
64

query I rowsort
SELECT DISTINCT - 94 FROM tab0, tab1 cor0
----
-94

skipif mysql # not compatible
query I rowsort
SELECT - + cor0.col2 + col2 * col1 + col0 * CAST ( - col1 AS REAL ) FROM tab0 AS cor0
----
-3299
-719
741

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 + + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL - 62 * - col0 FROM tab2 AS cor0
----
434
4836
4898

query I rowsort
SELECT + col2 * col1 + 2 FROM tab2 cor0
----
1536
648
839

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

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

query I rowsort
SELECT + col1 + - col2 * col2 * - col1 AS col0 FROM tab0 AS cor0
----
194
611975
93740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * ( 50 ) + col2 + - ( - col2 ) col1 FROM tab0 AS cor0
----
1266
1752
4614

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

query I rowsort
SELECT + 47 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

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

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

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT - CAST ( NULL AS REAL ) * 33 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1684
SELECT ALL + - col2 + - 96 DIV - cor0.col1 FROM tab0 cor0
----
-1
-32
-81

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL + - col2 + - 96 / - cor0.col1 FROM tab0 cor0
----
-1
-32
-81

query I rowsort
SELECT - col2 - + 2 * - col1 FROM tab2 AS cor0
----
-4
35
92

query I rowsort
SELECT DISTINCT + cor0.col1 + + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL - 5 FROM tab2, tab0 cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # use DIV operator for integer division
query I rowsort label-1688
SELECT ALL col2 * col1 DIV + 5 FROM tab1
----
114
249
280

skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL col2 * col1 / + 5 FROM tab1
----
114
249
280

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

query I rowsort
SELECT ( 96 ) * col2 FROM tab0
----
3168
7872
96

query I rowsort
SELECT DISTINCT + 46 + 82 AS col2 FROM tab0
----
128

onlyif mysql # use DIV operator for integer division
query I rowsort label-1692
SELECT - ( 73 ) * col0 DIV - col0 + + col2 FROM tab1 cor0
----
127
130
169

skipif mysql # not compatible
query I rowsort label-1692
SELECT - ( 73 ) * col0 / - col0 + + col2 FROM tab1 cor0
----
127
130
169

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1694
SELECT ALL ( 79 ) DIV - col0 + + tab1.col0 * col2 AS col0 FROM tab1
----
136
3647
7680

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL ( 79 ) / - col0 + + tab1.col0 * col2 AS col0 FROM tab1
----
136
3647
7680

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

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT CAST ( + col2 AS INTEGER ) * - col2 - col1 FROM tab1
----
-2942
-3259
-9229

query I rowsort
SELECT ALL 30 * + ( col2 ) AS col1 FROM tab1 AS cor0
----
1620
1710
2880

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1698
SELECT + col2 + + col0 / col0 col0 FROM tab1 AS cor0
----
55
58
97

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

query I rowsort
SELECT - col1 * col1 + + col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT - + 74 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-41
-73
8

query I rowsort
SELECT DISTINCT 62 * + col0 FROM tab1 AS cor0
----
186
3968
4960

query I rowsort
SELECT - 16 + col1 * 64 FROM tab1 AS cor0
----
1648
624
816

query I rowsort
SELECT ALL 57 + + col2 * 63 FROM tab2 AS cor0
----
1695
1758
2451

query I rowsort
SELECT ALL 1 + col0 * + col2 AS col0 FROM tab1 AS cor0
----
163
3649
7681

query I rowsort
SELECT ALL - col0 + col0 + - col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - col1 * col1 + ( - col1 ) FROM tab0 cor0
----
-7482
-8372
-9506

query I rowsort
SELECT DISTINCT + ( + 37 ) AS col0 FROM tab1, tab2 AS cor0
----
37

query I rowsort
SELECT DISTINCT - cor0.col2 + 17 * + col2 FROM tab0 cor0
----
1312
16
528

query I rowsort
SELECT ALL 54 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1712
SELECT ALL CAST( + col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1713
SELECT DISTINCT CAST( 83 AS SIGNED ) DIV col1 + col0 * ( col1 * col0 + - ( col1 ) ) FROM tab2 AS cor0
----
104758
1304
354355

skipif mysql # not compatible
query I rowsort label-1713
SELECT DISTINCT CAST ( 83 AS INTEGER ) / col1 + col0 * ( col1 * col0 + - ( col1 ) ) FROM tab2 AS cor0
----
104758
1304
354355

query I rowsort
SELECT ALL col0 + - 67 * col0 FROM tab0 cor0
----
-1584
-2310
-5874

query I rowsort
SELECT - + 50 - - 2 * col1 FROM tab1 AS cor0
----
-24
-30
2

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 * - col1 + - col0 col0 FROM tab1 AS cor0
----
-1064
-17579
-2277

query I rowsort
SELECT - 17 + col1 * col0 FROM tab0 AS cor0
----
2047
3378
8082

query I rowsort
SELECT DISTINCT - col0 * - col2 + + col1 * ( col0 * + col0 ) AS col1 FROM tab2 AS cor0
----
109099
1708
360984

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1721
SELECT + 76 DIV 90 col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1721
SELECT + 76 / 90 col2 FROM tab1 AS cor0
----
0
0
0

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

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

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

query I rowsort
SELECT + col0 + 64 - col0 AS col0 FROM tab1 AS cor0
----
64
64
64

query I rowsort
SELECT - col1 * - col0 * - col2 + col2 AS col0 FROM tab0 AS cor0
----
-3394
-664036
-68079

query I rowsort
SELECT - + col1 - 96 * + cor0.col2 * col2 FROM tab2 AS cor0
----
-138641
-64955
-70015

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

query I rowsort
SELECT DISTINCT - + col1 + - 7 AS col0 FROM tab2 AS cor0
----
-24
-38
-66

query I rowsort
SELECT col2 + - 46 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2077
-3440
-8063

query I rowsort
SELECT - - cor0.col1 * - 34 + + col1 FROM tab2 AS cor0
----
-1023
-1947
-561

query I rowsort
SELECT + col0 + ( 31 ) FROM tab2 AS cor0
----
109
110
38

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

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

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

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

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

query I rowsort
SELECT - 87 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9

query I rowsort
SELECT DISTINCT - + col0 * cor0.col1 + - 32 + - cor0.col1 FROM tab1 AS cor0
----
-1085
-136
-682

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

query I rowsort
SELECT - col2 - - col0 * col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-288
-41017
-83296

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1741
SELECT + 33 + - col0 * CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-1007
-45
-607

skipif mysql # not compatible
query I rowsort label-1741
SELECT + 33 + - col0 * CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-1007
-45
-607

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

query I rowsort
SELECT DISTINCT - col1 * - col1 + col0 + col0 FROM tab1 cor0
----
228
329
682

query I rowsort
SELECT ALL cor0.col2 * - cor0.col1 - + 39 FROM tab1 AS cor0
----
-1287
-1443
-609

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

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

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

skipif mysql # not compatible
query I rowsort label-1747
SELECT - col0 + col1 * tab2.col0 / - col1 FROM tab2
----
-14
-156
-158

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

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

skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT + col0 + col1 / + 74 AS col0 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1750
SELECT + col2 + col2 DIV ( 37 ) + col1 AS col0 FROM tab1
----
111
68
81

skipif mysql # not compatible
query I rowsort label-1750
SELECT + col2 + col2 / ( 37 ) + col1 AS col0 FROM tab1
----
111
68
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1751
SELECT cor0.col1 DIV - cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-1751
SELECT cor0.col1 / - cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1753
SELECT - + col1 * + 64 - + col0 DIV col1 FROM tab1 AS cor0
----
-1664
-646
-838

skipif mysql # not compatible
query I rowsort label-1753
SELECT - + col1 * + 64 - + col0 / col1 FROM tab1 AS cor0
----
-1664
-646
-838

onlyif mysql # use DIV operator for integer division
query I rowsort label-1754
SELECT + CAST( 19 AS SIGNED ) + + col2 + 9 DIV + col0 AS col0 FROM tab1 cor0
----
115
76
76

skipif mysql # not compatible
query I rowsort label-1754
SELECT + CAST ( 19 AS INTEGER ) + + col2 + 9 / + col0 AS col0 FROM tab1 cor0
----
115
76
76

query I rowsort
SELECT DISTINCT - 50 + col1 AS col1 FROM tab0 AS cor0
----
36
41
47

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

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

query I rowsort
SELECT - tab1.col2 * - col0 + + 9 AS col0 FROM tab1
----
171
3657
7689

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

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

query I rowsort
SELECT + 27 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

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

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

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

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

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

query I rowsort
SELECT ( col1 ) * - 51 + col1 - col1 * col1 AS col1 FROM tab0 cor0
----
-11696
-12831
-14259

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

query I rowsort
SELECT - 48 + col1 * - 24 + col2 FROM tab0 AS cor0
----
-2079
-2150
-2375

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 * col2 + col1 col2 FROM tab2
----
-1475
-629
-806

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1772
SELECT - col1 DIV tab2.col1 + col1 * col2 * col1 + + col0 AS col2 FROM tab2
----
11060
25953
90583

skipif mysql # not compatible
query I rowsort label-1772
SELECT - col1 / tab2.col1 + col1 * col2 * col1 + + col0 AS col2 FROM tab2
----
11060
25953
90583

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1774
SELECT - - cor0.col1 DIV - cor0.col0 + + col0 * col1 * - col2 FROM tab2 AS cor0
----
-119652
-51034
-5863

skipif mysql # not compatible
query I rowsort label-1774
SELECT - - cor0.col1 / - cor0.col0 + + col0 * col1 * - col2 FROM tab2 AS cor0
----
-119652
-51034
-5863

onlyif mysql # use DIV operator for integer division
query I rowsort label-1775
SELECT DISTINCT + cor0.col2 * col2 DIV col0 FROM tab1 AS cor0
----
115
50
972

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT + cor0.col2 * col2 / col0 FROM tab1 AS cor0
----
115
50
972

query I rowsort
SELECT col0 + + col1 + col0 FROM tab2 AS cor0
----
175
215
45

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

query I rowsort
SELECT DISTINCT + + cor0.col0 AS col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT + col2 * + col1 + col1 * - col1 * col2 + - col1 * + col1 * - col0 FROM tab2 AS cor0
----
-18383
12495
182546

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

query I rowsort
SELECT col2 * col0 + - col0 + col1 AS col2 FROM tab2 AS cor0
----
2009
213
2940

query I rowsort
SELECT ALL col2 + - col0 * col0 AS col0 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT cor0.col1 * - col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 * col0 * col2 col0 FROM tab2 AS cor0
----
119711
51051
5890

query I rowsort
SELECT ALL + + col2 * + col1 * + col2 + + col2 + cor0.col2 FROM tab2 AS cor0
----
22653
24624
39936

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL OR NOT col2 * - col0 > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1787
SELECT DISTINCT - 34 * col1 + col2 * col1 DIV + col0 AS col2 FROM tab2 cor0
----
-1987
-570
-935

skipif mysql # not compatible
query I rowsort label-1787
SELECT DISTINCT - 34 * col1 + col2 * col1 / + col0 AS col2 FROM tab2 cor0
----
-1987
-570
-935

query I rowsort
SELECT ALL + col0 + col1 - col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - ( col0 ) + col2 * col1 * + col1 FROM tab2 AS cor0
----
10903
25940
90428

onlyif mysql # use DIV operator for integer division
query I rowsort label-1790
SELECT - col1 DIV - col0 + + col0 * + col0 FROM tab2
----
53
6084
6241

skipif mysql # not compatible
query I rowsort label-1790
SELECT - col1 / - col0 + + col0 * + col0 FROM tab2
----
53
6084
6241

query I rowsort
SELECT DISTINCT 9 - - tab1.col1 AS col0 FROM tab1
----
19
22
35

query I rowsort
SELECT DISTINCT + col0 - + tab0.col0 FROM tab0
----
0

query I rowsort
SELECT - 60 + col2 AS col1 FROM tab2
----
-22
-33
-34

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 IN ( col0 / - col2 + + col0 * col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT - tab2.col2 - - col0 AS col1 FROM tab2
----
-20
41
52

query I rowsort
SELECT + col0 * + col0 + + col0 - col0 AS col1 FROM tab0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 + col0 * - col1 col2 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) BETWEEN NULL AND + col0 * col2
----

query I rowsort
SELECT DISTINCT - tab1.col0 * tab1.col1 + col2 FROM tab1
----
-24
-583
-944

query III rowsort
SELECT * FROM tab2 WHERE NULL <= - col0
----

query I rowsort
SELECT ALL - col2 * tab1.col2 + - col0 * col0 FROM tab1
----
-15616
-2925
-7345

query I rowsort
SELECT col2 - - col1 * col1 * - col2 AS col1 FROM tab0
----
-244035
-678960
-9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * tab2.col2 col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL col2 + + col2 + col2 FROM tab2
----
114
78
81

query I rowsort
SELECT col0 * col2 * tab0.col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT - col2 * + col0 * tab2.col1 + col0 AS col1 FROM tab2
----
-119574
-50955
-5852

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - tab2.col0 ) NOT IN ( - col1 )
----

query I rowsort
SELECT DISTINCT col2 * col0 * - col1 - col0 FROM tab1
----
-36544
-4215
-99920

onlyif mysql # use DIV operator for integer division
query I rowsort label-1809
SELECT col1 DIV col1 - + col2 * tab2.col1 FROM tab2
----
-1533
-645
-836

skipif mysql # not compatible
query I rowsort label-1809
SELECT col1 / col1 - + col2 * tab2.col1 FROM tab2
----
-1533
-645
-836

query I rowsort
SELECT ALL - tab0.col2 - + col1 AS col0 FROM tab0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1811
SELECT + col0 DIV col0 + - tab1.col1 FROM tab1
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-1811
SELECT + col0 / col0 + - tab1.col1 FROM tab1
----
-12
-25
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 * col1 + col0 col2 FROM tab0 AS cor0
----
-244044
-678953
-9374

query I rowsort
SELECT tab2.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-1814
SELECT - tab0.col0 DIV col1 + + col1 col2 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1814
SELECT - tab0.col0 / col1 + + col1 col2 FROM tab0
----
86
91
97

query I rowsort
SELECT col0 + + cor0.col2 * col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT - col2 * + col1 - - tab2.col2 FROM tab2
----
-1508
-608
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + tab1.col0 col2 FROM tab1
----
29
74
93

query I rowsort
SELECT + col0 * col2 + + col0 + col1 AS col0 FROM tab2
----
2165
227
3098

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 * + col2 ) NOT IN ( - col1 * - col0 )
----

query I rowsort
SELECT DISTINCT col1 / + col0 AS col1 FROM tab1 AS cor0 WHERE col0 + col1 < ( NULL )
----

query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col1 FROM tab2, tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL - col0 + 8 FROM tab0
----
-16
-27
-81

query I rowsort
SELECT DISTINCT 65 * col2 FROM tab0
----
2145
5330
65

query I rowsort
SELECT col2 * + tab0.col0 AS col1 FROM tab0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col1 FROM tab1 AS cor0
----
59
59
59

query I rowsort
SELECT + col0 + - cor0.col0 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - - cor0.col0 * - col0 FROM tab2 cor0
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) * col2 col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT tab1.col2 + 78 * + 79 AS col1 FROM tab1
----
6216
6219
6258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 col0 FROM tab0, tab2 cor0
----
83

query I rowsort
SELECT + col2 * + 37 FROM tab1
----
1998
2109
3552

query I rowsort
SELECT - col1 + - 44 AS col2 FROM tab2
----
-103
-61
-75

query I rowsort
SELECT ( - 5 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT col2 + - col2 + tab0.col2 FROM tab0
----
1
33
82

query I rowsort
SELECT - - col1 + ( - ( col0 ) ) FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL + col2 + ( ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 69 + - col2 AS col1 FROM tab0 AS cor0
----
-102
-151
-70

query I rowsort
SELECT ALL + 2 * - col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT - - 52 + col2 AS col0 FROM tab1 cor0
----
106
109
148

query I rowsort
SELECT ALL + cor0.col1 * - col2 * + col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT + 25 * cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
1501
463
802

query I rowsort
SELECT DISTINCT - ( col1 ) + + col0 * col1 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT + col1 * ( - col1 ) FROM tab2 cor0
----
-289
-3481
-961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1844
SELECT ALL + CAST( 0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL + CAST ( 0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1845
SELECT ALL CAST( 80 AS SIGNED ) FROM tab2 AS cor0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-1845
SELECT ALL CAST ( 80 AS INTEGER ) FROM tab2 AS cor0
----
80
80
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1846
SELECT CAST( NULL AS SIGNED ) * col2 - - col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1846
SELECT CAST ( NULL AS INTEGER ) * col2 - - col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 70 * tab1.col2 AS col2 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to e4f1c7f8d560380dbd1ced03e21e0c1d

query I rowsort
SELECT col0 + + ( + col2 ) FROM tab1
----
121
176
57

query I rowsort
SELECT col0 * + col1 * col1 + + col0 AS col0 FROM tab2
----
22910
271596
6734

onlyif mysql # use DIV operator for integer division
query I rowsort label-1850
SELECT DISTINCT col1 + - 93 + col1 DIV col2 FROM tab1
----
-67
-80
-83

skipif mysql # not compatible
query I rowsort label-1850
SELECT DISTINCT col1 + - 93 + col1 / col2 FROM tab1
----
-67
-80
-83

query I rowsort
SELECT - - cor0.col0 + - 99 FROM tab2 AS cor0
----
-20
-21
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-1852
SELECT col0 DIV 28 + - col1 * col1 + - col0 AS col2 FROM tab2
----
-3557
-366
-968

skipif mysql # not compatible
query I rowsort label-1852
SELECT col0 / 28 + - col1 * col1 + - col0 AS col2 FROM tab2
----
-3557
-366
-968

query I rowsort
SELECT + col1 * col2 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT 7 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # use DIV operator for integer division
query I rowsort label-1855
SELECT ( tab1.col1 ) DIV + col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1855
SELECT ( tab1.col1 ) / + col1 FROM tab1
----
1
1
1

query I rowsort
SELECT 13 * col1 AS col2 FROM tab0
----
1118
1183
1261

query I rowsort
SELECT DISTINCT + 36 FROM tab0, tab2, tab2 AS cor0
----
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1858
SELECT - CAST( col1 AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-1858
SELECT - CAST ( col1 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - cor0.col1 - ( - col1 + + col2 ) FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT col1 * col0 + + col2 AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT 14 - + col2 AS col0 FROM tab2 AS cor0
----
-12
-13
-24

onlyif mysql # use DIV operator for integer division
query I rowsort label-1862
SELECT DISTINCT + col1 * col1 + col0 DIV col1 + + col1 FROM tab1 AS cor0
----
116
188
702

skipif mysql # not compatible
query I rowsort label-1862
SELECT DISTINCT + col1 * col1 + col0 / col1 + + col1 FROM tab1 AS cor0
----
116
188
702

query I rowsort
SELECT DISTINCT - - col0 * + col2 * - 88 + col2 * - col2 FROM tab1 AS cor0
----
-17172
-324273
-685056

query I rowsort
SELECT - + 10 * col0 + col1 * + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-14320
-2058
-7040

onlyif mysql # use DIV operator for integer division
query I rowsort label-1865
SELECT ALL + 92 DIV col1 AS col0 FROM tab2 AS cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL + 92 / col1 AS col0 FROM tab2 AS cor0
----
1
2
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-1866
SELECT DISTINCT - col0 DIV col2 col1 FROM tab0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1866
SELECT DISTINCT - col0 / col2 col1 FROM tab0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 * + col0 col0 FROM tab1
----
-228
-4864
-6080

query I rowsort
SELECT + ( + col1 ) * - col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - 89 AS col2 FROM tab1
----
-89

query I rowsort
SELECT - ( + 44 ) FROM tab1
----
-44
-44
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col2 * - col1 col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + - col2 * - 20 + + 35 * - col0 FROM tab1 AS cor0
----
-1100
-880
975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 24 col0 FROM tab1
----
-24

query I rowsort
SELECT DISTINCT col2 * col0 * + col0 AS col0 FROM tab0
----
1225
19008
649522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1875
SELECT - + cor0.col2 * - cor0.col1 + - CAST( NULL AS SIGNED ) col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1875
SELECT - + cor0.col2 * - cor0.col1 + - CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to d522b52b67b20888d3544d25cb98f232

query I rowsort
SELECT + tab0.col1 * + col0 + col2 AS col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT col2 * + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-96
1003
6633

onlyif mysql # use DIV operator for integer division
query I rowsort label-1879
SELECT - col2 DIV CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1879
SELECT - col2 / CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT col1 * ( - col1 ) AS col2 FROM tab1 cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 + - col1 - cor0.col1 col1 FROM tab0 AS cor0
----
-148
-159
-93

query I rowsort
SELECT + tab1.col2 * - col1 AS col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL + cor0.col2 * ( col0 ) - col0 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-1884
SELECT DISTINCT col0 + - ( - cor0.col0 ) DIV + col0 - col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT col0 + - ( - cor0.col0 ) / + col0 - col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + col0 + col1 * col1 FROM tab0 cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT + cor0.col2 + ( col0 ) AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL cor0.col0 + 61 * + col0 * col1 AS col1 FROM tab2 AS cor0
----
13244
280800
82002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1888
SELECT - - col2 * CAST( NULL AS SIGNED ) + col0 / - col0 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1888
SELECT - - col2 * CAST ( NULL AS INTEGER ) + col0 / - col0 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1889
SELECT ALL cor0.col1 + ( - col2 + col0 ) * CAST( NULL AS DECIMAL ) * 8 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1889
SELECT ALL cor0.col1 + ( - col2 + col0 ) * CAST ( NULL AS REAL ) * 8 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * 11 FROM tab2 cor0
----
-77
-858
-869

onlyif mysql # use DIV operator for integer division
query I rowsort label-1891
SELECT DISTINCT - col2 DIV + 17 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT - col2 / + 17 FROM tab2
----
-1
-2

query I rowsort
SELECT DISTINCT col2 * col2 * - col2 AS col2 FROM tab1 AS cor0
----
-157464
-185193
-884736

query I rowsort
SELECT DISTINCT col1 * 18 AS col2 FROM tab1 AS cor0
----
180
234
468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * col2 + col0 col0 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT + 58 + + 64 FROM tab1 AS cor0
----
122
122
122

query I rowsort
SELECT + + ( - 51 ) * - cor0.col0 + - col0 AS col2 FROM tab2 AS cor0
----
350
3900
3950

onlyif mysql # use DIV operator for integer division
query I rowsort label-1897
SELECT + ( - col2 ) DIV + 54 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1897
SELECT + ( - col2 ) / + 54 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + 93 + col2 AS col1 FROM tab2 cor0
----
119
120
131

query I rowsort
SELECT DISTINCT - 26 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
-26

query I rowsort
SELECT DISTINCT 71 * + cor0.col2 + + col2 FROM tab1 AS cor0
----
3888
4104
6912

query I rowsort
SELECT DISTINCT - + col0 * col2 + - col1 + 5 AS col0 FROM tab0 AS cor0
----
-127
-7384
-873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + col2 + - 30 + + 27 col2 FROM tab1 AS cor0
----
1245
1401
567

query I rowsort
SELECT 43 * 9 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1f8573bd39b0a9743126b538d5170713

query I rowsort
SELECT DISTINCT - + col2 + col0 * ( + col2 ) + - col0 FROM tab1 AS cor0
----
105
3527
7504

query I rowsort
SELECT DISTINCT - col1 * cor0.col0 + + ( + 79 ) * col2 FROM tab1 AS cor0
----
3863
4188
6544

query I rowsort
SELECT DISTINCT cor0.col2 * col1 + ( col1 ) AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT col2 * - col2 AS col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT 66 AS col2 FROM tab1 cor0
----
66
66
66

query I rowsort
SELECT + col1 * + col0 + - col0 FROM tab1
----
576
75
960

query I rowsort
SELECT - 53 + + 2 AS col0 FROM tab1
----
-51
-51
-51

query I rowsort
SELECT tab0.col2 * 33 + col2 FROM tab0
----
1122
2788
34

query I rowsort
SELECT ALL + 67 - + col1 AS col0 FROM tab2 cor0
----
36
50
8

query I rowsort
SELECT ALL - + 89 + + col0 + cor0.col2 FROM tab2 AS cor0
----
-55
15
28

query I rowsort
SELECT 74 + - col2 AS col0 FROM tab0 cor0
----
-8
41
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-1915
SELECT ALL 16 DIV col2 + + col1 AS col0 FROM tab0 AS cor0
----
113
86
91

skipif mysql # not compatible
query I rowsort label-1915
SELECT ALL 16 / col2 + + col1 AS col0 FROM tab0 AS cor0
----
113
86
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 col1 FROM tab2
----
47
47
47

query I rowsort
SELECT ALL + cor0.col1 + + ( - col1 ) FROM tab2 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1918
SELECT col1 + 38 DIV col0 FROM tab2 AS cor0
----
17
36
59

skipif mysql # not compatible
query I rowsort label-1918
SELECT col1 + 38 / col0 FROM tab2 AS cor0
----
17
36
59

query I rowsort
SELECT ALL cor0.col2 * - 36 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to de5cdc6ee0be92ea33d4167656eb2de6

query I rowsort
SELECT + col2 + - col2 * 57 FROM tab1
----
-3024
-3192
-5376

query I rowsort
SELECT - cor0.col2 + col2 * col1 FROM tab0 AS cor0
----
2805
7380
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT ALL - tab0.col2 * - ( col2 ) AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT 2 + col2 FROM tab0
----
3
35
84

query I rowsort
SELECT DISTINCT ( + 80 ) + col0 AS col1 FROM tab0
----
104
115
169

onlyif mysql # use DIV operator for integer division
query I rowsort label-1926
SELECT + col2 DIV col1 - tab0.col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-1926
SELECT + col2 / col1 - tab0.col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT + ( col1 * col1 ) FROM tab1
----
100
169
676

query I rowsort
SELECT DISTINCT ( + 32 ) + col0 AS col2 FROM tab2 AS cor0
----
110
111
39

query I rowsort
SELECT + + col0 * + col2 + col0 * + col0 FROM tab1 AS cor0
----
14080
171
7744

query I rowsort
SELECT DISTINCT 83 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab2 cor2
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT col1 * + col2 - col2 FROM tab1 AS cor0
----
1152
1350
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + ( + cor0.col1 ) * col0 col2 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT - col1 + 22 + - 44 AS col1 FROM tab0 AS cor0
----
-108
-113
-119

query I rowsort
SELECT ALL - col1 * tab0.col0 * 5 + + col0 * + col2 FROM tab0
----
-16940
-33197
-9528

query I rowsort
SELECT col0 * col0 + ( col1 ) FROM tab1
----
35
4106
6413

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1937
SELECT col0 * - CAST( + 16 AS SIGNED ) + - col2 col0 FROM tab2 cor0
----
-1274
-1302
-139

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1937
SELECT col0 * - CAST ( + 16 AS INTEGER ) + - col2 col0 FROM tab2 cor0
----
-1274
-1302
-139

query I rowsort
SELECT ALL + 21 + + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2e098659830b48d1b92f68cf67ee277e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1939
SELECT + + CAST( + 12 AS SIGNED ) * col1 FROM tab0 cor0
----
1032
1092
1164

skipif mysql # not compatible
query I rowsort label-1939
SELECT + + CAST ( + 12 AS INTEGER ) * col1 FROM tab0 cor0
----
1032
1092
1164

query I rowsort
SELECT - cor0.col1 * 48 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to bf1228948178dfdfb3251bd90bdddac7

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 + + CAST ( col1 AS REAL ) AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT + col2 * ( + col0 ) * + col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL + col1 + 88 * + col1 FROM tab0 AS cor0
----
7654
8099
8633

query I rowsort
SELECT tab1.col1 * + 48 FROM tab1
----
1248
480
624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1945
SELECT CAST( + tab1.col0 AS SIGNED ) AS col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif mysql # not compatible
query I rowsort label-1945
SELECT CAST ( + tab1.col0 AS INTEGER ) AS col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ( ( - col1 ) + tab2.col1 ) AS col1 FROM tab2
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1, tab1 cor1
----
3645 values hashing to 6156c969b7e054b8a333fdb86aee82f2

query I rowsort
SELECT - tab1.col0 * - 79 + col1 FROM tab1
----
263
5066
6333

query I rowsort
SELECT 70 * tab1.col1 * col0 + col2 FROM tab1
----
44857
5514
72896

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab0 cor1, tab0 cor2
----
972 values hashing to d522b52b67b20888d3544d25cb98f232

query I rowsort
SELECT - cor0.col0 + col1 * - ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT + - col1 + cor0.col1 * + col0 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-1953
SELECT ALL + col2 DIV 69 - col1 * - col0 * 34 FROM tab1
----
21760
2652
35361

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL + col2 / 69 - col1 * - col0 * 34 FROM tab1
----
21760
2652
35361

query I rowsort
SELECT ALL + tab0.col0 - - col2 * - col2 FROM tab0
----
-1065
-6635
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1955
SELECT DISTINCT col2 * - CAST( + 4 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-216
-228
-384

skipif mysql # not compatible
query I rowsort label-1955
SELECT DISTINCT col2 * - CAST ( + 4 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-216
-228
-384

onlyif mysql # use DIV operator for integer division
query I rowsort label-1956
SELECT + + col2 * - col1 DIV - col1 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1956
SELECT + + col2 * - col1 / - col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - col0 + + ( ( - col0 ) * 64 ) FROM tab1 AS cor0
----
-195
-4160
-5200

query I rowsort
SELECT - - col0 + - 71 AS col1 FROM tab0 cor0
----
-36
-47
18

query I rowsort
SELECT DISTINCT + col0 * - col2 + + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT - col0 * - col0 * 85 FROM tab2 cor0
----
4165
517140
530485

query I rowsort
SELECT DISTINCT col2 * 90 AS col1 FROM tab0
----
2970
7380
90

query I rowsort
SELECT ( + col2 ) * col1 * 23 AS col2 FROM tab0
----
171626
2231
65274

query I rowsort
SELECT - tab0.col1 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 + col2 col1 FROM tab0 AS cor0
----
-33
42
75

query I rowsort
SELECT DISTINCT 72 FROM tab0, tab1, tab1 cor0
----
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-1966
SELECT ALL 28 DIV - col1 FROM tab1
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL 28 / - col1 FROM tab1
----
-1
-2
-2

query I rowsort
SELECT + + 33 * - cor0.col0 FROM tab0 AS cor0
----
-1155
-2937
-792

query I rowsort
SELECT - col1 * + col2 + + col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT + col1 * col1 + + col1 + - 11 AS col0 FROM tab0 AS cor0
----
7471
8361
9495

query I rowsort
SELECT - col1 + - cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT - + col2 + + col1 * col1 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT cor0.col2 + + 56 * + cor0.col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to c45fb15e8792ec9da5626739cd9fd3bc

onlyif mysql # use DIV operator for integer division
query I rowsort label-1973
SELECT ALL col2 DIV ( + col1 ) AS col0 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL col2 / ( + col1 ) AS col0 FROM tab1
----
2
5
7

query I rowsort
SELECT DISTINCT - col2 * - col2 + col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT - col1 * + 90 + - col1 FROM tab2 AS cor0
----
-1547
-2821
-5369

query I rowsort
SELECT DISTINCT 80 * ( - col0 ) FROM tab2 AS cor0
----
-560
-6240
-6320

query I rowsort
SELECT ALL 90 * col1 + col0 + + cor0.col0 FROM tab0 AS cor0
----
7788
8368
8800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1978
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 67 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 67 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 51 + 28 AS col0 FROM tab2 AS cor0
----
79

query I rowsort
SELECT ALL - 26 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT 58 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT - 58 - col0 * + col0 AS col0 FROM tab0
----
-1283
-634
-7979

query I rowsort
SELECT + ( + ( - col1 ) ) * - 15 FROM tab2 AS cor0
----
255
465
885

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1984
SELECT + CAST( + col1 AS SIGNED ) + tab1.col2 * col0 col1 FROM tab1
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1984
SELECT + CAST ( + col1 AS INTEGER ) + tab1.col2 * col0 col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT + 23 * col0 AS col2 FROM tab0
----
2047
552
805

query I rowsort
SELECT tab1.col1 * + tab1.col1 AS col1 FROM tab1
----
100
169
676

query I rowsort
SELECT ALL - tab1.col1 + col1 * col1 FROM tab1
----
156
650
90

query I rowsort
SELECT DISTINCT col2 * - ( + 21 ) AS col1 FROM tab1 cor0
----
-1134
-1197
-2016

query I rowsort
SELECT DISTINCT col0 * col0 - 2 AS col1 FROM tab1 AS cor0
----
4094
6398
7

query I rowsort
SELECT + + col2 * 80 + col1 AS col1 FROM tab1 AS cor0
----
4346
4570
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-1991
SELECT DISTINCT + tab0.col1 * col2 + col1 * - col1 + tab0.col0 DIV - ( tab0.col1 ) FROM tab0
----
-4558
-819
-9312

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT + tab0.col1 * col2 + col1 * - col1 + tab0.col0 / - ( tab0.col1 ) FROM tab0
----
-4558
-819
-9312

query I rowsort
SELECT ALL 56 + + col1 * col1 AS col0 FROM tab1
----
156
225
732

onlyif mysql # use DIV operator for integer division
query I rowsort label-1993
SELECT + col2 + - tab0.col2 DIV + 89 - col1 AS col0 FROM tab0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-1993
SELECT + col2 + - tab0.col2 / + 89 - col1 AS col0 FROM tab0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1994
SELECT col1 * + col1 + CAST( NULL AS SIGNED ) + + 56 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1994
SELECT col1 * + col1 + CAST ( NULL AS INTEGER ) + + 56 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1995
SELECT + col0 * CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1995
SELECT + col0 * CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - ( cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL - cor0.col1 * ( - col2 + col1 ) AS col0 FROM tab2 AS cor0
----
-124
-1947
357

query I rowsort
SELECT + col0 * cor0.col1 + 47 AS col0 FROM tab2 AS cor0
----
1390
264
4649

query I rowsort
SELECT + col1 * - ( - col2 ) + col1 * + col0 FROM tab1 AS cor0
----
1210
1482
2288

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 col2 * col1 * tab0.col2 AS col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT 70 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT col1 * - col2 + + col2 AS col0 FROM tab1
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-2004
SELECT + - col0 + col2 DIV - 31 FROM tab1 AS cor0
----
-4
-65
-83

skipif mysql # not compatible
query I rowsort label-2004
SELECT + - col0 + col2 / - 31 FROM tab1 AS cor0
----
-4
-65
-83

query I rowsort
SELECT DISTINCT + cor0.col1 * col2 + + col1 FROM tab1 AS cor0
----
1261
1430
580

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col1 * - CAST ( - col1 AS REAL ) FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT col0 + col2 + ( - col2 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + tab0.col0 * tab0.col1 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + 6 AS col2 FROM tab0, tab1 AS cor0
----
6

query I rowsort
SELECT 47 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

query I rowsort
SELECT ALL - col2 * + 67 + col2 * col1 AS col1 FROM tab2 AS cor0
----
-1900
-208
-972

query I rowsort
SELECT DISTINCT 6 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + col2 col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + 45 + col0 * col1 * col0 FROM tab1 AS cor0
----
279
41005
83245

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2015
SELECT DISTINCT - + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT - + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - ( col1 ) * + cor0.col1 + col1 * col0 - - col2 * ( + col2 ) FROM tab0 AS cor0
----
-4243
-6013
6542

query I rowsort
SELECT - + 40 * - col1 AS col1 FROM tab0 AS cor0
----
3440
3640
3880

query I rowsort
SELECT DISTINCT - + col1 + + ( + col2 * col0 ) - 94 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1357
-1720
-4940

onlyif mysql # use DIV operator for integer division
query I rowsort label-2019
SELECT DISTINCT ( ( + col1 ) ) DIV ( - col1 ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT ( ( + col1 ) ) / ( - col1 ) AS col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - col1 + - ( col2 ) * + 49 AS col0 FROM tab0 AS cor0
----
-146
-1703
-4109

query I rowsort
SELECT - + 62 + + col1 AS col2 FROM tab2 AS cor0
----
-3
-31
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2022
SELECT DISTINCT col2 + col1 DIV + ( col0 ) AS col2 FROM tab2
----
26
31
38

skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT col2 + col1 / + ( col0 ) AS col2 FROM tab2
----
26
31
38

query I rowsort
SELECT DISTINCT 7 * 74 AS col1 FROM tab0 AS cor0
----
518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 * - col1 * col0 col2 FROM tab1 AS cor0
----
23680
2886
38480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 * - col0 * - col0 col0 FROM tab2 AS cor0
----
1330
158262
237237

onlyif mysql # use DIV operator for integer division
query I rowsort label-2026
SELECT ALL 53 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL 53 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-3
0

query I rowsort
SELECT cor0.col0 * col0 - - col0 FROM tab0 AS cor0
----
1260
600
8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2028
SELECT ALL - 0 * col1 + + CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL - 0 * col1 + + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + ( + cor0.col1 ) + + 44 AS col1 FROM tab0 AS cor0
----
130
135
141

query I rowsort
SELECT ALL col1 + + col2 * col2 FROM tab2
----
1461
735
760

query I rowsort
SELECT DISTINCT + 67 * + col0 FROM tab1 AS cor0
----
201
4288
5360

query I rowsort
SELECT + col1 * - col1 - 87 AS col0 FROM tab0 AS cor0
----
-7483
-8368
-9496

onlyif mysql # use DIV operator for integer division
query I rowsort label-2033
SELECT + - 71 DIV - col2 col0 FROM tab0 AS cor0
----
0
2
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2033
SELECT + - 71 / - col2 col0 FROM tab0 AS cor0
----
0
2
71

query I rowsort
SELECT ALL - - cor0.col1 * - col0 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT col1 + + col2 * + 33 FROM tab0 AS cor0
----
1175
130
2797

query I rowsort
SELECT ALL + col0 + col2 * col0 AS col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - col0 + col0 * col0 AS col0 FROM tab2 cor0
----
42
6006
6162

query I rowsort
SELECT DISTINCT + col1 + + col2 * - 27 AS col1 FROM tab2 AS cor0
----
-1009
-643
-698

query I rowsort
SELECT DISTINCT + col1 * - col1 * 29 FROM tab1 cor0
----
-19604
-2900
-4901

query I rowsort
SELECT DISTINCT + col2 + + 76 * + col2 AS col0 FROM tab0 AS cor0
----
2541
6314
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2041
SELECT - + col2 + - ( - col2 ) * - col0 * + CAST( cor0.col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
-1226
-19041
-649604

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2041
SELECT - + col2 + - ( - col2 ) * - col0 * + CAST ( cor0.col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
-1226
-19041
-649604

onlyif mysql # use DIV operator for integer division
query I rowsort label-2042
SELECT ALL + col0 DIV - col1 + - col1 AS col0 FROM tab2
----
-21
-31
-60

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL + col0 / - col1 + - col1 AS col0 FROM tab2
----
-21
-31
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-2043
SELECT col0 * tab0.col1 DIV 77 + col0 * + col2 FROM tab0
----
7403
79
818

skipif mysql # not compatible
query I rowsort label-2043
SELECT col0 * tab0.col1 / 77 + col0 * + col2 FROM tab0
----
7403
79
818

query I rowsort
SELECT DISTINCT + 59 + - col2 AS col0 FROM tab2
----
21
32
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 col2 FROM tab2 AS cor0
----
13
13
13

query I rowsort
SELECT + ( + 34 ) + col0 * ( col0 ) FROM tab0 AS cor0
----
1259
610
7955

query I rowsort
SELECT DISTINCT + 91 + col0 * - cor0.col2 FROM tab2 AS cor0
----
-1937
-2911
-98

query I rowsort
SELECT DISTINCT + + ( cor0.col0 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT 95 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT - ( tab2.col1 ) * tab2.col2 + - cor0.col1 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 4f7676f6f5c25933a71e5dcc617f2d7f

query I rowsort
SELECT + ( cor0.col1 ) * col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - ( 37 ) AS col2 FROM tab2 AS cor0
----
-37
-37
-37

query I rowsort
SELECT - - 15 * col1 + + col1 * + col2 FROM tab1 AS cor0
----
1443
1794
720

query I rowsort
SELECT col2 + - 33 AS col2 FROM tab0 cor0
----
-32
0
49

query I rowsort
SELECT DISTINCT col2 * cor0.col1 + - col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT ALL - col1 + 17 FROM tab0 AS cor0
----
-69
-74
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2057
SELECT ALL col2 * - CAST( + col0 AS SIGNED ) FROM tab2 cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL col2 * - CAST ( + col0 AS INTEGER ) FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - - ( - 24 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

onlyif mysql # use DIV operator for integer division
query I rowsort label-2059
SELECT ALL - col0 + col0 DIV - col1 + + col0 col0 FROM tab1 AS cor0
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2059
SELECT ALL - col0 + col0 / - col1 + + col0 col0 FROM tab1 AS cor0
----
-6
-6
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2060
SELECT - CAST( + col2 AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-2060
SELECT - CAST ( + col2 AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - 89 FROM tab2, tab2 cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT DISTINCT ( - 64 ) AS col0 FROM tab0
----
-64

query I rowsort
SELECT 21 FROM tab0, tab2 cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT + tab2.col0 * - col1 * - col2 - col1 AS col1 FROM tab2
----
119593
51017
5828

query I rowsort
SELECT ( + col1 ) * - col1 + + col2 AS col2 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT 54 * cor0.col1 AS col1 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 58a73a56d6839a455d17b09e5ff54471

query I rowsort
SELECT + ( - col1 + tab1.col0 ) AS col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT + - 36 AS col2 FROM tab1 cor0
----
-36
-36
-36

query I rowsort
SELECT + col1 * col1 + ( 2 ) AS col1 FROM tab1 AS cor0
----
102
171
678

query I rowsort
SELECT + col0 * + col1 * - cor0.col0 FROM tab0 cor0
----
-118825
-49536
-720811

query I rowsort
SELECT col2 + - 71 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
6139
6543
6888

query I rowsort
SELECT col2 * cor0.col2 + - ( - col2 ) FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT DISTINCT - col0 * col1 + col2 + - col1 * - col1 FROM tab0 AS cor0
----
264
5365
6015

query I rowsort
SELECT - col1 + - tab0.col2 AS col1 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT ALL col1 * + col0 * - col2 AS col0 FROM tab2 cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT col0 * col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + + col0 * col0 col2 FROM tab2 AS cor0
----
42
6006
6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-2079
SELECT DISTINCT col0 + ( + col0 ) DIV col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT col0 + ( + col0 ) / col0 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT ALL - + col2 + - col2 * - ( col1 ) AS col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT 77 * + col2 AS col1 FROM tab0
----
2541
6314
77

query I rowsort
SELECT DISTINCT 95 * col1 FROM tab1
----
1235
2470
950

query I rowsort
SELECT ALL + - col2 + + ( - col0 ) FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT ALL 24 * - 50 - col0 * ( col2 ) AS col2 FROM tab1 AS cor0
----
-1362
-4848
-8880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 * 87 col0 FROM tab2 AS cor0
----
1653

query I rowsort
SELECT - + cor0.col2 - + col2 FROM tab1 AS cor0
----
-108
-114
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 + col0 col0 FROM tab0 AS cor0
----
0
11
65

query I rowsort
SELECT ALL - + 34 * 3 FROM tab1 cor0
----
-102
-102
-102

query I rowsort
SELECT DISTINCT col0 * - col1 * col0 - + col0 FROM tab1 AS cor0
----
-237
-41024
-83280

query I rowsort
SELECT + - ( - col0 ) + - col2 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2091
SELECT ALL CAST( NULL AS SIGNED ) * - col0 * + col1 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 * + col1 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 1 * col0 + col0 AS col0 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 col0 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT ( ( col1 ) ) + + col2 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - - col0 * 72 - cor0.col1 AS col1 FROM tab1 AS cor0
----
190
4598
5747

query I rowsort
SELECT ALL + col0 + col0 + + col0 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT DISTINCT + - col2 * + col2 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL col1 * - 7 * col2 FROM tab2
----
-10738
-4522
-5859

query I rowsort
SELECT ( 98 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT DISTINCT tab0.col1 * - tab0.col1 AS col0 FROM tab0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2101
SELECT DISTINCT col1 * + CAST( - col2 AS SIGNED ) FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT col1 * + CAST ( - col2 AS INTEGER ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - col1 * - 88 * col1 + col2 AS col1 FROM tab0
----
650881
728810
827993

query I rowsort
SELECT + 47 + 76 AS col2 FROM tab1 AS cor0
----
123
123
123

query I rowsort
SELECT + 25 * 44 - col0 AS col0 FROM tab1 cor0
----
1020
1036
1097

onlyif mysql # use DIV operator for integer division
query I rowsort label-2105
SELECT ALL col2 + tab1.col1 DIV col1 FROM tab1
----
55
58
97

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL col2 + tab1.col1 / col1 FROM tab1
----
55
58
97

query I rowsort
SELECT ALL col2 + + 56 FROM tab1
----
110
113
152

query I rowsort
SELECT - 90 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c0d96679aba507520916e8654e5a6618

query I rowsort
SELECT - - 39 * col2 + 30 AS col0 FROM tab0 AS cor0
----
1317
3228
69

query I rowsort
SELECT col1 + - cor0.col0 * - col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT - 37 * + col1 FROM tab0
----
-3182
-3367
-3589

query I rowsort
SELECT col0 + - 29 FROM tab1
----
-26
35
51

query I rowsort
SELECT DISTINCT 37 + col1 FROM tab2
----
54
68
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2113
SELECT ( tab1.col2 ) DIV - col2 + col2 * col0 AS col2 FROM tab1
----
161
3647
7679

skipif mysql # not compatible
query I rowsort label-2113
SELECT ( tab1.col2 ) / - col2 + col2 * col0 AS col2 FROM tab1
----
161
3647
7679

query I rowsort
SELECT 1 + + col0 + col2 FROM tab0
----
172
37
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-2115
SELECT col0 * + col0 + col0 DIV col0 FROM tab2 cor0
----
50
6085
6242

skipif mysql # not compatible
query I rowsort label-2115
SELECT col0 * + col0 + col0 / col0 FROM tab2 cor0
----
50
6085
6242

query I rowsort
SELECT ALL + + col0 + - col1 AS col2 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT ALL 30 * col1 AS col2 FROM tab1 AS cor0
----
300
390
780

onlyif mysql # use DIV operator for integer division
query I rowsort label-2118
SELECT ALL ( col0 ) DIV col1 + + col0 FROM tab2 AS cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL ( col0 ) / col1 + + col0 FROM tab2 AS cor0
----
7
79
83

query I rowsort
SELECT DISTINCT ( - col1 ) * col0 + ( col1 ) FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL + 54 * col1 * ( 41 ) + - col2 FROM tab1 AS cor0
----
22083
28686
57510

query I rowsort
SELECT - col2 + + col0 * col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT 60 * col2 AS col2 FROM tab1 AS cor0
----
3240
3420
5760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2123
SELECT ALL + col0 * col1 DIV + col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL + col0 * col1 / + col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - + ( - col1 ) * - col0 + col2 FROM tab2 AS cor0
----
-1305
-190
-4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - col1 + - ( + col2 ) col0 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT ALL + 35 + + col0 AS col0 FROM tab2 AS cor0
----
113
114
42

query I rowsort
SELECT + - 15 * col2 + - col2 FROM tab1 AS cor0
----
-1536
-864
-912

onlyif mysql # use DIV operator for integer division
query I rowsort label-2128
SELECT col0 + + tab2.col0 DIV col0 AS col0 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-2128
SELECT col0 + + tab2.col0 / col0 AS col0 FROM tab2
----
79
8
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 12 col0 FROM tab0 AS cor0
----
-12
-396
-984

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2130
SELECT DISTINCT + col0 + CAST( col2 AS SIGNED ) * col1 FROM tab0 cor0
----
132
2862
7551

skipif mysql # not compatible
query I rowsort label-2130
SELECT DISTINCT + col0 + CAST ( col2 AS INTEGER ) * col1 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT ALL col0 + 64 AS col2 FROM tab2 cor0
----
142
143
71

query I rowsort
SELECT ALL cor0.col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - col1 * 40 * + col2 FROM tab1 AS cor0
----
-22800
-49920
-56160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2134
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) + col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2134
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) + col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT 55 + col2 AS col1 FROM tab0 AS cor0
----
137
56
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-2136
SELECT + + col2 DIV 40 + - col1 AS col2 FROM tab1 AS cor0
----
-11
-25
-9

skipif mysql # not compatible
query I rowsort label-2136
SELECT + + col2 / 40 + - col1 AS col2 FROM tab1 AS cor0
----
-11
-25
-9

query I rowsort
SELECT DISTINCT + 88 * cor0.col1 FROM tab1 cor0
----
1144
2288
880

query I rowsort
SELECT col1 + - cor0.col0 AS col0 FROM tab0 cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2139
SELECT 27 DIV col0 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2139
SELECT 27 / col0 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + - cor0.col2 * + 78 FROM tab0 AS cor0
----
-2574
-6396
-78

query I rowsort
SELECT 18 AS col1 FROM tab0 cor0
----
18
18
18

query I rowsort
SELECT DISTINCT 2 AS col0 FROM tab0, tab0 AS cor0
----
2

query I rowsort
SELECT ALL + ( - cor0.col2 ) FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT DISTINCT - ( 54 ) AS col1 FROM tab0, tab1 AS cor0
----
-54

query I rowsort
SELECT ALL + col2 * - ( 20 ) * col1 FROM tab1
----
-11400
-24960
-28080

query I rowsort
SELECT + col0 + - col1 * + 73 + - col0 FROM tab1 cor0
----
-1898
-730
-949

query I rowsort
SELECT + col0 * ( - col2 + 9 * ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
1296
29184
61440

query I rowsort
SELECT + ( - ( col2 ) ) AS col1 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT - col0 + 55 AS col1 FROM tab2 AS cor0
----
-23
-24
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 * col2 * col2 col2 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT + 18 * col1 FROM tab0
----
1548
1638
1746

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2152
SELECT ALL CAST( NULL AS SIGNED ) / + 94 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL CAST ( NULL AS INTEGER ) / + 94 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - 17 * + col0 AS col0 FROM tab1
----
-1088
-1360
-51

query I rowsort
SELECT - ( col0 ) - 81 FROM tab0 AS cor0
----
-105
-116
-170

query I rowsort
SELECT col0 * col2 + 50 AS col2 FROM tab1 cor0
----
212
3698
7730

onlyif mysql # use DIV operator for integer division
query I rowsort label-2156
SELECT + col1 * col2 - + cor0.col2 DIV 11 AS col2 FROM tab1 AS cor0
----
1240
1400
565

skipif mysql # not compatible
query I rowsort label-2156
SELECT + col1 * col2 - + cor0.col2 / 11 AS col2 FROM tab1 AS cor0
----
1240
1400
565

query I rowsort
SELECT ( cor0.col1 ) + cor0.col0 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT cor0.col1 + - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT col1 + col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2160
SELECT ALL + 23 / + col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL + 23 / + col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * col0 + - 94 AS col1 FROM tab2 AS cor0
----
1934
2908
95

query I rowsort
SELECT 74 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2163
SELECT col0 + CAST( + 14 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
17
78
94

skipif mysql # not compatible
query I rowsort label-2163
SELECT col0 + CAST ( + 14 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
17
78
94

query I rowsort
SELECT - cor0.col1 * col0 + + cor0.col2 * - col0 AS col2 FROM tab2 cor0
----
-406
-4345
-6630

query I rowsort
SELECT cor0.col2 + - 23 + 53 FROM tab0 AS cor0
----
112
31
63

query I rowsort
SELECT col1 * - col2 + - 29 FROM tab0 AS cor0
----
-126
-2867
-7491

onlyif mysql # use DIV operator for integer division
query I rowsort label-2167
SELECT + 30 DIV 64 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2167
SELECT + 30 / 64 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL col0 * 4 * - col2 + col1 AS col2 FROM tab1
----
-14582
-30707
-622

query I rowsort
SELECT col0 * ( + col2 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - col0 * - 65 - - ( + col0 ) FROM tab2 AS cor0
----
462
5148
5214

query I rowsort
SELECT DISTINCT - cor0.col1 + col2 * cor0.col0 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-2172
SELECT ALL + - cor0.col0 DIV - 52 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL + - cor0.col0 / - 52 AS col2 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL col2 * + col0 + - 62 * - col1 FROM tab0 AS cor0
----
12940
6049
6124

query I rowsort
SELECT ALL - col0 * ( - col1 ) + + col2 AS col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT - col2 - + ( + 94 * + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-685
-7358
-7464

query I rowsort
SELECT ALL + col2 + 97 AS col1 FROM tab0 AS cor0
----
130
179
98

query I rowsort
SELECT col1 * - ( - col2 ) + - cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
-798
108
858

query I rowsort
SELECT ALL - cor0.col2 * + 18 + 86 AS col0 FROM tab1 AS cor0
----
-1642
-886
-940

query I rowsort
SELECT ALL - ( 12 ) * - col2 AS col2 FROM tab1 AS cor0
----
1152
648
684

query I rowsort
SELECT DISTINCT - + 21 * col0 AS col0 FROM tab0 AS cor0
----
-1869
-504
-735

query I rowsort
SELECT ALL + cor0.col1 * - cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a811f2025e810c126c8e7210b4f3f570

query I rowsort
SELECT + 15 * + col0 AS col2 FROM tab0 AS cor0
----
1335
360
525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + cor0.col0 col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL + col1 * + col1 + ( col0 ) * col0 * ( ( col0 ) * cor0.col2 ) - - cor0.col1 * + col0 * cor0.col2 FROM tab2 AS cor0
----
12461485
16081
18786805

onlyif mysql # use DIV operator for integer division
query I rowsort label-2185
SELECT - col0 DIV col1 + col2 + 95 FROM tab1 AS cor0
----
146
149
185

skipif mysql # not compatible
query I rowsort label-2185
SELECT - col0 / col1 + col2 + 95 FROM tab1 AS cor0
----
146
149
185

query I rowsort
SELECT DISTINCT + - col1 + col1 * - col0 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT ALL col1 * col0 - 88 AS col0 FROM tab2
----
1255
129
4514

query I rowsort
SELECT - 54 * + ( + tab2.col0 ) AS col2 FROM tab2
----
-378
-4212
-4266

query I rowsort
SELECT - col2 + col2 * col0 FROM tab2
----
162
2002
2964

query I rowsort
SELECT cor1.col2 + 54 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to af43f692bac139d1e4e92752a871821d

query I rowsort
SELECT + col2 + 14 AS col1 FROM tab1 AS cor0
----
110
68
71

query I rowsort
SELECT ALL - + 3 + - 59 FROM tab2 cor0
----
-62
-62
-62

query I rowsort
SELECT DISTINCT + 90 * - col2 AS col0 FROM tab0 AS cor0
----
-2970
-7380
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + - cor0.col1 col1 FROM tab1 AS cor0
----
1235
1378
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 - col1 col1 FROM tab1 AS cor0
----
58
71
74

query I rowsort
SELECT ALL + + tab1.col2 + cor0.col0 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 8bd72de8d7a75bcbd2619bca60945947

onlyif mysql # use DIV operator for integer division
query I rowsort label-2197
SELECT DISTINCT + col1 + col2 DIV CAST( - col2 * + col1 + + 52 AS SIGNED ) FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT + col1 + col2 / CAST ( - col2 * + col1 + + 52 AS INTEGER ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - - 46 - col2 AS col0 FROM tab2 AS cor0
----
19
20
8

query I rowsort
SELECT - col0 * + col1 + col0 * - 38 FROM tab1 AS cor0
----
-192
-3072
-4080

query I rowsort
SELECT ALL + + 75 * cor0.col0 - ( 57 ) FROM tab0 AS cor0
----
1743
2568
6618

query I rowsort
SELECT 40 * - col1 + 28 AS col1 FROM tab2 AS cor0
----
-1212
-2332
-652

query I rowsort
SELECT + + cor0.col0 * + col0 * col1 FROM tab1 cor0
----
234
40960
83200

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab2 cor1, tab2, tab0 AS cor2
----
3645 values hashing to 52c9380a39df7a744b9f2f2c5bf55dd5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2204
SELECT DISTINCT - col2 * col1 + + ( - col2 ) DIV - 25 + 83 col1 FROM tab1 AS cor0
----
-1162
-1319
-485

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2204
SELECT DISTINCT - col2 * col1 + + ( - col2 ) / - 25 + 83 col1 FROM tab1 AS cor0
----
-1162
-1319
-485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - ( col1 ) col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - - col2 * - 66 FROM tab2 AS cor0
----
-1716
-1782
-2508

query I rowsort
SELECT DISTINCT + 13 FROM tab2, tab2 AS cor0
----
13

query I rowsort
SELECT + 73 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT ALL col1 * + ( ( - col1 ) ) FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - + ( col0 ) * col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - + 25 AS col0 FROM tab1 AS cor0
----
-25
-25
-25

query I rowsort
SELECT DISTINCT + - ( + 97 ) FROM tab1 AS cor0
----
-97

query I rowsort
SELECT DISTINCT + + ( ( - cor0.col2 ) ) + 82 FROM tab1 AS cor0
----
-14
25
28

query I rowsort
SELECT ALL + col2 * - col0 + - col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT DISTINCT - 43 * - col2 FROM tab0 AS cor0
----
1419
3526
43

query I rowsort
SELECT 62 + + col0 * + col2 AS col1 FROM tab1 AS cor0
----
224
3710
7742

query I rowsort
SELECT DISTINCT - + col1 * + col0 AS col2 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT - + col1 - - 52 FROM tab2 cor0
----
-7
21
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2219
SELECT + - CAST( NULL AS SIGNED ) / + col0 - - cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2219
SELECT + - CAST ( NULL AS INTEGER ) / + col0 - - cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 96 * - col1 + col0 FROM tab0 AS cor0
----
8280
8825
9347

query I rowsort
SELECT col0 + 40 * + col1 + + col2 AS col2 FROM tab2
----
1274
2464
797

query I rowsort
SELECT DISTINCT - col1 * - 13 FROM tab2
----
221
403
767

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2223
SELECT ALL tab0.col2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL tab0.col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 - col1 AS col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT + 67 * - col0 AS col0 FROM tab2 AS cor0
----
-469
-5226
-5293

onlyif mysql # use DIV operator for integer division
query I rowsort label-2226
SELECT DISTINCT + 87 DIV - col1 + + col0 AS col0 FROM tab1 AS cor0
----
0
56
74

skipif mysql # not compatible
query I rowsort label-2226
SELECT DISTINCT + 87 / - col1 + + col0 AS col0 FROM tab1 AS cor0
----
0
56
74

query I rowsort
SELECT 0 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2228
SELECT ALL + CAST( NULL AS DECIMAL ) + 68 col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL + CAST ( NULL AS REAL ) + 68 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + col2 * 93 FROM tab2 cor0
----
2359
2480
3517

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2230
SELECT + 68 - col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2230
SELECT + 68 - col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 * - cor0.col0 + - 8 AS col1 FROM tab0 AS cor0
----
-43
-7306
-800

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col2 AS REAL ) AS col2 FROM tab1
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 + col0 + tab2.col2 * 81 col1 FROM tab2
----
2261
2271
3234

onlyif mysql # use DIV operator for integer division
query I rowsort label-2234
SELECT ALL + 88 * 44 DIV + col0 + col2 AS col2 FROM tab0
----
111
125
194

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL + 88 * 44 / + col0 + col2 AS col2 FROM tab0
----
111
125
194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2235
SELECT + CAST( NULL AS SIGNED ) * tab0.col0 col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2235
SELECT + CAST ( NULL AS INTEGER ) * tab0.col0 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + 0 AS col2 FROM tab1
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2237
SELECT col1 * - col1 - CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT col1 * - col1 - CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 81 + - col1 FROM tab2
----
-112
-140
-98

query I rowsort
SELECT ALL + cor0.col1 + + col0 FROM tab1 cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2240
SELECT DISTINCT + cor0.col0 + + 94 DIV 36 AS col0 FROM tab0 AS cor0
----
26
37
91

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT + cor0.col0 + + 94 / 36 AS col0 FROM tab0 AS cor0
----
26
37
91

query I rowsort
SELECT DISTINCT col1 * - col1 + + col1 AS col2 FROM tab2 AS cor0
----
-272
-3422
-930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col2 + - col2 * - col0 col0 FROM tab2 AS cor0
----
2704
4446
918

query I rowsort
SELECT + col1 * + col2 * col1 + col2 FROM tab2
----
11020
25974
90532

query I rowsort
SELECT DISTINCT + 20 + col2 AS col2 FROM tab1
----
116
74
77

query I rowsort
SELECT - tab2.col2 + - col0 * + col1 FROM tab2
----
-1381
-244
-4628

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab2 cor3
----
3645 values hashing to 54f94bc315b13bb4d5a30c251c64c399

query I rowsort
SELECT - cor3.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab1 AS cor3
----
243 values hashing to dba0629212dd6bf03c2834a27d0b07fb

query I rowsort
SELECT + col2 * col2 + - col0 FROM tab1
----
2913
3185
9136

query I rowsort
SELECT ALL - col0 + + ( + col2 ) AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - - col2 + 83 - + 29 AS col2 FROM tab2 AS cor0
----
80
81
92

query I rowsort
SELECT - col1 + 80 * - 44 FROM tab1 AS cor0
----
-3530
-3533
-3546

query I rowsort
SELECT DISTINCT + col2 + ( col1 ) AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ( 55 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL - col0 + + cor0.col1 * 87 FROM tab1 AS cor0
----
1051
2259
806

query I rowsort
SELECT 12 + col0 * 27 AS col0 FROM tab2 AS cor0
----
201
2118
2145

query I rowsort
SELECT DISTINCT + tab0.col1 + + 77 FROM tab0
----
163
168
174

onlyif mysql # use DIV operator for integer division
query I rowsort label-2257
SELECT DISTINCT + 48 + + tab0.col1 DIV col2 AS col0 FROM tab0
----
145
49
50

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT + 48 + + tab0.col1 / col2 AS col0 FROM tab0
----
145
49
50

query I rowsort
SELECT + col0 * - col0 + col2 AS col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT - - col1 * col0 + cor0.col2 FROM tab2 cor0
----
1381
244
4628

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 DISTINCT 51 * 64 AS col2 FROM tab1
----
3264

query I rowsort
SELECT col1 * tab2.col2 + col1 + + col2 * - col0 * + col2 FROM tab2
----
-113413
-4235
-51135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * + col0 + + col0 col1 FROM tab1
----
12
4160
6480

query I rowsort
SELECT DISTINCT ( 99 ) FROM tab0
----
99

query I rowsort
SELECT - 0 * - tab0.col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - 65 * + col0 FROM tab1
----
-195
-4160
-5200

onlyif mysql # use DIV operator for integer division
query I rowsort label-2267
SELECT col2 + + col0 * cor0.col1 DIV + col1 AS col1 FROM tab2 cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-2267
SELECT col2 + + col0 * cor0.col1 / + col1 AS col1 FROM tab2 cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2268
SELECT + 78 + col0 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2268
SELECT + 78 + col0 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2269
SELECT + 23 * col0 + + col0 * col1 DIV col2 AS col1 FROM tab0 AS cor0
----
2145
4200
614

skipif mysql # not compatible
query I rowsort label-2269
SELECT + 23 * col0 + + col0 * col1 / col2 AS col1 FROM tab0 AS cor0
----
2145
4200
614

query I rowsort
SELECT + 85 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT ALL + cor1.col2 AS col1 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT col0 * 55 * - 15 AS col0 FROM tab1 cor0
----
-2475
-52800
-66000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2273
SELECT ALL + + cor0.col0 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL + + cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col0 + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2919
-3313
-9296

query I rowsort
SELECT ALL col0 * - col0 + col0 * col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * + col0 + + col2 * + cor0.col2 FROM tab1 AS cor0
----
16896
3078
6897

query I rowsort
SELECT DISTINCT + + col2 * col1 - col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT ALL + col1 + - col2 * col1 AS col1 FROM tab1 cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL - cor1.col2 + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f5a900b2f94b2c0349974e7b95e705a8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 4 ) * cor0.col0 + + col1 col2 FROM tab2 AS cor0
----
-253
-299
3

query I rowsort
SELECT - col1 * col2 + col1 * + col1 AS col0 FROM tab1 AS cor0
----
-1079
-470
-728

query I rowsort
SELECT DISTINCT + + 69 + + col1 * col2 AS col2 FROM tab1 AS cor0
----
1317
1473
639

query I rowsort
SELECT - + col2 * - 31 + + col1 AS col2 FROM tab0 AS cor0
----
1109
128
2633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - 29 col1 FROM tab1 AS cor0
----
109
32
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2285
SELECT col1 DIV + 2 - - cor0.col2 FROM tab0 AS cor0
----
127
49
76

skipif mysql # not compatible
query I rowsort label-2285
SELECT col1 / + 2 - - cor0.col2 FROM tab0 AS cor0
----
127
49
76

query I rowsort
SELECT + 4 + + col2 AS col1 FROM tab1 AS cor0
----
100
58
61

query I rowsort
SELECT - 25 + - col1 - col0 FROM tab1 AS cor0
----
-118
-54
-99

query I rowsort
SELECT ALL + 75 - col2 FROM tab0
----
-7
42
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-2289
SELECT tab0.col1 + + col2 DIV col0 + + ( col0 + + col1 ) DIV col0 col2 FROM tab0
----
100
91
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2289
SELECT tab0.col1 + + col2 / col0 + + ( col0 + + col1 ) / col0 col2 FROM tab0
----
100
91
93

query I rowsort
SELECT DISTINCT col2 * col1 + col0 - col1 AS col1 FROM tab2
----
1553
708
813

query I rowsort
SELECT DISTINCT 76 AS col1 FROM tab1, tab2 AS cor0
----
76

query I rowsort
SELECT col1 * col0 + - col2 AS col2 FROM tab1 cor0
----
24
583
944

query I rowsort
SELECT + 23 AS col1 FROM tab2 cor0
----
23
23
23

query I rowsort
SELECT + - 27 + - col0 AS col2 FROM tab1 AS cor0
----
-107
-30
-91

query I rowsort
SELECT DISTINCT - ( - col0 ) + ( col2 ) * - col0 * - ( - 1 + + col2 * ( + col2 ) ) FROM tab0 AS cor0
----
35
49064543
861720

query I rowsort
SELECT + cor0.col0 * + col0 + 25 FROM tab1 AS cor0
----
34
4121
6425

onlyif mysql # use DIV operator for integer division
query I rowsort label-2297
SELECT - col2 * + col1 + col1 DIV 27 FROM tab0 cor0
----
-2835
-7459
-94

skipif mysql # not compatible
query I rowsort label-2297
SELECT - col2 * + col1 + col1 / 27 FROM tab0 cor0
----
-2835
-7459
-94

query I rowsort
SELECT + 2 * col1 AS col0 FROM tab1 cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2299
SELECT - + col0 DIV col1 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2299
SELECT - + col0 / col1 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( + col1 ) * 41 * + col0 AS col0 FROM tab1 AS cor0
----
26240
3198
42640

query I rowsort
SELECT + cor0.col2 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT col1 - - 78 AS col2 FROM tab0
----
164
169
175

query I rowsort
SELECT 46 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT - 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT - + cor0.col2 * 37 FROM tab2 AS cor0
----
-1406
-962
-999

query I rowsort
SELECT ALL + ( ( col2 ) ) * ( + col1 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - + cor0.col0 * - ( cor0.col1 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT cor0.col1 + col0 * + col0 AS col0 FROM tab2 AS cor0
----
6143
6258
80

query IIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab0 cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL 87 - - col1 FROM tab2
----
104
118
146

query I rowsort
SELECT 56 * col1 + + 73 FROM tab0
----
4889
5169
5505

query I rowsort
SELECT + col1 * col2 + - col0 AS col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT + col0 + + 54 * 54 * col0 + + col0 * - cor0.col2 * - col0 AS col2 FROM tab0 AS cor0
----
103320
89016
909135

query I rowsort
SELECT - 35 - col2 * tab2.col1 * 0 FROM tab2
----
-35
-35
-35

query I rowsort
SELECT - col0 + + col1 + + col0 FROM tab0
----
86
91
97

query I rowsort
SELECT - col1 * 21 AS col2 FROM tab2
----
-1239
-357
-651

query I rowsort
SELECT col2 + - col0 * + col1 * - col2 + ( 44 * - col2 ) AS col2 FROM tab1
----
1890
34029
95712

query I rowsort
SELECT ALL + col0 * - col1 * + col1 + col2 FROM tab2
----
-22793
-271492
-6700

query I rowsort
SELECT DISTINCT col0 + 49 FROM tab1
----
113
129
52

query I rowsort
SELECT DISTINCT col2 + - ( - col2 ) FROM tab0
----
164
2
66

query I rowsort
SELECT col0 * col1 + col0 * + cor0.col2 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT + col1 - cor0.col0 * + col2 * + col1 AS col1 FROM tab1 AS cor0
----
-36470
-4186
-99827

query I rowsort
SELECT DISTINCT + col2 + ( col2 * col1 ) FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL + col2 * - col2 + + col1 * col2 AS col2 FROM tab0 cor0
----
1749
738
96

query I rowsort
SELECT DISTINCT col1 + col0 - col2 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT + cor0.col1 + 24 FROM tab2 AS cor0
----
41
55
83

query I rowsort
SELECT DISTINCT + col1 + + ( 70 * col1 ) FROM tab2 AS cor0
----
1207
2201
4189

query I rowsort
SELECT ALL col1 * - 63 - + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1109
-1980
-3743

query I rowsort
SELECT DISTINCT + tab2.col2 * col0 AS col0 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2330
SELECT - col0 DIV - 41 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2330
SELECT - col0 / - 41 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT ( 83 ) * + col0 FROM tab1 cor0
----
249
5312
6640

onlyif mysql # use DIV operator for integer division
query I rowsort label-2332
SELECT ALL 58 DIV + cor0.col1 + ( col2 ) col1 FROM tab2 AS cor0
----
26
28
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2332
SELECT ALL 58 / + cor0.col1 + ( col2 ) col1 FROM tab2 AS cor0
----
26
28
41

query I rowsort
SELECT - 12 * col0 AS col1 FROM tab1 AS cor0
----
-36
-768
-960

query I rowsort
SELECT DISTINCT + col2 * - col2 - + col2 AS col1 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT DISTINCT 57 + + col1 * + col2 AS col0 FROM tab1 cor0
----
1305
1461
627

query I rowsort
SELECT ALL - - 97 AS col1 FROM tab1 cor0
----
97
97
97

query I rowsort
SELECT - col2 * + col2 * - col2 AS col0 FROM tab1 AS cor0
----
157464
185193
884736

query I rowsort
SELECT + 82 * cor0.col0 FROM tab1 AS cor0
----
246
5248
6560

query I rowsort
SELECT ALL + + 12 + + col1 * - col2 FROM tab0 cor0
----
-2826
-7450
-85

query I rowsort
SELECT ALL 88 * col0 * cor0.col2 FROM tab1 AS cor0
----
14256
321024
675840

query I rowsort
SELECT + 44 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT - - 4 * col0 FROM tab2 AS cor0
----
28
312
316

query I rowsort
SELECT DISTINCT + 57 * col0 FROM tab1 cor0
----
171
3648
4560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 * col1 col0 FROM tab1
----
250
325
650

query I rowsort
SELECT 34 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

onlyif mysql # use DIV operator for integer division
query I rowsort label-2346
SELECT ALL 35 DIV + col1 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL 35 / + col1 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - 74 + - col1 * CAST ( 68 AS REAL ) * col0 AS col0 FROM tab1 AS cor0
----
-43594
-5378
-70794

query I rowsort
SELECT ALL - col1 * + col0 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + cor0.col0 + 49 * + 78 AS col2 FROM tab0 AS cor0
----
3846
3857
3911

query I rowsort
SELECT ALL - cor0.col0 + + col1 * col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT - col2 + + 68 AS col1 FROM tab1 AS cor0
----
-28
11
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-2352
SELECT DISTINCT + col0 DIV ( + col2 * + col2 ) FROM tab0 AS cor0
----
0
35

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT + col0 / ( + col2 * + col2 ) FROM tab0 AS cor0
----
0
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * col2 * - col2 col1 FROM tab0 AS cor0
----
-611793
-93568
0

query I rowsort
SELECT ALL + 79 AS col0 FROM tab1
----
79
79
79

query I rowsort
SELECT - ( + cor0.col2 ) * - col0 AS col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL + col1 + ( col1 ) AS col2 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT DISTINCT ( + col1 ) + - cor0.col2 FROM tab1 cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col1 * + col1 + - 42 * + cor0.col2 col0 FROM tab2 cor0
----
24813
89414
9386

query I rowsort
SELECT ALL - col0 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2360
SELECT DISTINCT + - CAST( - col0 AS SIGNED ) * col1 + 68 * col1 AS col2 FROM tab2 AS cor0
----
2325
2499
8614

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT + - CAST ( - col0 AS INTEGER ) * col1 + 68 * col1 AS col2 FROM tab2 AS cor0
----
2325
2499
8614

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 * + col2 + - col1 + 59 * + col1 col1 FROM tab1 AS cor0
----
4627
5342
7570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2362
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( - col1 ) + - col2 FROM tab1 cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2364
SELECT ALL + col1 DIV cor0.col1 AS col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL + col1 / cor0.col1 AS col1 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - - 21 FROM tab2 AS cor0
----
21

query I rowsort
SELECT ALL + ( col0 ) + col1 AS col1 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2367
SELECT ALL - col2 + CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL - col2 + CAST ( NULL AS REAL ) * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT tab1.col0 + 48 FROM tab1
----
112
128
51

query I rowsort
SELECT + 7 * - col1 + col1 AS col1 FROM tab0 AS cor0
----
-516
-546
-582

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 + + col1 col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - 97 + + 14 FROM tab2 cor0
----
-83
-83
-83

query I rowsort
SELECT ALL ( + col2 ) + col1 + + col0 * col1 FROM tab0
----
2183
3493
8272

query I rowsort
SELECT DISTINCT tab2.col0 AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
7
78
79

query I rowsort
SELECT ALL 67 * + 50 - + col0 FROM tab1 AS cor0
----
3270
3286
3347

query I rowsort
SELECT DISTINCT - - col2 * + ( col2 ) AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + col1 * + col0 + col0 * tab2.col0 FROM tab2
----
10686
266
7584

query I rowsort
SELECT DISTINCT + ( ( + col0 ) ) AS col1 FROM tab1
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2378
SELECT + col2 * + CAST( col0 AS SIGNED ) * col0 + - 59 * col1 FROM tab1 cor0
----
-1048
232882
613633

skipif mysql # not compatible
query I rowsort label-2378
SELECT + col2 * + CAST ( col0 AS INTEGER ) * col0 + - 59 * col1 FROM tab1 cor0
----
-1048
232882
613633

onlyif mysql # use DIV operator for integer division
query I rowsort label-2379
SELECT + col1 + col2 DIV + 84 AS col2 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-2379
SELECT + col1 + col2 / + 84 AS col2 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + cor0.col2 col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - - tab1.col0 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL col0 + 43 - + col0 FROM tab0
----
43
43
43

query I rowsort
SELECT - col2 - 25 AS col1 FROM tab0 AS cor0
----
-107
-26
-58

query I rowsort
SELECT - col1 + col1 - col2 * col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL 35 + ( col2 ) * col1 AS col0 FROM tab2 AS cor0
----
1569
681
872

query I rowsort
SELECT + col0 * ( + col0 + 63 * + 65 ) FROM tab2 cor0
----
28714
325494
329746

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2387
SELECT ALL CAST( NULL AS SIGNED ) + - cor0.col2 * - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL CAST ( NULL AS INTEGER ) + - cor0.col2 * - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 + + 9 * col2 FROM tab1 AS cor0
----
512
523
877

query I rowsort
SELECT + cor0.col1 * col2 + + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + 50 + + col0 FROM tab2 AS cor0
----
128
129
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2391
SELECT DISTINCT - col0 DIV - ( col1 ) FROM tab1
----
0
6

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT - col0 / - ( col1 ) FROM tab1
----
0
6

query I rowsort
SELECT + col2 * 59 FROM tab0
----
1947
4838
59

query I rowsort
SELECT DISTINCT col2 * 63 FROM tab0
----
2079
5166
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-2394
SELECT col2 DIV 98 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2394
SELECT col2 / 98 FROM tab2
----
0
0
0

query I rowsort
SELECT - col2 * - col0 * - ( col2 ) AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-2396
SELECT - + col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2396
SELECT - + col2 / + col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 41 AS col1 FROM tab0 AS cor0
----
41
41
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-2398
SELECT cor0.col1 DIV + col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2398
SELECT cor0.col1 / + col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2399
SELECT 14 DIV - col0 + + col2 col2 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2399
SELECT 14 / - col0 + + col2 col2 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2400
SELECT DISTINCT col2 * col1 + - col1 DIV 36 FROM tab2 cor0
----
1533
646
837

skipif mysql # not compatible
query I rowsort label-2400
SELECT DISTINCT col2 * col1 + - col1 / 36 FROM tab2 cor0
----
1533
646
837

query I rowsort
SELECT + 30 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2402
SELECT DISTINCT col0 DIV - CAST( - col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT col0 / - CAST ( - col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT ALL + + col2 + - ( - cor0.col0 ) FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - cor0.col2 + 9 FROM tab2 AS cor0
----
-17
-18
-29

query I rowsort
SELECT DISTINCT + + col1 * + col0 + 24 FROM tab0 AS cor0
----
2088
3419
8123

query I rowsort
SELECT ALL - cor0.col2 * + col1 + + col2 FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT col0 + + 77 AS col1 FROM tab0 AS cor0
----
101
112
166

query I rowsort
SELECT col0 + + ( 67 * col0 ) AS col2 FROM tab0
----
1632
2380
6052

query I rowsort
SELECT - col2 + ( - 10 + - col2 * tab2.col2 ) AS col0 FROM tab2
----
-1492
-712
-766

query I rowsort
SELECT + 20 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT DISTINCT - col2 - + 64 FROM tab2
----
-102
-90
-91

query I rowsort
SELECT DISTINCT + cor0.col1 * - 66 + col0 FROM tab0 AS cor0
----
-5652
-5917
-6367

query I rowsort
SELECT DISTINCT - - col2 * ( 65 ) - col2 AS col2 FROM tab0 AS cor0
----
2112
5248
64

query I rowsort
SELECT 90 * + col1 * + col2 FROM tab0
----
255420
671580
8730

query I rowsort
SELECT - - col2 * col1 + - col0 * col0 AS col2 FROM tab2 AS cor0
----
-4550
-5595
788

query I rowsort
SELECT - 86 * - col0 + col2 + + col2 AS col2 FROM tab2 AS cor0
----
656
6760
6870

query I rowsort
SELECT 39 + - col1 AS col2 FROM tab2
----
-20
22
8

query I rowsort
SELECT + 64 * ( col2 + col1 ) FROM tab1 cor0
----
4288
5120
6976

query I rowsort
SELECT ALL - + ( col1 ) * col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 91 * col1 ) col1 FROM tab2
----
-1547
-2821
-5369

query I rowsort
SELECT ALL 77 FROM tab2 cor0
----
77
77
77

query I rowsort
SELECT - tab1.col2 * col0 + + col2 AS col1 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab1 cor0
----
62

query I rowsort
SELECT DISTINCT - col1 * 52 AS col2 FROM tab1 AS cor0
----
-1352
-520
-676

query I rowsort
SELECT ALL + 10 + col2 AS col0 FROM tab2 cor0
----
36
37
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-2426
SELECT ALL ( col1 ) DIV + col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL ( col1 ) / + col0 FROM tab2 AS cor0
----
0
0
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2427
SELECT ALL CAST( + 71 AS SIGNED ) FROM tab1 AS cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL CAST ( + 71 AS INTEGER ) FROM tab1 AS cor0
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( cor0.col0 ) + col2 * - col0 col1 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT + + col0 + cor0.col2 * + col0 FROM tab1 AS cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 col0 FROM tab2, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT + 82 + 55 AS col2 FROM tab0
----
137
137
137

query I rowsort
SELECT - col2 * + 58 + col1 AS col0 FROM tab2
----
-1449
-1535
-2187

query I rowsort
SELECT ALL - 67 * - 79 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to bd0e8ec8ad35bb4b6686d7c8d0f170ae

query I rowsort
SELECT DISTINCT - col0 + + 53 AS col1 FROM tab0 AS cor0
----
-36
18
29

query I rowsort
SELECT + cor0.col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-2436
SELECT ALL col1 DIV + 30 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL col1 / + 30 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * - tab1.col0 + col0 AS col2 FROM tab1
----
-4032
-6
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-2438
SELECT DISTINCT + tab1.col0 DIV ( - col1 ) FROM tab1
----
-6
0

skipif mysql # not compatible
query I rowsort label-2438
SELECT DISTINCT + tab1.col0 / ( - col1 ) FROM tab1
----
-6
0

query I rowsort
SELECT DISTINCT + 86 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
86

query I rowsort
SELECT DISTINCT - col1 * 7 FROM tab0
----
-602
-637
-679

query I rowsort
SELECT - tab0.col1 + + ( col1 * - col1 + col0 * 50 ) FROM tab0
----
-3922
-6282
-7756

query I rowsort
SELECT ALL col2 + cor0.col2 * col2 - cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + col2 * - ( col0 ) - - cor0.col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT col2 * 59 + + col0 * col1 AS col1 FROM tab0 AS cor0
----
12937
3454
4011

query I rowsort
SELECT + col1 * + 54 FROM tab1 AS cor0
----
1404
540
702

query I rowsort
SELECT - col1 * + 11 AS col1 FROM tab0
----
-1001
-1067
-946

query I rowsort
SELECT - col2 * + 96 FROM tab0
----
-3168
-7872
-96

query I rowsort
SELECT ALL 80 AS col2 FROM tab1
----
80
80
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2449
SELECT DISTINCT + + CAST( col1 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT col1 * 57 + col1 FROM tab2 AS cor0
----
1798
3422
986

query I rowsort
SELECT DISTINCT + 99 + col0 FROM tab0
----
123
134
188

query I rowsort
SELECT DISTINCT + col0 * - col0 + + 76 FROM tab0
----
-1149
-500
-7845

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 * + col2 col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + tab2.col1 * + col0 AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT tab2.col0 * 45 AS col0 FROM tab2, tab0 cor0
----
315
3510
3555

query I rowsort
SELECT 86 * - tab1.col2 AS col2 FROM tab1
----
-4644
-4902
-8256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 col0 FROM tab2
----
23
23
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-2458
SELECT 97 DIV col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2458
SELECT 97 / col2 FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2459
SELECT + col0 + + cor0.col1 DIV - col0 + col1 FROM tab1 AS cor0
----
21
74
93

skipif mysql # not compatible
query I rowsort label-2459
SELECT + col0 + + cor0.col1 / - col0 + col1 FROM tab1 AS cor0
----
21
74
93

query I rowsort
SELECT DISTINCT + + col1 * col2 + - cor0.col2 * col2 FROM tab2 AS cor0
----
-798
108
858

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 13 * col0 col2 FROM tab2 AS cor0
----
-1014
-1027
-91

query I rowsort
SELECT DISTINCT cor0.col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - - cor0.col2 * col2 AS col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT + col2 + + col2 * + col2 * - col1 - - col0 * + ( col1 ) FROM tab2 AS cor0
----
-22355
-23167
-35256

query I rowsort
SELECT ALL + 13 * - col2 * - col0 FROM tab1 AS cor0
----
2106
47424
99840

query I rowsort
SELECT DISTINCT + + col0 * col1 + col2 * + col1 AS col2 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT + col2 * + col1 + + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT cor0.col0 + col2 * - col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT col1 + 43 * + col0 FROM tab0 AS cor0
----
1118
1602
3918

query I rowsort
SELECT DISTINCT + + col1 + 28 * col0 * - col2 AS col2 FROM tab2 AS cor0
----
-5261
-56725
-84039

query I rowsort
SELECT ALL + col1 - - col0 * col0 AS col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT - - col2 + col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
4153
63
6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 + cor0.col0 col1 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT ALL - col1 + tab2.col1 * - col0 AS col1 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT + col0 * 8 FROM tab0 cor0
----
192
280
712

query I rowsort
SELECT - col1 * col1 * + ( col1 ) FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT + + col2 * ( + col0 ) - - col1 AS col2 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT + 49 AS col1 FROM tab0
----
49
49
49

query I rowsort
SELECT DISTINCT ( tab0.col0 + + 81 ) * 98 FROM tab0
----
10290
11368
16660

onlyif mysql # use DIV operator for integer division
query I rowsort label-2480
SELECT - col1 + + col1 DIV cor0.col2 FROM tab1 cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2480
SELECT - col1 + + col1 / cor0.col2 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - tab2.col0 + tab2.col0 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2482
SELECT + col1 DIV col0 FROM tab1 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2482
SELECT + col1 / col0 FROM tab1 cor0
----
0
0
8

query I rowsort
SELECT col1 * - ( - col2 ) + - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT - cor0.col1 + ( 87 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 9c8ac3306ed0eabc6bf009c4678fe677

query I rowsort
SELECT col0 - col0 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - + col1 * ( ( + cor0.col1 ) ) FROM tab2 AS cor0
----
-289
-3481
-961

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * - col1 + + col0 <= ( + col2 )
----

query I rowsort
SELECT DISTINCT + tab2.col0 * + col1 * - col0 AS col2 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 * + col2 * col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT ALL + col1 * - col0 * col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT col1 * - col1 * - col1 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT + col2 + + col0 * col2 AS col0 FROM tab0
----
36
7380
825

query I rowsort
SELECT DISTINCT tab1.col1 - col1 * + col2 FROM tab1
----
-1235
-1378
-560

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) < ( NULL )
----

query I rowsort
SELECT + - 85 * col2 AS col2 FROM tab1 AS cor0
----
-4590
-4845
-8160

query I rowsort
SELECT DISTINCT col1 - + tab1.col1 * - col2 AS col0 FROM tab1
----
1261
1430
580

query I rowsort
SELECT + tab2.col1 - col1 * tab2.col1 AS col2 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT col1 + + col0 * - col2 * tab2.col2 AS col2 FROM tab2
----
-114059
-5072
-52669

query I rowsort
SELECT col1 + col0 * - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT 11 * col0 FROM tab2 AS cor0
----
77
858
869

onlyif mysql # use DIV operator for integer division
query I rowsort label-2502
SELECT DISTINCT - ( col1 ) DIV - 64 col0 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT - ( col1 ) / - 64 col0 FROM tab0 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2503
SELECT ALL col0 * col0 + - 84 DIV - 7 FROM tab1 AS cor0
----
21
4108
6412

skipif mysql # not compatible
query I rowsort label-2503
SELECT ALL col0 * col0 + - 84 / - 7 FROM tab1 AS cor0
----
21
4108
6412

onlyif mysql # use DIV operator for integer division
query I rowsort label-2504
SELECT - - col2 DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2504
SELECT - - col2 / cor0.col1 AS col1 FROM tab2 AS cor0
----
0
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2505
SELECT col1 + - col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
11
13
26

skipif mysql # not compatible
query I rowsort label-2505
SELECT col1 + - col0 / - col2 AS col0 FROM tab1 AS cor0
----
11
13
26

query I rowsort
SELECT DISTINCT - 21 + col1 AS col2 FROM tab0 AS cor0
----
65
70
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2507
SELECT ALL 55 DIV - col2 AS col0 FROM tab0
----
-1
-55
0

skipif mysql # not compatible
query I rowsort label-2507
SELECT ALL 55 / - col2 AS col0 FROM tab0
----
-1
-55
0

query I rowsort
SELECT - ( col0 ) * col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - ( - col0 ) + - col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-13
120
130

query I rowsort
SELECT DISTINCT - ( + 92 ) FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col0 AS REAL ) + - col2 + col0 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT - cor1.col2 AS col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 30 * + 58 col0 FROM tab2 AS cor0
----
-1740
-1740
-1740

query I rowsort
SELECT col0 * cor0.col0 * - col0 + col0 * col0 AS col2 FROM tab0 AS cor0
----
-13248
-41650
-697048

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2515
SELECT ALL CAST( NULL AS DECIMAL ) * + col1 + cor0.col0 * - CAST( + col2 AS SIGNED ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL CAST ( NULL AS REAL ) * + col1 + cor0.col0 * - CAST ( + col2 AS INTEGER ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( - col0 ) col2 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT col2 * col2 * + col2 - + col2 AS col1 FROM tab2
----
17550
19656
54834

query I rowsort
SELECT ALL - 48 FROM tab2, tab2 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT - + ( 22 ) + col1 * + 97 FROM tab0 cor0
----
8320
8805
9387

query I rowsort
SELECT - 36 + + col2 * col2 FROM tab1 AS cor0
----
2880
3213
9180

query I rowsort
SELECT col1 * - 7 + - col1 FROM tab2 AS cor0
----
-136
-248
-472

query I rowsort
SELECT DISTINCT col1 * - col1 * col0 FROM tab2
----
-22831
-271518
-6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 * - col0 * col0 col0 FROM tab1
----
102400
160000
225

query I rowsort
SELECT - + col2 * col1 + + col2 + + col2 AS col0 FROM tab1 AS cor0
----
-1056
-1296
-456

query I rowsort
SELECT - + 9 * - col2 FROM tab1 AS cor0
----
486
513
864

query I rowsort
SELECT DISTINCT - + 54 + col0 AS col0 FROM tab0 AS cor0
----
-19
-30
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-2527
SELECT DISTINCT col2 DIV + cor0.col2 + + cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
1041
641
79

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT col2 / + cor0.col2 + + cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
1041
641
79

query I rowsort
SELECT DISTINCT - + col0 + col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + ( - col0 ) * cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col2 + col2 * col2 + - col1 * - col1 AS col1 FROM tab1 cor0
----
3406
3646
9481

query I rowsort
SELECT ALL - col1 + + cor0.col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL + col2 + - col0 * col0 AS col0 FROM tab1 cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL + + col1 * col0 AS col2 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT cor0.col1 * col0 * + col1 FROM tab2 AS cor0
----
22831
271518
6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-2535
SELECT ALL ( - col2 ) DIV col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2535
SELECT ALL ( - col2 ) / col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 14 + - col0 AS col1 FROM tab2 AS cor0
----
-64
-65
7

query I rowsort
SELECT - ( - col1 ) + col1 AS col0 FROM tab1 cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2538
SELECT + + CAST( + col2 AS SIGNED ) + - col2 DIV col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2538
SELECT + + CAST ( + col2 AS INTEGER ) + - col2 / col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2539
SELECT + + col0 * col1 * + col2 + + col0 DIV col0 AS col2 FROM tab1 AS cor0
----
36481
4213
99841

skipif mysql # not compatible
query I rowsort label-2539
SELECT + + col0 * col1 * + col2 + + col0 / col0 AS col2 FROM tab1 AS cor0
----
36481
4213
99841

query I rowsort
SELECT DISTINCT + col1 * - col2 * col1 - - col2 AS col2 FROM tab2
----
-10944
-25920
-90480

query I rowsort
SELECT DISTINCT + col1 * col2 + col1 * col2 * col0 AS col1 FROM tab2 AS cor0
----
121186
51680
6696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) + - col2 col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - col0 * - col0 - + tab1.col2 FROM tab1
----
-45
4039
6304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2544
SELECT ALL CAST( NULL AS SIGNED ) + + ( tab1.col0 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL CAST ( NULL AS INTEGER ) + + ( tab1.col0 ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - tab0.col2 + 95 * col0 + col0 AS col2 FROM tab0
----
2271
3359
8462

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2546
SELECT DISTINCT CAST( + col0 AS SIGNED ) + - col2 AS col1 FROM tab1
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT CAST ( + col0 AS INTEGER ) + - col2 AS col1 FROM tab1
----
-16
-51
7

query I rowsort
SELECT DISTINCT - cor0.col1 * col0 * - col0 AS col2 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT cor0.col0 + - col0 * col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT - - ( cor0.col0 ) * - cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT + ( ( col1 ) ) + col2 AS col0 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2551
SELECT - CAST( - 17 AS SIGNED ) DIV col1 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2551
SELECT - CAST ( - 17 AS INTEGER ) / col1 AS col0 FROM tab1
----
0
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2552
SELECT DISTINCT CAST( NULL AS SIGNED ) + + tab1.col0 * col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + tab1.col0 * col1 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + 29 + - col0 AS col0 FROM tab1
----
-35
-51
26

query I rowsort
SELECT ALL - col1 + - ( tab1.col0 ) * col0 AS col1 FROM tab1
----
-35
-4106
-6413

query I rowsort
SELECT DISTINCT tab0.col1 * - ( col2 ) + + col1 FROM tab0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2556
SELECT - col0 * col0 - + col1 * col0 DIV + col1 FROM tab0 AS cor0
----
-1260
-600
-8010

skipif mysql # not compatible
query I rowsort label-2556
SELECT - col0 * col0 - + col1 * col0 / + col1 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT cor0.col0 + - col1 + + col0 FROM tab2 cor0
----
-17
141
97

query I rowsort
SELECT col2 * - tab0.col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2559
SELECT ALL - col0 + - tab2.col0 DIV + col0 FROM tab2
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL - col0 + - tab2.col0 / + col0 FROM tab2
----
-79
-8
-80

query I rowsort
SELECT + col0 * - col2 + col0 * - col1 FROM tab1
----
-240
-4288
-8720

query I rowsort
SELECT - col1 * - col2 + col1 * - col0 + + col0 AS col2 FROM tab0 WHERE + col1 <> tab0.col2 + col2
----
-3263
-548
798

onlyif mysql # use DIV operator for integer division
query I rowsort label-2562
SELECT col2 * col2 + col1 DIV col1 FROM tab1 WHERE col0 * col2 + - col2 + + col0 * col0 NOT IN ( col1 )
----
2917
3250
9217

skipif mysql # not compatible
query I rowsort label-2562
SELECT col2 * col2 + col1 / col1 FROM tab1 WHERE col0 * col2 + - col2 + + col0 * col0 NOT IN ( col1 )
----
2917
3250
9217

query I rowsort
SELECT DISTINCT col2 + + col0 * col1 FROM tab0
----
2097
3396
8181

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 / - col2 = NULL
----

query I rowsort
SELECT ALL cor0.col0 - col2 FROM tab2 cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2566
SELECT - col2 * col2 * + col1 + col1 DIV - col1 FROM tab2
----
-22600
-24549
-39885

skipif mysql # not compatible
query I rowsort label-2566
SELECT - col2 * col2 * + col1 + col1 / - col1 FROM tab2
----
-22600
-24549
-39885

query I rowsort
SELECT DISTINCT col2 * - col2 + col1 AS col0 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT - cor0.col1 + - col1 * col0 * + col1 FROM tab1 cor0
----
-13533
-2054
-6410

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) <> ( col2 ) AND NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - col1 * - col1 * - cor0.col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT - col0 + col0 * - col0 * col1 FROM tab0 AS cor0
----
-118860
-49560
-720900

query I rowsort
SELECT ALL + col1 * - col1 + col2 * - col0 FROM tab0 AS cor0
----
-15579
-8188
-9444

query I rowsort
SELECT DISTINCT col0 - + cor0.col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT col0 * col0 * + col2 AS col2 FROM tab0 cor0
----
1225
19008
649522

query I rowsort
SELECT cor0.col2 * - col0 AS col2 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2576
SELECT DISTINCT - + col2 + col0 DIV col2 FROM tab0 cor0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT - + col2 + col0 / col2 FROM tab0 cor0
----
-33
-81
34

query I rowsort
SELECT DISTINCT + + cor0.col2 - - col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL + col2 * + col2 * cor0.col2 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT ALL + col1 * col0 - col0 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-2580
SELECT + + col0 * col1 DIV col1 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-2580
SELECT + + col0 * col1 / col1 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 67 ) * + col1 + col1 col0 FROM tab0 AS cor0
----
5848
6188
6596

query I rowsort
SELECT + ( - cor0.col1 ) AS col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT 8 AS col1 FROM tab2 cor0
----
8
8
8

query I rowsort
SELECT ALL col2 * + 26 FROM tab1 AS cor0
----
1404
1482
2496

query I rowsort
SELECT - col0 * 84 FROM tab1
----
-252
-5376
-6720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT col2 * col0 + - tab1.col1 AS col2 FROM tab1
----
136
3638
7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2588
SELECT CAST( - col2 AS SIGNED ) - - col0 AS col1 FROM tab2
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-2588
SELECT CAST ( - col2 AS INTEGER ) - - col0 AS col1 FROM tab2
----
-20
41
52

query I rowsort
SELECT 77 + - col2 * + col0 FROM tab1
----
-3571
-7603
-85

query I rowsort
SELECT - ( col2 + - 50 ) FROM tab0
----
-32
17
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2591
SELECT DISTINCT - col2 * - col0 * - CAST( 17 AS SIGNED ) AS col0 FROM tab0
----
-124066
-13464
-595

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT - col2 * - col0 * - CAST ( 17 AS INTEGER ) AS col0 FROM tab0
----
-124066
-13464
-595

query I rowsort
SELECT - + 15 + - cor0.col0 FROM tab1 AS cor0
----
-18
-79
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2593
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2593
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2594
SELECT + - col1 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT + - col1 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 84 * cor0.col2 FROM tab2, tab2 cor0
----
9 values hashing to 0063e3d4b3ae644db98bfb3860e2b98d

query I rowsort
SELECT ALL + tab1.col1 AS col2 FROM tab1, tab2 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT + + col1 * + col1 AS col0 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2598
SELECT + cor0.col1 DIV - col2 + - col1 FROM tab0 AS cor0
----
-194
-88
-92

skipif mysql # not compatible
query I rowsort label-2598
SELECT + cor0.col1 / - col2 + - col1 FROM tab0 AS cor0
----
-194
-88
-92

query I rowsort
SELECT + col0 * + 21 AS col1 FROM tab2 AS cor0
----
147
1638
1659

onlyif mysql # use DIV operator for integer division
query I rowsort label-2600
SELECT - col1 DIV - 48 + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2600
SELECT - col1 / - 48 + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT col2 * + ( col1 + + col0 ) FROM tab0
----
132
14760
3630

query I rowsort
SELECT col1 + + 95 * ( tab1.col1 ) FROM tab1
----
1248
2496
960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2603
SELECT tab1.col0 - CAST( - col0 AS SIGNED ) * col2 AS col2 FROM tab1
----
165
3712
7760

skipif mysql # not compatible
query I rowsort label-2603
SELECT tab1.col0 - CAST ( - col0 AS INTEGER ) * col2 AS col2 FROM tab1
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + tab0.col2 col2 FROM tab0
----
119
173
98

query I rowsort
SELECT + cor0.col0 + - 77 AS col2 FROM tab1 AS cor0
----
-13
-74
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2606
SELECT col0 + CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2606
SELECT col0 + CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + + 41 FROM tab2 AS cor0
----
119
120
48

query I rowsort
SELECT - col1 - - 66 FROM tab2 AS cor0
----
35
49
7

query I rowsort
SELECT - 42 * + col2 + col2 * + 93 * 46 AS col2 FROM tab0 AS cor0
----
139788
347352
4236

query I rowsort
SELECT ALL - + 98 FROM tab2 cor0
----
-98
-98
-98

query I rowsort
SELECT DISTINCT - col0 - col0 * col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT - + 97 * 48 AS col1 FROM tab2 AS cor0
----
-4656
-4656
-4656

query I rowsort
SELECT cor0.col1 * - col0 * col2 + col0 AS col1 FROM tab2 AS cor0
----
-119574
-50955
-5852

query I rowsort
SELECT DISTINCT - 47 + 70 AS col0 FROM tab0 AS cor0
----
23

query I rowsort
SELECT DISTINCT - 81 * + col0 * col0 AS col1 FROM tab2 cor0
----
-3969
-492804
-505521

query I rowsort
SELECT ALL col2 - + col1 * col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT 87 * - 82 AS col2 FROM tab0 cor0
----
-7134
-7134
-7134

query I rowsort
SELECT ALL + + 52 AS col2 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT - - 22 + col2 + col2 AS col1 FROM tab0 AS cor0
----
186
24
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2620
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * - 95 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * - 95 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( + cor0.col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - 90 + - col1 + col1 FROM tab0 AS cor0
----
-90

query I rowsort
SELECT DISTINCT - ( - col2 ) - cor0.col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 42 * cor0.col0 col0 FROM tab0 cor0
----
1470
306516
33264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) + col2 * col1 * + ( - col1 ) col2 FROM tab2 AS cor0
----
-10999
-25978
-90565

query I rowsort
SELECT ALL - col2 + 17 + 81 FROM tab2
----
60
71
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-2627
SELECT ALL col1 * col1 DIV + 68 + col2 AS col2 FROM tab2
----
41
42
77

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL col1 * col1 / + 68 + col2 AS col2 FROM tab2
----
41
42
77

query I rowsort
SELECT ALL - ( 77 ) + + cor0.col2 + col2 FROM tab0 AS cor0
----
-11
-75
87

query I rowsort
SELECT ALL + + col1 * cor0.col2 - col1 AS col2 FROM tab0 AS cor0
----
0
2752
7371

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2630
SELECT ALL + CAST( col1 AS SIGNED ) * col1 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL + CAST ( col1 AS INTEGER ) * col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL - 52 FROM tab2 cor0
----
-52
-52
-52

query I rowsort
SELECT + cor0.col1 * col0 * + col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT - col1 * - 91 FROM tab2 AS cor0
----
1547
2821
5369

query I rowsort
SELECT 34 * cor0.col2 FROM tab2 AS cor0
----
1292
884
918

query I rowsort
SELECT - + 45 * - col0 + col2 AS col0 FROM tab0 AS cor0
----
1113
1576
4087

query I rowsort
SELECT - ( - col0 ) * 59 AS col1 FROM tab0 AS cor0
----
1416
2065
5251

query I rowsort
SELECT + - 6 * - col2 * - cor0.col0 FROM tab1 AS cor0
----
-21888
-46080
-972

query I rowsort
SELECT DISTINCT + - col0 * - col1 + + ( ( + col0 ) ) * - 73 + col0 AS col2 FROM tab1 cor0
----
-138
-3968
-4720

query I rowsort
SELECT DISTINCT + - 36 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT DISTINCT 65 + - col2 AS col1 FROM tab1 AS cor0
----
-31
11
8

query I rowsort
SELECT DISTINCT col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL col0 + ( col2 ) AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col1 * + 4 - col1 AS col0 FROM tab1 cor0
----
-130
-50
-65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2644
SELECT + CAST( NULL AS SIGNED ) + 41 - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT + CAST ( NULL AS INTEGER ) + 41 - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 38 + col0 AS col1 FROM tab0
----
127
62
73

query I rowsort
SELECT + 70 + col0 FROM tab1 AS cor0
----
134
150
73

query I rowsort
SELECT DISTINCT - tab2.col1 * - col1 + col2 FROM tab2
----
327
3507
988

query I rowsort
SELECT + 69 * + col2 * col2 + + col0 * col1 * + col2 AS col1 FROM tab0
----
1128074
143253
3464

query I rowsort
SELECT DISTINCT - ( col1 ) + col2 AS col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT + col2 * col2 * + col1 AS col1 FROM tab0
----
611884
93654
97

query I rowsort
SELECT DISTINCT - col0 + col2 * col1 * + ( col1 ) AS col2 FROM tab1
----
16144
36501
5636

onlyif mysql # use DIV operator for integer division
query I rowsort label-2652
SELECT ALL - 87 DIV col1 FROM tab1
----
-3
-6
-8

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL - 87 / col1 FROM tab1
----
-3
-6
-8

query I rowsort
SELECT ALL 24 * col0 + - col1 FROM tab0 AS cor0
----
2045
490
743

query I rowsort
SELECT DISTINCT col0 * + cor0.col1 * + col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT col0 * col0 + - cor0.col0 * col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2656
SELECT DISTINCT - 5 DIV + col2 + + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
-5
0
1

skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT - 5 / + col2 + + col2 / col0 AS col1 FROM tab0 AS cor0
----
-5
0
1

query I rowsort
SELECT DISTINCT + 27 * - col1 + col0 AS col1 FROM tab1 AS cor0
----
-206
-271
-699

query I rowsort
SELECT - col1 * + cor0.col1 * - col2 + - cor0.col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
25730
85904
9639

onlyif mysql # use DIV operator for integer division
query I rowsort label-2659
SELECT DISTINCT tab1.col1 DIV - 42 FROM tab1, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT tab1.col1 / - 42 FROM tab1, tab1 AS cor0
----
0

query I rowsort
SELECT - col1 * ( col1 ) * cor0.col0 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT + col0 * 68 AS col2 FROM tab2 AS cor0
----
476
5304
5372

onlyif mysql # use DIV operator for integer division
query I rowsort label-2662
SELECT DISTINCT col2 DIV - 83 AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT col2 / - 83 AS col2 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT - col0 + - 18 AS col0 FROM tab2
----
-25
-96
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2664
SELECT ALL col0 + col2 DIV + col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL col0 + col2 / + col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + col0 * - col1 * + 0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2666
SELECT ALL ( 15 ) / - col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL ( 15 ) / - 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-2667
SELECT + CAST( col1 AS SIGNED ) * + col1 + cor0.col2 FROM tab0 AS cor0
----
7429
8363
9410

skipif mysql # not compatible
query I rowsort label-2667
SELECT + CAST ( col1 AS INTEGER ) * + col1 + cor0.col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT ALL - + ( - col0 ) * + col1 * - col1 + 46 AS col2 FROM tab0 AS cor0
----
-177458
-329269
-736963

query I rowsort
SELECT DISTINCT + 52 - col1 * cor0.col2 AS col2 FROM tab2 cor0
----
-1482
-594
-785

query I rowsort
SELECT - + 1 - + 99 AS col0 FROM tab0 cor0
----
-100
-100
-100

query I rowsort
SELECT ALL + col1 + + 15 + + col0 AS col0 FROM tab1 AS cor0
----
108
44
89

query I rowsort
SELECT ALL ( ( col1 ) ) + + col2 * col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL 38 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT + col2 + col1 * col1 + 55 FROM tab0 AS cor0
----
7484
8418
9465

query I rowsort
SELECT col0 * - cor0.col2 * col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col2 FROM tab1, tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT ( col0 ) + cor0.col1 * 52 FROM tab0 AS cor0
----
4496
4821
5079

query I rowsort
SELECT col0 + - 41 FROM tab1 AS cor0
----
-38
23
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-2679
SELECT + col2 DIV cor0.col1 - col1 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-2679
SELECT + col2 / cor0.col1 - col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + + ( 4 ) - col1 * col1 FROM tab2 AS cor0
----
-285
-3477
-957

query I rowsort
SELECT - + col0 * - ( - col1 ) * ( + col0 ) FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT DISTINCT ( col2 ) * + col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT - col1 + - 13 * + col0 FROM tab1 AS cor0
----
-1053
-65
-842

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0 CROSS JOIN tab0, tab0 cor1
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2685
SELECT - col2 DIV 48 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2685
SELECT - col2 / 48 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - cor0.col1 AS REAL ) + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 * + cor0.col0 col0 FROM tab2 AS cor0
----
231
2574
2607

onlyif mysql # use DIV operator for integer division
query I rowsort label-2688
SELECT - 2 DIV - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2688
SELECT - 2 / - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 85 * - 43 + + col0 AS col0 FROM tab2 AS cor0
----
-3576
-3577
-3648

query I rowsort
SELECT + col0 * + 42 AS col1 FROM tab1 cor0
----
126
2688
3360

query I rowsort
SELECT col1 * col0 + + 67 * col0 AS col1 FROM tab0 AS cor0
----
14062
3672
5740

onlyif mysql # use DIV operator for integer division
query I rowsort label-2692
SELECT - col0 DIV 65 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2692
SELECT - col0 / 65 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT + 24 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT DISTINCT - + col2 * 63 FROM tab2 AS cor0
----
-1638
-1701
-2394

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 * + 69 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 0d6ba9145cddc5144113b84fc8f842a4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2696
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) * 80 * col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2696
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) * 80 * col2 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2697
SELECT + - 92 DIV 82 AS col2 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2697
SELECT + - 92 / 82 AS col2 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2698
SELECT DISTINCT - col2 DIV ( - 36 ) FROM tab1 cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT - col2 / ( - 36 ) FROM tab1 cor0
----
1
2

query I rowsort
SELECT ALL cor1.col0 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT ALL + col2 + ( col2 ) * - col0 * col2 AS col0 FROM tab1 AS cor0
----
-207879
-737184
-8694

query I rowsort
SELECT - 13 FROM tab0, tab0 cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2702
SELECT DISTINCT + tab0.col2 DIV col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT + tab0.col2 / col1 FROM tab0
----
0

query I rowsort
SELECT - + col2 + - cor0.col0 + - 30 AS col2 FROM tab1 AS cor0
----
-151
-206
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + col1 col1 FROM tab1 cor0
----
20
26
52

query I rowsort
SELECT DISTINCT + ( 70 ) AS col1 FROM tab2
----
70

query I rowsort
SELECT - 59 + - col0 * ( 94 ) FROM tab1 AS cor0
----
-341
-6075
-7579

query I rowsort
SELECT ALL + 72 * col2 AS col0 FROM tab2
----
1872
1944
2736

query I rowsort
SELECT ALL + col0 + cor0.col0 * + col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT + col0 * col0 + + col0 + - col1 FROM tab0 AS cor0
----
1163
514
7919

query I rowsort
SELECT ALL col1 * - 43 FROM tab1 AS cor0
----
-1118
-430
-559

query I rowsort
SELECT DISTINCT + 38 * col0 AS col0 FROM tab2
----
266
2964
3002

query I rowsort
SELECT ALL col0 + 27 AS col1 FROM tab1
----
107
30
91

query I rowsort
SELECT - col2 * 17 - col1 * + col2 FROM tab0 cor0
----
-114
-3399
-8856

query I rowsort
SELECT DISTINCT - 54 * + col1 FROM tab0
----
-4644
-4914
-5238

onlyif mysql # use DIV operator for integer division
query I rowsort label-2715
SELECT DISTINCT + col1 DIV tab1.col1 - + col1 AS col1 FROM tab1
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-2715
SELECT DISTINCT + col1 / tab1.col1 - + col1 AS col1 FROM tab1
----
-12
-25
-9

query I rowsort
SELECT - cor0.col1 + + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT col2 * + col1 - col2 AS col1 FROM tab0 cor0
----
2805
7380
96

query I rowsort
SELECT - 29 * - col0 FROM tab0 AS cor0
----
1015
2581
696

query I rowsort
SELECT + + ( 18 ) + col0 AS col2 FROM tab0 AS cor0
----
107
42
53

query I rowsort
SELECT ALL ( col0 ) - col2 * col2 FROM tab2
----
-1365
-598
-722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col0 col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2722
SELECT + col0 + col2 DIV - col2 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-2722
SELECT + col0 + col2 / - col2 FROM tab1
----
2
63
79

query I rowsort
SELECT ALL - + col1 * col0 + + col0 + + col1 * cor0.col0 AS col2 FROM tab2 cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2724
SELECT ALL 50 + - cor0.col2 DIV + 74 AS col2 FROM tab0 cor0
----
49
50
50

skipif mysql # not compatible
query I rowsort label-2724
SELECT ALL 50 + - cor0.col2 / + 74 AS col2 FROM tab0 cor0
----
49
50
50

query I rowsort
SELECT DISTINCT - cor0.col0 + + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT col0 * col2 - - cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
2704
4446
918

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2728
SELECT ALL + 87 * col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL + 87 * col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2729
SELECT + col1 DIV + col0 + col1 * + col1 * col2 FROM tab2 AS cor0
----
10982
25951
90506

skipif mysql # not compatible
query I rowsort label-2729
SELECT + col1 / + col0 + col1 * + col1 * col2 FROM tab2 AS cor0
----
10982
25951
90506

query I rowsort
SELECT DISTINCT 92 * + col0 FROM tab2 AS cor0
----
644
7176
7268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 * - col2 + 81 col1 FROM tab2 AS cor0
----
114157
5184
52809

query I rowsort
SELECT DISTINCT - 96 * col2 AS col2 FROM tab0 AS cor0
----
-3168
-7872
-96

query I rowsort
SELECT + col1 * - col2 - + col0 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-2262
1128
459

onlyif mysql # use DIV operator for integer division
query I rowsort label-2734
SELECT ALL ( col2 ) * - ( - col1 ) + col0 DIV - ( + col0 ) FROM tab0 AS cor0
----
2837
7461
96

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL ( col2 ) * - ( - col1 ) + col0 / - ( + col0 ) FROM tab0 AS cor0
----
2837
7461
96

query I rowsort
SELECT - col1 * col1 * - 27 - 71 FROM tab0 AS cor0
----
199621
223516
253972

query I rowsort
SELECT DISTINCT - - 24 + col2 * ( 43 ) * col1 AS col0 FROM tab2 cor0
----
27802
36015
65986

onlyif mysql # use DIV operator for integer division
query I rowsort label-2737
SELECT ALL + col0 DIV - 21 FROM tab2
----
-3
-3
0

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL + col0 / - 21 FROM tab2
----
-3
-3
0

query I rowsort
SELECT - cor0.col1 * - 47 + col1 AS col2 FROM tab1 AS cor0
----
1248
480
624

query I rowsort
SELECT DISTINCT + + col1 + + col1 * + col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT cor0.col0 * + cor0.col2 * col1 FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT ALL + 46 + col0 * col0 AS col0 FROM tab1 AS cor0
----
4142
55
6446

query I rowsort
SELECT ALL + ( 24 ) + cor0.col0 * col1 AS col0 FROM tab2 cor0
----
1367
241
4626

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 60 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # use DIV operator for integer division
query I rowsort label-2744
SELECT DISTINCT - cor0.col0 DIV cor0.col0 FROM tab1, tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT - cor0.col0 / cor0.col0 FROM tab1, tab1 cor0
----
-1

query I rowsort
SELECT DISTINCT + 85 + - ( col0 ) + + cor0.col2 FROM tab0 AS cor0
----
51
78
94

query I rowsort
SELECT - ( 34 ) * col0 AS col0 FROM tab2 AS cor0
----
-238
-2652
-2686

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2747
SELECT + col0 * CAST( NULL AS SIGNED ) * 81 + col2 - + ( + col1 ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2747
SELECT + col0 * CAST ( NULL AS INTEGER ) * 81 + col2 - + ( + col1 ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2748
SELECT DISTINCT - + col0 + col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
-25
-36
-90

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT - + col0 + col0 / - col0 AS col2 FROM tab0 AS cor0
----
-25
-36
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - col2 * + col0 * cor0.col0 col1 FROM tab1 AS cor0
----
-233415
-432
-614304

onlyif mysql # use DIV operator for integer division
query I rowsort label-2750
SELECT ALL - col1 + ( - col2 ) DIV + col1 FROM tab2 AS cor0
----
-19
-31
-59

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL - col1 + ( - col2 ) / + col1 FROM tab2 AS cor0
----
-19
-31
-59

query I rowsort
SELECT DISTINCT + col1 * - col0 + + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + cor0.col0 - - col2 * 73 AS col2 FROM tab2 AS cor0
----
1976
1978
2853

query I rowsort
SELECT DISTINCT col0 * - col2 * + col2 AS col0 FROM tab0 cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL ( - 33 ) AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to bbc05afe7eb6fed16e9d75f7f74d1948

query I rowsort
SELECT ALL - col1 + - col2 * + col0 AS col1 FROM tab1 cor0
----
-188
-3658
-7693

query I rowsort
SELECT cor0.col2 * - ( + 18 ) - - col2 AS col0 FROM tab1 AS cor0
----
-1632
-918
-969

query I rowsort
SELECT ALL col2 * col2 + - col2 * + col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT cor1.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
10
13
26

query I rowsort
SELECT - col2 + + tab2.col1 * col0 FROM tab2
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - cor0.col0 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - cor0.col0 * - cor0.col2 * + col1 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-2762
SELECT tab1.col2 + - ( tab1.col2 ) DIV cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to e4fdcc6eb75b1e0a577dcd96062c2519

skipif mysql # not compatible
query I rowsort label-2762
SELECT tab1.col2 + - ( tab1.col2 ) / cor0.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to e4fdcc6eb75b1e0a577dcd96062c2519

query I rowsort
SELECT ALL + col2 * cor0.col0 + 22 FROM tab0 AS cor0
----
57
7320
814

query I rowsort
SELECT ALL + 93 + col0 FROM tab1 AS cor0
----
157
173
96

query I rowsort
SELECT DISTINCT - ( col0 ) * + cor0.col1 + 93 AS col0 FROM tab0 AS cor0
----
-1971
-3302
-8006

query I rowsort
SELECT DISTINCT 92 * + cor0.col2 FROM tab2 cor0
----
2392
2484
3496

query I rowsort
SELECT ALL - 21 * col0 + ( + cor0.col0 + + col0 * + 7 ) AS col0 FROM tab1 AS cor0
----
-1040
-39
-832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 26 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 11 + - cor0.col2 col1 FROM tab0 cor0
----
-22
-71
10

query I rowsort
SELECT ALL - col2 + col0 * 3 * - 14 AS col1 FROM tab0 AS cor0
----
-1041
-1471
-3820

onlyif mysql # use DIV operator for integer division
query I rowsort label-2771
SELECT ALL col2 * col1 DIV col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2771
SELECT ALL col2 * col1 / col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT 20 * - col1 + col0 FROM tab2 cor0
----
-1102
-261
-613

onlyif mysql # use DIV operator for integer division
query I rowsort label-2773
SELECT DISTINCT + col1 * - col1 DIV + col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-2773
SELECT DISTINCT + col1 * - col1 / + col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + 26 + col2 FROM tab0
----
108
27
59

query I rowsort
SELECT 65 * + cor0.col2 + + col1 FROM tab2 AS cor0
----
1749
1786
2487

query I rowsort
SELECT DISTINCT - + cor0.col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + 60 + ( col1 ) + ( + col2 ) FROM tab0 AS cor0
----
158
179
233

query I rowsort
SELECT ALL ( - col1 ) + cor0.col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - ( cor0.col1 ) ) FROM tab2 AS cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) + col2 * col2 col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT - 82 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT - + ( - 69 ) AS col0 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT - 2 - 62 FROM tab2 AS cor0
----
-64
-64
-64

query I rowsort
SELECT - - 87 + + col2 * + col0 FROM tab1 AS cor0
----
249
3735
7767

query I rowsort
SELECT ALL + + 83 + - ( col2 * - 45 ) AS col2 FROM tab0 cor0
----
128
1568
3773

query I rowsort
SELECT ALL ( + col2 ) + + col0 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT cor0.col1 * 47 FROM tab2, tab2 cor0, tab2 AS cor1
----
1457
2773
799

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2788
SELECT + + col1 + col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2788
SELECT + + col1 + col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 - 84 AS col0 FROM tab1
----
-148
-164
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2790
SELECT CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2790
SELECT CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2791
SELECT + cor0.col2 + + col2 + - CAST( NULL AS SIGNED ) / col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2791
SELECT + cor0.col2 + + col2 + - CAST ( NULL AS INTEGER ) / col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * col2 + col1 + + col1 AS col1 FROM tab2 cor0
----
2146
251
3036

onlyif mysql # use DIV operator for integer division
query I rowsort label-2793
SELECT + 82 DIV + 23 + col1 AS col0 FROM tab1
----
13
16
29

skipif mysql # not compatible
query I rowsort label-2793
SELECT + 82 / + 23 + col1 AS col0 FROM tab1
----
13
16
29

query I rowsort
SELECT DISTINCT + 56 * tab1.col0 + ( + 9 ) FROM tab1, tab2 cor0
----
177
3593
4489

onlyif mysql # use DIV operator for integer division
query I rowsort label-2795
SELECT ALL - col2 DIV - ( col0 ) col1 FROM tab1
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL - col2 / - ( col0 ) col1 FROM tab1
----
0
1
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2796
SELECT CAST( NULL AS SIGNED ) * + 71 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2796
SELECT CAST ( NULL AS INTEGER ) * + 71 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - col2 * + col1 / - col0 + + col2 * + col2 )
----

query I rowsort
SELECT tab2.col2 * tab2.col1 AS col0 FROM tab2
----
1534
646
837

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( + col0 + - col0 - + tab1.col2 )
----

query I rowsort
SELECT DISTINCT tab0.col1 AS col2 FROM tab0 WHERE col0 - - col1 NOT IN ( - col1 * tab0.col0 * col0 )
----
86
91
97

query I rowsort
SELECT col1 * col0 * - col2 + - col0 + tab1.col0 * - col2 * col0 AS col0 FROM tab1
----
-270016
-4701
-714320

query I rowsort
SELECT col2 * - col2 * - col0 AS col2 FROM tab1
----
207936
737280
8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-2803
SELECT DISTINCT - col2 DIV col0 AS col1 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT - col2 / col0 AS col1 FROM tab0
----
-1
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2804
SELECT DISTINCT + tab1.col2 DIV col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2804
SELECT DISTINCT + tab1.col2 / col2 FROM tab1
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < - col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2806
SELECT col1 * + tab2.col2 - col0 * tab2.col1 DIV + col0 AS col2 FROM tab2
----
1475
629
806

skipif mysql # not compatible
query I rowsort label-2806
SELECT col1 * + tab2.col2 - col0 * tab2.col1 / + col0 AS col2 FROM tab2
----
1475
629
806

query I rowsort
SELECT col0 - + tab0.col2 * col1 FROM tab0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * tab1.col0 col1 FROM tab1
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 * col0 + - col0 col1 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT + col2 * col2 * - col0 AS col0 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT tab1.col1 * + tab1.col1 * + col2 FROM tab1
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-2812
SELECT ALL + col2 DIV + col0 AS col2 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL + col2 / + col0 AS col2 FROM tab2
----
0
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2813
SELECT - col1 DIV + col1 + col0 * + col1 FROM tab0
----
2063
3394
8098

skipif mysql # not compatible
query I rowsort label-2813
SELECT - col1 / + col1 + col0 * + col1 FROM tab0
----
2063
3394
8098

query I rowsort
SELECT DISTINCT col0 + col2 * ( col2 + - col0 ) FROM tab1 cor0
----
-335
1616
2757

query I rowsort
SELECT ALL - col1 + col0 - 72 AS col2 FROM tab0 AS cor0
----
-134
-134
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-2816
SELECT - cor0.col1 DIV - col1 + col1 AS col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2816
SELECT - cor0.col1 / - col1 + col1 AS col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT DISTINCT - col2 * + col1 - col0 AS col1 FROM tab2
----
-1612
-725
-844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * col1 - col2 * col1 * + col2 col0 FROM tab0
----
-604422
-90816
0

query I rowsort
SELECT DISTINCT + 17 * col0 - - col1 AS col1 FROM tab1 AS cor0
----
1098
1373
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 96 * + col2 col0 FROM tab1 AS cor0
----
5184
5472
9216

query I rowsort
SELECT ALL + col2 - col2 AS col0 FROM tab0 cor0 WHERE NOT col2 * - col0 + col2 + col0 <> + col0
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 / - cor0.col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( cor0.col1 + + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2824
SELECT DISTINCT tab0.col2 DIV tab0.col2 col1 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2824
SELECT DISTINCT tab0.col2 / tab0.col2 col1 FROM tab0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 / + col0 )
----

query I rowsort
SELECT ALL - col0 * col0 + + tab2.col0 AS col0 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT ALL + col1 - + col2 * col1 AS col0 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT - tab2.col0 AS col0 FROM tab2 WHERE col2 NOT IN ( - col1 )
----
-7
-78
-79

query I rowsort
SELECT col0 * col0 AS col0 FROM tab0 WHERE NOT - col0 * col2 IN ( + tab0.col1 + col0 )
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col1 col2 FROM tab0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2831
SELECT tab1.col1 + col2 DIV col2 + col0 FROM tab1
----
30
75
94

skipif mysql # not compatible
query I rowsort label-2831
SELECT tab1.col1 + col2 / col2 + col0 FROM tab1
----
30
75
94

query I rowsort
SELECT + 32 + cor0.col0 * col2 FROM tab2 AS cor0
----
2060
221
3034

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2833
SELECT DISTINCT - CAST( - 59 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
1534
590
767

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT - CAST ( - 59 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
1534
590
767

query I rowsort
SELECT DISTINCT + 0 + + col2 * col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - 95 AS col0 FROM tab2 cor0
----
-95

query I rowsort
SELECT - - ( col1 ) * + col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT col0 + - 97 * - col2 FROM tab2 AS cor0
----
2600
2626
3765

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2838
SELECT ALL - - CAST( NULL AS SIGNED ) * col1 + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL - - CAST ( NULL AS INTEGER ) * col1 + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - cor0.col1 ) * - col1 FROM tab1 AS cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + col1 + - col1 col0 FROM tab0 AS cor0
----
0
2752
7371

onlyif mysql # use DIV operator for integer division
query I rowsort label-2841
SELECT DISTINCT 58 - + col0 DIV col2 AS col1 FROM tab1
----
57
58

skipif mysql # not compatible
query I rowsort label-2841
SELECT DISTINCT 58 - + col0 / col2 AS col1 FROM tab1
----
57
58

query I rowsort
SELECT DISTINCT - - col0 * col2 AS col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL ( - 31 ) AS col0 FROM tab2
----
-31
-31
-31

onlyif mysql # use DIV operator for integer division
query I rowsort label-2844
SELECT cor0.col1 DIV + 97 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2844
SELECT cor0.col1 / + 97 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-2845
SELECT DISTINCT - col1 + - ( - col0 ) DIV col2 AS col2 FROM tab1 cor0
----
-13
-26
-9

skipif mysql # not compatible
query I rowsort label-2845
SELECT DISTINCT - col1 + - ( - col0 ) / col2 AS col2 FROM tab1 cor0
----
-13
-26
-9

query I rowsort
SELECT ALL + cor0.col2 - 65 AS col0 FROM tab1 AS cor0
----
-11
-8
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-2847
SELECT ALL - cor0.col1 DIV col1 + col1 AS col1 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL - cor0.col1 / col1 + col1 AS col1 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT DISTINCT + col2 * - 98 FROM tab2 AS cor0
----
-2548
-2646
-3724

query I rowsort
SELECT 22 * + cor0.col0 + 95 FROM tab0 AS cor0
----
2053
623
865

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - 49 + - col1 col1 FROM tab2 AS cor0
----
-1333
-1354
-1879

onlyif mysql # use DIV operator for integer division
query I rowsort label-2851
SELECT ALL + col0 DIV - col2 - - cor0.col1 FROM tab1 AS cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-2851
SELECT ALL + col0 / - col2 - - cor0.col1 FROM tab1 AS cor0
----
13
26
9

query I rowsort
SELECT DISTINCT col1 + col2 * col1 * - col1 AS col2 FROM tab1 cor0
----
-16211
-36478
-5690

query I rowsort
SELECT DISTINCT + col1 * cor0.col0 + - 23 * - col2 FROM tab2 AS cor0
----
2217
5200
838

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + - 50 * 56 col2 FROM tab0 AS cor0
----
-2711
-2765
-2776

query I rowsort
SELECT col0 + - cor0.col0 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col2 + 52 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1298
-463
-580

query I rowsort
SELECT + cor0.col1 * col0 + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT col2 * - 30 * col2 FROM tab2
----
-20280
-21870
-43320

query I rowsort
SELECT + 28 FROM tab1, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2860
SELECT ALL col2 DIV 23 AS col2 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL col2 / 23 AS col2 FROM tab0
----
0
1
3

query I rowsort
SELECT - 34 * + 53 FROM tab1 AS cor0
----
-1802
-1802
-1802

query I rowsort
SELECT ALL - 43 AS col2 FROM tab0 AS cor0
----
-43
-43
-43

query I rowsort
SELECT - 16 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT ALL - cor0.col1 * - col0 * - col2 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + + 72 * col0 FROM tab2 cor0
----
504
5616
5688

query I rowsort
SELECT ALL - cor0.col1 * - cor0.col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT 92 * - col2 FROM tab1 AS cor0
----
-4968
-5244
-8832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col2 * + cor0.col2 col0 FROM tab0 AS cor0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-2869
SELECT ALL + 25 + - col1 DIV + col0 AS col1 FROM tab1 AS cor0
----
17
25
25

skipif mysql # not compatible
query I rowsort label-2869
SELECT ALL + 25 + - col1 / + col0 AS col1 FROM tab1 AS cor0
----
17
25
25

query I rowsort
SELECT - 72 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) * col0 col2 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT - - col1 + col1 * col2 AS col1 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT ALL - col1 * - col2 + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT + - col1 + ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - - cor0.col1 * - ( + cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + cor0.col2 + + col1 * + cor0.col2 col2 FROM tab0 AS cor0
----
1
2785
7453

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + 37 + col0 col0 FROM tab1 cor0
----
-122
-3547
-7563

query I rowsort
SELECT - col1 + cor0.col0 + - col2 AS col2 FROM tab1 AS cor0
----
-29
-3
-77

query I rowsort
SELECT ALL col1 + 16 AS col2 FROM tab1 AS cor0
----
26
29
42

query I rowsort
SELECT DISTINCT col2 * 15 + ( + col2 ) + col1 AS col1 FROM tab2 AS cor0
----
463
475
625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col2 + - 72 col1 FROM tab1 AS cor0
----
-1320
-1476
-642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + col0 + 20 col2 FROM tab0 cor0
----
-1205
-556
-7901

query I rowsort
SELECT ALL + col1 + col0 * col1 AS col2 FROM tab2
----
1360
248
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2884
SELECT ALL cor0.col1 * CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL cor0.col1 * CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2885
SELECT + col1 * + cor0.col1 + + col1 DIV col1 + col1 AS col2 FROM tab0 AS cor0
----
7483
8373
9507

skipif mysql # not compatible
query I rowsort label-2885
SELECT + col1 * + cor0.col1 + + col1 / col1 + col1 AS col2 FROM tab0 AS cor0
----
7483
8373
9507

query I rowsort
SELECT ALL - col1 * - 47 AS col0 FROM tab0
----
4042
4277
4559

query I rowsort
SELECT DISTINCT col0 * 59 + col1 FROM tab2 AS cor0
----
444
4661
4678

query I rowsort
SELECT col2 * tab2.col1 * col1 AS col2 FROM tab2
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - col1 * col2 col2 FROM tab2 cor0
----
-1593
-663
-868

query I rowsort
SELECT col2 * - col2 + - col1 AS col2 FROM tab1 AS cor0
----
-2942
-3259
-9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + col1 col2 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-2892
SELECT DISTINCT col0 * + col0 DIV + tab0.col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2892
SELECT DISTINCT col0 * + col0 / + tab0.col0 FROM tab0
----
24
35
89

query I rowsort
SELECT col2 + tab2.col1 * + col0 FROM tab2
----
1381
244
4628

query I rowsort
SELECT col2 + col2 * + tab2.col2 FROM tab2
----
1482
702
756

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + tab1.col2 ) >= ( NULL )
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT - col1 BETWEEN + col1 * + col1 AND - col0
----
24
35
89

query I rowsort
SELECT 71 + col2 FROM tab0
----
104
153
72

query I rowsort
SELECT ALL + col1 - + cor0.col0 * + col2 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT - 53 * + col1 AS col1 FROM tab2 AS cor0
----
-1643
-3127
-901

onlyif mysql # use DIV operator for integer division
query I rowsort label-2900
SELECT DISTINCT + col2 DIV col0 + col2 AS col2 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT + col2 / col0 + col2 AS col2 FROM tab1 AS cor0
----
57
72
97

query I rowsort
SELECT DISTINCT col0 + col0 * - col1 + cor0.col2 FROM tab2 AS cor0
----
-1226
-183
-4498

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + cor0.col1 + col1 - col0 * + col2 col1 FROM tab1 AS cor0
----
-3738
-7836
-812

query I rowsort
SELECT + col0 * - col1 + - col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT col1 * cor0.col1 - col0 AS col2 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT + col2 * + col0 + col2 * col0 AS col2 FROM tab1 AS cor0
----
15360
324
7296

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab0, tab2 cor0
----
17
31
59

query I rowsort
SELECT + - 18 * cor0.col2 FROM tab2 AS cor0
----
-468
-486
-684

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2908
SELECT - col0 * col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2908
SELECT - col0 * col0 * CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + ( col1 ) * col1 + ( col2 ) FROM tab2 AS cor0
----
-10944
-25920
-90480

query I rowsort
SELECT DISTINCT - col0 * + ( 40 ) - - col2 * 58 FROM tab0
----
-1342
1196
954

query I rowsort
SELECT ALL + tab1.col0 - - 81 * col1 FROM tab1
----
1133
2109
874

query I rowsort
SELECT ALL col2 - + col2 * - tab1.col0 AS col1 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL 59 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # use DIV operator for integer division
query I rowsort label-2914
SELECT DISTINCT + col2 DIV + col0 + 36 FROM tab0 AS cor0
----
36
37

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT + col2 / + col0 + 36 FROM tab0 AS cor0
----
36
37

query I rowsort
SELECT ALL + col1 * - col2 + - col1 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL cor0.col0 - ( + 34 ) * col0 AS col0 FROM tab1 cor0
----
-2112
-2640
-99

query I rowsort
SELECT ALL - col0 * 32 + + 69 FROM tab2 AS cor0
----
-155
-2427
-2459

query I rowsort
SELECT DISTINCT 72 AS col0 FROM tab1, tab2 AS cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + cor0.col0 col1 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT + ( 82 ) AS col0 FROM tab1
----
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2921
SELECT CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2921
SELECT CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 FROM tab0, tab1, tab2 AS cor0, tab2 cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT DISTINCT + + cor0.col2 AS col0 FROM tab1, tab0, tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL ( - col2 ) * - tab2.col1 * 21 FROM tab2
----
13566
17577
32214

query I rowsort
SELECT - col1 + + cor0.col1 * + col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT 4 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 * col0 * col0 col2 FROM tab0
----
28800
396050
61250

query I rowsort
SELECT ALL col1 + col1 - col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - - col0 * cor0.col0 + 55 AS col0 FROM tab2 AS cor0
----
104
6139
6296

query I rowsort
SELECT - cor0.col0 + - col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL + col2 - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT - - 59 FROM tab1 AS cor0
----
59

query I rowsort
SELECT + 26 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT + - col0 * + cor0.col1 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - 17 * - col1 * + 42 AS col1 FROM tab0
----
61404
64974
69258

query I rowsort
SELECT - 88 + col2 * 69 AS col1 FROM tab2 AS cor0
----
1706
1775
2534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - cor0.col0 col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - col1 * ( 75 * col2 ) FROM tab1 AS cor0
----
-105300
-42750
-93600

query I rowsort
SELECT - col1 + col0 * + ( + col2 ) AS col0 FROM tab0
----
-62
706
7207

query I rowsort
SELECT 10 * + col2 + col0 FROM tab0
----
354
45
909

onlyif mysql # use DIV operator for integer division
query I rowsort label-2942
SELECT col2 * col1 DIV CAST( col1 AS SIGNED ) + col1 AS col0 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-2942
SELECT col2 * col1 / CAST ( col1 AS INTEGER ) + col1 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL + - 13 * - col0 AS col1 FROM tab1 AS cor0
----
1040
39
832

onlyif mysql # use DIV operator for integer division
query I rowsort label-2944
SELECT DISTINCT + ( - cor0.col1 ) + cor0.col2 DIV - ( + 66 ) FROM tab1 AS cor0
----
-10
-14
-26

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT + ( - cor0.col1 ) + cor0.col2 / - ( + 66 ) FROM tab1 AS cor0
----
-10
-14
-26

query I rowsort
SELECT DISTINCT col1 + 20 AS col0 FROM tab2 AS cor0
----
37
51
79

query I rowsort
SELECT - col0 + ( + col2 * + col2 ) + - col2 FROM tab1 cor0
----
2859
3128
9040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 - col2 col2 FROM tab1 AS cor0
----
-10
29
32

query I rowsort
SELECT DISTINCT + - col0 - - 75 * - col1 * + col2 AS col1 FROM tab1 AS cor0
----
-105303
-42814
-93680

query I rowsort
SELECT ( 21 ) * col1 * + col0 + + 9 FROM tab0 AS cor0
----
170088
43353
71304

query I rowsort
SELECT ALL - col1 + - ( col0 + col2 ) AS col2 FROM tab1 AS cor0
----
-131
-189
-83

query I rowsort
SELECT DISTINCT 7 + cor0.col0 FROM tab2 AS cor0
----
14
85
86

query I rowsort
SELECT - + col2 + ( col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 - 96 FROM tab2
----
-17
-18
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2955
SELECT DISTINCT tab2.col1 DIV - 73 col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT tab2.col1 / - 73 col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
0

query I rowsort
SELECT 55 - tab0.col2 * - col0 FROM tab0
----
7353
847
90

query I rowsort
SELECT - + 60 * - 6 FROM tab2 AS cor0
----
360
360
360

onlyif mysql # use DIV operator for integer division
query I rowsort label-2958
SELECT ALL + col0 * col2 DIV col1 + + 87 + 99 AS col2 FROM tab2
----
192
220
362

skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL + col0 * col2 / col1 + + 87 + 99 AS col2 FROM tab2
----
192
220
362

query I rowsort
SELECT 80 AS col1 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

query I rowsort
SELECT col2 + 63 AS col0 FROM tab0
----
145
64
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2961
SELECT + col1 DIV - col0 + 10 AS col1 FROM tab0 cor0
----
7
8
9

skipif mysql # not compatible
query I rowsort label-2961
SELECT + col1 / - col0 + 10 AS col1 FROM tab0 cor0
----
7
8
9

query I rowsort
SELECT ALL - col0 * + ( col2 ) AS col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - col2 + 60 FROM tab1 AS cor0
----
-36
3
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 89 col2 FROM tab0 AS cor0
----
-89
-89
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2965
SELECT DISTINCT - - 6 DIV 8 + + col2 + col2 AS col2 FROM tab2 AS cor0
----
52
54
76

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT - - 6 / 8 + + col2 + col2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - - ( - cor0.col0 ) + col1 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT ALL - cor0.col0 * col0 + + col2 AS col0 FROM tab1 AS cor0
----
-4039
-6304
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 + - col2 * - col2 col1 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2969
SELECT + CAST( col2 AS SIGNED ) * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-2969
SELECT + CAST ( col2 AS INTEGER ) * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + cor0.col2 col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL - + col1 * 46 + col2 FROM tab2 AS cor0
----
-1399
-2688
-744

query I rowsort
SELECT - col1 + - 51 FROM tab2 AS cor0
----
-110
-68
-82

query I rowsort
SELECT col2 * ( col1 ) + + 97 FROM tab1 AS cor0
----
1345
1501
667

query I rowsort
SELECT - ( 19 ) FROM tab1 AS cor0
----
-19
-19
-19

query I rowsort
SELECT col0 * + cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2976
SELECT + 42 * + col1 + CAST( NULL AS SIGNED ) / cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2976
SELECT + 42 * + col1 + CAST ( NULL AS INTEGER ) / cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2977
SELECT DISTINCT - 11 DIV col0 AS col1 FROM tab1 AS cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT - 11 / col0 AS col1 FROM tab1 AS cor0
----
-3
0

query I rowsort
SELECT + col2 * - col0 - cor0.col2 * col0 * col1 AS col1 FROM tab2 AS cor0
----
-121680
-54036
-6048

query I rowsort
SELECT col0 * - cor0.col0 + col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT ALL col1 + col1 * - col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + - 42 + col2 * cor0.col1 - col2 FROM tab0 AS cor0
----
2763
54
7338

query I rowsort
SELECT + + cor0.col2 + col2 AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - 52 * - col2 FROM tab0 AS cor0
----
1716
4264
52

query I rowsort
SELECT ALL - cor0.col0 * col1 * 25 AS col2 FROM tab2 AS cor0
----
-115050
-33575
-5425

query I rowsort
SELECT 32 - cor0.col2 FROM tab2 AS cor0
----
-6
5
6

query I rowsort
SELECT ALL + 3 FROM tab1, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT - col2 * - 83 AS col1 FROM tab0 AS cor0
----
2739
6806
83

query I rowsort
SELECT DISTINCT + + cor0.col2 * - 32 AS col2 FROM tab2 AS cor0
----
-1216
-832
-864

query I rowsort
SELECT + ( + col0 * 47 ) + - col0 FROM tab0
----
1104
1610
4094

query I rowsort
SELECT DISTINCT - col1 * col2 + + 12 FROM tab0
----
-2826
-7450
-85

query I rowsort
SELECT + col2 * + 34 FROM tab0 AS cor0
----
1122
2788
34

query I rowsort
SELECT DISTINCT - col0 * + 60 + + 99 * + col0 FROM tab2 AS cor0
----
273
3042
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-2993
SELECT + + col1 + cor0.col0 DIV col1 FROM tab2 cor0
----
21
31
60

skipif mysql # not compatible
query I rowsort label-2993
SELECT + + col1 + cor0.col0 / col1 FROM tab2 cor0
----
21
31
60

query I rowsort
SELECT - col1 + + col2 * - 43 AS col0 FROM tab0 AS cor0
----
-140
-1505
-3617

query I rowsort
SELECT ALL - col2 * col0 + col1 * - col0 AS col2 FROM tab0
----
-15397
-2856
-3430

onlyif mysql # use DIV operator for integer division
query I rowsort label-2996
SELECT + col2 DIV - cor0.col0 col0 FROM tab2 AS cor0
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2996
SELECT + col2 / - cor0.col0 col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT - 1 FROM tab0, tab1 cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT - col1 * col2 * col0 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-2999
SELECT col0 + + col2 DIV - col2 col1 FROM tab1 AS cor0
----
2
63
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2999
SELECT col0 + + col2 / - col2 col1 FROM tab1 AS cor0
----
2
63
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3000
SELECT + 45 DIV - col0 col0 FROM tab2
----
-6
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3000
SELECT + 45 / - col0 col0 FROM tab2
----
-6
0
0

query I rowsort
SELECT ( col1 + + col0 ) FROM tab2
----
137
38
96

query I rowsort
SELECT cor0.col2 * + 22 FROM tab1, tab1 cor0
----
9 values hashing to 753d4f7c514b9e015612181ef0349c00

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3003
SELECT ALL col0 / + col0 + - CAST( NULL AS SIGNED ) * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL col0 / + col0 + - CAST ( NULL AS INTEGER ) * col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + - col2 * + col0 AS col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT + 71 * col2 FROM tab1
----
3834
4047
6816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - tab1.col1 + - col0 ) col2 FROM tab1
----
-29
-74
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 col0 FROM tab1, tab0, tab0 cor0
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT DISTINCT - + 44 + col0 FROM tab0 AS cor0
----
-20
-9
45

query I rowsort
SELECT ALL + + 30 * + col1 + - 39 * + col1 AS col0 FROM tab1 AS cor0
----
-117
-234
-90

query I rowsort
SELECT col0 * 14 AS col1 FROM tab0 cor0
----
1246
336
490

query I rowsort
SELECT ALL - 71 + + col0 AS col1 FROM tab0 AS cor0
----
-36
-47
18

query I rowsort
SELECT + + 21 + + col0 FROM tab1 AS cor0
----
101
24
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-3013
SELECT + col1 + ( + cor0.col1 ) * + col1 DIV col1 AS col0 FROM tab2 AS cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-3013
SELECT + col1 + ( + cor0.col1 ) * + col1 / col1 AS col0 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3014
SELECT - 13 + + col0 + col1 DIV col0 AS col1 FROM tab0 AS cor0
----
14
24
77

skipif mysql # not compatible
query I rowsort label-3014
SELECT - 13 + + col0 + col1 / col0 AS col1 FROM tab0 AS cor0
----
14
24
77

query I rowsort
SELECT DISTINCT col2 * ( col2 * col0 ) FROM tab1
----
207936
737280
8748

onlyif mysql # use DIV operator for integer division
query I rowsort label-3016
SELECT ALL + + col0 + 86 DIV col1 FROM tab0 AS cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL + + col0 + 86 / col1 FROM tab0 AS cor0
----
25
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3017
SELECT ALL - CAST( NULL AS SIGNED ) + + col0 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL - CAST ( NULL AS INTEGER ) + + col0 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - col0 * + col2 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL + 46 * + 27 FROM tab1
----
1242
1242
1242

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 73 col1 FROM tab2
----
-511
-5694
-5767

query I rowsort
SELECT ALL - ( col1 ) * + col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - tab1.col1 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3023
SELECT col1 * CAST( NULL AS DECIMAL ) + - 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-3023
SELECT col1 * CAST ( NULL AS REAL ) + - col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col2 + col2 AS col1 FROM tab0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT + 49 - - col0 FROM tab0
----
138
73
84

query I rowsort
SELECT DISTINCT - tab0.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-86
-91
-97

query I rowsort
SELECT DISTINCT col1 * - col1 + 83 + + col2 * + col0 FROM tab1
----
-431
3631
7594

query I rowsort
SELECT col0 * ( col1 * + col2 ) FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL + col1 + - 75 AS col2 FROM tab0
----
11
16
22

query I rowsort
SELECT DISTINCT tab1.col0 + col1 * tab1.col2 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT col1 + + 32 FROM tab1 AS cor0
----
42
45
58

query I rowsort
SELECT + + col2 * 99 FROM tab2 AS cor0
----
2574
2673
3762

query I rowsort
SELECT ALL 62 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT - col0 + col2 * + col1 + col0 FROM tab2 cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3035
SELECT - cor0.col0 * col1 * 1 + - col2 + CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3035
SELECT - cor0.col0 * col1 * 1 + - col2 + CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to ed0ce6de90f51f6f9035da5f66a6f197

query I rowsort
SELECT + cor0.col1 * col2 + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT - + cor0.col2 + - col2 * - col0 AS col2 FROM tab2 AS cor0
----
162
2002
2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-3039
SELECT DISTINCT col1 + + 13 DIV col2 AS col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT col1 + + 13 / col2 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - col0 + 99 * + col0 * + col0 FROM tab0 cor0
----
121240
57000
784090

query I rowsort
SELECT ALL + col2 - 23 FROM tab2 AS cor0
----
15
3
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - 79 col0 FROM tab2 AS cor0
----
-20
-48
-62

query I rowsort
SELECT + 37 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT ALL + - 1 + ( + col0 ) AS col2 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT ALL cor0.col2 * + 15 FROM tab1, tab0 cor0
----
9 values hashing to 928aaf725c32823660515d7f1332f381

onlyif mysql # use DIV operator for integer division
query I rowsort label-3046
SELECT DISTINCT - - 62 DIV - 47 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3046
SELECT DISTINCT - - 62 / - 47 FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + cor0.col2 col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL ( 28 * + col1 ) FROM tab1
----
280
364
728

query I rowsort
SELECT DISTINCT ( 53 ) AS col2 FROM tab0, tab1, tab0 AS cor0
----
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3050
SELECT DISTINCT 22 + ( col1 ) - + CAST( NULL AS DECIMAL ) * col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3050
SELECT DISTINCT 22 + ( col1 ) - + CAST ( NULL AS REAL ) * col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 * + col0 + - col0 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT ( col0 ) * - cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3053
SELECT ALL col0 + + col1 * cor0.col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
126
87
97

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL col0 + + col1 * cor0.col2 / + col0 AS col0 FROM tab2 AS cor0
----
126
87
97

query I rowsort
SELECT DISTINCT 53 + col2 AS col1 FROM tab1 cor0
----
107
110
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 * col0 * col1 col1 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT + - 85 + cor0.col0 * + col1 AS col0 FROM tab2 AS cor0
----
1258
132
4517

query I rowsort
SELECT DISTINCT + - col1 + col1 * + col2 AS col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT - 44 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 9c887509d218271b9365009eba440976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * col0 col0 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3060
SELECT DISTINCT + col0 * + CAST( 25 + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
364
3978
4977

skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT + col0 * + CAST ( 25 + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
364
3978
4977

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3061
SELECT - col2 * CAST( NULL AS DECIMAL ) + - 17 * col1 * + col1 - cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3061
SELECT - col2 * CAST ( NULL AS REAL ) + - 17 * col1 * + col1 - cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3062
SELECT + cor0.col0 * col1 + 5 * + col1 * 18 + - col2 DIV col2 FROM tab1 AS cor0
----
1539
2209
2417

skipif mysql # not compatible
query I rowsort label-3062
SELECT + cor0.col0 * col1 + 5 * + col1 * 18 + - col2 / col2 FROM tab1 AS cor0
----
1539
2209
2417

query I rowsort
SELECT ALL col0 + 71 AS col1 FROM tab0 AS cor0
----
106
160
95

query I rowsort
SELECT ALL + col0 * ( col2 ) + - col1 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT DISTINCT - - col2 * + 0 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 * + 82 FROM tab1 AS cor0
----
1066
2132
820

query I rowsort
SELECT + + col0 - ( 77 ) FROM tab0 cor0
----
-42
-53
12

query I rowsort
SELECT ALL col2 * ( 18 * + cor0.col1 ) AS col0 FROM tab1 AS cor0
----
10260
22464
25272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3069
SELECT - cor0.col2 + + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-3069
SELECT - cor0.col2 + + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - cor0.col0 - col2 * - col2 col1 FROM tab1 AS cor0
----
2859
3128
9040

query I rowsort
SELECT DISTINCT col2 * ( + cor0.col2 ) + col2 * ( 32 ) FROM tab1 AS cor0
----
12288
4644
5073

query I rowsort
SELECT ALL + + cor0.col2 * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL 84 - + tab1.col1 FROM tab1
----
58
71
74

query I rowsort
SELECT DISTINCT col2 * col0 - col2 AS col1 FROM tab0
----
34
7216
759

query I rowsort
SELECT ALL - - col1 + col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT + tab1.col2 * + col2 * + col0 AS col2 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT ALL - 64 - - tab0.col0 AS col1 FROM tab0
----
-29
-40
25

query I rowsort
SELECT + 14 + - cor0.col0 FROM tab2 AS cor0
----
-64
-65
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3080
SELECT 88 * - col2 * col1 + tab0.col0 DIV - 63 AS col2 FROM tab0
----
-249744
-656657
-8536

skipif mysql # not compatible
query I rowsort label-3080
SELECT 88 * - col2 * col1 + tab0.col0 / - 63 AS col2 FROM tab0
----
-249744
-656657
-8536

query I rowsort
SELECT DISTINCT + ( tab1.col0 ) + col0 * - col0 AS col1 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT 94 * + col1 + - col2 AS col0 FROM tab1
----
1126
2390
883

query I rowsort
SELECT cor0.col2 AS col2 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - col2 * - col2 * - col2 AS col0 FROM tab1
----
-157464
-185193
-884736

query I rowsort
SELECT DISTINCT ( col1 ) * - ( - col1 * cor0.col1 ) + - col0 FROM tab0 cor0
----
636032
753482
912638

query I rowsort
SELECT - col2 * + col2 * + ( - tab0.col0 ) AS col1 FROM tab0
----
26136
35
598436

query I rowsort
SELECT - - tab1.col2 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3088
SELECT + CAST( NULL AS DECIMAL ) + + 93 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3088
SELECT + CAST ( NULL AS REAL ) + + 93 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 60 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT DISTINCT col2 * + col1 - + ( col2 ) FROM tab1 AS cor0
----
1152
1350
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 32 col1 FROM tab2 AS cor0
----
224
2496
2528

query I rowsort
SELECT ALL cor0.col0 * 79 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to ae47f7ae16388914102fbcf1be500efe

query I rowsort
SELECT DISTINCT cor0.col1 * - col0 + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-16198
-4128
-6790

query I rowsort
SELECT ALL + 90 - col0 AS col2 FROM tab2 AS cor0
----
11
12
83

query I rowsort
SELECT + + cor0.col0 - col0 * + col1 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-3096
SELECT DISTINCT - col1 + - col0 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT - col1 + - col0 / cor0.col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL 40 * + col2 * + cor0.col2 + col1 FROM tab0 AS cor0
----
137
269051
43646

query I rowsort
SELECT ALL - 82 * - 12 + + col0 AS col1 FROM tab2 AS cor0
----
1062
1063
991

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3099
SELECT + CAST( col1 AS SIGNED ) + col1 * 12 FROM tab1 AS cor0
----
130
169
338

skipif mysql # not compatible
query I rowsort label-3099
SELECT + CAST ( col1 AS INTEGER ) + col1 * 12 FROM tab1 AS cor0
----
130
169
338

query I rowsort
SELECT ALL 18 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3101
SELECT CAST( col2 * + col0 AS SIGNED ) col0 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3101
SELECT CAST ( col2 * + col0 AS INTEGER ) col0 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 col2 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
7

query I rowsort
SELECT - - 77 * col1 AS col2 FROM tab2 AS cor0
----
1309
2387
4543

query I rowsort
SELECT - ( col2 ) + 77 FROM tab2 AS cor0
----
39
50
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - + 24 + + col1 * - 52 AS col0 FROM tab0 AS cor0
----
-4496
-4756
-5068

query I rowsort
SELECT col0 * + cor0.col0 - + col0 FROM tab1 AS cor0
----
4032
6
6320

skipif mysql # not compatible
query I rowsort
SELECT + - col2 * + col1 + CAST ( col1 * + col1 AS REAL ) FROM tab2 AS cor0
----
-357
124
1947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col1 + - col2 col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT + col0 + cor0.col2 * - col0 FROM tab2 AS cor0
----
-182
-1950
-2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + - col1 col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 * - 98 AS col1 FROM tab0
----
-2352
-3430
-8722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3113
SELECT - cor0.col1 * col0 - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3113
SELECT - cor0.col1 * col0 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col2 + + col0 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT + col1 + - col0 * + 32 AS col2 FROM tab0 AS cor0
----
-1023
-2757
-682

query I rowsort
SELECT ALL col2 * - col2 * cor0.col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT col0 * col1 + col0 AS col2 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT - 20 + - 65 AS col2 FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede

query I rowsort
SELECT + col2 * - col2 + - col1 + + cor0.col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - - col2 + - 77 * + col2 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-12420
-280839
-591264

query I rowsort
SELECT - col0 + + 2 AS col1 FROM tab2 AS cor0
----
-5
-76
-77

query I rowsort
SELECT col1 * + col2 + + 74 FROM tab1 AS cor0
----
1322
1478
644

query I rowsort
SELECT + ( - ( - col1 ) ) FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( 34 AS REAL ) + - col2 AS col1 FROM tab0 AS cor0
----
-48
1
33

query I rowsort
SELECT col0 * ( col2 ) AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + col0 * col0 + + col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 * col1 col2 FROM tab0 AS cor0
----
-4472
-4732
-5044

query I rowsort
SELECT - 67 AS col1 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

onlyif mysql # use DIV operator for integer division
query I rowsort label-3129
SELECT ALL - cor0.col2 + col0 DIV + col1 FROM tab1 cor0
----
-51
-54
-90

skipif mysql # not compatible
query I rowsort label-3129
SELECT ALL - cor0.col2 + col0 / + col1 FROM tab1 cor0
----
-51
-54
-90

query I rowsort
SELECT + col0 + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT 39 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-39
-40
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3132
SELECT DISTINCT cor0.col1 + - cor0.col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT cor0.col1 + - cor0.col1 * CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 + col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - col0 * + 24 AS col1 FROM tab0 cor0
----
-2136
-576
-840

query I rowsort
SELECT ALL col0 * tab0.col0 + - col2 FROM tab0
----
1224
543
7839

query I rowsort
SELECT + ( + 89 ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT DISTINCT + 67 * + col1 AS col1 FROM tab2 AS cor0
----
1139
2077
3953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 * col0 col1 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT ALL + 70 + - col2 FROM tab0 AS cor0
----
-12
37
69

query I rowsort
SELECT + col1 + ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + col0 - + 62 * col2 FROM tab2 cor0
----
-1534
-1667
-2277

query I rowsort
SELECT - col2 * 93 + + col1 FROM tab0 AS cor0
----
-2983
-7535
4

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 4c5172baaab682f997bd09d2b5cf0d22

query I rowsort
SELECT ALL + cor0.col2 * 15 FROM tab2 AS cor0
----
390
405
570

query I rowsort
SELECT ALL 79 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3146
SELECT + + CAST( NULL AS DECIMAL ) FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3146
SELECT + + CAST ( NULL AS REAL ) FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3147
SELECT CAST( NULL AS SIGNED ) * - col1 + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3147
SELECT CAST ( NULL AS INTEGER ) * - col1 + col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 26 col0 FROM tab1
----
1664
2080
78

query I rowsort
SELECT 48 * + col0 AS col1 FROM tab2
----
336
3744
3792

query I rowsort
SELECT + col2 * - 35 AS col1 FROM tab0
----
-1155
-2870
-35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3151
SELECT - 88 + cor0.col1 + CAST( NULL AS SIGNED ) * cor0.col2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3151
SELECT - 88 + cor0.col1 + CAST ( NULL AS INTEGER ) * cor0.col2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3152
SELECT col2 DIV - 36 AS col0 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3152
SELECT col2 / - 36 AS col0 FROM tab1
----
-1
-1
-2

query I rowsort
SELECT - tab0.col0 AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT - + col2 + - cor0.col1 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3155
SELECT ALL + col1 - col0 DIV + col1 FROM tab2
----
13
31
58

skipif mysql # not compatible
query I rowsort label-3155
SELECT ALL + col1 - col0 / + col1 FROM tab2
----
13
31
58

query I rowsort
SELECT ALL col1 + - col0 - + col1 AS col0 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL + col2 * + col2 * + col2 AS col2 FROM tab2 AS cor0
----
17576
19683
54872

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3158
SELECT ALL + ( + tab1.col2 ) * col0 + CAST( NULL AS SIGNED ) - 61 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL + ( + tab1.col2 ) * col0 + CAST ( NULL AS INTEGER ) - 61 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3159
SELECT + col0 - col0 DIV + 67 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-3159
SELECT + col0 - col0 / + 67 FROM tab2 AS cor0
----
7
77
78

query I rowsort
SELECT DISTINCT + ( + col1 ) * col1 - col0 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT 95 + cor0.col0 AS col1 FROM tab1 AS cor0
----
159
175
98

query I rowsort
SELECT DISTINCT - + ( - col2 ) + + col0 FROM tab0 AS cor0
----
171
36
57

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab0 cor1, tab1 AS cor2
----
3645 values hashing to ea1a922b7fccb9d184b31eb4689e063b

query I rowsort
SELECT ( - 37 ) * col1 + 47 * - 66 * - col1 FROM tab2
----
180835
52105
95015

query I rowsort
SELECT 61 + + col1 + - 43 FROM tab1
----
28
31
44

query I rowsort
SELECT - col2 * + col0 * 81 + + col1 * + col1 AS col0 FROM tab1
----
-12446
-295388
-621911

query I rowsort
SELECT DISTINCT + tab1.col1 * + col0 + 27 FROM tab1
----
105
1067
667

query I rowsort
SELECT ALL 85 + + cor0.col0 * - ( ( - col0 ) * - col1 ) AS col0 FROM tab1 AS cor0
----
-149
-40875
-83115

query I rowsort
SELECT - 20 AS col2 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab0 cor1, tab2 cor2
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323

query I rowsort
SELECT ALL + + 58 + col0 * - 97 AS col1 FROM tab2 AS cor0
----
-621
-7508
-7605

query I rowsort
SELECT DISTINCT + col0 + col2 * + 57 FROM tab0 AS cor0
----
1905
4763
92

query I rowsort
SELECT - col1 + - col2 * cor0.col1 FROM tab0 AS cor0
----
-194
-2924
-7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-3174
SELECT DISTINCT col2 + - col0 DIV - 1 + - col2 AS col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT col2 + - col0 / - 1 + - col2 AS col0 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3175
SELECT DISTINCT col2 + col0 DIV - ( col1 ) FROM tab2 AS cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT col2 + col0 / - ( col1 ) FROM tab2 AS cor0
----
25
27
34

query I rowsort
SELECT ALL - ( - col2 ) * 1 + - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT col1 + col1 * + tab0.col0 AS col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT tab1.col1 - col0 AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT - col2 * 19 FROM tab2
----
-494
-513
-722

query I rowsort
SELECT - + col1 * + col2 * - 4 + - col1 + ( col2 ) FROM tab1 AS cor0
----
2327
5075
5644

query I rowsort
SELECT col1 + + col1 * - 75 * col2 FROM tab1
----
-105274
-42740
-93587

onlyif mysql # use DIV operator for integer division
query I rowsort label-3182
SELECT ALL + 85 DIV - col1 FROM tab1 AS cor0
----
-3
-6
-8

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL + 85 / - col1 FROM tab1 AS cor0
----
-3
-6
-8

query I rowsort
SELECT DISTINCT + 36 * - col0 FROM tab0 AS cor0
----
-1260
-3204
-864

query I rowsort
SELECT DISTINCT - - 34 * + col0 + col2 AS col0 FROM tab1 cor0
----
156
2233
2816

query I rowsort
SELECT - + ( col0 ) + cor0.col2 FROM tab2 cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3186
SELECT DISTINCT CAST( 59 AS SIGNED ) + + col1 * col2 AS col2 FROM tab2 AS cor0
----
1593
705
896

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT CAST ( 59 AS INTEGER ) + + col1 * col2 AS col2 FROM tab2 AS cor0
----
1593
705
896

query I rowsort
SELECT ALL + col2 * col2 - + col1 AS col2 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT ALL + ( col1 ) * col1 - cor0.col1 FROM tab1 AS cor0
----
156
650
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 6 ) * col1 + - 0 * 21 col1 FROM tab0 AS cor0
----
516
546
582

query I rowsort
SELECT - + 4 + col1 AS col0 FROM tab1 AS cor0
----
22
6
9

query I rowsort
SELECT + + cor0.col0 * cor0.col0 AS col2 FROM tab2 cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-3192
SELECT ALL 40 DIV - 95 + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL 40 / - 95 + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - - 6 * col1 AS col1 FROM tab1 AS cor0
----
156
60
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3194
SELECT DISTINCT CAST( col1 AS SIGNED ) * - col1 AS col1 FROM tab1 cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT CAST ( col1 AS INTEGER ) * - col1 AS col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT - 98 * col2 + col0 AS col0 FROM tab1 AS cor0
----
-5289
-5522
-9328

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3196
SELECT CAST( - 80 AS SIGNED ) * + col2 + CAST( col0 AS SIGNED ) FROM tab0 cor0
----
-2616
-45
-6471

skipif mysql # not compatible
query I rowsort label-3196
SELECT CAST ( - 80 AS INTEGER ) * + col2 + CAST ( col0 AS INTEGER ) FROM tab0 cor0
----
-2616
-45
-6471

query I rowsort
SELECT DISTINCT - ( 41 ) + + cor0.col1 AS col1 FROM tab2 AS cor0
----
-10
-24
18

query I rowsort
SELECT - ( + col2 ) + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 89 * - col1 * col1 AS col1 FROM tab2 AS cor0
----
-25721
-309809
-85529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col1 * - col0 col2 FROM tab2 cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL col1 * 65 AS col1 FROM tab1 AS cor0
----
1690
650
845

query I rowsort
SELECT + + col0 * - 39 AS col2 FROM tab0 AS cor0
----
-1365
-3471
-936

query I rowsort
SELECT + ( 41 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # use DIV operator for integer division
query I rowsort label-3204
SELECT - 90 DIV + ( + col1 ) + col0 * cor0.col1 FROM tab1 cor0
----
1034
631
75

skipif mysql # not compatible
query I rowsort label-3204
SELECT - 90 / + ( + col1 ) + col0 * cor0.col1 FROM tab1 cor0
----
1034
631
75

query I rowsort
SELECT + tab0.col1 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + ( col2 * col1 ) col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT col1 + + 52 AS col2 FROM tab2
----
111
69
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3208
SELECT ALL col0 / + col0 + - ( + col0 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL col0 / + col0 + - ( + col0 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - ( - col1 ) * + col1 + + 75 AS col2 FROM tab1
----
-17501
-2122
-925

query I rowsort
SELECT ALL + 36 * col0 FROM tab2
----
252
2808
2844

query I rowsort
SELECT ( + col2 ) + tab2.col0 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT + 54 AS col0 FROM tab1, tab0 AS cor0
----
54

query I rowsort
SELECT ALL - tab1.col1 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT - 42 + col1 * tab2.col2 FROM tab2
----
1492
604
795

onlyif mysql # use DIV operator for integer division
query I rowsort label-3215
SELECT DISTINCT + col0 DIV + col0 + col2 AS col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT + col0 / + col0 + col2 AS col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT ALL 86 * + col1 AS col0 FROM tab0 AS cor0
----
7396
7826
8342

query I rowsort
SELECT ALL - 66 * - col1 + + col1 AS col1 FROM tab2 AS cor0
----
1139
2077
3953

query I rowsort
SELECT DISTINCT + + 79 + col0 + - cor0.col2 FROM tab0 AS cor0
----
113
70
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 col2 FROM tab0 AS cor0
----
-17
-17
-17

query I rowsort
SELECT - col2 * col1 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-3221
SELECT DISTINCT - ( col2 ) * col0 + col2 DIV cor0.col1 FROM tab2 AS cor0
----
-189
-2028
-3000

skipif mysql # not compatible
query I rowsort label-3221
SELECT DISTINCT - ( col2 ) * col0 + col2 / cor0.col1 FROM tab2 AS cor0
----
-189
-2028
-3000

query I rowsort
SELECT - 11 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-11
-363
-902

query I rowsort
SELECT ALL + col1 * + col1 + cor0.col2 - - col1 * col0 FROM tab1 AS cor0
----
1305
797
808

query I rowsort
SELECT - cor1.col0 AS col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT + + col2 * - 75 AS col2 FROM tab2 AS cor0
----
-1950
-2025
-2850

query I rowsort
SELECT ALL 45 + + tab2.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 838e3616eba570b6f893c5d3721f4665

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3227
SELECT - col2 * CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-3227
SELECT - col2 * CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3228
SELECT ALL col2 DIV cor0.col2 + + col2 FROM tab1 cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL col2 / cor0.col2 + + col2 FROM tab1 cor0
----
55
58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 33 * - col0 + col0 col2 FROM tab1 AS cor0
----
-2048
-2560
-96

query I rowsort
SELECT 77 * ( col0 ) - - col2 FROM tab0 AS cor0
----
1881
2696
6935

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3231
SELECT + CAST( NULL AS SIGNED ) * - col2 + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3231
SELECT + CAST ( NULL AS INTEGER ) * - col2 + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 56 + - cor0.col2 FROM tab2 AS cor0
----
-82
-83
-94

query I rowsort
SELECT ALL + col0 - + 33 AS col2 FROM tab1 AS cor0
----
-30
31
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3234
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 * col2 + cor0.col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL + ( 80 ) + cor0.col2 * + 35 AS col1 FROM tab1 AS cor0
----
1970
2075
3440

query I rowsort
SELECT + + col0 * - 30 AS col2 FROM tab0 cor0
----
-1050
-2670
-720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 41 - 66 col1 FROM tab0, tab1 cor0
----
9 values hashing to f2eff2e271bc09dea2510ed6bb28e960

query I rowsort
SELECT + - 80 AS col0 FROM tab1 cor0
----
-80
-80
-80

query I rowsort
SELECT ALL + ( + col0 ) AS col1 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - cor0.col2 ) col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - 42 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27

query I rowsort
SELECT ALL - ( + ( col0 ) * - 3 + + ( col1 ) ) FROM tab0
----
-14
176
8

query I rowsort
SELECT + 55 + 61 + + col2 AS col1 FROM tab2
----
142
143
154

query I rowsort
SELECT - tab1.col0 + col2 - tab1.col1 AS col2 FROM tab1
----
-17
25
3

query I rowsort
SELECT + col2 * tab0.col0 + col0 + - col2 AS col0 FROM tab0
----
69
7305
783

query I rowsort
SELECT ALL + col1 * - cor0.col1 + - ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT ALL - 49 - + 77 AS col0 FROM tab1
----
-126
-126
-126

query I rowsort
SELECT 33 + - col2 FROM tab0
----
-49
0
32

query I rowsort
SELECT ALL ( ( col0 ) ) - + 88 AS col1 FROM tab0
----
-53
-64
1

query I rowsort
SELECT - col0 + + col2 * + col2 * col1 FROM tab2 AS cor0
----
22592
24469
39806

onlyif mysql # use DIV operator for integer division
query I rowsort label-3252
SELECT - + col0 + + col0 DIV col1 AS col0 FROM tab2 AS cor0
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-3252
SELECT - + col0 + + col0 / col1 AS col0 FROM tab2 AS cor0
----
-7
-75
-77

query I rowsort
SELECT ALL col2 * col1 + col2 * - 87 AS col0 FROM tab0
----
-33
10
328

query I rowsort
SELECT DISTINCT col0 + col0 * cor0.col0 FROM tab2 AS cor0
----
56
6162
6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 12 * - col2 * ( col0 ) + col0 * col1 col0 FROM tab2 AS cor0
----
2485
28938
37367

query I rowsort
SELECT cor0.col2 * + col2 + 55 AS col2 FROM tab0 AS cor0
----
1144
56
6779

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col2 + - col0 * - cor0.col0 * cor0.col0 col1 FROM tab0 cor0
----
13771
42779
704960

query I rowsort
SELECT DISTINCT + - 79 * col2 AS col2 FROM tab0 AS cor0
----
-2607
-6478
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 * - ( col2 ) + col1 col1 FROM tab2 AS cor0
----
114093
5134
52787

query I rowsort
SELECT col2 + + col2 * + col0 + col1 FROM tab2 AS cor0
----
2113
247
3057

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 * cor0.col1 - + 40 * cor0.col1 col1 FROM tab2 cor0
----
-1023
-1947
-561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 84 + col0 * 78 col0 FROM tab2 AS cor0
----
462
6000
6078

onlyif mysql # use DIV operator for integer division
query I rowsort label-3263
SELECT cor0.col1 * ( 37 ) DIV col1 AS col1 FROM tab0 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-3263
SELECT cor0.col1 * ( 37 ) / col1 AS col1 FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT col1 + - col0 * cor0.col2 FROM tab1 cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT + - col1 * 94 FROM tab2 cor0
----
-1598
-2914
-5546

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - col2 * + ( + 56 + col1 ) AS col2 FROM tab2 AS cor0
----
-2349
-2774
-2990

query I rowsort
SELECT + col1 + - col1 * + cor0.col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL - - col0 + 1 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT + - ( col2 ) + - col0 * - col1 AS col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL 67 * - col0 + - col0 * + 65 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-12754
-137046
-200423

query I rowsort
SELECT + cor0.col1 + - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT DISTINCT + col2 * col2 + col0 * + ( col2 + - col1 ) FROM tab2 AS cor0
----
-1898
3103
701

query I rowsort
SELECT ALL + col2 * - col1 * col1 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ALL 82 + + 11 FROM tab2 cor0
----
93
93
93

query I rowsort
SELECT 95 + 3 FROM tab1 AS cor0
----
98
98
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3278
SELECT ALL col2 + - col1 DIV col0 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL col2 + - col1 / col0 FROM tab2 AS cor0
----
23
26
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-3279
SELECT - cor0.col2 DIV - 34 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3279
SELECT - cor0.col2 / - 34 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT ( ( col1 ) ) FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3281
SELECT - - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT - - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 - + 8 FROM tab1 AS cor0
----
46
49
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3283
SELECT ALL - - CAST( + col1 AS SIGNED ) + - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-3283
SELECT ALL - - CAST ( + col1 AS INTEGER ) + - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + col2 + - col0 * - cor0.col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL - cor0.col0 * 90 AS col1 FROM tab1 AS cor0
----
-270
-5760
-7200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 36 ) col2 FROM tab2
----
36
36
36

query I rowsort
SELECT + 18 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ALL cor0.col1 * ( - 65 ) AS col0 FROM tab1 AS cor0
----
-1690
-650
-845

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3289
SELECT + + col0 * CAST( + col0 AS SIGNED ) FROM tab0 cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-3289
SELECT + + col0 * CAST ( + col0 AS INTEGER ) FROM tab0 cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-3290
SELECT DISTINCT - col2 DIV + cor0.col1 + + col0 FROM tab1 AS cor0
----
1
59
73

skipif mysql # not compatible
query I rowsort label-3290
SELECT DISTINCT - col2 / + cor0.col1 + + col0 FROM tab1 AS cor0
----
1
59
73

query I rowsort
SELECT col1 + col1 + 51 * - col0 FROM tab0 AS cor0
----
-1052
-1591
-4357

onlyif mysql # use DIV operator for integer division
query I rowsort label-3292
SELECT + col1 DIV - 58 + 26 + + col0 * + ( col2 + cor0.col2 ) col0 FROM tab1 AS cor0
----
15386
350
7322

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3292
SELECT + col1 / - 58 + 26 + + col0 * + ( col2 + cor0.col2 ) col0 FROM tab1 AS cor0
----
15386
350
7322

query I rowsort
SELECT DISTINCT - col2 * 7 AS col2 FROM tab0 AS cor0
----
-231
-574
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3294
SELECT ALL + + col2 + col0 DIV ( + col1 ) FROM tab2 AS cor0
----
27
27
42

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL + + col2 + col0 / ( + col1 ) FROM tab2 AS cor0
----
27
27
42

query I rowsort
SELECT DISTINCT - col2 + col1 * col0 FROM tab2
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-3296
SELECT tab0.col0 + col0 DIV col0 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-3296
SELECT tab0.col0 + col0 / col0 FROM tab0
----
25
36
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3297
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + cor0.col0 * - tab1.col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to c25bf2f069c912fb3438dc73db666079

onlyif mysql # use DIV operator for integer division
query I rowsort label-3299
SELECT - col0 DIV + 67 - col2 FROM tab1
----
-54
-57
-97

skipif mysql # not compatible
query I rowsort label-3299
SELECT - col0 / + 67 - col2 FROM tab1
----
-54
-57
-97

query I rowsort
SELECT - col2 + - col2 * col2 AS col0 FROM tab1
----
-2970
-3306
-9312

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab1 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 0a3bf4d9642f43f11aad64de0d046e6b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3302
SELECT DISTINCT - + col1 + - 81 DIV + cor0.col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT - + col1 + - 81 / + cor0.col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT col1 * + tab1.col1 * col2 + - tab1.col2 AS col0 FROM tab1
----
16128
36450
5643

onlyif mysql # use DIV operator for integer division
query I rowsort label-3304
SELECT ALL + + col0 + + 44 DIV - col0 AS col2 FROM tab1 AS cor0
----
-11
64
80

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL + + col0 + + 44 / - col0 AS col2 FROM tab1 AS cor0
----
-11
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3305
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - col1 + col1 - col1 * + col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL + col0 * - cor0.col2 * col0 + - col1 + - col2 FROM tab2 AS cor0
----
-1381
-158269
-237213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 - cor0.col1 col2 FROM tab2 AS cor0
----
-118
-34
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 20 * + col1 * col0 col1 FROM tab2 AS cor0
----
26860
4340
92040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3310
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3311
SELECT - cor1.col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-3311
SELECT - cor1.col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT ALL + + col1 + - col0 * + col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-312
-474493
-493022

query I rowsort
SELECT DISTINCT + 21 AS col0 FROM tab1, tab2 cor0, tab0 AS cor1
----
21

query I rowsort
SELECT ALL 1 AS col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT ALL - - col1 * + cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - - col2 + + ( + col0 ) AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - 79 * + col0 * col0 AS col0 FROM tab2 AS cor0
----
-3871
-480636
-493039

query I rowsort
SELECT + 89 + col0 AS col0 FROM tab0 cor0
----
113
124
178

query I rowsort
SELECT + 58 * col2 FROM tab0
----
1914
4756
58

query I rowsort
SELECT ALL col0 * 98 AS col2 FROM tab1
----
294
6272
7840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3321
SELECT ALL - + CAST( + col2 AS SIGNED ) DIV col0 - cor0.col2 * - 76 FROM tab0 AS cor0
----
2507
6232
76

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL - + CAST ( + col2 AS INTEGER ) / col0 - cor0.col2 * - 76 FROM tab0 AS cor0
----
2507
6232
76

query I rowsort
SELECT ALL + + col2 * + cor0.col2 - col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-3926
101
512

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col1 AS REAL ) col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT col2 + col0 * + 3 FROM tab0 cor0
----
105
106
349

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab2, tab0, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + 8 FROM tab2, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT DISTINCT + ( + 54 ) AS col2 FROM tab1
----
54

query I rowsort
SELECT - ( - col1 ) + tab2.col1 * ( col0 * tab2.col2 ) AS col1 FROM tab2
----
119711
51051
5890

query I rowsort
SELECT - col0 + col1 * + col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT col1 * + ( + tab2.col2 ) * + 78 AS col0 FROM tab2
----
119652
50388
65286

query I rowsort
SELECT DISTINCT ( 0 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT ( col2 ) * + col1 AS col1 FROM tab2
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3333
SELECT - - ( col0 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3333
SELECT - - ( col0 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3334
SELECT 46 + + col2 DIV - 71 + - col2 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
2074
235
3048

skipif mysql # not compatible
query I rowsort label-3334
SELECT 46 + + col2 / - 71 + - col2 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
2074
235
3048

query I rowsort
SELECT DISTINCT ( + col0 ) * - 85 AS col0 FROM tab2 AS cor0
----
-595
-6630
-6715

query I rowsort
SELECT ALL col0 * + col2 * + 57 AS col1 FROM tab1
----
207936
437760
9234

query I rowsort
SELECT ALL + col1 + + 68 AS col1 FROM tab2 AS cor0
----
127
85
99

query I rowsort
SELECT - - col1 * 20 + + col0 + + col2 * + 89 * - 61 FROM tab1 AS cor0
----
-292643
-309189
-520844

query I rowsort
SELECT + col1 * ( col2 ) AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT col2 * + 83 * + ( - cor0.col2 ) FROM tab1 AS cor0
----
-242028
-269667
-764928

query I rowsort
SELECT DISTINCT - col2 * - 34 AS col1 FROM tab1 AS cor0
----
1836
1938
3264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) * + col2 col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - col1 * col0 + col0 + ( - cor0.col0 ) AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - col2 * col2 + - col2 * col1 FROM tab2
----
-1566
-2090
-2210

query I rowsort
SELECT col0 - cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * - col0 + + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT + - 24 + + 53 * + col0 AS col0 FROM tab1 cor0
----
135
3368
4216

query I rowsort
SELECT ALL + col2 * col1 + col0 * col0 FROM tab1
----
1413
4666
7648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3349
SELECT - CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3349
SELECT - CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 29 AS col0 FROM tab1, tab2 AS cor0
----
29

query I rowsort
SELECT ALL + cor1.col2 * - 81 * + 32 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to b0ff13feaefc938330823c3699cf579b

query I rowsort
SELECT col0 + + 14 * col2 AS col0 FROM tab0 AS cor0
----
1237
486
49

query I rowsort
SELECT + col1 * - col1 - col2 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT - - ( 3 ) * - cor0.col0 FROM tab0 AS cor0
----
-105
-267
-72

query I rowsort
SELECT + + col2 + col2 + + col1 AS col0 FROM tab1 cor0
----
124
134
205

query I rowsort
SELECT ( 19 ) * col1 AS col0 FROM tab1 AS cor0
----
190
247
494

query I rowsort
SELECT ALL + col1 + - col0 + col1 FROM tab0 AS cor0
----
148
159
93

query I rowsort
SELECT ALL col0 + col1 * - 83 AS col0 FROM tab0 AS cor0
----
-7114
-7464
-8016

query I rowsort
SELECT ALL col0 + + col1 + - 87 FROM tab1 AS cor0
----
-13
-58
6

query I rowsort
SELECT - - col0 * ( ( cor0.col0 ) ) FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT cor0.col2 + + col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - col2 + 76 AS col1 FROM tab1 AS cor0
----
-20
19
22

query I rowsort
SELECT DISTINCT col0 * 24 FROM tab2 AS cor0
----
168
1872
1896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 * + col1 - tab0.col0 col2 FROM tab0
----
-244092
-679131
-9444

query I rowsort
SELECT ALL tab2.col0 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3366
SELECT - col0 + 93 DIV 92 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-3366
SELECT - col0 + 93 / 92 FROM tab0
----
-23
-34
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3367
SELECT - col2 * - CAST( NULL AS SIGNED ) - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT - col2 * - CAST ( NULL AS INTEGER ) - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * ( + col1 ) - col0 AS col0 FROM tab1
----
-164
-249
-679

query I rowsort
SELECT ALL + col2 - - col0 * 5 FROM tab0
----
153
176
527

onlyif mysql # use DIV operator for integer division
query I rowsort label-3370
SELECT - - col2 DIV ( col1 * - col1 + col1 ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3370
SELECT - - col2 / ( col1 * - col1 + col1 ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * + ( col0 ) * col1 + - col0 AS col1 FROM tab1 AS cor0
----
231
40896
83120

query I rowsort
SELECT + col0 + col1 * + col2 AS col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL - col2 + + 91 FROM tab2 AS cor0
----
53
64
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-3374
SELECT col0 DIV - cor0.col1 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3374
SELECT col0 / - cor0.col1 col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3375
SELECT DISTINCT + col2 + col0 DIV ( col2 * + ( col1 ) ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT + col2 + col0 / ( col2 * + ( col1 ) ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - + cor0.col0 * + col2 AS col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + ( 80 ) FROM tab2
----
80
80
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3378
SELECT - CAST( col0 AS SIGNED ) * + cor0.col1 + col1 * col2 FROM tab2 AS cor0
----
-3068
-697
620

skipif mysql # not compatible
query I rowsort label-3378
SELECT - CAST ( col0 AS INTEGER ) * + cor0.col1 + col1 * col2 FROM tab2 AS cor0
----
-3068
-697
620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 28 col2 FROM tab1 cor0
----
-28
-28
-28

onlyif mysql # use DIV operator for integer division
query I rowsort label-3380
SELECT DISTINCT + 23 + col0 DIV col2 AS col2 FROM tab1
----
23
24

skipif mysql # not compatible
query I rowsort label-3380
SELECT DISTINCT + 23 + col0 / col2 AS col2 FROM tab1
----
23
24

query I rowsort
SELECT ( + 0 ) * col2 + col0 * ( - col1 + - 78 ) * - cor0.col2 AS col2 FROM tab0 AS cor0
----
1233362
129888
6125

onlyif mysql # use DIV operator for integer division
query I rowsort label-3382
SELECT - ( + col0 ) DIV + 27 AS col0 FROM tab1 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-3382
SELECT - ( + col0 ) / + 27 AS col0 FROM tab1 AS cor0
----
-2
-2
0

query I rowsort
SELECT 71 * col0 FROM tab1 AS cor0
----
213
4544
5680

query I rowsort
SELECT DISTINCT col2 + col1 + 72 FROM tab1 AS cor0
----
139
152
181

query I rowsort
SELECT DISTINCT - col2 * - col1 * + col1 AS col2 FROM tab2 AS cor0
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + cor0.col0 col1 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL col0 * + col1 + + ( + cor0.col2 ) FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL - - 14 + col2 * 84 FROM tab2 AS cor0
----
2198
2282
3206

query I rowsort
SELECT - 6 + col1 * + col1 FROM tab0 AS cor0
----
7390
8275
9403

query I rowsort
SELECT + 18 * col1 + col2 FROM tab2 AS cor0
----
1088
344
585

query I rowsort
SELECT ALL + col0 * col0 - col2 AS col2 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT + ( col2 ) + cor0.col1 AS col0 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL - col1 - col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL - col1 + - cor0.col0 * + col2 * 0 + + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col0 * + col2 + - col0 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT ALL - - col1 * 31 AS col2 FROM tab2 cor0
----
1829
527
961

query I rowsort
SELECT ALL tab1.col1 * 66 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 6efa615455e6f9a8401d9aca573746e9

query I rowsort
SELECT - cor0.col2 + 85 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1f3f83d382cf12cc8af3ba0c11752dde

query I rowsort
SELECT 17 - + col0 FROM tab1 AS cor0
----
-47
-63
14

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + col0 AS REAL ) FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3401
SELECT DISTINCT col2 DIV 94 + col0 AS col0 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT col2 / 94 + col0 AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL cor0.col0 + + 20 * - col0 AS col0 FROM tab0 AS cor0
----
-1691
-456
-665

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 30 * col1 col0 FROM tab1 AS cor0
----
-243
-294
-726

query I rowsort
SELECT DISTINCT ( col2 ) * col0 * 93 FROM tab1 AS cor0
----
15066
339264
714240

query I rowsort
SELECT DISTINCT 68 FROM tab1, tab0 cor0, tab1 AS cor1, tab2 AS cor2
----
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-3406
SELECT ALL + 52 DIV - 98 + + col2 + ( - col0 ) FROM tab1
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL + 52 / - 98 + + col2 + ( - col0 ) FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL 22 + col2 * col1 FROM tab2
----
1556
668
859

query I rowsort
SELECT ALL tab1.col2 + 86 FROM tab1
----
140
143
182

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3409
SELECT ALL col0 + col2 * - col1 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL col0 + col2 * - col1 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 22 * - col1 FROM tab2 AS cor0
----
-1298
-374
-682

query I rowsort
SELECT ALL - 23 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1886
-23
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-3412
SELECT - col1 DIV - col2 + 33 * ( col0 ) FROM tab1 AS cor0
----
2112
2640
99

skipif mysql # not compatible
query I rowsort label-3412
SELECT - col1 / - col2 + 33 * ( col0 ) FROM tab1 AS cor0
----
2112
2640
99

query I rowsort
SELECT + + col1 + - col1 + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL col0 + + col1 * + col2 * - tab1.col1 FROM tab1
----
-16144
-36501
-5636

onlyif mysql # use DIV operator for integer division
query I rowsort label-3415
SELECT col2 + 50 DIV - col2 + + CAST( col2 AS SIGNED ) * col1 AS col1 FROM tab1
----
1344
1458
627

skipif mysql # not compatible
query I rowsort label-3415
SELECT col2 + 50 / - col2 + + CAST ( col2 AS INTEGER ) * col1 AS col1 FROM tab1
----
1344
1458
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-3416
SELECT - 84 DIV col1 + - col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3416
SELECT - 84 / col1 + - col1 FROM tab0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col1 + - col0 col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT - col2 + 21 + - col1 AS col0 FROM tab2
----
-34
-37
-64

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 cor2, tab2 AS cor3
----
3645 values hashing to 47906197307eee6829150d762058792a

query I rowsort
SELECT - col2 * ( col0 * col2 + 27 ) FROM tab2
----
-115102
-53430
-5832

query I rowsort
SELECT - + 95 * - col0 FROM tab0 AS cor0
----
2280
3325
8455

onlyif mysql # use DIV operator for integer division
query I rowsort label-3422
SELECT + + col1 DIV 10 FROM tab0 AS cor0
----
8
9
9

skipif mysql # not compatible
query I rowsort label-3422
SELECT + + col1 / 10 FROM tab0 AS cor0
----
8
9
9

query I rowsort
SELECT - 31 + col2 FROM tab0 AS cor0
----
-30
2
51

query I rowsort
SELECT DISTINCT + - 70 * - col2 AS col2 FROM tab0 AS cor0
----
2310
5740
70

query I rowsort
SELECT cor2.col1 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT 78 + - 40 FROM tab0 AS cor0
----
38
38
38

query I rowsort
SELECT DISTINCT - col0 * - col0 + 67 FROM tab1
----
4163
6467
76

query I rowsort
SELECT DISTINCT 47 * - tab0.col0 + + col0 * 49 AS col2 FROM tab0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + tab0.col1 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT 42 + col2 AS col2 FROM tab1 AS cor0
----
138
96
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-3431
SELECT col0 * col0 DIV - col0 + - col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158

skipif mysql # not compatible
query I rowsort label-3431
SELECT col0 * col0 / - col0 + - col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT ALL + + 47 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT - col0 * - col0 + - col2 FROM tab0 AS cor0
----
1224
543
7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-3434
SELECT DISTINCT - col2 + col1 + + cor0.col1 DIV ( - col1 ) AS col0 FROM tab2 cor0
----
-22
3
32

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT - col2 + col1 + + cor0.col1 / ( - col1 ) AS col0 FROM tab2 cor0
----
-22
3
32

query I rowsort
SELECT - col0 * + col0 + + col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL col0 * - col1 * + col0 FROM tab0 AS cor0
----
-118825
-49536
-720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-3437
SELECT DISTINCT + - cor0.col2 DIV col0 + col0 + col2 AS col2 FROM tab1 AS cor0
----
121
175
39

skipif mysql # not compatible
query I rowsort label-3437
SELECT DISTINCT + - cor0.col2 / col0 + col0 + col2 AS col2 FROM tab1 AS cor0
----
121
175
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 * col2 + + 98 col0 FROM tab1 AS cor0
----
-2710
-2866
-4894

query I rowsort
SELECT col0 * col1 - 91 FROM tab0 AS cor0
----
1973
3304
8008

query I rowsort
SELECT DISTINCT + col2 * - col0 * 99 + col2 - + 49 FROM tab2 cor0
----
-18733
-200795
-297209

onlyif mysql # use DIV operator for integer division
query I rowsort label-3441
SELECT col2 * + col1 + 15 * col1 DIV - cor0.col0 FROM tab2 AS cor0
----
1523
643
771

skipif mysql # not compatible
query I rowsort label-3441
SELECT col2 * + col1 + 15 * col1 / - cor0.col0 FROM tab2 AS cor0
----
1523
643
771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( + col1 ) * col0 col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL - col2 * + ( - col0 ) + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-3444
SELECT ALL + col0 + col2 + - ( col1 ) DIV col2 AS col0 FROM tab0 AS cor0
----
-61
170
55

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL + col0 + col2 + - ( col1 ) / col2 AS col0 FROM tab0 AS cor0
----
-61
170
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-3445
SELECT DISTINCT - col2 - + col1 DIV cor0.col1 FROM tab2 cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-3445
SELECT DISTINCT - col2 - + col1 / cor0.col1 FROM tab2 cor0
----
-27
-28
-39

query I rowsort
SELECT - cor0.col2 * - 44 + col1 FROM tab1 cor0
----
2402
2518
4237

query I rowsort
SELECT ALL - col0 * ( col2 ) + col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL - + col1 + - col0 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT col2 * - col0 * + col2 AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL - col0 + - tab1.col0 * ( col1 * col2 ) AS col0 FROM tab1
----
-36544
-4215
-99920

onlyif mysql # use DIV operator for integer division
query I rowsort label-3451
SELECT col2 DIV - col2 + - col1 * + col1 FROM tab0 AS cor0
----
-7397
-8282
-9410

skipif mysql # not compatible
query I rowsort label-3451
SELECT col2 / - col2 + - col1 * + col1 FROM tab0 AS cor0
----
-7397
-8282
-9410

query I rowsort
SELECT - col2 + - 81 AS col0 FROM tab2 AS cor0
----
-107
-108
-119

query I rowsort
SELECT + col1 * col2 * + col2 + col0 FROM tab0 AS cor0
----
132
611973
93678

query I rowsort
SELECT + + col2 + 46 AS col1 FROM tab2 AS cor0
----
72
73
84

query I rowsort
SELECT ALL col1 + 19 * tab1.col1 - - col0 * ( col1 + - tab1.col0 ) * + ( + col1 + + tab1.col1 ) FROM tab1
----
-139100
-68920
4108

query I rowsort
SELECT - col0 + + ( - col0 ) FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT + cor0.col1 * - col2 - 41 FROM tab1 AS cor0
----
-1289
-1445
-611

query I rowsort
SELECT 13 * col0 AS col2 FROM tab1 AS cor0
----
1040
39
832

query I rowsort
SELECT - 19 + + col1 * col1 FROM tab1 AS cor0
----
150
657
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3460
SELECT ALL - - cor0.col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL - - cor0.col2 / + col2 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - ( cor0.col1 ) + cor0.col1 AS col1 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 86 ) * + col1 col0 FROM tab1 AS cor0
----
1118
2236
860

query I rowsort
SELECT + 38 * + col2 FROM tab2 AS cor0
----
1026
1444
988

query I rowsort
SELECT - + col1 * 38 AS col0 FROM tab1 cor0
----
-380
-494
-988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + - col0 * - col1 * col1 col0 FROM tab2 AS cor0
----
22869
271544
6754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * - col1 * + col2 col0 FROM tab1
----
-119808
-32490
-75816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3467
SELECT + col1 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3467
SELECT + col1 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( 16 ) AS col0 FROM tab0, tab1 AS cor0
----
16

query I rowsort
SELECT + col0 * col2 * ( col1 ) FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-3470
SELECT ALL ( col2 ) DIV col1 AS col2 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL ( col2 ) / col1 AS col2 FROM tab2
----
0
0
2

query I rowsort
SELECT ALL + 77 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ALL + col1 * col2 * col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT + ( + col0 ) + - col1 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - + ( - col2 ) FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - + ( - cor0.col1 ) FROM tab2 cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3476
SELECT DISTINCT 81 DIV 70 AS col1 FROM tab0, tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3476
SELECT DISTINCT 81 / 70 AS col1 FROM tab0, tab1 cor0
----
1

query I rowsort
SELECT DISTINCT col0 * col0 + - col1 FROM tab2 cor0
----
18
6025
6224

query I rowsort
SELECT DISTINCT - ( + col0 ) + - col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT 75 + + col2 FROM tab2 AS cor0
----
101
102
113

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3480
SELECT ALL col2 * - col2 * + CAST( + ( + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-22599
-24548
-39884

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL col2 * - col2 * + CAST ( + ( + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT DISTINCT col2 * col1 + 98 FROM tab2 AS cor0
----
1632
744
935

query I rowsort
SELECT - 0 * + col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + ( - ( col0 ) ) * col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + 44 + - 56 FROM tab0
----
-12
-12
-12

query I rowsort
SELECT + + col2 * + 57 FROM tab2 cor0
----
1482
1539
2166

query I rowsort
SELECT ALL + + col2 * col0 + - cor0.col1 FROM tab1 AS cor0
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-3487
SELECT - col1 DIV 25 + - col1 + - col1 * col2 FROM tab0 AS cor0
----
-197
-2927
-7556

skipif mysql # not compatible
query I rowsort label-3487
SELECT - col1 / 25 + - col1 + - col1 * col2 FROM tab0 AS cor0
----
-197
-2927
-7556

query I rowsort
SELECT DISTINCT - + col1 * - col1 * - 0 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3489
SELECT ALL col2 DIV + 92 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL col2 / + 92 AS col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - col1 * + 71 AS col1 FROM tab2 AS cor0
----
-1207
-2201
-4189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 + 67 * col1 col0 FROM tab1 AS cor0
----
1714
623
788

query I rowsort
SELECT ALL - cor0.col2 + - 43 FROM tab1 AS cor0
----
-100
-139
-97

query I rowsort
SELECT ALL col2 * 89 AS col1 FROM tab1 AS cor0
----
4806
5073
8544

query I rowsort
SELECT DISTINCT + - col1 * 13 FROM tab1 cor0
----
-130
-169
-338

onlyif mysql # use DIV operator for integer division
query I rowsort label-3495
SELECT DISTINCT - col1 + + 26 DIV - 30 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-3495
SELECT DISTINCT - col1 + + 26 / - 30 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - + col0 + 35 * col2 AS col0 FROM tab1 AS cor0
----
1887
1931
3280

onlyif mysql # use DIV operator for integer division
query I rowsort label-3497
SELECT tab1.col2 DIV + col2 - ( - col1 ) FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-3497
SELECT tab1.col2 / + col2 - ( - col1 ) FROM tab1
----
11
14
27

query I rowsort
SELECT - col0 * col2 - 34 * - col0 AS col1 FROM tab2
----
-316
49
624

query I rowsort
SELECT DISTINCT col1 * - col1 - 67 * tab0.col2 AS col2 FROM tab0
----
-13775
-9476
-9607

query I rowsort
SELECT ALL + col2 * col2 + - col1 AS col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT ( col2 ) * col0 * + col2 AS col1 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT DISTINCT - col1 + 83 * + 50 + col2 AS col1 FROM tab1
----
4178
4197
4233

onlyif mysql # use DIV operator for integer division
query I rowsort label-3503
SELECT + col2 + + 47 DIV + tab2.col1 FROM tab2
----
26
28
40

skipif mysql # not compatible
query I rowsort label-3503
SELECT + col2 + + 47 / + tab2.col1 FROM tab2
----
26
28
40

query I rowsort
SELECT ALL + 12 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT DISTINCT - tab2.col2 * - 9 + 78 AS col2 FROM tab2
----
312
321
420

query I rowsort
SELECT + col2 - - 98 * - col1 FROM tab1 AS cor0
----
-1178
-2494
-923

query I rowsort
SELECT DISTINCT col2 + + ( col1 ) + col1 AS col0 FROM tab0
----
195
205
264

query I rowsort
SELECT - col0 * + 90 + 89 FROM tab0
----
-2071
-3061
-7921

query I rowsort
SELECT - - col0 * col2 + - col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT - col0 * - col2 + col1 * col0 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT - tab0.col2 * + 39 FROM tab0
----
-1287
-3198
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col2 col0 FROM tab1
----
121
176
57

query I rowsort
SELECT col1 + 96 + + 74 AS col0 FROM tab0
----
256
261
267

query I rowsort
SELECT ALL + col0 + + col2 + ( col2 ) AS col1 FROM tab0
----
253
37
90

query I rowsort
SELECT DISTINCT - - 21 AS col1 FROM tab1 AS cor0
----
21

query I rowsort
SELECT ALL - cor0.col2 + 29 FROM tab1 cor0
----
-25
-28
-67

query I rowsort
SELECT ALL + ( + col1 ) * + col2 AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL ( col1 ) * - col2 + ( cor0.col1 ) FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT + 98 * + ( col0 ) + 2 FROM tab1 AS cor0
----
296
6274
7842

query I rowsort
SELECT ALL - 47 * + 23 FROM tab2 AS cor0
----
-1081
-1081
-1081

query I rowsort
SELECT - + col1 * + 47 AS col0 FROM tab1 AS cor0
----
-1222
-470
-611

query I rowsort
SELECT col0 + + col0 + + col2 AS col0 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT ALL - ( - cor0.col1 ) * - col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - - ( cor0.col1 ) * - cor0.col1 + col1 + 43 AS col0 FROM tab0 AS cor0
----
-7267
-8147
-9269

query I rowsort
SELECT ALL col0 * 88 AS col1 FROM tab2 AS cor0
----
616
6864
6952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * 11 col0 FROM tab0 AS cor0
----
-11
-363
-902

query I rowsort
SELECT 97 * 12 AS col1 FROM tab2 AS cor0
----
1164
1164
1164

query I rowsort
SELECT DISTINCT + cor0.col1 + + col1 * + col0 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col1 col1 FROM tab2, tab1 AS cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col1 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT ALL + - ( col2 ) * col0 * col0 + + cor0.col1 AS col2 FROM tab2 cor0
----
-1292
-158125
-237141

query I rowsort
SELECT ALL + col0 * - col2 + + 99 AS col1 FROM tab2 AS cor0
----
-1929
-2903
-90

query I rowsort
SELECT DISTINCT - 10 + + col0 * col2 FROM tab1 AS cor0
----
152
3638
7670

query I rowsort
SELECT ALL - 37 AS col2 FROM tab2 cor0
----
-37
-37
-37

query I rowsort
SELECT + ( col2 ) + - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - cor0.col2 + cor0.col0 AS col1 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 + + 51 AS col2 FROM tab2 AS cor0
----
1495
727
780

query I rowsort
SELECT ALL + col0 + col2 * - 59 * col1 AS col0 FROM tab0 AS cor0
----
-167418
-440169
-5688

query I rowsort
SELECT + + col0 + - 41 FROM tab0 AS cor0
----
-17
-6
48

query I rowsort
SELECT ALL col0 * col2 + + col0 * + col1 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT ALL - - col0 - + 18 * 69 AS col1 FROM tab1 AS cor0
----
-1162
-1178
-1239

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3542
SELECT DISTINCT + col0 + + CAST( 39 AS SIGNED ) FROM tab1 cor0
----
103
119
42

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT + col0 + + CAST ( 39 AS INTEGER ) FROM tab1 cor0
----
103
119
42

query I rowsort
SELECT ALL cor0.col1 + - col2 AS col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + - col2 * ( col0 ) + col0 FROM tab1 cor0
----
-159
-3584
-7600

query I rowsort
SELECT + col2 + + ( + col1 ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + 23 * + 91 FROM tab2, tab1 AS cor0
----
9 values hashing to ee689a7b3c3b7872028d018597cfc49a

onlyif mysql # use DIV operator for integer division
query I rowsort label-3547
SELECT DISTINCT col0 DIV 79 + + 44 FROM tab1 cor0
----
44
45

skipif mysql # not compatible
query I rowsort label-3547
SELECT DISTINCT col0 / 79 + + 44 FROM tab1 cor0
----
44
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3548
SELECT - + col2 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3548
SELECT - + col2 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col1 - - col1 * col0 * 13 FROM tab1 AS cor0
----
1040
13533
8330

query I rowsort
SELECT col0 * col0 + - col2 AS col2 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT + col0 * + cor0.col0 * col2 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT + 70 * + col0 * col2 FROM tab2 cor0
----
13230
141960
210140

query I rowsort
SELECT ALL col1 + + 36 * col0 * + 17 FROM tab0
----
14774
21517
54559

query I rowsort
SELECT - tab1.col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT 10 + + col0 FROM tab2 cor0
----
17
88
89

query I rowsort
SELECT 81 * col0 AS col2 FROM tab2 AS cor0
----
567
6318
6399

query I rowsort
SELECT - col2 - col2 * + col1 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT - + 30 FROM tab2, tab1 cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT col1 * 35 FROM tab0 cor0
----
3010
3185
3395

query I rowsort
SELECT DISTINCT cor0.col0 * - col2 + - ( col0 ) AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3561
SELECT - cor0.col0 * CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT - cor0.col0 * CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3562
SELECT CAST( 32 AS SIGNED ) FROM tab2 AS cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-3562
SELECT CAST ( 32 AS INTEGER ) FROM tab2 AS cor0
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT ALL ( - tab2.col1 + col2 ) * - col0 AS col2 FROM tab2
----
-1659
2574
28

query I rowsort
SELECT + 53 * - col1 AS col2 FROM tab1
----
-1378
-530
-689

query I rowsort
SELECT + col2 * - ( col2 ) FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - 74 + + col1 * col0 * - col2 + - col1 * + col2 FROM tab1
----
-101162
-37124
-5690

query I rowsort
SELECT ALL + ( ( col0 ) ) + col0 + col2 FROM tab2
----
182
196
41

query I rowsort
SELECT - 86 + + 62 FROM tab1, tab2, tab2 cor0
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f

onlyif mysql # use DIV operator for integer division
query I rowsort label-3570
SELECT + 35 DIV col0 FROM tab2
----
0
0
5

skipif mysql # not compatible
query I rowsort label-3570
SELECT + 35 / col0 FROM tab2
----
0
0
5

query I rowsort
SELECT + - 5 * + col2 AS col0 FROM tab0 AS cor0
----
-165
-410
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3572
SELECT - 76 DIV + 80 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3572
SELECT - 76 / + 80 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + 8 * + col0 * col2 AS col1 FROM tab2 AS cor0
----
1512
16224
24016

query I rowsort
SELECT DISTINCT ( + col2 * + col1 ) AS col2 FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3575
SELECT DISTINCT 37 DIV - col1 + 59 FROM tab1 AS cor0
----
56
57
58

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT 37 / - col1 + 59 FROM tab1 AS cor0
----
56
57
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 col2 FROM tab2, tab2 AS cor0
----
46

query I rowsort
SELECT cor0.col1 * - tab2.col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to b1d1c8abbc483ff4a42f7a4fd637cd89

query I rowsort
SELECT col0 * tab1.col1 + + 65 FROM tab1
----
1105
143
705

query I rowsort
SELECT - + 18 + - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1266
-1422
-588

query I rowsort
SELECT DISTINCT + cor0.col0 + + 26 FROM tab0, tab1 AS cor0, tab2 cor1
----
106
29
90

query I rowsort
SELECT + - ( col1 ) * - col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + col1 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT - cor0.col0 * col1 * col2 AS col2 FROM tab0 cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT + col0 * col0 + - col1 AS col0 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT + - 50 FROM tab2, tab0 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT col0 * tab2.col0 + col2 AS col0 FROM tab2
----
6110
6279
76

query I rowsort
SELECT + cor0.col1 + - cor0.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + - 89 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-2937
-7298
-89

query I rowsort
SELECT - 23 * + ( - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
161
1794
1817

query I rowsort
SELECT ALL - - 37 * + col0 + - col0 * ( + col1 * col2 ) FROM tab0 AS cor0
----
-2100
-660825
-67224

query I rowsort
SELECT DISTINCT + 42 - - 8 FROM tab0 AS cor0
----
50

query I rowsort
SELECT + + cor0.col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - col0 + - 71 * col1 * + col2 AS col0 FROM tab1 AS cor0
----
-40534
-88688
-99687

query I rowsort
SELECT ALL - + 6 * + col2 + cor0.col0 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-148
-70
0

query I rowsort
SELECT ALL 93 + - col2 * col2 FROM tab1 AS cor0
----
-2823
-3156
-9123

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT ( NULL ) <> ( col2 + col2 * col1 )
----

query I rowsort
SELECT ALL + tab0.col1 - - tab0.col2 FROM tab0 WHERE ( NULL ) NOT IN ( col0 / + col0 )
----

query I rowsort
SELECT - col1 * col2 + - col2 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT tab1.col0 * + col1 + - col0 AS col2 FROM tab1
----
576
75
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col1 col0 FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3601
SELECT ALL col1 - col0 DIV + col0 AS col0 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL col1 - col0 / + col0 AS col0 FROM tab2
----
16
30
58

query I rowsort
SELECT ALL - col2 + + col2 * + tab2.col0 * col0 AS col2 FROM tab2
----
1296
158158
237120

query I rowsort
SELECT col1 * col2 + - col2 + col1 * col0 AS col1 FROM tab1
----
1153
1428
2192

query I rowsort
SELECT DISTINCT col2 * tab0.col2 * - col2 AS col1 FROM tab0
----
-1
-35937
-551368

onlyif mysql # use DIV operator for integer division
query I rowsort label-3605
SELECT - col0 DIV col0 + col1 * col2 - tab2.col2 col1 FROM tab2
----
1507
607
809

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3605
SELECT - col0 / col0 + col1 * col2 - tab2.col2 col1 FROM tab2
----
1507
607
809

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * tab1.col2 col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT + col0 - + col1 AS col0 FROM tab1
----
-23
54
67

query III rowsort
SELECT * FROM tab2 WHERE + col1 + col2 NOT IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL col1 * + col2 * + tab2.col2 AS col2 FROM tab2
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-3610
SELECT + col0 DIV cor0.col1 + cor0.col0 FROM tab2 AS cor0
----
7
79
83

skipif mysql # not compatible
query I rowsort label-3610
SELECT + col0 / cor0.col1 + cor0.col0 FROM tab2 AS cor0
----
7
79
83

query I rowsort
SELECT DISTINCT - col1 - col0 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT ALL cor0.col0 + + col1 - - col1 * col1 AS col2 FROM tab0 AS cor0
----
7506
8461
9541

query I rowsort
SELECT - col2 * - cor0.col1 - col0 FROM tab1 cor0
----
1168
1401
506

onlyif mysql # use DIV operator for integer division
query I rowsort label-3614
SELECT DISTINCT col2 DIV tab1.col2 - + col2 AS col2 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-3614
SELECT DISTINCT col2 / tab1.col2 - + col2 AS col2 FROM tab1
----
-53
-56
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 + col2 col0 FROM tab1
----
28
47
83

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) NOT IN ( + col1 * col2 )
----

query I rowsort
SELECT ALL col2 / + col0 FROM tab1 WHERE NOT col1 NOT IN ( col0 * col0 - - col2 )
----

query I rowsort
SELECT ALL tab1.col1 * + col1 * - col1 AS col0 FROM tab1
----
-1000
-17576
-2197

query I rowsort
SELECT ALL - col1 * - col1 + - col1 * - tab0.col2 AS col1 FROM tab0 WHERE NOT NULL <= col2 + + col2
----

query I rowsort
SELECT col0 * col2 / col1 FROM tab0 AS cor0 WHERE NULL = + col2 + + col0 OR NOT ( - col2 * col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - cor0.col0 * cor0.col1 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3622
SELECT ALL cor0.col0 DIV + col0 - - col0 AS col1 FROM tab2 cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL cor0.col0 / + col0 - - col0 AS col1 FROM tab2 cor0
----
79
8
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-3623
SELECT - col1 * col0 DIV col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3623
SELECT - col1 * col0 / col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - col2 * cor0.col2 AS col0 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL col1 * - col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL col2 * col2 * - col1 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT DISTINCT + tab0.col0 - + col0 * col0 FROM tab0
----
-1190
-552
-7832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 - tab2.col0 col0 FROM tab2
----
-1422
-224
-4680

query I rowsort
SELECT - col1 + col1 * col1 - - col0 * - 81 FROM tab1 AS cor0
----
-5094
-6324
407

query I rowsort
SELECT ALL + + col0 * + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3632
SELECT ALL col0 + CAST( NULL AS SIGNED ) * 90 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL col0 + CAST ( NULL AS INTEGER ) * 90 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3633
SELECT DISTINCT + col2 + - CAST( ( - col0 ) AS SIGNED ) FROM tab1 cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-3633
SELECT DISTINCT + col2 + - CAST ( ( - col0 ) AS INTEGER ) FROM tab1 cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3634
SELECT col1 DIV 47 FROM tab0 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3634
SELECT col1 / 47 FROM tab0 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT - 9 * - col0 * + 65 AS col0 FROM tab2
----
4095
45630
46215

query I rowsort
SELECT + 50 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT + 90 + + col0 * col2 FROM tab1
----
252
3738
7770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * 97 col0 FROM tab1 AS cor0
----
-1261
-2522
-970

query I rowsort
SELECT DISTINCT cor0.col2 * ( 65 + col2 ) AS col2 FROM tab1 AS cor0
----
15456
6426
6954

query I rowsort
SELECT col0 + + 57 * + 17 AS col1 FROM tab2 AS cor0
----
1047
1048
976

query I rowsort
SELECT + + col2 + 32 FROM tab1 AS cor0
----
128
86
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-3642
SELECT ALL - col1 DIV 18 FROM tab2 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL - col1 / 18 FROM tab2 AS cor0
----
-1
-3
0

query I rowsort
SELECT DISTINCT col2 + + tab1.col0 AS col0 FROM tab1
----
121
176
57

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + tab2.col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3645
SELECT DISTINCT col2 DIV col1 - + col2 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT col2 / col1 - + col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT - tab2.col2 - - tab2.col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT - tab1.col1 + - tab1.col1 * col2 AS col1 FROM tab1
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT - col0 * col2 + 4 + 72 AS col0 FROM tab0 AS cor0
----
-716
-7222
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 - - col2 col2 FROM tab0
----
164
2
66

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + col2 / + col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3651
SELECT - col0 + + col1 DIV col0 AS col1 FROM tab2
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-3651
SELECT - col0 + + col1 / col0 AS col1 FROM tab2
----
-3
-78
-79

query I rowsort
SELECT + col0 * tab1.col2 FROM tab1 WHERE NOT NULL <= + col1
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3653
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3654
SELECT ALL + ( - col2 ) DIV + col2 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL + ( - col2 ) / + col2 AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - - 67 + - col2 * col2 FROM tab0 AS cor0
----
-1022
-6657
66

query I rowsort
SELECT DISTINCT + - cor0.col2 * + cor0.col1 + + 31 AS col0 FROM tab2 AS cor0
----
-1503
-615
-806

query I rowsort
SELECT + col0 * ( col0 ) * col0 AS col2 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT + col1 * col1 * + col1 AS col2 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT DISTINCT - col2 * + ( - col2 ) FROM tab0 cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-3660
SELECT + col1 DIV + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3660
SELECT + col1 / + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea

onlyif mysql # use DIV operator for integer division
query I rowsort label-3662
SELECT ALL ( col2 ) DIV 32 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL ( col2 ) / 32 FROM tab2
----
0
0
1

query I rowsort
SELECT - tab1.col0 * + col0 + + 88 FROM tab1
----
-4008
-6312
79

query I rowsort
SELECT + 64 * col1 + col1 FROM tab2
----
1105
2015
3835

query I rowsort
SELECT ( - col1 + + 14 * + 34 ) FROM tab0
----
379
385
390

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab1 AS cor0 WHERE NOT NULL BETWEEN - tab1.col2 AND NULL
----

query I rowsort
SELECT ALL 64 * + col2 FROM tab1
----
3456
3648
6144

onlyif mysql # use DIV operator for integer division
query I rowsort label-3668
SELECT ALL cor0.col1 DIV - col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL cor0.col1 / - col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ALL + cor0.col2 + + col2 * + col0 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 * col1 * - col2 FROM tab2 AS cor0
----
-22630
-24565
-39943

query I rowsort
SELECT DISTINCT + ( + col1 + col1 ) * tab0.col2 FROM tab0
----
14924
194
5676

query I rowsort
SELECT col0 * col2 - - col1 AS col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT col2 * - col2 * - col2 AS col0 FROM tab2
----
17576
19683
54872

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT col2 + col1 * + col2 AS col0 FROM tab2
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-3676
SELECT tab2.col2 - + col2 DIV col0 FROM tab2
----
24
26
38

skipif mysql # not compatible
query I rowsort label-3676
SELECT tab2.col2 - + col2 / col0 FROM tab2
----
24
26
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( tab0.col2 ) col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT 42 AS col0 FROM tab1
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 72 col2 FROM tab0 AS cor0
----
158
163
169

query I rowsort
SELECT + - col0 + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL col1 * + col1 * + col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT ALL ( 24 ) FROM tab2
----
24
24
24

query I rowsort
SELECT col2 * col1 - - tab1.col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT DISTINCT 56 + col2 AS col0 FROM tab2 cor0
----
82
83
94

query I rowsort
SELECT 84 * + cor0.col2 + + col0 AS col0 FROM tab0 AS cor0
----
119
2796
6977

query I rowsort
SELECT + ( col1 ) + - col1 + + cor0.col0 * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + 50 * col2 + col0 AS col0 FROM tab1 AS cor0
----
2703
2914
4880

query I rowsort
SELECT col1 + col0 + col0 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT + col1 * ( - col2 ) + + 49 AS col1 FROM tab2
----
-1485
-597
-788

query I rowsort
SELECT 87 + col2 + col2 AS col0 FROM tab2
----
139
141
163

query I rowsort
SELECT DISTINCT + tab0.col2 + - col1 * - ( + col0 ) AS col2 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT ALL - 1 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT ALL + ( tab0.col2 ) + - 6 FROM tab0
----
-5
27
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 + 18 col2 FROM tab2
----
-31
-6066
-6223

query I rowsort
SELECT ALL col2 + - col2 * tab0.col2 + col0 FROM tab0
----
-1032
-6553
35

query I rowsort
SELECT + 4 - - col2 AS col2 FROM tab1 AS cor0
----
100
58
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + + 5 col2 FROM tab2 AS cor0
----
1539
651
842

query I rowsort
SELECT 68 + col2 AS col0 FROM tab1 AS cor0
----
122
125
164

query I rowsort
SELECT - + 28 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
-11
3
31

query I rowsort
SELECT DISTINCT ( + col2 ) + col1 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT col1 + - ( - col2 ) * - col0 * ( ( tab1.col1 ) ) FROM tab1
----
-36470
-4186
-99827

query I rowsort
SELECT col2 * - col2 + - col0 FROM tab0
----
-1113
-36
-6813

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 3eea7cef970c8ff51d71b8a23ee129bf

onlyif mysql # use DIV operator for integer division
query I rowsort label-3704
SELECT - col0 * 81 DIV + col2 + col0 FROM tab1
----
-1
-26
13

skipif mysql # not compatible
query I rowsort label-3704
SELECT - col0 * 81 / + col2 + col0 FROM tab1
----
-1
-26
13

query I rowsort
SELECT ALL + col0 * col1 + + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL + + 67 + 32 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1981
-2493
-29

query I rowsort
SELECT DISTINCT - - col2 * cor0.col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - + col2 + + col2 * col2 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT DISTINCT + col2 + col2 + + col1 AS col2 FROM tab2 AS cor0
----
111
85
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL - 23 + - col2 * - col1 * - 6 + ( + cor0.col1 ) FROM tab1 AS cor0
----
-3433
-7498
-8421

query I rowsort
SELECT DISTINCT col1 + col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
106
122
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3713
SELECT - col1 DIV 84 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3713
SELECT - col1 / 84 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3714
SELECT DISTINCT + - col1 DIV 99 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT + - col1 / 99 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 41 AS col0 FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT - 45 + - col0 AS col0 FROM tab2 cor0
----
-123
-124
-52

query I rowsort
SELECT ALL + - col1 + 70 AS col0 FROM tab1 AS cor0
----
44
57
60

query I rowsort
SELECT DISTINCT - col0 + cor0.col2 * col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT ALL + + col2 * col1 AS col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT 4 * col1 AS col0 FROM tab0 AS cor0
----
344
364
388

query I rowsort
SELECT 71 + + col2 FROM tab1
----
125
128
167

query I rowsort
SELECT cor0.col0 * col1 + - col0 * - col0 FROM tab0 AS cor0
----
16020
2640
4620

query I rowsort
SELECT ALL - 78 FROM tab0, tab2 cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT DISTINCT - - col1 + - ( + col2 ) AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - + cor0.col0 + - 51 * + col2 FROM tab0 AS cor0
----
-1707
-4271
-86

query I rowsort
SELECT + col2 * 38 AS col2 FROM tab2 AS cor0
----
1026
1444
988

query I rowsort
SELECT ALL - - col2 * ( 3 ) FROM tab0 cor0
----
246
3
99

query I rowsort
SELECT - col1 * + ( - 2 ) FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT + col1 * + 78 FROM tab2 AS cor0
----
1326
2418
4602

query I rowsort
SELECT cor0.col2 + - col0 * 18 FROM tab0 AS cor0
----
-1520
-399
-629

query I rowsort
SELECT ALL + + col1 * 19 AS col0 FROM tab0 AS cor0
----
1634
1729
1843

onlyif mysql # use DIV operator for integer division
query I rowsort label-3732
SELECT DISTINCT - - cor0.col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT - - cor0.col1 / + col1 AS col2 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + cor0.col1 col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL + + cor0.col1 * 97 + 88 AS col0 FROM tab0 cor0
----
8430
8915
9497

query I rowsort
SELECT + col0 + col2 * col2 * col1 FROM tab0 AS cor0
----
132
611973
93678

query I rowsort
SELECT ALL + 25 * + col2 + + col2 * - col1 FROM tab0
----
-2013
-5412
-72

query I rowsort
SELECT - col1 + - ( + 53 ) + - col2 FROM tab2 cor0
----
-108
-111
-138

query I rowsort
SELECT + cor0.col0 * + ( - ( col1 ) ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT 12 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 cor2, tab0 AS cor3
----
243 values hashing to 009580ad7795d0f2b23f7f164938fe70

query I rowsort
SELECT ALL + tab0.col0 * ( tab0.col2 ) * col1 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT - cor0.col2 * + 74 FROM tab2 AS cor0
----
-1924
-1998
-2812

query I rowsort
SELECT ALL - + cor0.col2 + + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT DISTINCT - - col1 + + col1 AS col0 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3744
SELECT cor0.col0 DIV - 45 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3744
SELECT cor0.col0 / - 45 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f

onlyif mysql # use DIV operator for integer division
query I rowsort label-3745
SELECT ALL tab1.col1 DIV - col1 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL tab1.col1 / - col1 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3746
SELECT + + col1 DIV 15 AS col1 FROM tab2 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3746
SELECT + + col1 / 15 AS col1 FROM tab2 cor0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-3747
SELECT - col2 DIV ( 40 * col0 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3747
SELECT - col2 / ( 40 * col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + col2 * ( 30 ) + - col1 AS col2 FROM tab1 cor0
----
-1646
-1720
-2893

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3749
SELECT - + CAST( NULL AS SIGNED ) + ( col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3749
SELECT - + CAST ( NULL AS INTEGER ) + ( col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - col0 * col1 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT ALL - col0 * + col1 - col1 * 35 AS col0 FROM tab0 cor0
----
-11284
-5074
-6790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col0 AS REAL ) * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + col0 * col1 + - col0 AS col1 FROM tab0 cor0
----
2040
3360
8010

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0 cor1, tab1, tab2 AS cor2
----
3645 values hashing to 81a27955147133c47c9e8e63dacc5c37

query I rowsort
SELECT + + 6 * + col2 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
350
352
589

query I rowsort
SELECT - cor0.col1 * 77 FROM tab1, tab2 AS cor0
----
9 values hashing to 766e454ec38808a64fc2d2b030e7d0f3

query I rowsort
SELECT - col2 * col0 + - cor0.col0 * col1 FROM tab1 AS cor0
----
-240
-4288
-8720

query I rowsort
SELECT ALL + cor0.col2 * + 66 FROM tab1, tab0 AS cor0
----
9 values hashing to 52d860a6dedb10286dcb5c687340484f

query I rowsort
SELECT - col0 * cor0.col0 * + col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT - cor0.col2 + - col2 * cor0.col1 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT - - 3 * - cor0.col0 + - col2 FROM tab0 AS cor0
----
-105
-106
-349

query I rowsort
SELECT ALL - 21 * - col2 + 31 AS col1 FROM tab1
----
1165
1228
2047

onlyif mysql # use DIV operator for integer division
query I rowsort label-3765
SELECT cor0.col2 + col2 DIV + col1 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-3765
SELECT cor0.col2 + col2 / + col1 FROM tab2 AS cor0
----
26
27
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) * - ( col2 ) + - col2 col0 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT ALL + 33 * - col0 - + 49 AS col2 FROM tab0 AS cor0
----
-1204
-2986
-841

query I rowsort
SELECT 98 + - col1 AS col1 FROM tab1 AS cor0
----
72
85
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-3769
SELECT + 58 DIV + col1 + + col0 AS col1 FROM tab1 AS cor0
----
5
69
84

skipif mysql # not compatible
query I rowsort label-3769
SELECT + 58 / + col1 + + col0 AS col1 FROM tab1 AS cor0
----
5
69
84

query I rowsort
SELECT DISTINCT col2 * col0 - col0 AS col2 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT DISTINCT 32 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 col1 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3773
SELECT DISTINCT - ( col1 ) DIV + col0 + + col1 col0 FROM tab2
----
17
27
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT - ( col1 ) / + col0 + + col1 col0 FROM tab2
----
17
27
59

query I rowsort
SELECT DISTINCT - + ( 53 ) * col1 FROM tab2 AS cor0
----
-1643
-3127
-901

query I rowsort
SELECT - col0 + col2 - - cor0.col2 FROM tab2 cor0
----
-26
-3
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3776
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col0 * - col2 + - ( cor0.col2 + col1 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 * - col2 + - ( cor0.col2 + col1 ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 78 + col2 FROM tab0 AS cor0
----
111
160
79

query I rowsort
SELECT + - col0 * - col0 + col2 AS col0 FROM tab2 cor0
----
6110
6279
76

query I rowsort
SELECT 43 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT - 94 + col2 * - cor0.col0 * 75 + col0 AS col1 FROM tab0 AS cor0
----
-2684
-547355
-59470

query I rowsort
SELECT col2 * + 49 FROM tab2
----
1274
1323
1862

query I rowsort
SELECT + ( + cor0.col1 ) + ( + col2 + - col2 ) * ( + col2 * - cor0.col0 ) AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT + 49 * 63 FROM tab2
----
3087
3087
3087

query I rowsort
SELECT - col0 * col0 + + col2 FROM tab2 cor0
----
-22
-6058
-6203

query I rowsort
SELECT - cor0.col1 * 74 * - cor0.col2 + col1 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
207948
3783
544089

query I rowsort
SELECT ( - col2 ) + - col0 + ( + col2 + tab1.col2 ) * - ( col0 * + col1 + - ( tab1.col1 ) ) FROM tab1
----
-197360
-5673
-71941

query I rowsort
SELECT 0 * 40 AS col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3788
SELECT ALL 13 DIV + tab2.col0 - col1 FROM tab2
----
-17
-30
-59

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL 13 / + tab2.col0 - col1 FROM tab2
----
-17
-30
-59

query I rowsort
SELECT DISTINCT col2 * + ( + col2 ) * - cor0.col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-3790
SELECT - col2 DIV ( - col1 ) col0 FROM tab2 AS cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3790
SELECT - col2 / ( - col1 ) col0 FROM tab2 AS cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * + col1 col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3792
SELECT DISTINCT CAST( NULL AS SIGNED ) / + cor0.col2 AS col0 FROM tab2, tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + cor0.col2 AS col0 FROM tab2, tab1 cor0
----
NULL

query I rowsort
SELECT ALL - col0 + + col1 * col2 AS col0 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT ALL + col2 * + 23 FROM tab2 AS cor0
----
598
621
874

query I rowsort
SELECT ALL - col0 + + col0 * 20 AS col2 FROM tab2 AS cor0
----
133
1482
1501

onlyif mysql # use DIV operator for integer division
query I rowsort label-3796
SELECT + col2 + 56 DIV + 90 AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3796
SELECT + col2 + 56 / + 90 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - cor1.col2 - + cor1.col0 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-121
-176
-57

query I rowsort
SELECT DISTINCT + col0 * + ( col2 ) - col0 AS col0 FROM tab1
----
159
3584
7600

query I rowsort
SELECT ALL tab2.col1 + col0 - + tab2.col2 FROM tab2
----
11
111
58

query I rowsort
SELECT - + ( - 82 ) AS col0 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT DISTINCT col1 - 38 AS col2 FROM tab1
----
-12
-25
-28

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3802
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2 FROM tab2, tab2 cor0
----
NULL

query I rowsort
SELECT + col2 + - col2 + 51 * col1 FROM tab2
----
1581
3009
867

query I rowsort
SELECT + tab0.col1 + - 91 FROM tab0
----
-5
0
6

query I rowsort
SELECT DISTINCT + col0 + 59 * - col1 FROM tab2 AS cor0
----
-1822
-3403
-924

query I rowsort
SELECT col0 + + ( + tab2.col2 ) FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3807
SELECT DISTINCT + 43 DIV col1 AS col1 FROM tab1 cor0
----
1
3
4

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT + 43 / col1 AS col1 FROM tab1 cor0
----
1
3
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3808
SELECT - cor0.col0 DIV col2 col1 FROM tab0 AS cor0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3808
SELECT - cor0.col0 / col2 col1 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT + 46 + col1 FROM tab2 AS cor0
----
105
63
77

query I rowsort
SELECT ALL - 46 * + col0 AS col0 FROM tab2 AS cor0
----
-322
-3588
-3634

onlyif mysql # use DIV operator for integer division
query I rowsort label-3811
SELECT - 34 DIV - cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3811
SELECT - 34 / - cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 60 * + col0 AS col1 FROM tab2
----
420
4680
4740

query I rowsort
SELECT DISTINCT ( + 14 ) + + col1 FROM tab2
----
31
45
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-3814
SELECT ALL - ( tab2.col0 ) * - col2 + col2 DIV col0 + tab2.col1 FROM tab2
----
2087
223
3019

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL - ( tab2.col0 ) * - col2 + col2 / col0 + tab2.col1 FROM tab2
----
2087
223
3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3815
SELECT CAST( + col2 AS SIGNED ) + col0 AS col0 FROM tab1
----
121
176
57

skipif mysql # not compatible
query I rowsort label-3815
SELECT CAST ( + col2 AS INTEGER ) + col0 AS col0 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT col2 + col1 * - col2 AS col2 FROM tab2
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-3817
SELECT ALL col2 DIV cor0.col1 FROM tab2 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL col2 / cor0.col1 FROM tab2 cor0
----
0
0
2

query I rowsort
SELECT - + ( - col0 ) * ( col0 ) AS col2 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3819
SELECT - col0 + cor0.col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3819
SELECT - col0 + cor0.col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - ( + col1 ) + + 87 AS col0 FROM tab0 AS cor0
----
173
178
184

query I rowsort
SELECT ALL cor0.col2 + - col1 * col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL - 0 * col0 * + ( - col0 * - col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 74 AS col2 FROM tab0 cor0
----
74
74
74

query I rowsort
SELECT + col1 + col1 * 78 FROM tab0
----
6794
7189
7663

query I rowsort
SELECT ALL + 87 * + 41 AS col0 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 14b848a3329a97f949957d012e7fe210

query I rowsort
SELECT 81 + - col2 FROM tab0
----
-1
48
80

query I rowsort
SELECT 37 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT - ( col1 + ( 19 ) ) FROM tab0
----
-105
-110
-116

query I rowsort
SELECT - - col1 + col2 * col2 AS col0 FROM tab0 AS cor0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-3830
SELECT ALL - 65 DIV col2 FROM tab0
----
-1
-65
0

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL - 65 / col2 FROM tab0
----
-1
-65
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + 16 col1 FROM tab1 AS cor0
----
-160
-208
-416

query I rowsort
SELECT ALL cor0.col1 + ( + col1 ) AS col2 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-3833
SELECT DISTINCT + col1 * cor0.col0 DIV cor0.col1 + col2 + - 51 * col2 AS col2 FROM tab1 AS cor0
----
-2697
-2786
-4720

skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT + col1 * cor0.col0 / cor0.col1 + col2 + - 51 * col2 AS col2 FROM tab1 AS cor0
----
-2697
-2786
-4720

query I rowsort
SELECT ALL - - cor0.col1 * - col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT 15 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3837
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) + col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) + col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 * - col0 + + 86 AS col0 FROM tab1 AS cor0
----
-3562
-7594
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3839
SELECT - - col2 DIV col0 AS col0 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3839
SELECT - - col2 / col0 AS col0 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT col0 * 1 + + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT - col1 * + 90 + + 60 FROM tab0 cor0
----
-7680
-8130
-8670

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3842
SELECT + cor0.col2 * - cor0.col0 + col1 / + CAST( NULL AS SIGNED ) - - col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3842
SELECT + cor0.col2 * - cor0.col0 + col1 / + CAST ( NULL AS INTEGER ) - - col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 12 * - col1 AS col2 FROM tab0 AS cor0
----
1032
1092
1164

query I rowsort
SELECT + cor0.col0 * + col0 + col2 FROM tab2 cor0
----
6110
6279
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + ( + col1 ) col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 + - 85 col1 FROM tab0 AS cor0
----
-109
-120
-174

query I rowsort
SELECT + col1 - + col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL col2 * + col1 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL 94 + - col1 AS col1 FROM tab2
----
35
63
77

query I rowsort
SELECT ALL - - 30 * col0 AS col1 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT DISTINCT + ( + col2 ) + col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT 83 + - col0 FROM tab0 AS cor0
----
-6
48
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3853
SELECT DISTINCT - CAST( col1 AS SIGNED ) * + col0 + ( col0 ) FROM tab2 AS cor0
----
-1264
-210
-4524

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * + col0 + ( col0 ) FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) + col1 + 63 FROM tab2 cor0
----
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3855
SELECT ALL CAST( NULL AS SIGNED ) + col0 - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL CAST ( NULL AS INTEGER ) + col0 - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 88 col2 FROM tab2 AS cor0
----
114
115
126

query I rowsort
SELECT DISTINCT col0 + - col0 * - cor0.col1 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT + 54 * col2 + - col2 AS col1 FROM tab2 AS cor0
----
1378
1431
2014

query I rowsort
SELECT + col2 - 93 AS col2 FROM tab2 AS cor0
----
-55
-66
-67

query I rowsort
SELECT DISTINCT - col0 + cor0.col0 + + cor0.col0 * 94 AS col2 FROM tab1 AS cor0
----
282
6016
7520

query I rowsort
SELECT ALL + col1 * - col2 * + cor0.col2 + - 74 AS col1 FROM tab2 AS cor0
----
-22673
-24622
-39958

onlyif mysql # use DIV operator for integer division
query I rowsort label-3862
SELECT DISTINCT + - col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3862
SELECT DISTINCT + - col2 / - col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 - + col0 AS col1 FROM tab1 cor0
----
-29
-74
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3864
SELECT DISTINCT - CAST( - col1 AS SIGNED ) + col0 * ( col2 ) FROM tab1
----
188
3658
7693

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) + col0 * ( col2 ) FROM tab1
----
188
3658
7693

query I rowsort
SELECT + col0 * - 42 + cor0.col2 + 43 * + col0 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - 17 + 67 AS col2 FROM tab2 cor0
----
50
50
50

query I rowsort
SELECT + col0 + - col0 + - col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - col0 + col1 + col2 AS col2 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT DISTINCT col0 * 44 FROM tab1
----
132
2816
3520

query I rowsort
SELECT + col0 * + col0 * - col1 FROM tab1
----
-234
-40960
-83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3871
SELECT + col2 * - CAST( NULL AS SIGNED ) * + tab2.col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3871
SELECT + col2 * - CAST ( NULL AS INTEGER ) * + tab2.col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + col2 ) * + cor0.col2 + 17 + col1 FROM tab2 cor0
----
1478
752
777

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3873
SELECT DISTINCT CAST( NULL AS SIGNED ) / + col2 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3873
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + col2 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT col0 * 97 FROM tab2
----
679
7566
7663

query I rowsort
SELECT ALL 62 + col2 AS col0 FROM tab1
----
116
119
158

query I rowsort
SELECT ALL tab1.col2 * 73 * - 77 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 206d8087eb85d10256270c52becf7a66

onlyif mysql # use DIV operator for integer division
query I rowsort label-3877
SELECT DISTINCT col1 * col0 + ( + col0 ) DIV - col2 AS col1 FROM tab0
----
2064
3360
8098

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT col1 * col0 + ( + col0 ) / - col2 AS col1 FROM tab0
----
2064
3360
8098

query I rowsort
SELECT - cor0.col1 * - 20 AS col0 FROM tab0 cor0
----
1720
1820
1940

query I rowsort
SELECT - col0 + + tab1.col0 * - 72 FROM tab1
----
-219
-4672
-5840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3880
SELECT DISTINCT ( - col0 ) + + ( col1 ) DIV tab0.col0 AS col0 FROM tab0
----
-21
-33
-88

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT ( - col0 ) + + ( col1 ) / tab0.col0 AS col0 FROM tab0
----
-21
-33
-88

query I rowsort
SELECT - + col0 * + col2 - + col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT 41 AS col1 FROM tab0 cor0
----
41
41
41

query I rowsort
SELECT DISTINCT - 13 + + col0 AS col0 FROM tab1 cor0
----
-10
51
67

query I rowsort
SELECT DISTINCT - 12 * col2 FROM tab1 cor0
----
-1152
-648
-684

query I rowsort
SELECT ALL col1 + - 49 AS col1 FROM tab2 AS cor0
----
-18
-32
10

query I rowsort
SELECT + col2 + 97 FROM tab1 AS cor0
----
151
154
193

query I rowsort
SELECT DISTINCT col2 * + 71 AS col0 FROM tab0 AS cor0
----
2343
5822
71

query I rowsort
SELECT col2 * + ( + ( - col0 ) ) FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3889
SELECT + + col1 * - CAST( NULL AS SIGNED ) * + col0 - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3889
SELECT + + col1 * - CAST ( NULL AS INTEGER ) * + col0 - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + ( + col2 * cor0.col1 ) AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + col0 * col1 + col0 * cor0.col2 * 1 FROM tab1 AS cor0
----
240
4288
8720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3892
SELECT ( - col1 ) * col1 + CAST( + col2 AS SIGNED ) * - col2 AS col2 FROM tab1 AS cor0
----
-3349
-3592
-9385

skipif mysql # not compatible
query I rowsort label-3892
SELECT ( - col1 ) * col1 + CAST ( + col2 AS INTEGER ) * - col2 AS col2 FROM tab1 AS cor0
----
-3349
-3592
-9385

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - ( - cor0.col1 ) ) * cor0.col1 * + col1 + col1 col0 FROM tab2 AS cor0
----
205438
29822
4930

query I rowsort
SELECT DISTINCT col2 * - col0 + + col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL col0 * 90 + col2 - col2 * col2 FROM tab0 AS cor0
----
1104
1368
3150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 91 ) col1 FROM tab2 AS cor0
----
91
91
91

query I rowsort
SELECT col1 * cor0.col0 + - cor0.col1 FROM tab2 cor0
----
1326
186
4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3898
SELECT - + CAST( col2 AS SIGNED ) + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3898
SELECT - + CAST ( col2 AS INTEGER ) + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3899
SELECT ALL - - CAST( NULL AS SIGNED ) + cor0.col0 - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL - - CAST ( NULL AS INTEGER ) + cor0.col0 - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 49 * - col1 AS col1 FROM tab2 AS cor0
----
1519
2891
833

query I rowsort
SELECT + + 50 * col2 FROM tab0 AS cor0
----
1650
4100
50

query I rowsort
SELECT - 83 * col2 - col0 AS col2 FROM tab2
----
-2236
-2248
-3233

query I rowsort
SELECT ALL + - 80 - col0 * 69 FROM tab2 AS cor0
----
-5462
-5531
-563

query I rowsort
SELECT DISTINCT + - col2 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT + col0 * - col1 + 13 AS col1 FROM tab1 AS cor0
----
-1027
-627
-65

query I rowsort
SELECT ALL + col1 * + col1 - cor0.col1 * + cor0.col0 FROM tab2 AS cor0
----
-1054
-1121
744

query I rowsort
SELECT DISTINCT + col1 * col1 - - col2 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT + col0 - - col1 * + col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL col0 * ( 57 ) * col2 + col1 * col0 FROM tab0 AS cor0
----
424085
47208
5390

query I rowsort
SELECT ALL + col1 + 91 + col1 FROM tab1 AS cor0
----
111
117
143

query I rowsort
SELECT cor0.col2 + col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT col0 * - 15 + col0 FROM tab1 AS cor0
----
-1120
-42
-896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 28 - col1 * - col1 col0 FROM tab1 AS cor0
----
1892
2409
760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3914
SELECT ALL + col2 + + CAST( + col0 * col0 + + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1323
695
8094

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL + col2 + + CAST ( + col0 * col0 + + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1323
695
8094

query I rowsort
SELECT ALL - tab1.col1 * + tab1.col1 AS col2 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NULL BETWEEN + col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT cor0.col0 + col0 * - col0 FROM tab1 AS cor0
----
-4032
-6
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-3918
SELECT ALL - + cor0.col1 DIV - col0 AS col0 FROM tab1 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL - + cor0.col1 / - col0 AS col0 FROM tab1 cor0
----
0
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3919
SELECT ALL cor0.col1 DIV col0 + col2 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-3919
SELECT ALL cor0.col1 / col0 + col2 FROM tab0 AS cor0
----
3
36
83

query I rowsort
SELECT - - col0 * + col1 + col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + + col2 - - col0 AS col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT col2 * - col0 + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 - + col1 * - col2 col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL col1 + col0 AS col1 FROM tab2 cor0
----
137
38
96

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 b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT + col2 + col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 / + col2 - + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN col0 * col1 + cor0.col0 * cor0.col1 * + col2 AND col1 * + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 IN ( + col0 / col2 )
----
24
86
33
89
91
82

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = ( col0 * col2 + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3930
SELECT DISTINCT tab1.col0 DIV + col0 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT tab1.col0 / + col0 AS col0 FROM tab1
----
1

query I rowsort
SELECT ALL - col0 * col2 - col1 FROM tab0 cor0
----
-132
-7389
-878

query I rowsort
SELECT + col2 * col0 - + col0 * cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
-3360
-656820
-67320

query I rowsort
SELECT + col0 * - cor0.col1 * col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT - col2 * + cor0.col0 + col2 * - col0 * - col2 AS col1 FROM tab1 cor0
----
204288
729600
8586

onlyif mysql # use DIV operator for integer division
query I rowsort label-3935
SELECT col2 DIV - col1 + - cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-3935
SELECT col2 / - col1 + - cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - + col0 * + cor0.col2 * cor0.col1 + - col1 FROM tab0 AS cor0
----
-3492
-664209
-68198

query I rowsort
SELECT ALL + + col0 + - col1 - col2 FROM tab0 cor0
----
-63
-84
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 * - col1 col0 FROM tab2 cor0
----
-22831
-271518
-6727

query I rowsort
SELECT + - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

query I rowsort
SELECT DISTINCT col1 + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * - col0 + col2 col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col0 * - cor0.col0 + + col2 + col1 FROM tab2 AS cor0
----
-106042
-1461
-358871

query I rowsort
SELECT ALL + + col2 + - col2 * col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL col0 * + col2 + col0 AS col2 FROM tab1
----
165
3712
7760

query I rowsort
SELECT ALL col1 + col1 * - col1 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT ALL + col0 + col0 * - col2 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT - col2 * col1 + + col2 * col0 + col1 * col2 * col0 FROM tab0
----
3333
66066
663954

query I rowsort
SELECT DISTINCT col2 * col2 + + tab2.col0 * col1 * col1 FROM tab2
----
24275
272194
7456

query I rowsort
SELECT - 48 * col0 FROM tab1 cor0
----
-144
-3072
-3840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3950
SELECT 2 * col2 DIV + 16 + + col1 AS col0 FROM tab2 AS cor0
----
21
34
62

skipif mysql # not compatible
query I rowsort label-3950
SELECT 2 * col2 / + 16 + + col1 AS col0 FROM tab2 AS cor0
----
21
34
62

query I rowsort
SELECT - col2 * tab0.col0 * - col2 AS col1 FROM tab0
----
26136
35
598436

query I rowsort
SELECT ALL - col0 * col2 + tab0.col2 * col1 * tab0.col1 FROM tab0
----
243276
671744
9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 + - col2 col0 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT ALL - tab2.col1 * col0 * + col0 FROM tab2
----
-106097
-1519
-358956

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( col0 + col0 * - col0 )
----

query I rowsort
SELECT DISTINCT col0 * + col1 * - col0 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT + 27 + tab2.col0 * + ( + col2 + col0 ) AS col2 FROM tab2
----
265
8139
9270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 5 * col0 - col2 * col1 col1 FROM tab0 AS cor0
----
-272
-2958
-7907

query I rowsort
SELECT - 37 * - col0 + 90 FROM tab0 AS cor0
----
1385
3383
978

query I rowsort
SELECT - 42 * - tab1.col2 AS col1 FROM tab1
----
2268
2394
4032

query I rowsort
SELECT ALL col1 + + tab1.col0 * - col2 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT + col0 <> col1 * - col2 - + col2
----

query I rowsort
SELECT DISTINCT - col1 + - col2 * - tab2.col2 FROM tab2
----
1427
617
698

query I rowsort
SELECT DISTINCT - tab2.col1 + + col0 AS col2 FROM tab2
----
-24
19
62

query I rowsort
SELECT col0 * - cor0.col0 FROM tab1 AS cor0 WHERE NULL < + col1 + - col1 * col0
----

query I rowsort
SELECT col2 + col2 - - col1 / col0 FROM tab2 WHERE NOT NULL NOT BETWEEN - col0 + + col1 * + col1 AND ( col2 * + col2 )
----

query I rowsort
SELECT - col2 * - col1 + col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT ALL col2 * + col0 * col1 - + col0 FROM tab1
----
36416
4209
99760

query III rowsort
SELECT * FROM tab1 WHERE col0 / col2 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col2 * + col1 + tab0.col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT col1 * col1 * - tab2.col0 AS col1 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT col0 + + col2 + col2 * col2 AS col1 FROM tab0
----
1146
37
6895

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) NOT IN ( - col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

onlyif mysql # use DIV operator for integer division
query I rowsort label-3974
SELECT col1 DIV - col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3974
SELECT col1 / - col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3975
SELECT + col2 DIV - col0 - col1 AS col2 FROM tab2
----
-17
-34
-59

skipif mysql # not compatible
query I rowsort label-3975
SELECT + col2 / - col0 - col1 AS col2 FROM tab2
----
-17
-34
-59

query I rowsort
SELECT ALL 27 * col1 - + col2 AS col1 FROM tab1
----
213
255
648

query I rowsort
SELECT col2 * - col1 - 3 * col1 AS col0 FROM tab2 AS cor0
----
-1711
-697
-930

query I rowsort
SELECT - 82 + + col1 FROM tab1 AS cor0
----
-56
-69
-72

onlyif mysql # use DIV operator for integer division
query I rowsort label-3979
SELECT 82 - col2 DIV + 25 AS col0 FROM tab2
----
81
81
81

skipif mysql # not compatible
query I rowsort label-3979
SELECT 82 - col2 / + 25 AS col0 FROM tab2
----
81
81
81

query I rowsort
SELECT + col1 + + col0 * + col0 AS col1 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3981
SELECT col2 * - CAST( + 39 AS SIGNED ) + + col0 * col1 AS col2 FROM tab1 cor0
----
-1583
-2028
-2704

skipif mysql # not compatible
query I rowsort label-3981
SELECT col2 * - CAST ( + 39 AS INTEGER ) + + col0 * col1 AS col2 FROM tab1 cor0
----
-1583
-2028
-2704

query I rowsort
SELECT - col0 + 28 * col2 FROM tab1 AS cor0
----
1509
1532
2608

query I rowsort
SELECT DISTINCT + col0 * col1 + + col1 * col1 FROM tab0 cor0
----
12804
16380
9460

query I rowsort
SELECT DISTINCT + col0 * + col1 + col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL + - col1 * ( col1 ) AS col0 FROM tab2 cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - cor0.col2 * + col0 * col0 col1 FROM tab2 AS cor0
----
-1292
-158125
-237141

query I rowsort
SELECT ALL + cor0.col2 + + ( - col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 86 * + col2 FROM tab2
----
-2236
-2322
-3268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 col1 FROM tab1
----
-32
-32
-32

query I rowsort
SELECT DISTINCT - ( + col2 + - 72 ) AS col1 FROM tab1
----
-24
15
18

query I rowsort
SELECT DISTINCT - col0 + 73 * + col2 AS col0 FROM tab0 AS cor0
----
2385
38
5897

query I rowsort
SELECT ALL tab1.col0 * 78 + tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 7a028ad0a2574b09f328e73d8d8b5b7c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3993
SELECT CAST( - col2 AS SIGNED ) col2 FROM tab1 cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3993
SELECT CAST ( - col2 AS INTEGER ) col2 FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT + 39 * 67 FROM tab2 AS cor0
----
2613
2613
2613

query I rowsort
SELECT + - 13 * - col2 FROM tab2 AS cor0
----
338
351
494

query I rowsort
SELECT ALL + 45 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT + 65 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ALL + 31 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3999
SELECT col0 * col1 - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3999
SELECT col0 * col1 - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col1 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + tab0.col2 * - tab0.col0 + 75 AS col2 FROM tab0, tab0 cor0
----
-717
-7223
40

query I rowsort
SELECT DISTINCT col1 * 65 AS col0 FROM tab1
----
1690
650
845

query I rowsort
SELECT ALL - col0 + - col0 * - col1 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT 48 * col1 AS col2 FROM tab2 cor0
----
1488
2832
816

query I rowsort
SELECT ( - col2 * + col2 ) + + col1 * - tab0.col1 * + col0 FROM tab0
----
-178593
-329316
-743733

query I rowsort
SELECT DISTINCT - ( 50 ) * - col0 FROM tab0
----
1200
1750
4450

query I rowsort
SELECT - 82 + 24 FROM tab2
----
-58
-58
-58

query I rowsort
SELECT DISTINCT tab2.col1 - tab2.col1 * col2 AS col0 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT - col2 + col1 * + col2 AS col0 FROM tab2
----
1508
608
810

query I rowsort
SELECT ALL 57 - + col0 * col0 AS col2 FROM tab1
----
-4039
-6343
48

query I rowsort
SELECT + - 79 * - col1 FROM tab0 AS cor0
----
6794
7189
7663

query I rowsort
SELECT DISTINCT + 28 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1792
-2240
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-4013
SELECT DISTINCT col1 + - col0 + tab1.col2 DIV col2 FROM tab1
----
-53
-66
24

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT col1 + - col0 + tab1.col2 / col2 FROM tab1
----
-53
-66
24

query I rowsort
SELECT DISTINCT + - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-7
-78
-79

query I rowsort
SELECT col2 * - col1 * + col0 AS col2 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-4016
SELECT + col1 DIV col2 + - col0 * col0 FROM tab0 AS cor0
----
-1128
-574
-7920

skipif mysql # not compatible
query I rowsort label-4016
SELECT + col1 / col2 + - col0 * col0 FROM tab0 AS cor0
----
-1128
-574
-7920

onlyif mysql # use DIV operator for integer division
query I rowsort label-4017
SELECT - col0 DIV col0 + col2 * col0 * col1 - col1 * col2 * + col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4017
SELECT - col0 / col0 + col2 * col0 * col1 - col1 * col2 * + col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col1 + + col0 + col0 AS col1 FROM tab0 AS cor0
----
-27
-38
87

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab2, tab0 cor1
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1

query I rowsort
SELECT 85 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7

query I rowsort
SELECT - cor0.col2 * ( 8 ) AS col1 FROM tab2 AS cor0
----
-208
-216
-304

query I rowsort
SELECT col1 * 20 FROM tab1
----
200
260
520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 4 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT col2 * 56 FROM tab2
----
1456
1512
2128

query I rowsort
SELECT - + 81 * - col1 FROM tab0 AS cor0
----
6966
7371
7857

query I rowsort
SELECT ALL ( ( + col0 ) ) * col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4027
SELECT DISTINCT CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * 85 AS col1 FROM tab1
----
1105
2210
850

query I rowsort
SELECT 70 + - tab2.col2 AS col2 FROM tab2
----
32
43
44

query I rowsort
SELECT + col0 + col1 * col2 * - col1 AS col0 FROM tab0 AS cor0
----
-244044
-678953
-9374

query I rowsort
SELECT + cor0.col2 + + col1 * - col2 * + col0 FROM tab2 cor0
----
-119626
-50996
-5832

query I rowsort
SELECT ALL - col0 * - col2 + cor0.col2 AS col2 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT col0 * ( col1 ) + + col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT col0 + + col0 * + cor0.col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT - col2 + 81 FROM tab2 cor0
----
43
54
55

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + 21 AS REAL ) * col2 * ( col0 ) + col1 FROM tab1 cor0
----
161293
3428
76618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 55 * col0 col0 FROM tab0 cor0
----
1320
1925
4895

query I rowsort
SELECT ALL + ( col2 ) * + col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - 56 + + col2 AS col1 FROM tab1 AS cor0
----
-2
1
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-4040
SELECT ALL - - col2 + + cor0.col2 DIV col0 FROM tab2 cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL - - col2 + + cor0.col2 / col0 FROM tab2 cor0
----
26
30
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 + + col0 * col1 col1 FROM tab1 AS cor0
----
1008
46
608

query I rowsort
SELECT DISTINCT - - ( + col2 ) * col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + ( + 99 ) FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT ALL - 56 FROM tab0, tab1 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4045
SELECT DISTINCT cor0.col1 / cor0.col0 + + CAST( NULL AS SIGNED ) * - col1 / + col0 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT cor0.col1 / cor0.col0 + + CAST ( NULL AS INTEGER ) * - col1 / + col0 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 * col1 * 30 FROM tab1
----
-20280
-3000
-5070

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4047
SELECT CAST( tab2.col0 AS SIGNED ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

skipif mysql # not compatible
query I rowsort label-4047
SELECT CAST ( tab2.col0 AS INTEGER ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * - col0 col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + col1 * + cor0.col2 + col0 * + col1 FROM tab1 cor0
----
1210
1482
2288

query I rowsort
SELECT DISTINCT + ( + col1 ) - + col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL 5 * col1 + 6 * col2 FROM tab0 cor0
----
491
628
947

query I rowsort
SELECT - + 56 * col1 AS col1 FROM tab1 AS cor0
----
-1456
-560
-728

query I rowsort
SELECT ALL + - col1 * + col2 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + col1 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * - col2 + - col1 + cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT col0 + 87 FROM tab2 AS cor0
----
165
166
94

query I rowsort
SELECT + col1 * col2 + + col0 * - col2 FROM tab1 cor0
----
-3078
-6432
1242

query I rowsort
SELECT + col2 + - 48 AS col2 FROM tab0 AS cor0
----
-15
-47
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4059
SELECT DISTINCT + + col0 + + CAST( + 44 AS SIGNED ) DIV + col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT + + col0 + + CAST ( + 44 AS INTEGER ) / + col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + col0 + 90 AS col0 FROM tab2 cor0
----
168
169
97

query I rowsort
SELECT ALL + - col2 * 68 - col2 AS col2 FROM tab1 AS cor0
----
-3726
-3933
-6624

query I rowsort
SELECT ALL + + col0 * - col1 + + 20 + - cor0.col0 * + col1 FROM tab2 AS cor0
----
-2666
-414
-9184

query I rowsort
SELECT - col1 * 17 - - col2 FROM tab0 AS cor0
----
-1429
-1465
-1648

query I rowsort
SELECT DISTINCT + - col1 * - ( - col1 ) + + col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT - col1 + + 85 AS col1 FROM tab1 AS cor0
----
59
72
75

query I rowsort
SELECT ALL - col1 + - 66 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
-4
-47
-90

query I rowsort
SELECT ALL - col2 * + col2 + - 90 FROM tab0 AS cor0
----
-1179
-6814
-91

query I rowsort
SELECT col2 + - col1 - + 92 AS col2 FROM tab2
----
-125
-71
-96

query I rowsort
SELECT - ( + col1 + col2 ) AS col0 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT + tab0.col2 + col0 - ( col0 ) FROM tab0
----
1
33
82

query I rowsort
SELECT - cor0.col0 * 27 + - col0 FROM tab1 cor0
----
-1792
-2240
-84

query I rowsort
SELECT - cor0.col0 * + col2 + col2 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-131
-7307
-845

query I rowsort
SELECT - col0 + col2 * 35 FROM tab1 cor0
----
1887
1931
3280

query I rowsort
SELECT - col2 * col1 * - col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ALL - col1 * - 82 * col0 + - col2 * col2 * - 46 FROM tab0 AS cor0
----
219342
278436
973422

query I rowsort
SELECT ALL - - col2 * ( - col2 ) FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-4077
SELECT - col1 DIV ( + 95 ) AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4077
SELECT - col1 / ( + 95 ) AS col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT + col1 * 48 FROM tab2
----
1488
2832
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 50 * + 9 col0 FROM tab0
----
451
483
532

query I rowsort
SELECT tab0.col2 + + tab0.col1 + + col0 AS col0 FROM tab0
----
133
143
262

query I rowsort
SELECT DISTINCT + tab1.col1 * - 94 + - col1 + + col0 FROM tab1
----
-1155
-2467
-886

onlyif mysql # use DIV operator for integer division
query I rowsort label-4082
SELECT ALL ( + col1 ) DIV - tab0.col2 FROM tab0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL ( + col1 ) / - tab0.col2 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT ALL + 76 * tab0.col0 FROM tab0
----
1824
2660
6764

query I rowsort
SELECT - + 96 * - col1 FROM tab2 AS cor0
----
1632
2976
5664

query I rowsort
SELECT DISTINCT + + 84 + + col2 FROM tab1 AS cor0
----
138
141
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-4086
SELECT DISTINCT col0 DIV + col2 col2 FROM tab1
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT col0 / + col2 col2 FROM tab1
----
0
1

query I rowsort
SELECT 95 * - tab0.col0 + col2 AS col0 FROM tab0
----
-2247
-3324
-8373

query I rowsort
SELECT DISTINCT - ( + col2 ) * col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT col0 * col1 * col0 AS col2 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT DISTINCT + 0 * col2 FROM tab1
----
0

query I rowsort
SELECT + 93 + - col2 * + col1 * + col2 AS col0 FROM tab0 AS cor0
----
-4
-611791
-93561

query I rowsort
SELECT + ( 84 ) AS col0 FROM tab1
----
84
84
84

query I rowsort
SELECT ( - ( col2 ) ) AS col2 FROM tab1
----
-54
-57
-96

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT - 5 + - cor0.col2 FROM tab2 AS cor0
----
-31
-32
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 21 + + col0 + col0 col2 FROM tab2 AS cor0
----
177
179
35

query I rowsort
SELECT 21 + + col2 FROM tab2 AS cor0
----
47
48
59

query I rowsort
SELECT ALL - col1 + - 47 * col2 + 31 FROM tab1
----
-2533
-2658
-4494

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4099
SELECT + - col0 * col0 * - CAST( NULL AS SIGNED ) - cor0.col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4099
SELECT + - col0 * col0 * - CAST ( NULL AS INTEGER ) - cor0.col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 6 + - col0 * col2 * - 50 AS col2 FROM tab1 AS cor0
----
182406
384006
8106

query I rowsort
SELECT DISTINCT col0 * - col2 + 99 * col1 FROM tab1 AS cor0
----
-2658
-6393
2412

query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - 43 * + col1 FROM tab2 AS cor0
----
-1333
-2537
-731

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4104
SELECT - col0 + CAST( - 1 AS SIGNED ) * cor0.col1 AS col2 FROM tab1 cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-4104
SELECT - col0 + CAST ( - 1 AS INTEGER ) * cor0.col1 AS col2 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT - + col2 + - ( cor0.col2 ) + col1 AS col1 FROM tab1 AS cor0
----
-104
-179
-82

query I rowsort
SELECT DISTINCT - col1 * - 75 + col0 FROM tab1 AS cor0
----
1055
1953
814

onlyif mysql # use DIV operator for integer division
query I rowsort label-4107
SELECT ALL cor0.col2 + + ( col0 ) * col2 - + 94 DIV - col0 AS col1 FROM tab1 AS cor0
----
247
3706
7777

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL cor0.col2 + + ( col0 ) * col2 - + 94 / - col0 AS col1 FROM tab1 AS cor0
----
247
3706
7777

query I rowsort
SELECT + col0 * + 65 + 14 FROM tab1 AS cor0
----
209
4174
5214

query I rowsort
SELECT + col2 + + ( col0 ) * + col0 * col1 FROM tab0 AS cor0
----
118826
49569
720893

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4110
SELECT col0 + CAST( + 71 AS SIGNED ) / + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT col0 + CAST ( + 71 AS INTEGER ) / + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - ( + col2 ) * col0 AS col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT col1 * col0 * col1 AS col2 FROM tab2 cor0
----
22831
271518
6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 2 col1 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT + 23 + col2 * - col2 AS col1 FROM tab0 cor0
----
-1066
-6701
22

query I rowsort
SELECT ALL + - 14 AS col0 FROM tab0 AS cor0
----
-14
-14
-14

query I rowsort
SELECT - - col0 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL - col1 * 56 AS col0 FROM tab2
----
-1736
-3304
-952

query I rowsort
SELECT + ( cor1.col2 ) FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + col0 * + col0 + - cor0.col1 * - ( col0 ) FROM tab0 AS cor0
----
16020
2640
4620

query I rowsort
SELECT DISTINCT + ( col2 ) * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) * cor0.col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - + 75 AS col0 FROM tab0 AS cor0
----
-75

query I rowsort
SELECT - col1 * - col2 + col2 + col2 FROM tab2 AS cor0
----
1586
722
891

query I rowsort
SELECT ALL - + 98 + ( + col2 ) * col0 AS col1 FROM tab1 AS cor0
----
3550
64
7582

onlyif mysql # use DIV operator for integer division
query I rowsort label-4125
SELECT DISTINCT - 62 * cor0.col1 + + col0 DIV cor0.col1 FROM tab2 AS cor0
----
-1050
-1922
-3657

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT - 62 * cor0.col1 + + col0 / cor0.col1 FROM tab2 AS cor0
----
-1050
-1922
-3657

onlyif mysql # use DIV operator for integer division
query I rowsort label-4126
SELECT ALL - 87 DIV col1 + + 63 FROM tab1 AS cor0
----
55
57
60

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL - 87 / col1 + + 63 FROM tab1 AS cor0
----
55
57
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4127
SELECT DISTINCT + col0 * col0 * CAST( NULL AS SIGNED ) - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT + col0 * col0 * CAST ( NULL AS INTEGER ) - col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 92 * col0 FROM tab0
----
2208
3220
8188

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
17
31
59

query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
-26
-27
-38

query I rowsort
SELECT ALL + + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT col1 * col1 - 49 FROM tab1
----
120
51
627

query I rowsort
SELECT 84 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 cor1, tab2, tab0 AS cor2
----
3645 values hashing to 52c9380a39df7a744b9f2f2c5bf55dd5

query I rowsort
SELECT - col0 + col2 * - 43 AS col2 FROM tab2 AS cor0
----
-1168
-1196
-1713

query I rowsort
SELECT DISTINCT 24 * col0 FROM tab1 AS cor0
----
1536
1920
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) * + 64 - - 44 col0 FROM tab0 AS cor0
----
5548
5868
6252

onlyif mysql # use DIV operator for integer division
query I rowsort label-4138
SELECT + col2 - cor0.col1 DIV col2 FROM tab0 AS cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-4138
SELECT + col2 - cor0.col1 / col2 FROM tab0 AS cor0
----
-96
31
81

query I rowsort
SELECT DISTINCT - + 44 FROM tab0 cor0
----
-44

query I rowsort
SELECT ALL col2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL - + col1 * col0 + - col0 - - 48 FROM tab2 AS cor0
----
-1374
-176
-4632

query I rowsort
SELECT + 63 * - cor0.col1 * - col0 + col2 AS col0 FROM tab1 AS cor0
----
40377
4968
65616

onlyif mysql # use DIV operator for integer division
query I rowsort label-4143
SELECT DISTINCT + col0 DIV 14 + tab0.col0 - - 59 FROM tab0
----
154
84
96

skipif mysql # not compatible
query I rowsort label-4143
SELECT DISTINCT + col0 / 14 + tab0.col0 - - 59 FROM tab0
----
154
84
96

query I rowsort
SELECT - col2 * + col2 + - col1 - - 30 FROM tab1 AS cor0
----
-2912
-3229
-9199

onlyif mysql # use DIV operator for integer division
query I rowsort label-4145
SELECT DISTINCT 41 * + col0 + - col1 * - tab0.col0 - + ( col1 + - col0 ) DIV + ( col2 ) AS col2 FROM tab0
----
11748
3047
4768

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT 41 * + col0 + - col1 * - tab0.col0 - + ( col1 + - col0 ) / + ( col2 ) AS col2 FROM tab0
----
11748
3047
4768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
69

query I rowsort
SELECT + + col0 * - col0 * - col2 + col1 * + col1 FROM tab2 AS cor0
----
161665
2284
237447

onlyif mysql # use DIV operator for integer division
query I rowsort label-4148
SELECT - + col0 * + col2 - col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-4148
SELECT - + col0 * + col2 - col0 / + col1 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-4149
SELECT ALL + - cor0.col2 * col1 DIV col0 - - cor0.col1 FROM tab2 AS cor0
----
-88
40
9

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL + - cor0.col2 * col1 / col0 - - cor0.col1 FROM tab2 AS cor0
----
-88
40
9

query I rowsort
SELECT - 69 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4151
SELECT DISTINCT col1 + - col0 DIV col0 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT col1 + - col0 / col0 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT - + col2 * + 26 FROM tab0 AS cor0
----
-2132
-26
-858

query I rowsort
SELECT ALL - cor0.col1 * 72 FROM tab2 AS cor0
----
-1224
-2232
-4248

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4154
SELECT ALL - CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL - CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ALL - col2 * 7 AS col0 FROM tab1
----
-378
-399
-672

query I rowsort
SELECT - ( col0 * + tab2.col0 ) AS col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT col0 + + 52 * + col2 FROM tab0 AS cor0
----
1740
4353
87

query I rowsort
SELECT - + col1 * 67 AS col1 FROM tab0 cor0
----
-5762
-6097
-6499

query I rowsort
SELECT 45 FROM tab1, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT DISTINCT - ( - col1 ) + - col0 AS col1 FROM tab0 AS cor0
----
2
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4162
SELECT ALL + - cor0.col1 - - cor0.col0 DIV cor0.col1 FROM tab2 cor0
----
-13
-31
-58

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL + - cor0.col1 - - cor0.col0 / cor0.col1 FROM tab2 cor0
----
-13
-31
-58

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 * + col2 FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT + cor0.col2 * col0 + 58 AS col0 FROM tab2 AS cor0
----
2086
247
3060

query I rowsort
SELECT ALL + col0 + - 85 FROM tab1 AS cor0
----
-21
-5
-82

query I rowsort
SELECT - col0 * - col0 + - col0 * - cor0.col1 * + 28 AS col0 FROM tab2 AS cor0
----
134940
43845
6125

query I rowsort
SELECT - 41 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4168
SELECT col0 * CAST( col0 AS SIGNED ) * col2 FROM tab2 AS cor0
----
1323
158184
237158

skipif mysql # not compatible
query I rowsort label-4168
SELECT col0 * CAST ( col0 AS INTEGER ) * col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT col1 - + 51 FROM tab1 AS cor0
----
-25
-38
-41

query I rowsort
SELECT col0 * - 7 * - col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
1350
14222
21052

query I rowsort
SELECT - + ( col2 ) * + col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT - tab0.col2 FROM tab0, tab2 cor0, tab0 AS cor1
----
-1
-33
-82

query I rowsort
SELECT - 51 FROM tab1, tab2 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT - col0 + 97 FROM tab1
----
17
33
94

query I rowsort
SELECT + 9 * tab2.col1 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to bc0a12f251d10bd1becaf6baf83ef9ee

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4176
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4176
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col2 * ( + col0 ) + + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-4178
SELECT ALL + col0 + 19 DIV 99 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL + col0 + 19 / 99 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - cor0.col2 * + 75 AS col1 FROM tab1 cor0
----
-4050
-4275
-7200

query I rowsort
SELECT - 3 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166

query I rowsort
SELECT DISTINCT + tab2.col2 * + tab2.col1 * - col1 AS col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT col1 * - 9 * + col0 + + col2 FROM tab1
----
-5703
-648
-9264

query I rowsort
SELECT tab2.col2 - 67 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to e82ec57b799a74da77d0c2fb66a0b4bd

query I rowsort
SELECT + col0 + - ( - col0 ) * - col1 * col1 FROM tab1
----
-13440
-2025
-6336

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4185
SELECT - + col0 * - CAST( - col0 AS SIGNED ) FROM tab1 cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-4185
SELECT - + col0 * - CAST ( - col0 AS INTEGER ) FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT col1 + + 38 * + tab1.col0 FROM tab1
----
140
2442
3053

query I rowsort
SELECT + ( - 45 * col2 ) FROM tab1
----
-2430
-2565
-4320

query I rowsort
SELECT + col1 * col2 * + tab1.col0 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT 63 * - tab0.col2 * tab0.col0 AS col2 FROM tab0
----
-2205
-459774
-49896

query I rowsort
SELECT - col0 + - col1 * - col1 AS col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT - ( col1 * + col0 ) FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT + col0 * + col1 * col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT - - col0 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT cor0.col1 + + col1 * + 59 + - col1 AS col1 FROM tab2 AS cor0
----
1003
1829
3481

query I rowsort
SELECT - - 72 * + col0 FROM tab1 AS cor0
----
216
4608
5760

query I rowsort
SELECT - col0 * + col1 + col2 AS col1 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT - 31 - - col0 AS col2 FROM tab0
----
-7
4
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + cor0.col0 col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4199
SELECT DISTINCT + - col1 + + col0 + 38 * 46 DIV + cor0.col0 FROM tab2 cor0
----
225
41
84

skipif mysql # not compatible
query I rowsort label-4199
SELECT DISTINCT + - col1 + + col0 + 38 * 46 / + cor0.col0 FROM tab2 cor0
----
225
41
84

query I rowsort
SELECT - + ( + col0 ) + ( ( col1 ) ) FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT - ( col1 ) * - ( col2 ) FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4202
SELECT 81 + col2 DIV 55 FROM tab0 AS cor0
----
81
81
82

skipif mysql # not compatible
query I rowsort label-4202
SELECT 81 + col2 / 55 FROM tab0 AS cor0
----
81
81
82

query I rowsort
SELECT + col1 * - col0 + col1 AS col1 FROM tab2
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-4204
SELECT DISTINCT - + col2 - - cor0.col0 DIV col2 FROM tab0 AS cor0
----
-33
-81
34

skipif mysql # not compatible
query I rowsort label-4204
SELECT DISTINCT - + col2 - - cor0.col0 / col2 FROM tab0 AS cor0
----
-33
-81
34

query I rowsort
SELECT ALL - 63 + col1 * + ( - cor0.col1 + col0 ) FROM tab1 AS cor0
----
-661
477
808

query I rowsort
SELECT ALL + - cor0.col2 + col2 - - col2 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + cor0.col2 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col1 + ( - col2 ) * col2 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-22630
-24565
-39943

onlyif mysql # use DIV operator for integer division
query I rowsort label-4209
SELECT ALL - - col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL - - col1 / + col1 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col2 * + col1 * + 38 + col0 FROM tab2 AS cor0
----
-24469
-31799
-58214

query I rowsort
SELECT ALL + - col1 + - col1 FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT + col0 * 74 FROM tab0 AS cor0
----
1776
2590
6586

query I rowsort
SELECT + col2 * + 52 FROM tab0 AS cor0
----
1716
4264
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4214
SELECT ALL + + col1 DIV - col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL + + col1 / - col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT ALL - col2 * col2 + 83 AS col2 FROM tab0
----
-1006
-6641
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4216
SELECT ALL 49 + - col1 DIV col0 + + col1 AS col2 FROM tab2
----
108
66
76

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL 49 + - col1 / col0 + + col1 AS col2 FROM tab2
----
108
66
76

query I rowsort
SELECT + + col0 * 33 FROM tab1 AS cor0
----
2112
2640
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-4218
SELECT ALL - col0 + col2 DIV ( - col1 ) 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-4218
SELECT ALL - col0 + col2 / ( - col1 ) col0 FROM tab1 AS cor0
----
-5
-69
-87

query I rowsort
SELECT DISTINCT + col0 * - 82 + + col2 FROM tab2 AS cor0
----
-547
-6370
-6440

query I rowsort
SELECT ALL + - col0 * - ( col0 * col0 ) + - col1 FROM tab1 cor0
----
1
262134
511987

query I rowsort
SELECT DISTINCT - + col2 * + cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + col1 * + col1 + + 40 FROM tab1 AS cor0
----
140
209
716

query I rowsort
SELECT ALL - col0 + 47 FROM tab0 AS cor0
----
-42
12
23

query I rowsort
SELECT + col1 - 5 FROM tab2 AS cor0
----
12
26
54

query I rowsort
SELECT ( col2 ) - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( col1 ) + col2 * + ( col2 * col2 ) FROM tab2 AS cor0
----
17517
19652
54855

query I rowsort
SELECT + col0 * + col0 * + cor0.col1 + col0 * col0 FROM tab2 AS cor0
----
112338
1568
365040

query I rowsort
SELECT ALL + ( + 66 ) FROM tab1 AS cor0
----
66
66
66

query I rowsort
SELECT DISTINCT + + 5 + col0 AS col2 FROM tab1 AS cor0
----
69
8
85

query I rowsort
SELECT col0 * - col0 + col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT DISTINCT 15 * + col0 + + col0 FROM tab2
----
112
1248
1264

query I rowsort
SELECT + col0 * col0 - col0 * + 37 AS col1 FROM tab2 AS cor0
----
-210
3198
3318

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4233
SELECT + - CAST( NULL AS SIGNED ) + + 2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4233
SELECT + - CAST ( NULL AS INTEGER ) + + 2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4234
SELECT + CAST( + 4 AS SIGNED ) + + col0 AS col1 FROM tab2 cor0
----
11
82
83

skipif mysql # not compatible
query I rowsort label-4234
SELECT + CAST ( + 4 AS INTEGER ) + + col0 AS col1 FROM tab2 cor0
----
11
82
83

query I rowsort
SELECT DISTINCT - 90 * - ( + col0 ) + 70 * cor0.col1 + + col1 AS col1 FROM tab2 AS cor0
----
11209
2831
8317

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 * + col0 col2 FROM tab2 AS cor0
----
-483
-5382
-5451

query I rowsort
SELECT + col0 + + cor0.col1 * col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL ( + 71 ) * - cor0.col2 * col0 FROM tab2 AS cor0
----
-13419
-143988
-213142

query I rowsort
SELECT col0 + 95 * cor0.col2 FROM tab1 AS cor0
----
5133
5479
9200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4240
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) + - cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT + + CAST ( NULL AS REAL ) + - cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( col0 ) * + col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + 52 * col0 FROM tab0 cor0
----
1248
1820
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-4243
SELECT col0 DIV col2 - 83 col0 FROM tab0 cor0
----
-48
-82
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4243
SELECT col0 / col2 - 83 col0 FROM tab0 cor0
----
-48
-82
-83

query I rowsort
SELECT DISTINCT - col0 * ( + col0 ) + col0 FROM tab0 cor0
----
-1190
-552
-7832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4245
SELECT ALL col0 / CAST( NULL AS SIGNED ) - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL col0 / CAST ( NULL AS INTEGER ) - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT cor0.col1 * 51 FROM tab1 AS cor0
----
1326
510
663

query I rowsort
SELECT DISTINCT + col0 + + 30 FROM tab0 cor0
----
119
54
65

query I rowsort
SELECT ALL - cor0.col2 * + col0 - col0 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT col0 + cor0.col0 * + 1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + col2 - - col2 * - ( + col2 + col0 ) AS col1 FROM tab2 AS cor0
----
-2678
-4408
-891

query I rowsort
SELECT - col1 + cor0.col0 * - col0 FROM tab1 cor0
----
-35
-4106
-6413

query I rowsort
SELECT col0 + - col1 * + cor0.col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - cor0.col2 + 5 * - col2 FROM tab1 cor0
----
-324
-342
-576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4255
SELECT + cor0.col0 * - CAST( col1 + + col2 AS SIGNED ) * - 69 AS col1 FROM tab0 cor0
----
1062393
197064
236670

skipif mysql # not compatible
query I rowsort label-4255
SELECT + cor0.col0 * - CAST ( col1 + + col2 AS INTEGER ) * - 69 AS col1 FROM tab0 cor0
----
1062393
197064
236670

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col1 AS REAL ) - col1 / col2 FROM tab1 cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4257
SELECT - col2 * col0 - col0 DIV + ( + col1 ) AS col0 FROM tab2 AS cor0
----
-189
-2029
-3006

skipif mysql # not compatible
query I rowsort label-4257
SELECT - col2 * col0 - col0 / + ( + col1 ) AS col0 FROM tab2 AS cor0
----
-189
-2029
-3006

onlyif mysql # use DIV operator for integer division
query I rowsort label-4258
SELECT - - 80 DIV + 25 + col2 AS col0 FROM tab2 AS cor0
----
29
30
41

skipif mysql # not compatible
query I rowsort label-4258
SELECT - - 80 / + 25 + col2 AS col0 FROM tab2 AS cor0
----
29
30
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-4259
SELECT + - col1 * + col2 + - col2 + 11 DIV col1 FROM tab0 AS cor0
----
-2871
-7544
-98

skipif mysql # not compatible
query I rowsort label-4259
SELECT + - col1 * + col2 + - col2 + 11 / col1 FROM tab0 AS cor0
----
-2871
-7544
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4260
SELECT ALL - col0 DIV 48 + - col0 col2 FROM tab2
----
-7
-79
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL - col0 / 48 + - col0 col2 FROM tab2
----
-7
-79
-80

query I rowsort
SELECT DISTINCT - col1 * col0 + col1 + 30 * + col0 FROM tab2
----
-2203
1044
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4262
SELECT CAST( + col2 AS SIGNED ) * + col0 - - 41 AS col2 FROM tab0
----
7339
76
833

skipif mysql # not compatible
query I rowsort label-4262
SELECT CAST ( + col2 AS INTEGER ) * + col0 - - 41 AS col2 FROM tab0
----
7339
76
833

query I rowsort
SELECT - tab0.col1 * col0 * - 88 + col2 FROM tab0
----
181665
298761
712794

query I rowsort
SELECT - 76 + col2 * col2 AS col2 FROM tab1
----
2840
3173
9140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 * - tab0.col0 col0 FROM tab0
----
-1824
-2660
-6764

query I rowsort
SELECT ALL + 76 + col0 FROM tab1 AS cor0
----
140
156
79

query I rowsort
SELECT 92 + col0 AS col0 FROM tab1
----
156
172
95

query I rowsort
SELECT + - col2 + + col2 + 31 FROM tab1 AS cor0
----
31
31
31

query I rowsort
SELECT DISTINCT + col2 + col1 * + col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT 58 * - col1 * col1 AS col2 FROM tab1
----
-39208
-5800
-9802

query I rowsort
SELECT 35 * - col2 FROM tab2
----
-1330
-910
-945

query I rowsort
SELECT ALL + col2 + col2 * col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT - + col1 * + col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - ( - cor0.col1 ) AS col2 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4275
SELECT - col2 + CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT - col2 + CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4276
SELECT DISTINCT 10 DIV col1 + col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT 10 / col1 + col1 FROM tab0
----
86
91
97

query I rowsort
SELECT 2 * + col0 AS col0 FROM tab2
----
14
156
158

query I rowsort
SELECT + col0 * 13 FROM tab2
----
1014
1027
91

query I rowsort
SELECT DISTINCT + cor0.col2 * + ( - col0 ) - + 29 FROM tab1 AS cor0
----
-191
-3677
-7709

query I rowsort
SELECT 56 * - cor0.col1 * col2 - + 28 FROM tab0 AS cor0
----
-158956
-417900
-5460

query I rowsort
SELECT ALL ( 82 ) * - col0 + + 31 FROM tab0 AS cor0
----
-1937
-2839
-7267

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4282
SELECT ALL + - CAST( NULL AS DECIMAL ) + - 20 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL + - CAST ( NULL AS REAL ) + - 20 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + col2 + - col2 * col2 AS col1 FROM tab2 AS cor0
----
-1389
-591
-671

query I rowsort
SELECT ALL col0 + cor0.col2 * + col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT + + 22 * col0 + col2 AS col0 FROM tab1 AS cor0
----
120
1465
1856

query I rowsort
SELECT - 65 + - col2 FROM tab2 AS cor0
----
-103
-91
-92

query I rowsort
SELECT - + col0 * col1 + + col2 + col1 FROM tab2 AS cor0
----
-1288
-159
-4517

query I rowsort
SELECT DISTINCT - col2 * col2 * ( col0 ) FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT cor0.col1 + col0 * + col0 AS col1 FROM tab2 AS cor0
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4290
SELECT DISTINCT - ( col2 ) DIV ( cor0.col0 + cor0.col0 ) FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT - ( col2 ) / ( cor0.col0 + cor0.col0 ) FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT col1 + + col0 + 86 FROM tab1 AS cor0
----
115
160
179

query I rowsort
SELECT ALL + ( 25 * + col2 ) + - 95 * - col2 FROM tab0
----
120
3960
9840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 76 * col1 col2 FROM tab2 AS cor0
----
1292
2356
4484

query I rowsort
SELECT + ( + col2 ) - - ( col1 ) FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT 45 AS col0 FROM tab2, tab1 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 + col1 col0 FROM tab0 AS cor0
----
107
112
118

query I rowsort
SELECT + + col2 * cor0.col1 * cor0.col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT + ( - col0 ) * - col0 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-45
4039
6304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4299
SELECT ALL - CAST( - col0 AS SIGNED ) AS col2 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL - CAST ( - col0 AS INTEGER ) AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT - 64 + + col1 AS col2 FROM tab2 AS cor0
----
-33
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 + col0 col0 FROM tab1 AS cor0
----
150
166
89

query I rowsort
SELECT DISTINCT + - 24 + col1 FROM tab1 AS cor0
----
-11
-14
2

query I rowsort
SELECT DISTINCT + 52 * - col0 + cor0.col2 + col2 FROM tab1 AS cor0
----
-3214
-3968
-48

query I rowsort
SELECT ALL + + 66 AS col0 FROM tab1 AS cor0
----
66
66
66

query I rowsort
SELECT ALL - ( + col1 ) + col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * - col0 + col2 * tab0.col2 FROM tab0
----
1226
14645
1665

query I rowsort
SELECT - + col2 * + col0 + - col2 AS col1 FROM tab1 cor0
----
-216
-3705
-7776

query I rowsort
SELECT - 17 AS col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e

query I rowsort
SELECT ALL 6 + col2 AS col0 FROM tab0
----
39
7
88

query I rowsort
SELECT - + cor0.col2 + + 24 AS col1 FROM tab0 AS cor0
----
-58
-9
23

query I rowsort
SELECT + - cor0.col2 + col0 AS col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT + 5 * + col1 AS col1 FROM tab2
----
155
295
85

query I rowsort
SELECT col0 * 32 AS col1 FROM tab0
----
1120
2848
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-4314
SELECT + - col1 DIV - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4314
SELECT + - col1 / - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * + 89 + cor0.col0 AS col2 FROM tab0 AS cor0
----
124
2961
7387

query I rowsort
SELECT + + cor0.col1 * - col0 - 39 * col0 AS col2 FROM tab0 cor0
----
-11570
-3000
-4760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4317
SELECT - cor0.col1 DIV + col2 + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4317
SELECT - cor0.col1 / + col2 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT tab2.col0 * - 41 * - col1 FROM tab2
----
188682
55063
8897

query I rowsort
SELECT col0 + 21 FROM tab2
----
100
28
99

query I rowsort
SELECT col2 * tab1.col0 + col2 - col0 AS col2 FROM tab1
----
213
3641
7696

query I rowsort
SELECT ALL 89 * col0 AS col0 FROM tab2 AS cor0
----
623
6942
7031

onlyif mysql # use DIV operator for integer division
query I rowsort label-4322
SELECT DISTINCT + col0 - + col0 DIV 45 FROM tab1
----
3
63
79

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT + col0 - + col0 / 45 FROM tab1
----
3
63
79

query I rowsort
SELECT ALL - col0 + - ( col0 ) AS col2 FROM tab2
----
-14
-156
-158

query I rowsort
SELECT ALL col0 * + col2 * col0 - + col2 AS col1 FROM tab2
----
1296
158158
237120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4325
SELECT + + CAST( - col1 AS SIGNED ) * col1 + + col1 + - col0 FROM tab1 cor0
----
-154
-236
-653

skipif mysql # not compatible
query I rowsort label-4325
SELECT + + CAST ( - col1 AS INTEGER ) * col1 + + col1 + - col0 FROM tab1 cor0
----
-154
-236
-653

query I rowsort
SELECT DISTINCT 3 * + 83 * - col1 FROM tab1 AS cor0
----
-2490
-3237
-6474

query I rowsort
SELECT - + 80 * - col2 FROM tab2 AS cor0
----
2080
2160
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-4328
SELECT DISTINCT - + cor0.col2 DIV - col0 AS col1 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT - + cor0.col2 / - col0 AS col1 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT + - 83 * - col1 AS col0 FROM tab0 AS cor0
----
7138
7553
8051

onlyif mysql # use DIV operator for integer division
query I rowsort label-4330
SELECT DISTINCT - 58 DIV ( - cor0.col1 ) + col2 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4330
SELECT DISTINCT - 58 / ( - cor0.col1 ) + col2 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + 36 * - col0 AS col1 FROM tab0 AS cor0
----
-1260
-3204
-864

query I rowsort
SELECT 59 * 63 FROM tab1
----
3717
3717
3717

query I rowsort
SELECT DISTINCT - ( + 78 ) + - cor0.col1 FROM tab2 AS cor0
----
-109
-137
-95

query I rowsort
SELECT + - ( col0 ) + - col0 * col1 FROM tab1 AS cor0
----
-1120
-704
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 72 * - col2 col0 FROM tab0 AS cor0
----
-2376
-5904
-72

query I rowsort
SELECT DISTINCT ( - 57 ) * col1 + col2 AS col1 FROM tab0 AS cor0
----
-4869
-5105
-5528

onlyif mysql # use DIV operator for integer division
query I rowsort label-4337
SELECT + + ( - cor0.col0 ) DIV col1 + ( - 88 ) * - cor0.col0 FROM tab2 AS cor0
----
616
6863
6948

skipif mysql # not compatible
query I rowsort label-4337
SELECT + + ( - cor0.col0 ) / col1 + ( - 88 ) * - cor0.col0 FROM tab2 AS cor0
----
616
6863
6948

query I rowsort
SELECT ALL + + col2 * - 40 FROM tab0 AS cor0
----
-1320
-3280
-40

query I rowsort
SELECT ALL - - 35 * - col0 FROM tab1 AS cor0
----
-105
-2240
-2800

query I rowsort
SELECT ALL + - 96 * - 24 AS col1 FROM tab2 cor0
----
2304
2304
2304

query I rowsort
SELECT DISTINCT - - 62 + col1 FROM tab0 AS cor0
----
148
153
159

query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 * + col0 AS col0 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4343
SELECT - CAST( + col2 AS SIGNED ) * col0 + col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

skipif mysql # not compatible
query I rowsort label-4343
SELECT - CAST ( + col2 AS INTEGER ) * col0 + col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT + 32 + col1 * ( + col1 ) + col0 FROM tab2 AS cor0
----
1000
3591
400

query I rowsort
SELECT ALL + 59 * + col0 AS col2 FROM tab2 cor0
----
413
4602
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4346
SELECT DISTINCT + 28 * col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4346
SELECT DISTINCT + 28 * col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col0 col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL col1 + col1 * cor0.col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL + - col2 * + col1 + col0 * col0 AS col1 FROM tab2 AS cor0
----
-788
4550
5595

query I rowsort
SELECT + + col1 - col2 * col2 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT - col2 - cor0.col0 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT 44 * cor0.col2 + - cor0.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a300fb0d173b699156dbb924b9f14fe2

query I rowsort
SELECT DISTINCT + col1 * col2 + + 72 FROM tab2 AS cor0
----
1606
718
909

query I rowsort
SELECT + + cor0.col1 * ( col0 ) + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - 61 + - 68 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a31817b440889c3e4fb46c22ed3b7838

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT ALL + col0 + - 65 FROM tab0 AS cor0
----
-30
-41
24

query I rowsort
SELECT DISTINCT col1 - + 63 AS col0 FROM tab1 AS cor0
----
-37
-50
-53

query I rowsort
SELECT 8 + + col2 AS col0 FROM tab0
----
41
9
90

query I rowsort
SELECT 64 + - col2 AS col1 FROM tab1
----
-32
10
7

query I rowsort
SELECT DISTINCT + 93 AS col2 FROM tab0, tab1, tab1 AS cor0
----
93

query I rowsort
SELECT DISTINCT col2 + + cor0.col1 * - col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT - - col1 * + col2 + col1 AS col1 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT col2 * - col1 + 7 + + col0 FROM tab0 AS cor0
----
-2807
-55
-7366

onlyif mysql # use DIV operator for integer division
query I rowsort label-4365
SELECT + col0 DIV + CAST( col0 AS SIGNED ) col2 FROM tab1 cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4365
SELECT + col0 / + CAST ( col0 AS INTEGER ) col2 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT ALL 83 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT + col0 + - ( + col1 ) FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-4368
SELECT col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4368
SELECT col1 / - col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - cor0.col2 * + col1 AS col0 FROM tab2 cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4370
SELECT + col2 DIV col1 col2 FROM tab1 AS cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4370
SELECT + col2 / col1 col2 FROM tab1 AS cor0
----
2
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4371
SELECT DISTINCT - ( col1 ) DIV cor0.col1 + + col0 col1 FROM tab2 AS cor0
----
6
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT - ( col1 ) / cor0.col1 + + col0 col1 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT ALL - - 37 * + col2 FROM tab2 cor0
----
1406
962
999

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4373
SELECT + ( 86 ) + cor0.col0 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT + ( 86 ) + cor0.col0 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 94 + - col2 AS col0 FROM tab1 AS cor0
----
-2
37
40

query I rowsort
SELECT DISTINCT + ( - 82 ) * col0 AS col1 FROM tab0 AS cor0
----
-1968
-2870
-7298

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 + + cor0.col1 * cor0.col1 + col1 col1 FROM tab0 AS cor0
----
7561
8451
9585

query I rowsort
SELECT - 54 + 84 AS col0 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT ALL + - ( 70 ) + col0 * col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
118755
49466
720741

query I rowsort
SELECT + - col2 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - + cor0.col2 * + col2 - - col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT col1 * + 99 - - col0 * 67 AS col1 FROM tab2 AS cor0
----
11067
3538
6976

query I rowsort
SELECT ALL ( col1 ) + col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + col2 - col2 * - cor0.col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT + 71 + - 14 FROM tab2 AS cor0
----
57

query I rowsort
SELECT + 4 + + col0 AS col2 FROM tab0 AS cor0
----
28
39
93

query I rowsort
SELECT ALL ( 71 ) - col2 AS col2 FROM tab0 AS cor0
----
-11
38
70

query I rowsort
SELECT DISTINCT + + col0 * - col1 * col1 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-4388
SELECT 84 DIV - col2 FROM tab0 AS cor0
----
-1
-2
-84

skipif mysql # not compatible
query I rowsort label-4388
SELECT 84 / - col2 FROM tab0 AS cor0
----
-1
-2
-84

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) * ( + col1 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab2 cor1
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4391
SELECT ALL + CAST( col2 AS SIGNED ) + col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4391
SELECT ALL + CAST ( col2 AS INTEGER ) + col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 * + col0 + + 34 FROM tab1 AS cor0
----
196
3682
7714

query I rowsort
SELECT + col2 * + col0 + col0 * - 80 FROM tab2 AS cor0
----
-3318
-371
-4212

query I rowsort
SELECT + 2 + col2 FROM tab1 AS cor0
----
56
59
98

query I rowsort
SELECT + - 92 + - col0 FROM tab0 AS cor0
----
-116
-127
-181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 54 col2 FROM tab2 AS cor0
----
-54
-54
-54

query I rowsort
SELECT + 21 - col0 * + col0 AS col2 FROM tab2 AS cor0
----
-28
-6063
-6220

query I rowsort
SELECT - ( ( tab1.col0 ) ) FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4399
SELECT ALL - CAST( - 92 AS SIGNED ) + + col2 AS col0 FROM tab1
----
146
149
188

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL - CAST ( - 92 AS INTEGER ) + + col2 AS col0 FROM tab1
----
146
149
188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4400
SELECT - + cor0.col2 * - col1 + + CAST( cor0.col0 AS SIGNED ) FROM tab2 AS cor0
----
1612
725
844

skipif mysql # not compatible
query I rowsort label-4400
SELECT - + cor0.col2 * - col1 + + CAST ( cor0.col0 AS INTEGER ) FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-4401
SELECT + col2 DIV col1 + ( col0 * col1 ) AS col1 FROM tab1 AS cor0
----
1047
645
80

skipif mysql # not compatible
query I rowsort label-4401
SELECT + col2 / col1 + ( col0 * col1 ) AS col1 FROM tab1 AS cor0
----
1047
645
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 3 col0 FROM tab2 AS cor0
----
-4
-75
-76

query I rowsort
SELECT + 39 + tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8249e3f64b6e898d8042f20bdd2b458e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4404
SELECT + col2 / ( + col1 + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4404
SELECT + col2 / ( + col1 + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 + tab1.col2 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 8217d522e32ec5cc4f9826fb5b492e52

query I rowsort
SELECT 96 * + col1 + + col1 FROM tab1 AS cor0
----
1261
2522
970

query I rowsort
SELECT ALL - col1 + cor0.col1 * + col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT - 13 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-13

query I rowsort
SELECT DISTINCT + cor1.col2 AS col0 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
1
33
82

query I rowsort
SELECT ALL col2 * - 94 * + 69 - col2 * + col2 AS col0 FROM tab0 cor0
----
-215127
-538576
-6487

query I rowsort
SELECT + col1 * col1 + col2 * + col1 * col0 AS col0 FROM tab1 AS cor0
----
100009
36580
4888

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4412
SELECT - col2 - - CAST( NULL AS DECIMAL ) 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-4412
SELECT - col2 - - CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 * + col0 + 61 * - col0 FROM tab0 AS cor0
----
-13350
-2040
-3360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 - 57 * col2 col2 FROM tab0 cor0
----
-1795
-4583
40

query I rowsort
SELECT ALL ( - cor0.col2 ) + + col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - ( 44 ) + col0 AS col1 FROM tab2 AS cor0
----
-37
34
35

query I rowsort
SELECT tab0.col1 * tab0.col1 + + cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to bc312aa787d6037f415676e41e9e58c7

query I rowsort
SELECT - + 34 + + col0 FROM tab2 AS cor0
----
-27
44
45

query I rowsort
SELECT - col1 + ( col0 ) FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4420
SELECT 37 + - col2 * + col0 * col0 + ( + col2 ) DIV col2 AS col0 FROM tab1 AS cor0
----
-233434
-448
-614362

skipif mysql # not compatible
query I rowsort label-4420
SELECT 37 + - col2 * + col0 * col0 + ( + col2 ) / col2 AS col0 FROM tab1 AS cor0
----
-233434
-448
-614362

query I rowsort
SELECT DISTINCT - + col0 + - 4 FROM tab1 AS cor0
----
-68
-7
-84

query I rowsort
SELECT + + col1 + + col1 * col1 AS col2 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT + col0 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + 35 + tab2.col2 FROM tab2
----
61
62
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-4425
SELECT col2 * col0 + + col2 DIV 11 col1 FROM tab0
----
35
7305
795

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4425
SELECT col2 * col0 + + col2 / 11 col1 FROM tab0
----
35
7305
795

query I rowsort
SELECT 39 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT - + col1 * + cor0.col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL col1 + col1 * + col0 * - col1 FROM tab1
----
-13507
-2002
-6390

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col0 FROM tab1 AS cor0
----
23
23
23

query I rowsort
SELECT ALL - col1 * col2 * + cor0.col1 + - col2 * col0 FROM tab0 AS cor0
----
-244860
-686340
-9444

query I rowsort
SELECT ALL - col1 + + 35 * + col2 AS col1 FROM tab2 AS cor0
----
1313
851
914

query I rowsort
SELECT + cor0.col1 * col2 + col2 * col2 FROM tab0 cor0
----
14186
3927
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + cor0.col0 * - 50 col1 FROM tab0 AS cor0
----
-1114
-1653
-4359

query I rowsort
SELECT DISTINCT - col1 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + col0 * + col0 + + col1 AS col2 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT + col1 * - 92 AS col2 FROM tab1 AS cor0
----
-1196
-2392
-920

query I rowsort
SELECT - - col2 * cor0.col2 - + col0 FROM tab0 cor0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT + col2 + + col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL + col1 * ( col0 ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT 29 - - col2 FROM tab2
----
55
56
67

query I rowsort
SELECT - cor0.col2 * col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + cor0.col0 * ( - col0 ) + - col1 AS col1 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT DISTINCT col1 * + 8 + col0 FROM tab2 AS cor0
----
215
255
550

query I rowsort
SELECT DISTINCT + 10 FROM tab0, tab2 AS cor0
----
10

query I rowsort
SELECT ALL + + col0 * col2 + - 51 * col2 * + col2 + - col0 AS col2 FROM tab1 AS cor0
----
-148557
-162115
-462416

query I rowsort
SELECT ALL + col1 * + col0 + 42 * col0 AS col1 FROM tab2 AS cor0
----
4661
511
7878

query I rowsort
SELECT + 19 - + col1 AS col2 FROM tab2
----
-12
-40
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4449
SELECT DISTINCT ( col0 ) DIV - col2 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-4449
SELECT DISTINCT ( col0 ) / - col2 FROM tab0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 11 col2 FROM tab1 AS cor0
----
-33
-704
-880

query I rowsort
SELECT - + col0 * 90 FROM tab2 cor0
----
-630
-7020
-7110

query I rowsort
SELECT DISTINCT - - col2 * + 84 AS col0 FROM tab0 AS cor0
----
2772
6888
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( cor0.col2 ) + + col0 col2 FROM tab2 AS cor0
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + ( + 49 ) * col2 col2 FROM tab2 AS cor0
----
1333
1354
1879

query I rowsort
SELECT DISTINCT col0 - ( col0 ) FROM tab0
----
0

query I rowsort
SELECT ( cor0.col2 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # use DIV operator for integer division
query I rowsort label-4457
SELECT col2 + col1 DIV col2 + + col0 * ( col1 ) * col2 AS col0 FROM tab0
----
3493
664201
68147

skipif mysql # not compatible
query I rowsort label-4457
SELECT col2 + col1 / col2 + + col0 * ( col1 ) * col2 AS col0 FROM tab0
----
3493
664201
68147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 * - tab2.col2 col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT col2 + col1 - - col1 * + col2 FROM tab0
----
195
2957
7635

query I rowsort
SELECT ALL + col1 * + ( - 36 ) FROM tab2
----
-1116
-2124
-612

query I rowsort
SELECT ALL ( + col2 ) * - tab0.col1 AS col0 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 47 ) * col2 + 76 col0 FROM tab0
----
-1475
-3778
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-4463
SELECT ALL + + cor0.col2 + + col0 * CAST( + cor0.col2 + + col0 AS SIGNED ) DIV + cor0.col0 FROM tab0 AS cor0
----
253
37
90

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL + + cor0.col2 + + col0 * CAST ( + cor0.col2 + + col0 AS INTEGER ) / + cor0.col0 FROM tab0 AS cor0
----
253
37
90

query I rowsort
SELECT DISTINCT - 87 + + col0 * col1 * col1 FROM tab1 AS cor0
----
13433
1941
6313

query I rowsort
SELECT ( + col1 ) + + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-4466
SELECT ALL + + col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL + + col1 / - col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 69 + + col2 AS col0 FROM tab2
----
107
95
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + ( col0 ) ) + + 11 * col1 col1 FROM tab1
----
174
223
289

query I rowsort
SELECT + col2 * col2 * - col1 FROM tab1
----
-119808
-32490
-75816

query I rowsort
SELECT ( + col1 ) * - col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT tab2.col0 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
7
78
79

query I rowsort
SELECT ALL 28 + 77 FROM tab1
----
105
105
105

query I rowsort
SELECT ALL tab1.col1 * tab1.col2 AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL - 38 + - col2 FROM tab0 AS cor0
----
-120
-39
-71

query I rowsort
SELECT + - cor0.col2 * + col2 AS col2 FROM tab0 cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + col2 * col1 + col1 col2 FROM tab2 AS cor0
----
1619
701
895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 * - col1 col2 FROM tab1 cor0
----
-156
-650
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 + - col1 * 47 col2 FROM tab0 AS cor0
----
-4007
-4242
-4524

query I rowsort
SELECT ALL + 30 * - col2 FROM tab2 AS cor0
----
-1140
-780
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + col0 col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + 34 * + col0 AS col2 FROM tab1 AS cor0
----
102
2176
2720

query I rowsort
SELECT - 41 * - col0 AS col2 FROM tab0 cor0
----
1435
3649
984

onlyif mysql # use DIV operator for integer division
query I rowsort label-4483
SELECT + + col1 * + 50 + col0 DIV 90 + + 51 FROM tab1 AS cor0
----
1351
551
701

skipif mysql # not compatible
query I rowsort label-4483
SELECT + + col1 * + 50 + col0 / 90 + + 51 FROM tab1 AS cor0
----
1351
551
701

query I rowsort
SELECT DISTINCT col1 * col1 + + col1 + - col2 AS col0 FROM tab2
----
268
3514
965

onlyif mysql # use DIV operator for integer division
query I rowsort label-4485
SELECT - - 78 DIV - 57 + + col0 + + cor0.col2 * + col0 AS col1 FROM tab1 AS cor0
----
164
3711
7759

skipif mysql # not compatible
query I rowsort label-4485
SELECT - - 78 / - 57 + + col0 + + cor0.col2 * + col0 AS col1 FROM tab1 AS cor0
----
164
3711
7759

query I rowsort
SELECT ALL + 30 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4487
SELECT DISTINCT + 51 DIV - cor0.col0 AS col2 FROM tab0, tab2 AS cor0
----
-7
0

skipif mysql # not compatible
query I rowsort label-4487
SELECT DISTINCT + 51 / - cor0.col0 AS col2 FROM tab0, tab2 AS cor0
----
-7
0

query I rowsort
SELECT - col0 + col0 + + col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4489
SELECT ALL - CAST( - col2 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL - CAST ( - col2 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT cor0.col0 * - 17 AS col1 FROM tab1 AS cor0
----
-1088
-1360
-51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4491
SELECT ALL + - CAST( NULL AS SIGNED ) + col0 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT ALL + - CAST ( NULL AS INTEGER ) + col0 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4492
SELECT ALL + col0 DIV ( + col1 ) FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL + col0 / ( + col1 ) FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT - - col2 * + 18 + cor0.col0 + ( - col1 + - col1 ) AS col1 FROM tab1 cor0
----
1070
1782
923

onlyif mysql # use DIV operator for integer division
query I rowsort label-4494
SELECT - 80 + col1 DIV + col0 AS col1 FROM tab0 cor0
----
-77
-78
-79

skipif mysql # not compatible
query I rowsort label-4494
SELECT - 80 + col1 / + col0 AS col1 FROM tab0 cor0
----
-77
-78
-79

query I rowsort
SELECT DISTINCT 4 * - cor0.col2 * cor0.col1 FROM tab1 AS cor0
----
-2280
-4992
-5616

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4496
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 31 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 31 AS col1 FROM tab1 cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4497
SELECT ALL + 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-4497
SELECT ALL + CAST ( - col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4498
SELECT DISTINCT col0 * col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT DISTINCT col0 * col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4499
SELECT DISTINCT + cor0.col1 DIV col1 + + col2 AS col0 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT + cor0.col1 / col1 + + col2 AS col0 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT 98 + col0 * + col2 FROM tab2 AS cor0
----
2126
287
3100

query I rowsort
SELECT ALL cor0.col0 + - col1 - - ( col2 ) FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT DISTINCT + 65 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1313
1469
635

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4503
SELECT DISTINCT + 16 * + cor0.col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT + 16 * + cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 69 * col1 AS col2 FROM tab2 AS cor0
----
1173
2139
4071

onlyif mysql # use DIV operator for integer division
query I rowsort label-4505
SELECT DISTINCT - col2 * 63 DIV col2 + + col2 AS col1 FROM tab1 AS cor0
----
-6
-9
33

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT - col2 * 63 / col2 + + col2 AS col1 FROM tab1 AS cor0
----
-6
-9
33

query I rowsort
SELECT ALL cor0.col0 * - ( + ( - col1 ) ) + - col2 * + 10 AS col1 FROM tab1 cor0
----
-462
70
80

query I rowsort
SELECT + tab1.col0 * - ( col0 ) * col1 FROM tab1
----
-234
-40960
-83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-4508
SELECT DISTINCT + col1 * col1 DIV + col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT + col1 * col1 / + col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4509
SELECT - - col0 + - CAST( NULL AS SIGNED ) * 24 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4509
SELECT - - col0 + - CAST ( NULL AS INTEGER ) * 24 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * 19 + + col1 * + col2 * 12 FROM tab2 AS cor0
----
10557
18902
8474

query I rowsort
SELECT - cor0.col2 * - 91 AS col1 FROM tab1 AS cor0
----
4914
5187
8736

query I rowsort
SELECT DISTINCT + col1 + + ( - 59 * col2 + ( 95 ) ) AS col2 FROM tab0 AS cor0
----
-1766
-4652
133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + 57 col2 FROM tab0 cor0
----
-22
-33
32

query I rowsort
SELECT cor0.col1 * + col1 - 50 AS col1 FROM tab1 AS cor0
----
119
50
626

query I rowsort
SELECT DISTINCT + 54 AS col2 FROM tab0, tab0 cor0, tab2, tab2 cor1
----
54

query I rowsort
SELECT ALL cor0.col0 * ( - col1 + col2 * + 52 ) AS col1 FROM tab2 cor0
----
100854
154761
9611

query I rowsort
SELECT ALL 20 + 6 FROM tab2, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT - col2 - + 70 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-2343
-5822
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-4519
SELECT - col0 - + col2 DIV - col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4519
SELECT - col0 - + col2 / - col1 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4520
SELECT col0 * col2 + col2 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4520
SELECT col0 * col2 + col2 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 51 + + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 7fb076950aa31379d97103704ded4005

query I rowsort
SELECT col2 + - 53 FROM tab2
----
-15
-26
-27

query I rowsort
SELECT DISTINCT + ( 73 ) AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
73

query I rowsort
SELECT DISTINCT col0 * - 22 FROM tab2
----
-154
-1716
-1738

query I rowsort
SELECT + col0 + ( col2 ) FROM tab1 cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 + + 20 col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

query I rowsort
SELECT DISTINCT + col0 * col0 - + cor0.col2 * - cor0.col2 AS col1 FROM tab2 cor0
----
6760
7685
778

query I rowsort
SELECT ALL - 35 * + cor0.col1 FROM tab2 AS cor0
----
-1085
-2065
-595

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab1 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + - cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT - 30 * cor0.col1 - col0 AS col2 FROM tab1 cor0
----
-364
-470
-783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT - cor0.col1 - 50 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9cf7f5c0a1cffbdc2d4d3807dcdeac51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 - + col2 col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL + col2 - - col2 FROM tab0
----
164
2
66

query I rowsort
SELECT ALL + col2 + - col0 + 44 * + 44 FROM tab1
----
1929
1952
1987

query I rowsort
SELECT DISTINCT + 7 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 col1 FROM tab1 AS cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - col0 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + cor0.col0 + cor0.col1 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + 18 * - col0 - - col1 * ( - col0 ) FROM tab2 AS cor0
----
-2765
-343
-6006

query I rowsort
SELECT - 90 AS col2 FROM tab0 cor0
----
-90
-90
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4543
SELECT ALL - CAST( col0 AS SIGNED ) * - col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL - CAST ( col0 AS INTEGER ) * - col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - col1 * + 1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 * - cor0.col1 + col0 + - 75 AS col0 FROM tab1 AS cor0
----
-1011
-17648
-2192

query I rowsort
SELECT + ( + col2 ) * - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 col2 FROM tab0 AS cor0
----
84

query I rowsort
SELECT DISTINCT - ( col2 ) + + col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - + col0 + cor0.col0 AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT ALL col1 * + cor0.col2 * col2 + col2 AS col2 FROM tab2 AS cor0
----
22626
24586
39910

query I rowsort
SELECT ALL - col2 * - 68 FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT DISTINCT col2 + - 2 * col1 AS col2 FROM tab0 AS cor0
----
-100
-139
-193

query I rowsort
SELECT ALL - ( 50 ) - - col0 * 23 * 96 AS col2 FROM tab2 AS cor0
----
15406
172174
174382

query I rowsort
SELECT DISTINCT - - ( - col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4555
SELECT ( - col0 ) DIV + col2 + col0 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
639
78

skipif mysql # not compatible
query I rowsort label-4555
SELECT ( - col0 ) / + col2 + col0 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
639
78

query I rowsort
SELECT - - ( col1 ) AS col1 FROM tab0 cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4557
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col0 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT - CAST ( NULL AS REAL ) col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - 31 * 79 * + col2 FROM tab1 AS cor0
----
-132246
-139593
-235104

query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col0 + col2 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-4560
SELECT DISTINCT + + cor0.col1 DIV - col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT + + cor0.col1 / - col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT + + 73 * col0 FROM tab1 AS cor0
----
219
4672
5840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4562
SELECT ALL + cor0.col2 / + col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL + cor0.col2 / + 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 + + col1 * col2 col2 FROM tab2 cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4564
SELECT ALL - col2 * - col0 + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL - col2 * - col0 + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4565
SELECT tab0.col0 + col0 DIV + tab0.col2 FROM tab0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-4565
SELECT tab0.col0 + col0 / + tab0.col2 FROM tab0
----
24
70
90

query I rowsort
SELECT - cor0.col1 * 27 FROM tab1 AS cor0
----
-270
-351
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-4567
SELECT ALL col0 DIV + col0 - cor0.col2 * - col0 FROM tab0 AS cor0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL col0 / + col0 - cor0.col2 * - col0 FROM tab0 AS cor0
----
36
7299
793

query I rowsort
SELECT cor0.col2 * col0 * col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT cor0.col0 + + col2 * col1 AS col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - + cor0.col0 * 25 AS col1 FROM tab1 AS cor0
----
-1600
-2000
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + 49 col0 FROM tab0 AS cor0
----
-40
14
25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4572
SELECT ALL - col1 * CAST( NULL AS SIGNED ) - - col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) - - col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4573
SELECT DISTINCT col2 * + cor0.col1 + + 17 DIV col0 FROM tab1 AS cor0
----
1248
1409
570

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT col2 * + cor0.col1 + + 17 / col0 FROM tab1 AS cor0
----
1248
1409
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - ( + 62 ) * col1 col2 FROM tab0 AS cor0
----
127968
210490
502138

query I rowsort
SELECT tab0.col2 + col0 + - col1 FROM tab0
----
-29
-61
80

query I rowsort
SELECT - col0 + - col2 - + 70 FROM tab1
----
-127
-191
-246

query I rowsort
SELECT - col2 + + 14 FROM tab2 AS cor0
----
-12
-13
-24

query I rowsort
SELECT + cor1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT - col2 + ( - ( - col1 ) ) * 34 + 52 AS col2 FROM tab2
----
1079
2032
592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT tab2.col2 * + 68 + - tab2.col0 * col1 FROM tab2
----
-2834
1241
1619

query I rowsort
SELECT - - cor0.col0 * - ( - col0 ) * col1 FROM tab0 AS cor0
----
118825
49536
720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( 64 ) col1 FROM tab2 cor0
----
1664
1728
2432

query I rowsort
SELECT - - col0 * + col0 * ( ( - col1 ) ) - cor0.col2 AS col0 FROM tab2 AS cor0
----
-106135
-1546
-358982

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4585
SELECT DISTINCT - ( cor0.col0 ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT - ( cor0.col0 ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 64 AS col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 100c625e45715c20368551989514ba64

onlyif mysql # use DIV operator for integer division
query I rowsort label-4587
SELECT + - col0 * col0 - col2 DIV col1 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-4587
SELECT + - col0 * col0 - col2 / col1 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT + + col1 - - col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT ALL col2 * col0 * + col0 + col0 FROM tab0
----
1260
19032
649611

query I rowsort
SELECT ALL 45 * - col1 + + ( 10 ) AS col2 FROM tab1
----
-1160
-440
-575

query I rowsort
SELECT + cor0.col0 + col2 + + col2 AS col0 FROM tab1 AS cor0
----
111
178
272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 + + ( - col1 ) * + col2 col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL tab0.col1 * - col1 AS col0 FROM tab0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4594
SELECT 44 DIV col0 FROM tab2
----
0
0
6

skipif mysql # not compatible
query I rowsort label-4594
SELECT 44 / col0 FROM tab2
----
0
0
6

query I rowsort
SELECT - 53 * + col2 + + col2 FROM tab2 AS cor0
----
-1352
-1404
-1976

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4596
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4596
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 77 * + col0 * col1 AS col1 FROM tab0 cor0
----
158928
261415
623623

query I rowsort
SELECT + 64 AS col1 FROM tab0 cor0
----
64
64
64

query I rowsort
SELECT + col2 + + 83 * ( - col0 ) AS col0 FROM tab2
----
-554
-6448
-6519

query I rowsort
SELECT - ( tab1.col0 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT DISTINCT + ( - col1 + - col0 ) AS col0 FROM tab1
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 1 AS REAL ) FROM tab0
----
-1
-1
-1

query I rowsort
SELECT - + ( + cor0.col0 ) * col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - col0 + col2 * + col2 FROM tab0 AS cor0
----
-34
1065
6635

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4605
SELECT CAST( - ( - col0 ) AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-4605
SELECT CAST ( - ( - col0 ) AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL + - col1 + 20 FROM tab1 AS cor0
----
-6
10
7

query I rowsort
SELECT DISTINCT - + 40 * + 80 AS col0 FROM tab2 AS cor0
----
-3200

query I rowsort
SELECT DISTINCT + + col2 * + col2 + + ( - 16 ) FROM tab2 AS cor0
----
1428
660
713

query I rowsort
SELECT DISTINCT + col2 + + col2 * - col1 AS col2 FROM tab2 cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL + ( + col2 ) + + col2 * - col2 + col0 * - 66 AS col1 FROM tab2 AS cor0
----
-1164
-5798
-6620

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4611
SELECT ALL + CAST( + col2 * col0 AS SIGNED ) AS col2 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL + CAST ( + col2 * col0 AS INTEGER ) AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - 12 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT + 2 * + col0 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 12 col1 FROM tab1 AS cor0
----
12
12
12

query I rowsort
SELECT cor0.col0 + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT + ( col0 ) * ( + col1 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - 22 * - col0 * ( + col0 ) FROM tab2 AS cor0
----
1078
133848
137302

onlyif mysql # use DIV operator for integer division
query I rowsort label-4618
SELECT DISTINCT - col1 DIV ( - col1 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4618
SELECT DISTINCT - col1 / ( - col1 ) AS col2 FROM tab1
----
1

query I rowsort
SELECT cor0.col1 * - col1 * col2 + col1 * + 40 FROM tab1 AS cor0
----
-15704
-35464
-5300

query I rowsort
SELECT col1 * - 4 + - 2 FROM tab1 AS cor0
----
-106
-42
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-4621
SELECT DISTINCT - + col2 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT - + col2 / cor0.col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 47 AS REAL ) FROM tab1 AS cor0
----
-47
-47
-47

query I rowsort
SELECT + col2 + - ( + col2 ) AS col2 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL - col2 + + 86 + + ( + col0 ) * - col0 * col0 FROM tab0 AS cor0
----
-13771
-42790
-704965

query I rowsort
SELECT DISTINCT - col0 * + ( - 58 ) + col1 FROM tab0 AS cor0
----
1478
2127
5253

query I rowsort
SELECT ALL col2 - - col0 * ( col1 ) FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-4628
SELECT ALL col1 DIV cor0.col1 + ( - col1 ) * col2 DIV - col1 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL col1 / cor0.col1 + ( - col1 ) * col2 / - col1 FROM tab0 AS cor0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4629
SELECT DISTINCT col0 DIV ( + col1 ) + col0 * - cor0.col0 FROM tab1 AS cor0
----
-4090
-6394
-9

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT col0 / ( + col1 ) + col0 * - cor0.col0 FROM tab1 AS cor0
----
-4090
-6394
-9

query I rowsort
SELECT ALL - - col0 * cor0.col1 + - col0 AS col2 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT DISTINCT + + col0 * col1 + cor0.col0 - col2 AS col0 FROM tab2 AS cor0
----
1384
197
4654

query I rowsort
SELECT DISTINCT col0 + - col2 * - col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - col1 * + 36 AS col2 FROM tab0 AS cor0
----
-3096
-3276
-3492

query I rowsort
SELECT DISTINCT col0 - - 86 AS col1 FROM tab0 cor0
----
110
121
175

query I rowsort
SELECT + col0 * + cor0.col2 * - ( cor0.col2 ) FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT ALL - col2 + ( ( col0 ) + cor0.col1 ) FROM tab0 AS cor0
----
131
77
98

query I rowsort
SELECT ALL - ( - col1 ) * - col1 + cor0.col1 FROM tab1 AS cor0
----
-156
-650
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4638
SELECT ALL - 70 DIV col2 - col1 AS col2 FROM tab0 cor0
----
-167
-88
-91

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL - 70 / col2 - col1 AS col2 FROM tab0 cor0
----
-167
-88
-91

query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab0, tab0 cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 23 * cor0.col0 col2 FROM tab2 AS cor0
----
161
1794
1817

onlyif mysql # use DIV operator for integer division
query I rowsort label-4641
SELECT DISTINCT - ( + col0 ) DIV - col2 + + col0 AS col0 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT - ( + col0 ) / - col2 + + col0 AS col0 FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT 25 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

skipif mysql # not compatible
query I rowsort
SELECT + col1 + tab2.col0 * CAST ( + col1 AS REAL ) FROM tab2
----
1360
248
4661

query I rowsort
SELECT - tab2.col1 * col2 + + col1 AS col0 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT - 34 + col0 FROM tab1 AS cor0
----
-31
30
46

query I rowsort
SELECT - col0 * col0 + - 90 AS col1 FROM tab1 AS cor0
----
-4186
-6490
-99

query I rowsort
SELECT + 52 + col1 * 84 AS col0 FROM tab1 AS cor0
----
1144
2236
892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 * + col1 col1 FROM tab2
----
1054
1922
3658

onlyif mysql # use DIV operator for integer division
query I rowsort label-4649
SELECT col1 * col2 + + col2 DIV col2 AS col1 FROM tab1 AS cor0
----
1249
1405
571

skipif mysql # not compatible
query I rowsort label-4649
SELECT col1 * col2 + + col2 / col2 AS col1 FROM tab1 AS cor0
----
1249
1405
571

onlyif mysql # use DIV operator for integer division
query I rowsort label-4650
SELECT DISTINCT - col0 * cor0.col1 DIV + col0 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT - col0 * cor0.col1 / + col0 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4651
SELECT - + cor0.col1 + col1 DIV + cor0.col0 AS col0 FROM tab2 AS cor0
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-4651
SELECT - + cor0.col1 + col1 / + cor0.col0 AS col0 FROM tab2 AS cor0
----
-17
-27
-59

query I rowsort
SELECT - - 55 + cor0.col0 AS col0 FROM tab1 cor0
----
119
135
58

query I rowsort
SELECT DISTINCT + 5 * + col1 AS col1 FROM tab2 cor0
----
155
295
85

query I rowsort
SELECT - + col0 + cor0.col1 AS col2 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT ALL col0 * + 4 AS col2 FROM tab2 AS cor0
----
28
312
316

query I rowsort
SELECT DISTINCT 86 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
86

query I rowsort
SELECT - ( cor0.col0 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT - cor1.col2 AS col0 FROM tab2, tab1 cor0, tab0 cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT 50 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + tab2.col1 col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 956d8870bc331b7793c38009f5a02194

onlyif mysql # use DIV operator for integer division
query I rowsort label-4661
SELECT - col1 DIV ( col1 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4661
SELECT - col1 / ( col1 ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + + 9 + 44 AS col0 FROM tab0 AS cor0
----
53
53
53

query I rowsort
SELECT col2 * + 47 * - col2 + + col2 AS col1 FROM tab1
----
-136998
-152646
-433056

query I rowsort
SELECT DISTINCT + ( 40 ) + col2 AS col1 FROM tab0
----
122
41
73

query I rowsort
SELECT DISTINCT + ( - 4 ) + cor0.col2 AS col0 FROM tab1 AS cor0
----
50
53
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4666
SELECT DISTINCT + CAST( col0 AS SIGNED ) DIV - col1 + + 97 col1 FROM tab1 AS cor0
----
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT + CAST ( col0 AS INTEGER ) / - col1 + + 97 col1 FROM tab1 AS cor0
----
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 80 ) + + col0 col0 FROM tab0 AS cor0
----
104
115
169

query I rowsort
SELECT ALL + ( + ( col2 ) ) * + 0 - + col1 AS col1 FROM tab0 cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 41 col1 FROM tab0 AS cor0
----
-17
-6
48

query I rowsort
SELECT + col1 * ( - col0 ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 + col0 + - 33 col2 FROM tab0 AS cor0
----
1227
567
7977

query I rowsort
SELECT ALL - - 68 * + cor0.col0 FROM tab1 AS cor0
----
204
4352
5440

query I rowsort
SELECT - + ( cor0.col1 ) * 2 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT ALL 34 * col0 + + col2 * col2 AS col0 FROM tab0 AS cor0
----
1191
1905
9750

query I rowsort
SELECT ALL + 8 + cor0.col2 AS col2 FROM tab1 AS cor0
----
104
62
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4676
SELECT ALL + - 74 + col2 + + CAST( - cor0.col2 AS SIGNED ) FROM tab0 AS cor0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL + - 74 + col2 + + CAST ( - cor0.col2 AS INTEGER ) FROM tab0 AS cor0
----
-74
-74
-74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4677
SELECT DISTINCT col1 * + col1 * CAST( + col0 * + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1081600
409600
6084

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT col1 * + col1 * CAST ( + col0 * + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1081600
409600
6084

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col2 + ( - col2 ) * - cor0.col0 + col2 col0 FROM tab0 AS cor0
----
133
14842
3663

query I rowsort
SELECT - 46 - col0 FROM tab2 AS cor0
----
-124
-125
-53

query I rowsort
SELECT DISTINCT + + col1 * col0 + + 52 AS col1 FROM tab2 AS cor0
----
1395
269
4654

onlyif mysql # use DIV operator for integer division
query I rowsort label-4681
SELECT 69 DIV + 13 FROM tab1
----
5
5
5

skipif mysql # not compatible
query I rowsort label-4681
SELECT 69 / + 13 FROM tab1
----
5
5
5

query I rowsort
SELECT + 97 * col0 AS col0 FROM tab2
----
679
7566
7663

query I rowsort
SELECT DISTINCT 72 - + col2 FROM tab0
----
-10
39
71

query I rowsort
SELECT DISTINCT - col2 - 33 AS col2 FROM tab0
----
-115
-34
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4685
SELECT col2 * + col1 - + col1 DIV col0 FROM tab2 AS cor0
----
1534
646
833

skipif mysql # not compatible
query I rowsort label-4685
SELECT col2 * + col1 - + col1 / col0 FROM tab2 AS cor0
----
1534
646
833

onlyif mysql # use DIV operator for integer division
query I rowsort label-4686
SELECT DISTINCT + col1 + - col0 * col2 DIV col2 FROM tab1 AS cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT + col1 + - col0 * col2 / col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT col0 * ( col0 ) + col2 FROM tab2
----
6110
6279
76

query I rowsort
SELECT DISTINCT - 20 - - col2 FROM tab2
----
18
6
7

query I rowsort
SELECT DISTINCT + col2 - col1 * col2 AS col1 FROM tab0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4690
SELECT - - col2 + + col0 DIV col1 FROM tab2 cor0
----
27
27
42

skipif mysql # not compatible
query I rowsort label-4690
SELECT - - col2 + + col0 / col1 FROM tab2 cor0
----
27
27
42

query I rowsort
SELECT ALL + col1 * - col1 + col1 AS col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT ALL + - 31 * col0 - + cor0.col2 FROM tab2 AS cor0
----
-244
-2444
-2487

query I rowsort
SELECT ALL col2 * + cor0.col2 + + col1 + col2 * - col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL cor0.col1 * - cor0.col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-4695
SELECT ALL + 41 + col0 DIV - col1 col1 FROM tab2 AS cor0
----
37
40
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL + 41 + col0 / - col1 col1 FROM tab2 AS cor0
----
37
40
41

query I rowsort
SELECT DISTINCT - - col2 * + col1 - cor0.col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT - + col0 * col1 + + col2 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 + + col2 * cor0.col1 col0 FROM tab2 cor0
----
0

query I rowsort
SELECT - 11 + - col1 * col1 FROM tab0 cor0
----
-7407
-8292
-9420

query I rowsort
SELECT - col1 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4701
SELECT col1 DIV col1 + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1443
-675
-728

skipif mysql # not compatible
query I rowsort label-4701
SELECT col1 / col1 + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1443
-675
-728

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 = NULL
----

query I rowsort
SELECT + tab1.col0 + - col2 * col1 AS col2 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT col1 FROM tab0 WHERE NOT NULL NOT IN ( tab0.col1 + + col1 - col2 )
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 WHERE NULL BETWEEN - col1 AND ( col1 + - col2 )
----

query I rowsort
SELECT - col0 FROM tab2 WHERE + col0 NOT IN ( - col0 + - col1 * + tab2.col1 )
----
-7
-78
-79

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( col0 )
----

query I rowsort
SELECT col1 * col0 - - col2 FROM tab0
----
2097
3396
8181

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col2 / col0 AND ( NULL )
----

query I rowsort
SELECT col2 - tab1.col2 * col2 * tab1.col2 AS col1 FROM tab1
----
-157410
-185136
-884640

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 < col0 * + col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT + tab1.col2 + - tab1.col1 * col2 AS col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT tab2.col1 - col1 FROM tab2
----
0

query I rowsort
SELECT tab1.col0 + - col2 + col1 FROM tab1
----
-25
-3
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - tab1.col0 col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - col1 * - tab1.col0 * col2 + col0 * + col1 AS col0 FROM tab1
----
100880
37120
4290

query I rowsort
SELECT + col1 * col1 + + col2 * col1 AS col0 FROM tab2
----
1798
5015
935

onlyif mysql # use DIV operator for integer division
query I rowsort label-4718
SELECT - col0 - col2 DIV col1 FROM tab1
----
-5
-69
-87

skipif mysql # not compatible
query I rowsort label-4718
SELECT - col0 - col2 / col1 FROM tab1
----
-5
-69
-87

query I rowsort
SELECT + col1 + col2 + col2 AS col2 FROM tab0
----
152
255
99

query I rowsort
SELECT tab2.col1 * + col0 / tab2.col2 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( - col2 * col0 ) AND - col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4721
SELECT DISTINCT + col0 + col1 DIV col2 AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT + col0 + col1 / col2 AS col1 FROM tab1
----
3
64
80

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 + col1 ) IN ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 > + col1
----

query I rowsort
SELECT tab2.col1 AS col2 FROM tab2 WHERE NOT + col2 * col0 BETWEEN + col2 AND - col2 * - col0 + col0 + col2
----

query I rowsort
SELECT ALL tab0.col1 - - col2 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT col2 * col2 * col1 + col0 FROM tab0
----
132
611973
93678

query I rowsort
SELECT col0 + + col1 * col0 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4728
SELECT + col2 * col1 + - col1 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4728
SELECT + col2 * col1 + - col1 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4729
SELECT + col2 + - 88 DIV + col2 FROM tab0 cor0
----
-87
31
81

skipif mysql # not compatible
query I rowsort label-4729
SELECT + col2 + - 88 / + col2 FROM tab0 cor0
----
-87
31
81

query I rowsort
SELECT DISTINCT 77 * + col1 * - col0 + ( 82 ) * - col0 * + col2 + col2 FROM tab2
----
-32180
-349537
-520624

query I rowsort
SELECT ALL tab0.col1 + col0 * tab0.col1 + + 50 AS col2 FROM tab0
----
2200
3542
8240

query I rowsort
SELECT DISTINCT + 96 + cor0.col1 FROM tab2, tab1 AS cor0
----
106
109
122

query I rowsort
SELECT + + ( + ( - cor0.col2 ) ) * ( col2 ) AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL cor0.col2 + + 87 AS col1 FROM tab2 AS cor0
----
113
114
125

query I rowsort
SELECT ALL 83 * 2 + + cor0.col1 FROM tab1 AS cor0
----
176
179
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 10 * cor0.col0 col2 FROM tab0 cor0
----
240
350
890

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4737
SELECT ALL - + CAST( col1 AS SIGNED ) * col1 + 73 FROM tab0 cor0
----
-7323
-8208
-9336

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL - + CAST ( col1 AS INTEGER ) * col1 + 73 FROM tab0 cor0
----
-7323
-8208
-9336

query I rowsort
SELECT ALL - 76 + + 28 AS col2 FROM tab1 AS cor0
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 24 col0 FROM tab0 AS cor0
----
-2136
-576
-840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - ( + cor0.col2 ) * ( col0 + cor0.col1 ) col0 FROM tab0 AS cor0
----
-14671
-3606
-97

query I rowsort
SELECT + col1 + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + - col1 * cor0.col0 * col0 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT + - col1 * col1 * + col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT - 34 + + col2 * - col2 FROM tab0
----
-1123
-35
-6758

query I rowsort
SELECT ( 12 ) * + tab0.col0 FROM tab0
----
1068
288
420

query I rowsort
SELECT col0 * col0 - - 51 * + col1 AS col1 FROM tab2 AS cor0
----
1630
7108
9093

onlyif mysql # use DIV operator for integer division
query I rowsort label-4747
SELECT DISTINCT + - col1 DIV + col2 + 35 DIV col1 - ( 47 * col0 ) AS col2 FROM tab1 cor0
----
-140
-3005
-3758

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT + - col1 / + col2 + 35 / col1 - ( 47 * col0 ) AS col2 FROM tab1 cor0
----
-140
-3005
-3758

query I rowsort
SELECT + cor0.col1 * col1 - col2 AS col1 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT DISTINCT 91 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
91

query I rowsort
SELECT DISTINCT tab1.col0 * - 28 FROM tab1
----
-1792
-2240
-84

query I rowsort
SELECT DISTINCT - + col0 + - col2 - col0 FROM tab2 AS cor0
----
-182
-196
-41

query I rowsort
SELECT 59 + col0 AS col0 FROM tab0 AS cor0
----
148
83
94

query I rowsort
SELECT + cor0.col2 * + 90 + 92 * + col2 * col1 AS col0 FROM tab0 AS cor0
----
264066
693884
9014

query I rowsort
SELECT col1 + tab0.col2 + 33 * col0 AS col0 FROM tab0
----
1253
3110
911

query I rowsort
SELECT + ( 16 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT + col1 * 1 AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - + 33 * + col0 + col2 - - col2 AS col1 FROM tab2 AS cor0
----
-177
-2522
-2531

query I rowsort
SELECT + col2 * + ( col0 ) AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL cor0.col1 + + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 15ff38272c484fb486e1883e64781cf3

query I rowsort
SELECT DISTINCT + tab0.col2 - - col0 * 97 FROM tab0
----
2361
3396
8715

query I rowsort
SELECT ALL - tab2.col2 - + 57 * + col1 FROM tab2
----
-1007
-1794
-3389

query I rowsort
SELECT 78 * - 71 FROM tab1
----
-5538
-5538
-5538

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 + 24 col2 FROM tab2
----
-27
-27
-27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4765
SELECT ALL CAST( - ( + col1 ) AS SIGNED ) * + col0 * + col1 + col0 FROM tab0
----
-177480
-329280
-736920

skipif mysql # not compatible
query I rowsort label-4765
SELECT ALL CAST ( - ( + col1 ) AS INTEGER ) * + col0 * + col1 + col0 FROM tab0
----
-177480
-329280
-736920

query I rowsort
SELECT ALL 44 AS col1 FROM tab2
----
44
44
44

query I rowsort
SELECT ALL + col1 * col0 + col2 AS col1 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT ALL col2 + + col0 * col0 FROM tab1
----
4153
63
6496

query I rowsort
SELECT tab2.col1 * + col1 + + col2 * - col1 AS col1 FROM tab2
----
-357
124
1947

query I rowsort
SELECT DISTINCT 3 + + col2 AS col2 FROM tab0
----
36
4
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4771
SELECT DISTINCT - CAST( ( + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT - CAST ( ( + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + 42 * 79 FROM tab1 AS cor0
----
3318
3318
3318

query I rowsort
SELECT DISTINCT - col0 + 51 * col0 AS col2 FROM tab2 AS cor0
----
350
3900
3950

onlyif mysql # use DIV operator for integer division
query I rowsort label-4774
SELECT - cor0.col1 * col0 + + col2 DIV col1 AS col2 FROM tab2 cor0
----
-1341
-217
-4602

skipif mysql # not compatible
query I rowsort label-4774
SELECT - cor0.col1 * col0 + + col2 / col1 AS col2 FROM tab2 cor0
----
-1341
-217
-4602

query I rowsort
SELECT ALL + + 7 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT + ( 68 ) + col2 FROM tab0 AS cor0
----
101
150
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 col2 FROM tab1, tab2, tab0 AS cor0
----
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-4778
SELECT tab0.col1 DIV - col1 + col1 * + tab0.col0 AS col1 FROM tab0
----
2063
3394
8098

skipif mysql # not compatible
query I rowsort label-4778
SELECT tab0.col1 / - col1 + col1 * + tab0.col0 AS col1 FROM tab0
----
2063
3394
8098

query I rowsort
SELECT tab2.col1 * - col0 + + col1 * tab2.col0 * - col1 FROM tab2
----
-24174
-276120
-6944

query I rowsort
SELECT - col2 * col0 + 0 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT + col1 + col0 * 69 FROM tab1
----
233
4426
5533

query I rowsort
SELECT ALL + 34 AS col1 FROM tab2
----
34
34
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4783
SELECT col2 - tab1.col2 DIV 33 AS col2 FROM tab1
----
53
56
94

skipif mysql # not compatible
query I rowsort label-4783
SELECT col2 - tab1.col2 / 33 AS col2 FROM tab1
----
53
56
94

query I rowsort
SELECT + 86 + col2 AS col0 FROM tab1
----
140
143
182

query I rowsort
SELECT ALL - cor0.col0 + - col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4786
SELECT ALL + + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL + + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4787
SELECT - col2 + cor0.col1 DIV col1 AS col0 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-4787
SELECT - col2 + cor0.col1 / col1 AS col0 FROM tab1 AS cor0
----
-53
-56
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4788
SELECT DISTINCT - col1 * + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT - col1 * + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL - cor0.col1 * + col1 + - 76 FROM tab2 AS cor0
----
-1037
-3557
-365

query I rowsort
SELECT col1 * - ( + cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - col1 + 3 * col2 AS col1 FROM tab1 cor0
----
136
161
275

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4793
SELECT ALL col2 * cor0.col1 + cor0.col0 + col2 DIV - col0 FROM tab2 AS cor0
----
1612
725
841

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL col2 * cor0.col1 + cor0.col0 + col2 / - col0 FROM tab2 AS cor0
----
1612
725
841

query I rowsort
SELECT DISTINCT + + col2 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-4795
SELECT - col2 DIV 71 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4795
SELECT - col2 / 71 AS col2 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4796
SELECT ALL col0 + + CAST( - col1 AS SIGNED ) FROM tab1 cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL col0 + + CAST ( - col1 AS INTEGER ) FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - - cor0.col1 * - col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT + col2 * - 72 AS col2 FROM tab1 AS cor0
----
-3888
-4104
-6912

query I rowsort
SELECT col1 * - col0 + + col1 AS col0 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT 76 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4801
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 66 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 66 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL col1 * 19 AS col2 FROM tab1 AS cor0
----
190
247
494

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT + 24 * - col1 * - tab2.col0 AS col2 FROM tab2
----
110448
32232
5208

query I rowsort
SELECT ALL - 55 + col1 * + tab2.col0 + + col2 FROM tab2
----
1326
189
4573

query I rowsort
SELECT ALL ( - 19 ) + col2 * - col0 FROM tab2
----
-2047
-208
-3021

query I rowsort
SELECT tab0.col1 AS col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - 29 - col1 AS col2 FROM tab2 AS cor0
----
-46
-60
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4809
SELECT + - CAST( NULL AS SIGNED ) + col2 * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4809
SELECT + - CAST ( NULL AS INTEGER ) + col2 * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * col2 + + col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - + col2 * col2 + + col1 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT DISTINCT - + col2 * col1 + + col0 AS col1 FROM tab2 cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT - ( - tab1.col0 * col0 ) AS col0 FROM tab1
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 39 col2 FROM tab1 AS cor0
----
-39
-39
-39

query I rowsort
SELECT DISTINCT - - 64 + 72 FROM tab2 cor0
----
136

query I rowsort
SELECT 88 * + col0 FROM tab2 AS cor0
----
616
6864
6952

query I rowsort
SELECT DISTINCT col2 + - cor0.col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + + col2 * col1 AS col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT 64 * col0 + - col2 FROM tab0 cor0
----
1503
2239
5614

query I rowsort
SELECT - - col0 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + col0 * col1 * + 43 + + 91 AS col0 FROM tab2 AS cor0
----
197977
57840
9422

query I rowsort
SELECT ALL - 52 + + col0 FROM tab2
----
-45
26
27

query I rowsort
SELECT ALL tab0.col0 + col0 + - col0 * + col1 FROM tab0
----
-2016
-3325
-7921

query I rowsort
SELECT - col0 + col1 * 91 FROM tab2 AS cor0
----
1468
2814
5291

onlyif mysql # use DIV operator for integer division
query I rowsort label-4825
SELECT + + col0 + col0 DIV + CAST( col0 AS SIGNED ) + col2 * + 47 AS col0 FROM tab0 AS cor0
----
1576
3944
83

skipif mysql # not compatible
query I rowsort label-4825
SELECT + + col0 + col0 / + CAST ( col0 AS INTEGER ) + col2 * + 47 AS col0 FROM tab0 AS cor0
----
1576
3944
83

query I rowsort
SELECT ALL - 74 + tab0.col2 FROM tab0
----
-41
-73
8

query I rowsort
SELECT DISTINCT - tab0.col0 * + col2 + 18 FROM tab0
----
-17
-7280
-774

onlyif mysql # use DIV operator for integer division
query I rowsort label-4828
SELECT - + col2 DIV - col1 + - cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
-21
59
74

skipif mysql # not compatible
query I rowsort label-4828
SELECT - + col2 / - col1 + - cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
-21
59
74

query I rowsort
SELECT - - 20 + col0 + - 58 FROM tab1 AS cor0
----
-35
26
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + col0 + - 24 col2 FROM tab2 cor0
----
1588
701
820

query I rowsort
SELECT col2 * col1 * - tab2.col0 + - 1 - + col2 FROM tab2
----
-119679
-51073
-5887

query I rowsort
SELECT + col1 * col0 + 69 * col2 AS col2 FROM tab1 AS cor0
----
3804
4573
7664

query I rowsort
SELECT ALL + - 58 * col1 AS col1 FROM tab1 AS cor0
----
-1508
-580
-754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4834
SELECT + col1 - + col0 * CAST( ( - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
104
1053
650

skipif mysql # not compatible
query I rowsort label-4834
SELECT + col1 - + col0 * CAST ( ( - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT - col2 * ( col2 ) + - col0 AS col1 FROM tab2 AS cor0
----
-1523
-736
-754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 54 + - col0 * + col2 * + col1 col1 FROM tab2 cor0
----
-119647
-51071
-5882

query I rowsort
SELECT DISTINCT - col1 * + 8 AS col0 FROM tab1 cor0
----
-104
-208
-80

query I rowsort
SELECT ALL col2 * 42 FROM tab2 AS cor0
----
1092
1134
1596

query I rowsort
SELECT DISTINCT + + col1 + + 13 * col2 FROM tab1 AS cor0
----
1261
728
751

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4840
SELECT col1 + - CAST( NULL AS SIGNED ) / + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT col1 + - CAST ( NULL AS INTEGER ) / + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - ( 10 ) * - col2 FROM tab0 AS cor0
----
297
738
9

query I rowsort
SELECT col0 * 28 AS col0 FROM tab0 AS cor0
----
2492
672
980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 * - 61 * - col0 col2 FROM tab2 AS cor0
----
13237
280722
81923

query I rowsort
SELECT ALL + col1 * ( 74 + col0 ) AS col2 FROM tab2 AS cor0
----
2511
2601
8968

query I rowsort
SELECT - col1 * 20 FROM tab1 AS cor0
----
-200
-260
-520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4846
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 72 * col1 + + col2 AS col2 FROM tab1 AS cor0
----
1032
1926
777

query I rowsort
SELECT + col1 * + col2 + 64 FROM tab1
----
1312
1468
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-4849
SELECT ALL - 56 DIV col1 - + col2 FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL - 56 / col1 - + col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT - col1 - + 87 FROM tab1
----
-100
-113
-97

query I rowsort
SELECT + col1 * + col1 * + col2 AS col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT DISTINCT + ( col2 ) AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT + ( 17 ) - tab1.col2 AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 6cb7314fa52a60e91fa927c553aa81cc

query I rowsort
SELECT - col2 + - 52 + - 9 AS col2 FROM tab0
----
-143
-62
-94

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 + + col2 - - col1 * - col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT col2 * 92 * col1 + tab1.col2 - - col0 FROM tab1
----
114992
129225
52561

query I rowsort
SELECT tab0.col2 + - col1 - - 17 FROM tab0
----
-36
-79
8

query I rowsort
SELECT DISTINCT + tab1.col1 + 58 FROM tab1
----
68
71
84

query I rowsort
SELECT ALL + col1 * 3 + - 30 FROM tab2
----
147
21
63

query I rowsort
SELECT ( tab1.col2 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # use DIV operator for integer division
query I rowsort label-4862
SELECT ALL - 80 DIV cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL - 80 / cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - col1 + - 33 * + col0 FROM tab0 AS cor0
----
-1252
-3028
-878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4864
SELECT + - CAST( NULL AS DECIMAL ) * + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT + - CAST ( NULL AS REAL ) * + col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 20 * 98 * col2 - - 12 FROM tab0 AS cor0
----
-160708
-1948
-64668

query I rowsort
SELECT + + col1 + ( - cor0.col1 ) AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + col0 AS REAL ) * - col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - + col0 + 62 FROM tab0 AS cor0
----
-27
27
38

query I rowsort
SELECT - 53 + 72 FROM tab0
----
19
19
19

query I rowsort
SELECT DISTINCT col2 + tab2.col1 * - tab2.col0 AS col2 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT ( cor0.col1 ) * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col2 + - col2 col0 FROM tab0 cor0
----
0
1056
6642

query I rowsort
SELECT ALL + col1 * ( + col0 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ( col0 ) * - cor0.col0 + col1 * 98 + col0 AS col1 FROM tab0 AS cor0
----
1086
7876
8316

query I rowsort
SELECT DISTINCT - + col1 * 79 AS col0 FROM tab2 AS cor0
----
-1343
-2449
-4661

query I rowsort
SELECT - col1 * - col1 + cor0.col0 AS col0 FROM tab2 cor0
----
3559
368
968

query I rowsort
SELECT DISTINCT col0 * - 25 - col1 AS col2 FROM tab0 cor0
----
-2316
-686
-972

query I rowsort
SELECT + 55 * - col2 + + cor0.col0 FROM tab0 AS cor0
----
-1791
-20
-4421

query I rowsort
SELECT DISTINCT - ( 1 ) * col2 + 60 FROM tab2 AS cor0
----
22
33
34

query I rowsort
SELECT - col1 + - 88 * - col2 * col0 + - col0 AS col0 FROM tab1 AS cor0
----
14227
320950
675747

query I rowsort
SELECT ALL + 99 * + col1 FROM tab0 AS cor0
----
8514
9009
9603

query I rowsort
SELECT ALL + ( + 19 ) * cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 699296a3061c930701cf2dc6d47c8cae

query I rowsort
SELECT DISTINCT 80 * col1 * - ( - cor0.col2 ) AS col2 FROM tab2 AS cor0
----
122720
51680
66960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 * col0 col1 FROM tab1 AS cor0
----
-114
-2432
-3040

query I rowsort
SELECT ALL - 53 * col1 + 58 + col1 AS col2 FROM tab2 cor0
----
-1554
-3010
-826

query I rowsort
SELECT DISTINCT 24 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
1968
24
792

query I rowsort
SELECT ALL 46 * - col1 + col1 FROM tab1 AS cor0
----
-1170
-450
-585

query I rowsort
SELECT - 57 * col1 AS col1 FROM tab2 AS cor0
----
-1767
-3363
-969

query I rowsort
SELECT ALL - cor0.col2 + - col2 * 72 * + col0 FROM tab1 AS cor0
----
-11718
-262713
-553056

query I rowsort
SELECT - cor0.col1 + - 63 - col0 FROM tab0 AS cor0
----
-173
-195
-243

onlyif mysql # use DIV operator for integer division
query I rowsort label-4891
SELECT ALL cor0.col1 DIV + col0 + + 95 FROM tab2 AS cor0
----
95
95
99

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL cor0.col1 / + col0 + + 95 FROM tab2 AS cor0
----
95
95
99

query I rowsort
SELECT DISTINCT - - col1 * ( 44 ) + + col1 AS col2 FROM tab0 AS cor0
----
3870
4095
4365

query I rowsort
SELECT + col1 - ( + col2 ) FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL + + cor0.col2 * 48 FROM tab1 AS cor0
----
2592
2736
4608

onlyif mysql # use DIV operator for integer division
query I rowsort label-4895
SELECT col1 DIV + col1 + - ( col2 + col0 ) AS col1 FROM tab1
----
-120
-175
-56

skipif mysql # not compatible
query I rowsort label-4895
SELECT col1 / + col1 + - ( col2 + col0 ) AS col1 FROM tab1
----
-120
-175
-56

query I rowsort
SELECT - col1 * 45 FROM tab2 AS cor0
----
-1395
-2655
-765

query I rowsort
SELECT ALL + + cor0.col1 + ( - 3 + - col0 ) * 33 * col0 AS col2 FROM tab2 AS cor0
----
-208435
-213757
-2279

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4898
SELECT cor0.col1 + - CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4898
SELECT cor0.col1 + - CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + + 54 FROM tab1 AS cor0
----
108
111
150

query I rowsort
SELECT DISTINCT + col0 + 91 * 78 AS col1 FROM tab1 AS cor0
----
7101
7162
7178

query I rowsort
SELECT ALL + col0 + - 99 FROM tab2 AS cor0
----
-20
-21
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4902
SELECT ALL col1 DIV + 92 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4902
SELECT ALL col1 / + 92 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 + 65 AS col1 FROM tab1 cor0
----
119
122
161

onlyif mysql # use DIV operator for integer division
query I rowsort label-4904
SELECT DISTINCT - - col2 * col0 + + col1 DIV col0 FROM tab1 AS cor0
----
170
3648
7680

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT - - col2 * col0 + + col1 / col0 FROM tab1 AS cor0
----
170
3648
7680

query I rowsort
SELECT ALL + - col2 * 94 + + col2 FROM tab1 AS cor0
----
-5022
-5301
-8928

query I rowsort
SELECT DISTINCT + col0 + - col2 * 74 AS col2 FROM tab2 cor0
----
-1846
-1991
-2733

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + col1 col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT 89 * col0 - col1 FROM tab2 AS cor0
----
592
6883
7014

query I rowsort
SELECT - col0 * + 81 - cor0.col0 AS col1 FROM tab2 AS cor0
----
-574
-6396
-6478

query I rowsort
SELECT ALL + col2 * - col0 + + 23 + + 46 FROM tab2 AS cor0
----
-120
-1959
-2933

query I rowsort
SELECT ALL + 45 * col0 AS col0 FROM tab1 AS cor0
----
135
2880
3600

query I rowsort
SELECT 95 + + col0 FROM tab0 AS cor0
----
119
130
184

onlyif mysql # use DIV operator for integer division
query I rowsort label-4913
SELECT DISTINCT col1 DIV - col2 + col2 * col2 FROM tab1
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-4913
SELECT DISTINCT col1 / - col2 + col2 * col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT 90 + col2 FROM tab0
----
123
172
91

query I rowsort
SELECT + 43 + col0 * + col1 AS col1 FROM tab1
----
1083
121
683

query I rowsort
SELECT ALL - col2 - col0 * - 28 FROM tab0 cor0
----
2410
639
979

query I rowsort
SELECT cor2.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 63f734facb33901524f6f2c799118db4

query I rowsort
SELECT ( + col1 ) + + 35 * + 38 AS col2 FROM tab1
----
1340
1343
1356

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4919
SELECT + CAST( - cor0.col1 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-4919
SELECT + CAST ( - cor0.col1 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * 31 col1 FROM tab1, tab2 AS cor0
----
1829
527
961

query I rowsort
SELECT + - cor0.col2 * col1 + col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT - - col1 * + col0 * - col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-4923
SELECT col0 DIV - col1 + col0 col0 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4923
SELECT col0 / - col1 + col0 col0 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4924
SELECT + 26 DIV - tab2.col0 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 1313fe5a78d4cb52a368eb751ada9cfa

skipif mysql # not compatible
query I rowsort label-4924
SELECT + 26 / - tab2.col0 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 1313fe5a78d4cb52a368eb751ada9cfa

query I rowsort
SELECT + 63 * cor0.col1 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 2910baa1417959bf0a99b4af2538926b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4926
SELECT cor0.col2 + CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4926
SELECT cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - + 55 - + 25 * + col1 AS col2 FROM tab0 AS cor0
----
-2205
-2330
-2480

query I rowsort
SELECT - 63 * - col1 AS col1 FROM tab0
----
5418
5733
6111

query I rowsort
SELECT DISTINCT 55 * 99 FROM tab2
----
5445

query I rowsort
SELECT ALL cor0.col1 * + 99 FROM tab2, tab1 cor0
----
9 values hashing to 6f145882e7bb0bbb2b1665f06415703e

query I rowsort
SELECT ( tab0.col2 ) + tab0.col2 AS col2 FROM tab0
----
164
2
66

query I rowsort
SELECT col0 + - ( col2 ) - col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
7387
8288
9443

query I rowsort
SELECT + col2 * - ( col1 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + - col2 * col2 + cor0.col1 * + col0 - + col2 AS col0 FROM tab2 AS cor0
----
-139
-539
3900

query I rowsort
SELECT DISTINCT + tab1.col1 - + col0 * - col0 FROM tab1
----
35
4106
6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 * - 90 col1 FROM tab2 AS cor0
----
-1451
-2783
-5232

query I rowsort
SELECT - col0 + - col1 * - 6 FROM tab0
----
457
492
547

query I rowsort
SELECT DISTINCT + - col2 * - cor0.col2 - - cor0.col0 AS col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT - cor0.col0 * ( - col0 ) + - col2 AS col1 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT - col2 * - 29 FROM tab2 AS cor0
----
1102
754
783

query I rowsort
SELECT - - col1 * - ( - col0 ) - col1 * - 9 FROM tab2 cor0
----
1496
496
5133

query I rowsort
SELECT - - col1 + + ( col0 ) FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4943
SELECT + col0 DIV + col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-4943
SELECT + col0 / + col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
3
70
86

query I rowsort
SELECT ALL tab2.col0 * col1 * - tab2.col2 AS col1 FROM tab2
----
-119652
-51034
-5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4945
SELECT ALL col2 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4946
SELECT col1 DIV col0 - ( + col2 ) FROM tab1
----
-46
-57
-96

skipif mysql # not compatible
query I rowsort label-4946
SELECT col1 / col0 - ( + col2 ) FROM tab1
----
-46
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4947
SELECT - col0 DIV - col0 + col1 * + col1 * cor0.col0 FROM tab0 AS cor0
----
177505
329316
737010

skipif mysql # not compatible
query I rowsort label-4947
SELECT - col0 / - col0 + col1 * + col1 * cor0.col0 FROM tab0 AS cor0
----
177505
329316
737010

query I rowsort
SELECT + - ( 96 ) * col0 AS col0 FROM tab2 AS cor0
----
-672
-7488
-7584

query I rowsort
SELECT + col1 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - col0 * 26 AS col1 FROM tab1 AS cor0
----
-1664
-2080
-78

query I rowsort
SELECT + col0 * cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
6110
6279
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4952
SELECT ALL + ( + col0 ) * - col1 + - col0 DIV + cor0.col1 FROM tab2 AS cor0
----
-1347
-217
-4603

skipif mysql # not compatible
query I rowsort label-4952
SELECT ALL + ( + col0 ) * - col1 + - col0 / + cor0.col1 FROM tab2 AS cor0
----
-1347
-217
-4603

query I rowsort
SELECT + ( 88 ) - cor0.col0 AS col2 FROM tab2 AS cor0
----
10
81
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4954
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + cor0.col0 * + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + cor0.col0 * + col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 82 + cor0.col0 AS col1 FROM tab1 AS cor0
----
146
162
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4956
SELECT ALL + - CAST( NULL AS SIGNED ) / col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL + - CAST ( NULL AS INTEGER ) / col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + 61 FROM tab1 AS cor0
----
1586
610
793

query I rowsort
SELECT - - 98 * - col1 - col1 AS col0 FROM tab2 AS cor0
----
-1683
-3069
-5841

query I rowsort
SELECT + 64 * + col1 AS col0 FROM tab0 AS cor0
----
5504
5824
6208

query I rowsort
SELECT - + cor0.col0 + + col1 * col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT + 17 * 81 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e9c7af2def31b02bd465c936ac3c0c70

query I rowsort
SELECT - 97 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + + col0 col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL + + cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - - 88 * cor0.col1 FROM tab0 AS cor0
----
7568
8008
8536

query I rowsort
SELECT - + cor0.col2 * col2 * - 70 AS col0 FROM tab1 AS cor0
----
204120
227430
645120

query I rowsort
SELECT DISTINCT + 42 * col2 AS col1 FROM tab0 AS cor0
----
1386
3444
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) * + col1 + + col1 * col1 col0 FROM tab0 cor0
----
4558
819
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 44 + + col2 col2 FROM tab1 AS cor0
----
10
13
52

query I rowsort
SELECT ALL - - 9 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT 51 * - col0 * + 79 - col2 * + col1 AS col1 FROM tab1 AS cor0
----
-13491
-258426
-323568

query I rowsort
SELECT + 34 * - col1 FROM tab2 cor0
----
-1054
-2006
-578

query I rowsort
SELECT ALL col0 + - col1 AS col1 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT ALL + col0 * cor0.col0 * ( ( + col1 ) ) FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT ALL - + col1 * + col0 + 91 - 41 * col0 AS col2 FROM tab2 AS cor0
----
-413
-4491
-7709

query I rowsort
SELECT DISTINCT tab0.col0 + col2 + col2 AS col2 FROM tab0
----
253
37
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4977
SELECT - col2 DIV + 85 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-4977
SELECT - col2 / + 85 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col0 * + col2 + cor0.col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT tab2.col1 * ( col0 ) + col0 AS col2 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL - 85 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT - col1 - + col0 AS col0 FROM tab0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 * col0 * col1 col2 FROM tab1
----
51840
6318
84240

onlyif mysql # use DIV operator for integer division
query I rowsort label-4983
SELECT ALL + col1 DIV 52 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL + col1 / 52 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + 26 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
26

query I rowsort
SELECT - + 41 * 83 AS col1 FROM tab2 cor0
----
-3403
-3403
-3403

query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-4987
SELECT ALL + col2 + - col2 DIV col2 FROM tab1 cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL + col2 + - col2 / col2 FROM tab1 cor0
----
53
56
95

query I rowsort
SELECT DISTINCT 93 * + col2 AS col0 FROM tab1 AS cor0
----
5022
5301
8928

onlyif mysql # use DIV operator for integer division
query I rowsort label-4989
SELECT ALL - + 20 + col1 DIV col2 FROM tab0 AS cor0
----
-18
-19
77

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL - + 20 + col1 / col2 FROM tab0 AS cor0
----
-18
-19
77

query I rowsort
SELECT - col2 + - 45 FROM tab1 cor0
----
-102
-141
-99

query I rowsort
SELECT DISTINCT + - 86 + + col1 FROM tab2 cor0
----
-27
-55
-69

query I rowsort
SELECT - 82 * col0 + + col1 FROM tab0 AS cor0
----
-1882
-2773
-7207

query I rowsort
SELECT ALL + ( col0 ) * + col2 + ( cor0.col0 ) * col1 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT ALL - + 49 + + 94 AS col1 FROM tab1 AS cor0
----
45
45
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-4995
SELECT DISTINCT ( 9 ) * col0 DIV col2 FROM tab1 AS cor0
----
0
10
7

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT ( 9 ) * col0 / col2 FROM tab1 AS cor0
----
0
10
7

query I rowsort
SELECT + + 67 FROM tab1 cor0
----
67
67
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col1 ) col0 FROM tab1 AS cor0
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col0 * + ( col2 ) col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + 28 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf

query I rowsort
SELECT ALL - 78 AS col0 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to c4f3c63f98c3c08f2848f46850a476d4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5001
SELECT ALL - 63 DIV col0 FROM tab1 AS cor0
----
-21
0
0

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL - 63 / col0 FROM tab1 AS cor0
----
-21
0
0

query I rowsort
SELECT DISTINCT + 63 * + col1 AS col2 FROM tab1 AS cor0
----
1638
630
819

query I rowsort
SELECT col2 * - col1 * ( + col2 * + col1 ) AS col2 FROM tab1 AS cor0
----
-1557504
-1971216
-324900

query I rowsort
SELECT DISTINCT - col1 + 21 AS col0 FROM tab0 AS cor0
----
-65
-70
-76

query I rowsort
SELECT + + col2 * col0 - 58 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-4196
-5591
2020

query I rowsort
SELECT DISTINCT - col0 + + col1 * + col2 + - col2 FROM tab0 cor0
----
2781
61
7291

query I rowsort
SELECT - + col1 + 44 AS col0 FROM tab1 AS cor0
----
18
31
34

query I rowsort
SELECT DISTINCT col0 + - 55 FROM tab0 AS cor0
----
-20
-31
34

query I rowsort
SELECT + col0 + - 18 FROM tab0 AS cor0
----
17
6
71

query I rowsort
SELECT DISTINCT col0 * - ( col0 ) + col1 + - col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL + ( cor1.col0 ) AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5012
SELECT ALL - col1 * CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 * + col0 * - col0 + col0 * + 86 FROM tab2 AS cor0
----
-151476
-230364
-721

query I rowsort
SELECT ALL - - col1 * - col0 - col0 FROM tab2 cor0
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT + col2 * 21 AS col0 FROM tab1 AS cor0
----
1134
1197
2016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor2.col1 + + cor1.col2 col2 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
9 values hashing to 65127d1df9e2ed1306bf1b2fad7e4e18

onlyif mysql # use DIV operator for integer division
query I rowsort label-5017
SELECT DISTINCT + col0 + ( col0 ) DIV col1 + - col2 * - 44 * - col0 FROM tab0
----
-1505
-321023
-34824

skipif mysql # not compatible
query I rowsort label-5017
SELECT DISTINCT + col0 + ( col0 ) / col1 + - col2 * - 44 * - col0 FROM tab0
----
-1505
-321023
-34824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 * + col1 col1 FROM tab0 AS cor0
----
-2924
-3094
-3298

query I rowsort
SELECT ALL col2 * + col1 + col0 AS col2 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT col2 + - ( - col1 ) FROM tab1
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5021
SELECT ALL + col0 * CAST( 63 * + col0 AS SIGNED ) + + 59 FROM tab0
----
36347
499082
77234

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL + col0 * CAST ( 63 * + col0 AS INTEGER ) + + 59 FROM tab0
----
36347
499082
77234

query I rowsort
SELECT DISTINCT 74 + - ( col2 ) * + 53 FROM tab2 cor0
----
-1304
-1357
-1940

query I rowsort
SELECT ALL col0 + col1 * - col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - - 32 + - cor0.col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-130
-3616
-7648

onlyif mysql # use DIV operator for integer division
query I rowsort label-5025
SELECT 85 DIV col0 + col0 AS col2 FROM tab1 AS cor0
----
31
65
81

skipif mysql # not compatible
query I rowsort label-5025
SELECT 85 / col0 + col0 AS col2 FROM tab1 AS cor0
----
31
65
81

query I rowsort
SELECT - col2 * + ( col1 ) FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * tab0.col0 + + ( col0 ) col2 FROM tab0
----
70
7387
816

query I rowsort
SELECT - + 84 * col2 FROM tab0 AS cor0
----
-2772
-6888
-84

query I rowsort
SELECT - col1 - + col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT col1 * - col1 - col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT - - cor0.col1 + - col0 * col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT + col0 * + cor0.col0 + + col1 AS col2 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT - + col1 * + col2 - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1593
-663
-868

onlyif mysql # use DIV operator for integer division
query I rowsort label-5034
SELECT cor1.col0 DIV cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cb0e6c4eb7e285d8fd00751a013cbeb6

skipif mysql # not compatible
query I rowsort label-5034
SELECT cor1.col0 / cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cb0e6c4eb7e285d8fd00751a013cbeb6

query I rowsort
SELECT - col1 + ( - cor0.col0 ) FROM tab0 AS cor0
----
-110
-132
-180

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 22 + ( cor0.col1 ) * col0 AS col0 FROM tab1 AS cor0
----
1018
56
618

query I rowsort
SELECT ALL - col1 * + ( - col2 ) AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + + 7 AS col2 FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT 12 + col1 AS col2 FROM tab1 AS cor0
----
22
25
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5041
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - 16 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5041
SELECT DISTINCT CAST ( NULL AS REAL ) / - 16 AS col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col1 FROM tab0
----
82
82
82

query I rowsort
SELECT ( col1 + + col0 * col0 ) FROM tab2
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5044
SELECT - col1 + col1 DIV - col1 AS col1 FROM tab2
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-5044
SELECT - col1 + col1 / - col1 AS col1 FROM tab2
----
-18
-32
-60

query IIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab0 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT ALL - 67 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT ALL 89 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # use DIV operator for integer division
query I rowsort label-5048
SELECT ALL - col1 + col2 DIV + col2 + col1 * col1 FROM tab0 AS cor0
----
7311
8191
9313

skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL - col1 + col2 / + col2 + col1 * col1 FROM tab0 AS cor0
----
7311
8191
9313

onlyif mysql # use DIV operator for integer division
query I rowsort label-5049
SELECT ALL - col2 + - col0 * col1 DIV col1 FROM tab1 AS cor0
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL - col2 + - col0 * col1 / col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - cor0.col2 FROM tab2 AS cor0 WHERE NOT col1 / col1 NOT BETWEEN NULL AND + col1 * - col1 + + col1
----

query I rowsort
SELECT tab0.col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT + col1 + - col1 + tab0.col2 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL + col2 * - col2 + - col2 AS col0 FROM tab1
----
-2970
-3306
-9312

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NULL IN ( + col0 + col1 * + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <> col0 / col1 + col1 * col0 * + col2
----

query I rowsort
SELECT tab1.col0 * + col1 + - col2 * - col1 + col0 FROM tab1
----
1274
1485
2368

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT IN ( - col0 )
----

query I rowsort
SELECT DISTINCT tab2.col1 + - col2 FROM tab2 WHERE ( NULL ) IN ( tab2.col2 + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 = NULL
----

query I rowsort
SELECT ALL - cor0.col0 * + col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL cor0.col1 FROM tab1, tab0, tab1 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL col2 * col0 + + col2 * + col1 * - col1 + col0 * col0 FROM tab2
----
-1739
-25709
-82394

query I rowsort
SELECT col1 - - col0 * - col2 FROM tab0
----
-706
-7207
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 col2 FROM tab1 cor0
----
1040
640
78

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 > ( col2 * col1 + - col2 ) OR NOT ( - col1 ) NOT IN ( - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT - col2 - col1 * - col1 FROM tab1
----
43
622
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-5067
SELECT DISTINCT - + col0 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT - + col0 / cor0.col1 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5068
SELECT ALL - + cor0.col2 + - CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL - + cor0.col2 + - CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5069
SELECT + col0 + col1 * col0 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5069
SELECT + col0 + col1 * col0 / - col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 + 73 * - tab1.col1 col2 FROM tab1
----
-1872
-720
-936

query I rowsort
SELECT col0 * 95 + tab2.col1 * + col1 * col2 FROM tab2
----
18487
26612
97916

query I rowsort
SELECT ALL - cor0.col1 + ( - ( col0 ) ) * - col2 + + col2 FROM tab2 AS cor0
----
185
1995
3023

query I rowsort
SELECT - ( - 72 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT DISTINCT + cor2.col2 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0, tab1 cor2
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5075
SELECT DISTINCT + CAST( + col1 AS SIGNED ) + col2 * col1 + 41 AS col0 FROM tab0 AS cor0
----
235
2965
7594

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) + col2 * col1 + 41 AS col0 FROM tab0 AS cor0
----
235
2965
7594

query I rowsort
SELECT ALL - + col1 * - ( + col0 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - + ( col0 ) * col2 * - col0 AS col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT ALL - + cor0.col2 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - - 15 + 7 AS col1 FROM tab0 AS cor0
----
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5080
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * ( col2 ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL + col0 * - 27 * + 78 FROM tab0
----
-187434
-50544
-73710

onlyif mysql # use DIV operator for integer division
query I rowsort label-5083
SELECT ALL col1 DIV - 59 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5083
SELECT ALL col1 / - 59 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - + ( col1 ) + col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + col0 * col1 - + ( + col0 + col0 ) * - 79 FROM tab0 AS cor0
----
22161
5856
8925

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5086
SELECT DISTINCT + col2 * - col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5086
SELECT DISTINCT + col2 * - col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 * + col0 * ( + col0 ) + col0 AS col1 FROM tab0 AS cor0
----
118860
49560
720900

query I rowsort
SELECT ALL 62 + - col1 FROM tab2 AS cor0
----
3
31
45

query I rowsort
SELECT + - cor0.col1 + + col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT + + col1 + col2 AS col0 FROM tab1 cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5091
SELECT DISTINCT col2 - col0 DIV - col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT col2 - col0 / - col1 FROM tab0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 - - col1 * + col2 col1 FROM tab0
----
2834
7458
93

query I rowsort
SELECT ALL tab0.col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - tab1.col2 + col0 - - col1 AS col0 FROM tab1
----
-25
-3
17

query I rowsort
SELECT col2 + col2 * - col0 * - col2 FROM tab1
----
207993
737376
8802

query I rowsort
SELECT ALL - 95 * - col2 FROM tab2 cor0
----
2470
2565
3610

query I rowsort
SELECT - - col2 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5098
SELECT + 97 DIV col1 AS col2 FROM tab1
----
3
7
9

skipif mysql # not compatible
query I rowsort label-5098
SELECT + 97 / col1 AS col2 FROM tab1
----
3
7
9

query I rowsort
SELECT + + 33 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT DISTINCT - col0 + + col2 + tab0.col0 AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL - col2 * - ( col1 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col2 + + col0 * - col1 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT ALL - - 92 FROM tab0 AS cor0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col1 col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL + - col2 * col1 + + col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5106
SELECT DISTINCT + col2 * - tab0.col2 * ( col2 ) + + col1 * col2 DIV + 78 AS col1 FROM tab0
----
-35901
-551273
0

skipif mysql # not compatible
query I rowsort label-5106
SELECT DISTINCT + col2 * - tab0.col2 * ( col2 ) + + col1 * col2 / + 78 AS col1 FROM tab0
----
-35901
-551273
0

query I rowsort
SELECT + - col0 + 88 * col1 FROM tab0 cor0
----
7544
7919
8501

query I rowsort
SELECT ALL 71 + - tab1.col1 * col0 FROM tab1
----
-569
-7
-969

query I rowsort
SELECT ALL col1 * col1 + - col1 * col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + - col2 * 98 AS col2 FROM tab1 AS cor0
----
-5292
-5586
-9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + cor0.col1 * - cor0.col1 col1 FROM tab0 cor0
----
-7482
-8372
-9506

query I rowsort
SELECT - cor0.col0 + 72 FROM tab1 AS cor0
----
-8
69
8

query I rowsort
SELECT 11 * - col1 FROM tab2
----
-187
-341
-649

query I rowsort
SELECT ALL 9 * col1 AS col2 FROM tab1
----
117
234
90

query I rowsort
SELECT ALL + 24 * + col2 + - tab0.col1 FROM tab0
----
-73
1877
706

query I rowsort
SELECT ALL - - tab2.col0 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5117
SELECT DISTINCT - col2 + CAST( + 89 AS SIGNED ) DIV col2 FROM tab1 AS cor0
----
-53
-56
-96

skipif mysql # not compatible
query I rowsort label-5117
SELECT DISTINCT - col2 + CAST ( + 89 AS INTEGER ) / col2 FROM tab1 AS cor0
----
-53
-56
-96

query I rowsort
SELECT - cor0.col2 * + col1 + - col2 * col1 AS col1 FROM tab2 AS cor0
----
-1292
-1674
-3068

query I rowsort
SELECT DISTINCT col2 + - cor0.col2 * - 82 AS col1 FROM tab1 AS cor0
----
4482
4731
7968

query I rowsort
SELECT DISTINCT cor0.col2 + - 23 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-1945
-2011
-2230

query I rowsort
SELECT ALL - cor0.col2 * col1 + 95 AS col0 FROM tab1 AS cor0
----
-1153
-1309
-475

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 - - ( 60 ) * + col1 col0 FROM tab1 AS cor0
----
1506
543
684

query I rowsort
SELECT DISTINCT - - col0 * - ( + 26 ) - - cor0.col0 FROM tab2 AS cor0
----
-175
-1950
-1975

query I rowsort
SELECT ALL + col0 * + col2 AS col0 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5125
SELECT DISTINCT - - col1 * CAST( NULL AS SIGNED ) + 61 + - col1 * + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT - - col1 * CAST ( NULL AS INTEGER ) + 61 + - col1 * + col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 - col1 * + col1 AS col2 FROM tab0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT 71 * col1 + + col2 AS col2 FROM tab2
----
1245
2228
4215

query I rowsort
SELECT ALL - ( col2 ) * - col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT - ( 66 ) FROM tab2 AS cor0
----
-66
-66
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + ( + col1 ) col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + - ( 51 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL 86 + + cor0.col0 * col1 FROM tab0 AS cor0
----
2150
3481
8185

query I rowsort
SELECT - - 17 * 17 FROM tab2 AS cor0
----
289
289
289

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5134
SELECT DISTINCT CAST( col2 AS SIGNED ) + - col0 AS col0 FROM tab2 cor0
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-5134
SELECT DISTINCT CAST ( col2 AS INTEGER ) + - col0 AS col0 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT ALL - + col1 * + 3 AS col0 FROM tab2 AS cor0
----
-177
-51
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5136
SELECT - CAST( - 29 AS SIGNED ) * col2 FROM tab1 AS cor0
----
1566
1653
2784

skipif mysql # not compatible
query I rowsort label-5136
SELECT - CAST ( - 29 AS INTEGER ) * col2 FROM tab1 AS cor0
----
1566
1653
2784

query I rowsort
SELECT - cor0.col0 * col0 + + col1 AS col2 FROM tab0 AS cor0
----
-1128
-490
-7830

onlyif mysql # use DIV operator for integer division
query I rowsort label-5138
SELECT ALL - col2 * col0 - + col1 * col1 DIV col0 FROM tab1 AS cor0
----
-3649
-387
-7682

skipif mysql # not compatible
query I rowsort label-5138
SELECT ALL - col2 * col0 - + col1 * col1 / col0 FROM tab1 AS cor0
----
-3649
-387
-7682

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * col1 + col1 col2 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT ALL + 41 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT DISTINCT + col1 * col0 - col2 AS col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT 1 * col0 FROM tab0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5143
SELECT - col2 / + col0 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT - col2 / + col0 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 - + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 67 * - col0 AS col0 FROM tab2 cor0
----
469
5226
5293

query I rowsort
SELECT - + 16 + - col1 FROM tab0 AS cor0
----
-102
-107
-113

query I rowsort
SELECT + + col1 + - col0 * - ( - col0 ) AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830

onlyif mysql # use DIV operator for integer division
query I rowsort label-5148
SELECT DISTINCT 21 DIV 66 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT 21 / 66 FROM tab1
----
0

query I rowsort
SELECT DISTINCT ( + col2 ) * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - - cor0.col0 + col0 * + col0 AS col2 FROM tab1 AS cor0
----
12
4160
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT + col0 + 62 * col1 AS col1 FROM tab1 AS cor0
----
1615
684
886

query I rowsort
SELECT DISTINCT + + 45 AS col0 FROM tab2 AS cor0
----
45

query I rowsort
SELECT - ( cor0.col1 ) * + 35 FROM tab2 AS cor0
----
-1085
-2065
-595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 * col0 col2 FROM tab2
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 * col1 + 97 - - tab2.col1 col0 FROM tab2
----
1406
2484
4640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 cor1, tab2, tab0 cor2
----
3645 values hashing to 52c9380a39df7a744b9f2f2c5bf55dd5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5159
SELECT col2 DIV + col2 + col2 * - col2 + 44 FROM tab1 AS cor0
----
-2871
-3204
-9171

skipif mysql # not compatible
query I rowsort label-5159
SELECT col2 / + col2 + col2 * - col2 + 44 FROM tab1 AS cor0
----
-2871
-3204
-9171

query I rowsort
SELECT DISTINCT - + col1 * 5 FROM tab1 AS cor0
----
-130
-50
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-5161
SELECT ALL col1 + - 44 DIV + ( - col1 ) FROM tab2 AS cor0
----
19
32
59

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL col1 + - 44 / + ( - col1 ) FROM tab2 AS cor0
----
19
32
59

query I rowsort
SELECT - - col2 + + 76 + col0 FROM tab0 AS cor0
----
112
133
247

query I rowsort
SELECT - tab0.col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT + cor0.col1 + cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ( col0 ) + col2 AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - + ( - col1 ) + - col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + col2 * + ( col0 + col0 ) AS col2 FROM tab0
----
14596
1584
70

query I rowsort
SELECT col2 + + col1 * col2 * + tab1.col2 FROM tab1
----
119904
32547
75870

query I rowsort
SELECT + - col0 * - 71 FROM tab2 AS cor0
----
497
5538
5609

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5170
SELECT DISTINCT CAST( NULL AS SIGNED ) * 36 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 36 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 8 - + cor1.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to b2ae6e89bc4e10ce1e142ca9ccc16542

query I rowsort
SELECT DISTINCT - - 16 + col0 FROM tab1 AS cor0
----
19
80
96

query I rowsort
SELECT DISTINCT + col2 * + col0 * + col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT ALL - ( ( col0 ) ) * + ( + col1 ) FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL 34 + cor0.col0 AS col1 FROM tab2 cor0
----
112
113
41

query I rowsort
SELECT DISTINCT - cor0.col0 - - cor0.col0 AS col0 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - ( col2 ) * - col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5178
SELECT DISTINCT + + col2 DIV + cor0.col1 + - 49 + - 15 * col0 * 22 FROM tab1 AS cor0
----
-1037
-21164
-26442

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT + + col2 / + cor0.col1 + - 49 + - 15 * col0 * 22 FROM tab1 AS cor0
----
-1037
-21164
-26442

query I rowsort
SELECT ALL col1 * - col2 * - col2 AS col1 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT ALL + 6 * + col0 + - 29 AS col0 FROM tab2 AS cor0
----
13
439
445

onlyif mysql # use DIV operator for integer division
query I rowsort label-5181
SELECT ALL + ( cor0.col0 ) DIV 40 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 833b749ae5e53c39fb5c10fe39c8013c

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL + ( cor0.col0 ) / 40 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 833b749ae5e53c39fb5c10fe39c8013c

query I rowsort
SELECT ALL col1 * 2 + - col1 AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL - 99 * + tab1.col2 + col0 FROM tab1
----
-5343
-5579
-9424

onlyif mysql # use DIV operator for integer division
query I rowsort label-5184
SELECT DISTINCT + + col1 DIV cor0.col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT + + col1 / cor0.col1 FROM tab0 AS cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5185
SELECT DISTINCT + + col0 * CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT + + col0 * CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT col0 * - col2 + - col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT + cor0.col2 + - col1 AS col0 FROM tab1 cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5188
SELECT col0 + + CAST( col2 * + col0 AS DECIMAL ) - - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5188
SELECT col0 + + CAST ( col2 * + col0 AS REAL ) - - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 col0 FROM tab0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5190
SELECT col1 * col0 DIV + 28 AS col1 FROM tab0
----
121
289
73

skipif mysql # not compatible
query I rowsort label-5190
SELECT col1 * col0 / + 28 AS col1 FROM tab0
----
121
289
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5191
SELECT - CAST( NULL AS SIGNED ) * 26 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5191
SELECT - CAST ( NULL AS INTEGER ) * 26 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + + col1 * col0 * + col0 AS col1 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT tab1.col1 * - ( - tab1.col1 ) + - col1 * ( col1 ) FROM tab1
----
0

query I rowsort
SELECT cor0.col1 + ( col1 ) FROM tab0 AS cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col0 * + col0 col1 FROM tab0
----
1260
600
8010

query I rowsort
SELECT ALL ( + ( cor1.col2 ) ) + + 24 * tab0.col2 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a1827ca9b0c049a6febd956809287167

query I rowsort
SELECT + cor0.col2 AS col0 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + col1 + - col1 + + col2 * cor0.col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - 57 * + col0 + + col0 * + 78 + col0 AS col0 FROM tab1 cor0
----
1408
1760
66

query I rowsort
SELECT DISTINCT + - col2 * + col1 + 62 * + cor0.col2 + - col1 AS col2 FROM tab2 cor0
----
1693
19
806

query I rowsort
SELECT DISTINCT + + col2 * col1 + - col2 * col1 * - col0 FROM tab0 AS cor0
----
3492
671580
70950

query I rowsort
SELECT DISTINCT - cor1.col0 - ( - cor1.col0 ) AS col1 FROM tab0, tab1, tab0 AS cor0, tab0 AS cor1
----
0

query I rowsort
SELECT + col1 * col0 + + col1 * col0 * + col1 + - col2 FROM tab1 cor0
----
14464
2052
6983

query I rowsort
SELECT ALL col0 * - 69 + cor0.col1 FROM tab0 AS cor0
----
-1570
-2318
-6050

query I rowsort
SELECT col0 + ( - 70 ) FROM tab0 AS cor0
----
-35
-46
19

query I rowsort
SELECT DISTINCT col1 * ( col1 ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT + - col0 * 71 AS col1 FROM tab2 AS cor0
----
-497
-5538
-5609

query I rowsort
SELECT - - col2 * - col1 * col1 AS col0 FROM tab0 cor0
----
-244068
-679042
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5209
SELECT - col1 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT - col1 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * col0 + - 14 AS col2 FROM tab0 AS cor0
----
2050
3381
8085

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5211
SELECT + col2 + CAST( + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-5211
SELECT + col2 + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - - col2 * + 48 FROM tab1 AS cor0
----
2592
2736
4608

query I rowsort
SELECT - col1 * + ( + col0 ) FROM tab1 cor0
----
-1040
-640
-78

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-5215
SELECT DISTINCT col0 + col0 DIV cor0.col2 FROM tab0 cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT col0 + col0 / cor0.col2 FROM tab0 cor0
----
24
70
90

query I rowsort
SELECT - col0 * - 68 + - col1 + - col2 FROM tab0 AS cor0
----
1513
2282
5879

query I rowsort
SELECT DISTINCT col1 + 52 AS col2 FROM tab2 AS cor0
----
111
69
83

query I rowsort
SELECT col0 * + col0 * col2 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT ALL col0 * - tab2.col2 * - col2 AS col1 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NULL NOT IN ( + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + col2 + col2 - col2 FROM tab2
----
26
27
38

query I rowsort
SELECT tab2.col0 * col2 * + col0 + col2 FROM tab2
----
1350
158210
237196

onlyif mysql # use DIV operator for integer division
query I rowsort label-5224
SELECT - col0 DIV col0 - col2 AS col0 FROM tab1
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-5224
SELECT - col0 / col0 - col2 AS col0 FROM tab1
----
-55
-58
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5225
SELECT + col1 DIV col0 - ( + col2 ) * + col2 FROM tab2 AS cor0
----
-1444
-676
-725

skipif mysql # not compatible
query I rowsort label-5225
SELECT + col1 / col0 - ( + col2 ) * + col2 FROM tab2 AS cor0
----
-1444
-676
-725

query I rowsort
SELECT ALL - 40 * - col2 + col1 FROM tab1 AS cor0
----
2186
2290
3853

query I rowsort
SELECT + ( - cor0.col0 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT - col2 * + col0 * + col2 FROM tab2
----
-114076
-5103
-52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-5229
SELECT DISTINCT + col1 * tab2.col2 DIV + col0 + + col0 - tab2.col2 AS col1 FROM tab2
----
49
71
99

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT + col1 * tab2.col2 / + col0 + + col0 - tab2.col2 AS col1 FROM tab2
----
49
71
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-5230
SELECT DISTINCT col0 * col2 DIV + col2 AS col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5230
SELECT DISTINCT col0 * col2 / + col2 AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT col1 + col0 * col2 + + col1 AS col1 FROM tab1
----
214
3668
7706

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * col0 - col2 <> NULL
----

query I rowsort
SELECT tab0.col1 + + col0 + col2 AS col1 FROM tab0
----
133
143
262

query III rowsort
SELECT * FROM tab2 WHERE col2 - + col0 * + col1 < col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT - col0 * col1 + + 81 AS col0 FROM tab0 AS cor0
----
-1983
-3314
-8018

query I rowsort
SELECT col0 * col1 + + 85 FROM tab1 AS cor0
----
1125
163
725

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5237
SELECT col1 + + col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5237
SELECT col1 + + col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 60 * col1 - + 73 FROM tab2 AS cor0
----
-1093
-1933
-3613

onlyif mysql # use DIV operator for integer division
query I rowsort label-5239
SELECT DISTINCT - - cor0.col2 * col0 - col1 DIV col0 AS col0 FROM tab1 AS cor0
----
154
3648
7680

skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT - - cor0.col2 * col0 - col1 / col0 AS col0 FROM tab1 AS cor0
----
154
3648
7680

query I rowsort
SELECT - - ( + col2 ) * cor0.col2 + 11 AS col1 FROM tab2 AS cor0
----
1455
687
740

query I rowsort
SELECT - + ( + cor0.col2 ) + col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT col2 + - col0 AS col0 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT + col0 + + cor0.col0 - 97 FROM tab0 AS cor0
----
-27
-49
81

query I rowsort
SELECT + 53 * col1 + + col0 FROM tab2 AS cor0
----
1650
3205
980

query I rowsort
SELECT DISTINCT col1 + 70 FROM tab0
----
156
161
167

onlyif mysql # use DIV operator for integer division
query I rowsort label-5246
SELECT ( col0 ) + col2 + col1 DIV - 9 FROM tab0
----
161
26
48

skipif mysql # not compatible
query I rowsort label-5246
SELECT ( col0 ) + col2 + col1 / - 9 FROM tab0
----
161
26
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-5247
SELECT - ( + 28 ) DIV col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5247
SELECT - ( + 28 ) / col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 48 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT ALL + 83 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 002a717a3d902d97220759065fb107c3

query I rowsort
SELECT 1 * + col0 * col0 AS col0 FROM tab1
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5251
SELECT + CAST( NULL AS SIGNED ) * 97 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT + CAST ( NULL AS INTEGER ) * 97 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - 57 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT - 4 * col2 AS col1 FROM tab2
----
-104
-108
-152

query I rowsort
SELECT ALL + cor0.col2 * col2 + cor0.col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT + - col2 + col0 + + col0 AS col2 FROM tab1 AS cor0
----
-48
64
71

query I rowsort
SELECT - cor0.col1 - col1 FROM tab1 AS cor0
----
-20
-26
-52

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 713ff9f9cde43214a064a8e6ada00f4e

query I rowsort
SELECT DISTINCT - + col2 + cor0.col2 + + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + 32 FROM tab2, tab0 AS cor0
----
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5260
SELECT DISTINCT ( - col2 ) + tab0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT DISTINCT ( - col2 ) + tab0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL + 35 * 94 FROM tab0
----
3290
3290
3290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - cor0.col2 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + col2 * - col1 * col2 AS col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT - col2 * - 40 FROM tab1 AS cor0
----
2160
2280
3840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * col0 * + col1 col1 FROM tab0 AS cor0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5266
SELECT ALL + CAST( NULL AS SIGNED ) + + col1 + - cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL + CAST ( NULL AS INTEGER ) + + col1 + - cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 * + 50 * col0 AS col2 FROM tab2 AS cor0
----
-2450
-304200
-312050

query I rowsort
SELECT DISTINCT col0 + - ( - 60 ) * - col0 * + col0 FROM tab2 cor0
----
-2933
-364962
-374381

query I rowsort
SELECT - + col2 + + col2 * col1 AS col2 FROM tab0 cor0
----
2805
7380
96

query I rowsort
SELECT ALL - + col2 * - ( col2 ) + col0 AS col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT - - col0 * ( 31 ) + - col2 AS col0 FROM tab0 AS cor0
----
1084
2677
711

query I rowsort
SELECT cor0.col2 * - cor0.col0 + cor0.col0 * + col0 FROM tab1 AS cor0
----
-1280
-153
448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + + 42 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 10e770646cd462cef176a66887dfdfd6

query I rowsort
SELECT + col0 * ( - 28 ) FROM tab1 AS cor0
----
-1792
-2240
-84

query I rowsort
SELECT cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - col2 - + col1 * tab0.col2 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT ALL - 10 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT ALL + 0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - ( cor0.col2 ) * col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - ( + col0 ) + + col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col2 + + col2 * + 65 FROM tab2 AS cor0
----
1716
1782
2508

onlyif mysql # use DIV operator for integer division
query I rowsort label-5282
SELECT + + cor0.col0 * - cor0.col0 + ( col0 ) DIV + col2 FROM tab1 AS cor0
----
-4095
-6400
-9

skipif mysql # not compatible
query I rowsort label-5282
SELECT + + cor0.col0 * - cor0.col0 + ( col0 ) / + col2 FROM tab1 AS cor0
----
-4095
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5283
SELECT - - col1 + + col2 DIV col2 AS col2 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-5283
SELECT - - col1 + + col2 / col2 AS col2 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT 35 + col2 AS col2 FROM tab1 AS cor0
----
131
89
92

query I rowsort
SELECT DISTINCT + cor0.col1 * - col1 * col2 AS col2 FROM tab2 cor0
----
-10982
-25947
-90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5286
SELECT - - col2 DIV + col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5286
SELECT - - col2 / + col2 FROM tab0 cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5287
SELECT + cor0.col2 - - col0 DIV + 84 AS col2 FROM tab0 cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-5287
SELECT + cor0.col2 - - col0 / + 84 AS col2 FROM tab0 cor0
----
1
33
83

query I rowsort
SELECT - ( col2 ) + ( + col0 + + cor0.col2 ) * - col2 FROM tab1 AS cor0
----
-16992
-3132
-6954

query I rowsort
SELECT + 37 * col0 - + ( + col0 ) FROM tab2 AS cor0
----
252
2808
2844

query I rowsort
SELECT - col0 * col1 + 76 FROM tab1 AS cor0
----
-2
-564
-964

query I rowsort
SELECT 29 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT col1 + 73 FROM tab2 AS cor0
----
104
132
90

query I rowsort
SELECT cor0.col2 * - ( + ( + col1 ) ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 - + 26 * + col2 * - 31 FROM tab0 cor0
----
-419
26022
58171

query I rowsort
SELECT ALL col1 + col1 * 17 AS col2 FROM tab0 AS cor0
----
1548
1638
1746

query I rowsort
SELECT ALL - col2 + ( col0 ) AS col2 FROM tab1 AS cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + 30 col1 FROM tab1 cor0
----
40
43
56

query I rowsort
SELECT - cor1.col0 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4

query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 + col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-5300
SELECT + ( - col1 ) DIV + col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5300
SELECT + ( - col1 ) / + col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 19 * - col0 col2 FROM tab2 AS cor0
----
-133
-1482
-1501

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 68 * - col1 col0 FROM tab0 AS cor0
----
5848
6188
6596

query I rowsort
SELECT + + col0 * - col0 - ( ( col0 ) ) FROM tab0 AS cor0
----
-1260
-600
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5304
SELECT DISTINCT - col2 + + col0 DIV - 57 AS col2 FROM tab1 AS cor0
----
-54
-58
-97

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT - col2 + + col0 / - 57 AS col2 FROM tab1 AS cor0
----
-54
-58
-97

query I rowsort
SELECT + 23 + - col2 AS col2 FROM tab0 AS cor0
----
-10
-59
22

query I rowsort
SELECT ALL col2 * - 8 AS col2 FROM tab0
----
-264
-656
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5307
SELECT + 82 DIV col0 AS col1 FROM tab1 AS cor0
----
1
1
27

skipif mysql # not compatible
query I rowsort label-5307
SELECT + 82 / col0 AS col1 FROM tab1 AS cor0
----
1
1
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-5308
SELECT DISTINCT + + 9 DIV col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT + + 9 / col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - 62 + + cor0.col2 FROM tab1 AS cor0
----
-5
-8
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 + + col1 col0 FROM tab0 AS cor0
----
163
168
174

query I rowsort
SELECT ALL + 65 + - col2 AS col1 FROM tab0 AS cor0
----
-17
32
64

query I rowsort
SELECT + col1 * 88 - col0 AS col1 FROM tab2
----
1417
2721
5114

query I rowsort
SELECT tab0.col2 * + col0 - - col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT + col1 - - 22 * col1 AS col0 FROM tab2
----
1357
391
713

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5315
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL - CAST ( NULL AS REAL ) FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL ( 84 ) * col2 FROM tab0
----
2772
6888
84

query I rowsort
SELECT DISTINCT + + col2 - + cor0.col0 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ( - col0 ) * col0 - - col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 * - col0 col1 FROM tab2 AS cor0
----
49
546
553

query I rowsort
SELECT col1 * 70 * + col1 AS col2 FROM tab1
----
11830
47320
7000

query I rowsort
SELECT + col2 + - col0 * col2 * col0 FROM tab1
----
-233415
-432
-614304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * + col0 + + col2 + - col1 col1 FROM tab1
----
106
1123
687

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5323
SELECT ALL CAST( NULL AS SIGNED ) + - tab2.col1 col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL CAST ( NULL AS INTEGER ) + - tab2.col1 col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5324
SELECT ALL + col1 * 57 + col2 DIV col0 col1 FROM tab2
----
1770
3363
969

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL + col1 * 57 + col2 / col0 col1 FROM tab2
----
1770
3363
969

query I rowsort
SELECT DISTINCT - - ( - 66 ) - col0 AS col2 FROM tab2 cor0
----
-144
-145
-73

query I rowsort
SELECT ALL - col2 * - col1 + + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - col1 + + 9 AS col0 FROM tab2 AS cor0
----
-22
-50
-8

query I rowsort
SELECT + 15 * cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to c46e6aeb5711eb28cd276577b47b6dcc

query I rowsort
SELECT + ( + col2 ) * col2 - - col2 * ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
10464
3819
4320

query I rowsort
SELECT DISTINCT + col1 + cor0.col1 - col2 FROM tab2 AS cor0
----
-4
35
92

query I rowsort
SELECT ( - tab1.col0 ) * - tab1.col2 AS col0 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5332
SELECT ALL 36 DIV cor0.col0 + + col0 col2 FROM tab1 AS cor0
----
15
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5332
SELECT ALL 36 / cor0.col0 + + col0 col2 FROM tab1 AS cor0
----
15
64
80

query I rowsort
SELECT ALL - + col0 + - cor0.col2 * + col1 + - 70 * + col0 AS col1 FROM tab0 AS cor0
----
-13781
-2582
-4542

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 + col1 col2 FROM tab0
----
142
147
153

query I rowsort
SELECT ALL 1 * tab2.col1 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL - - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT col1 * - col1 * ( + 27 ) FROM tab1 AS cor0
----
-18252
-2700
-4563

onlyif mysql # use DIV operator for integer division
query I rowsort label-5338
SELECT - cor0.col2 DIV - cor0.col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-5338
SELECT - cor0.col2 / - cor0.col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
103
56
62

query I rowsort
SELECT ALL + col2 + 59 * - col1 FROM tab1 AS cor0
----
-1480
-533
-671

query I rowsort
SELECT DISTINCT - col0 * - 33 FROM tab1 AS cor0
----
2112
2640
99

query I rowsort
SELECT ALL + - cor0.col1 - col1 * - col0 AS col1 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT ALL + col1 * 36 FROM tab1 AS cor0
----
360
468
936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 + 39 col0 FROM tab2
----
1000
328
3520

query I rowsort
SELECT + + col0 * - 8 + + col1 AS col2 FROM tab2 AS cor0
----
-25
-565
-615

query I rowsort
SELECT DISTINCT col1 * - ( - col0 ) AS col1 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * cor0.col2 + + 42 col1 FROM tab1 AS cor0
----
-120
-3606
-7638

query I rowsort
SELECT DISTINCT - + cor0.col2 + + 92 AS col2 FROM tab0 AS cor0
----
10
59
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 78 col0 FROM tab2 AS cor0
----
2028
2106
2964

query I rowsort
SELECT DISTINCT - + col0 + + col1 + + col2 * col1 AS col0 FROM tab2 cor0
----
1515
584
861

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 + col1 col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL - col2 * col0 - 42 AS col0 FROM tab1 cor0
----
-204
-3690
-7722

query I rowsort
SELECT ALL + col0 * + ( + col0 ) AS col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT - - cor0.col2 * ( col0 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT col0 + - col0 * col2 * col0 AS col1 FROM tab0 AS cor0
----
-1190
-18984
-649433

onlyif mysql # use DIV operator for integer division
query I rowsort label-5355
SELECT - col1 + col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
-13
-26
-9

skipif mysql # not compatible
query I rowsort label-5355
SELECT - col1 + col0 / + col2 AS col2 FROM tab1 AS cor0
----
-13
-26
-9

query I rowsort
SELECT + + col1 + - ( + cor0.col0 + ( - col0 ) ) FROM tab2 cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5357
SELECT + col2 + - col1 DIV col2 AS col0 FROM tab0 cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-5357
SELECT + col2 + - col1 / col2 AS col0 FROM tab0 cor0
----
-96
31
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5358
SELECT - ( 50 ) DIV - col1 + ( - col0 ) * + col0 * - 47 - + 23 col0 FROM tab1 AS cor0
----
192494
300780
401

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5358
SELECT - ( 50 ) / - col1 + ( - col0 ) * + col0 * - 47 - + 23 col0 FROM tab1 AS cor0
----
192494
300780
401

query I rowsort
SELECT + col1 + - 66 * - col0 AS col0 FROM tab2 cor0
----
493
5207
5231

query I rowsort
SELECT col1 * - 1 + - col0 * + col0 * 15 FROM tab0
----
-118906
-18472
-8726

query I rowsort
SELECT - 20 * + 67 FROM tab1 AS cor0
----
-1340
-1340
-1340

query I rowsort
SELECT ALL - col2 * col0 - + 63 FROM tab0 cor0
----
-7361
-855
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5363
SELECT DISTINCT col0 DIV + cor0.col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT col0 / + cor0.col0 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 * + col0 col2 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT - 36 + - col1 FROM tab0 cor0
----
-122
-127
-133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 col2 FROM tab2 cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col1 FROM tab0 AS cor0
----
-24
-24
-24

onlyif mysql # use DIV operator for integer division
query I rowsort label-5368
SELECT ALL + 33 DIV + col1 col0 FROM tab2 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL + 33 / + col1 col0 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT - 35 + col0 FROM tab0 AS cor0
----
-11
0
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-5370
SELECT DISTINCT + col0 * col0 + col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
48
6083
6240

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT + col0 * col0 + col0 / - col0 AS col2 FROM tab2 AS cor0
----
48
6083
6240

query I rowsort
SELECT 42 - - col1 AS col2 FROM tab2
----
101
59
73

query I rowsort
SELECT 14 * col1 + tab0.col0 AS col1 FROM tab0
----
1228
1363
1393

query I rowsort
SELECT DISTINCT + 48 AS col1 FROM tab1, tab0 AS cor0
----
48

query I rowsort
SELECT + ( - col1 ) AS col2 FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5375
SELECT ALL - 11 DIV + 49 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL - 11 / + 49 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 + cor0.col2 col0 FROM tab1 AS cor0
----
49
52
91

query I rowsort
SELECT - 14 + - cor0.col0 + + col0 * + col0 AS col0 FROM tab1 cor0
----
-8
4018
6306

query I rowsort
SELECT + - 12 * - col1 + + cor0.col2 + col2 AS col0 FROM tab2 AS cor0
----
280
426
760

query I rowsort
SELECT ALL - 49 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT - ( col1 ) * col0 * 52 - + col2 FROM tab1
----
-33337
-4110
-54176

query I rowsort
SELECT - - cor0.col0 + col2 * col1 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5382
SELECT + + CAST( 14 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-64
-65
7

skipif mysql # not compatible
query I rowsort label-5382
SELECT + + CAST ( 14 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-64
-65
7

query I rowsort
SELECT - - col0 * - col1 - col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT ALL + col0 + + ( - 19 ) FROM tab0
----
16
5
70

query I rowsort
SELECT ALL - 17 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT + - ( 15 ) FROM tab0 AS cor0
----
-15
-15
-15

query I rowsort
SELECT + cor0.col0 + 57 AS col2 FROM tab2 AS cor0
----
135
136
64

query I rowsort
SELECT - + cor0.col1 + + 14 AS col0 FROM tab2 AS cor0
----
-17
-3
-45

query I rowsort
SELECT DISTINCT 31 * col2 + ( + col0 ) * + col2 AS col0 FROM tab0 AS cor0
----
1815
66
9840

query I rowsort
SELECT + + 14 * cor0.col0 AS col0 FROM tab1 AS cor0
----
1120
42
896

query I rowsort
SELECT DISTINCT 9 FROM tab2, tab2 AS cor0
----
9

query I rowsort
SELECT - + col0 * + col0 - + col1 AS col0 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT + - cor0.col1 + + col2 * col1 AS col2 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT - 91 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT col0 * 49 AS col0 FROM tab1
----
147
3136
3920

query I rowsort
SELECT - - cor0.col2 * col1 + col2 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5398
SELECT col2 DIV 54 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5398
SELECT col2 / 54 FROM tab0
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5399
SELECT ALL col0 * col0 + col2 / col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL col0 * col0 + col2 / 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 + ( 16 ) * tab1.col0 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 553786862e71de41439da18c99707a4e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5401
SELECT + - CAST( NULL AS SIGNED ) * + col1 * - col2 + + CAST( NULL AS DECIMAL ) * - col0 - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5401
SELECT + - CAST ( NULL AS INTEGER ) * + col1 * - col2 + + CAST ( NULL AS REAL ) * - col0 - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - 57 - + col2 AS col1 FROM tab0 cor0
----
-23
-50
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5403
SELECT DISTINCT + 1 DIV - 75 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5403
SELECT DISTINCT + 1 / - 75 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 + - ( - col2 * col1 ) AS col1 FROM tab0
----
132
2862
7551

query I rowsort
SELECT - 32 - ( col0 + + col2 ) AS col1 FROM tab1 cor0
----
-153
-208
-89

query I rowsort
SELECT + 68 + col0 - col2 FROM tab2
----
109
120
48

query I rowsort
SELECT + tab1.col2 + + col1 * tab1.col2 * + tab1.col1 FROM tab1
----
16320
36558
5757

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5408
SELECT + col0 * + ( - col2 ) - + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693

skipif mysql # not compatible
query I rowsort label-5408
SELECT + col0 * + ( - col2 ) - + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5409
SELECT DISTINCT + ( col0 ) + col2 * CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT DISTINCT + ( col0 ) + col2 * CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5410
SELECT - 72 * col0 * col0 + + col2 DIV - col0 FROM tab2 AS cor0
----
-3531
-438048
-449352

skipif mysql # not compatible
query I rowsort label-5410
SELECT - 72 * col0 * col0 + + col2 / - col0 FROM tab2 AS cor0
----
-3531
-438048
-449352

query I rowsort
SELECT ALL col0 * - col2 + ( - col2 ) AS col0 FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT ALL - col2 + tab2.col2 * + ( col1 ) AS col2 FROM tab2
----
1508
608
810

query I rowsort
SELECT ALL - 81 * tab1.col2 FROM tab1
----
-4374
-4617
-7776

query I rowsort
SELECT - ( col2 ) + 47 + - 51 * + col0 AS col1 FROM tab0 AS cor0
----
-1210
-1739
-4574

onlyif mysql # use DIV operator for integer division
query I rowsort label-5415
SELECT + cor0.col1 * - col0 DIV col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-5415
SELECT + cor0.col1 * - col0 / col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + - col1 + col1 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5417
SELECT + + col0 DIV CAST( - col2 AS SIGNED ) FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-5417
SELECT + + col0 / CAST ( - col2 AS INTEGER ) FROM tab0 cor0
----
-1
-35
0

query I rowsort
SELECT + col1 * ( cor0.col2 + - cor0.col1 ) AS col1 FROM tab0 cor0
----
-4558
-819
-9312

query I rowsort
SELECT - + col0 * - ( - col0 ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL cor0.col1 * - cor0.col2 + col2 * col0 AS col2 FROM tab1 AS cor0
----
-1242
3078
6432

query I rowsort
SELECT DISTINCT - cor0.col2 + - 74 * - 51 * + col2 AS col1 FROM tab1 cor0
----
203742
215061
362208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - 31 * + col2 FROM tab2 AS cor0
----
-1178
-806
-837

query I rowsort
SELECT ALL col2 * col1 * 92 + + 33 FROM tab1 AS cor0
----
114849
129201
52473

query I rowsort
SELECT ( col0 ) - col0 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5426
SELECT ALL 0 + - col1 DIV ( + 47 * + col2 + col0 ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL 0 + - col1 / ( + 47 * + col2 + col0 ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * col1 + col0 AS col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT ALL - col2 * - cor0.col2 * - col1 + col1 AS col1 FROM tab0 AS cor0
----
-611793
-93568
0

query I rowsort
SELECT ALL + col2 * - col0 * - ( col1 ) + - col1 * - col1 + tab2.col1 * + col1 AS col0 FROM tab2
----
126614
51612
7781

query I rowsort
SELECT + col2 * col1 + cor0.col2 AS col0 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT 89 - + col1 FROM tab1
----
63
76
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * + col2 col0 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + col2 * - 70 col0 FROM tab0 AS cor0
----
-2224
-5649
27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5434
SELECT ALL 14 * + col1 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL 14 * + col1 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col0 ) * + col1 + + cor0.col0 * ( col2 ) FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT ALL + 6 * + col2 FROM tab2 AS cor0
----
156
162
228

onlyif mysql # use DIV operator for integer division
query I rowsort label-5437
SELECT ALL + col0 DIV + col2 + 65 * tab1.col2 col2 FROM tab1
----
3510
3706
6240

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL + col0 / + col2 + 65 * tab1.col2 col2 FROM tab1
----
3510
3706
6240

query I rowsort
SELECT ALL col2 * 4 * 34 + col2 AS col1 FROM tab1
----
13152
7398
7809

onlyif mysql # use DIV operator for integer division
query I rowsort label-5439
SELECT + col1 DIV col0 + + col2 * - col1 FROM tab0
----
-2835
-7461
-95

skipif mysql # not compatible
query I rowsort label-5439
SELECT + col1 / col0 + + col2 * - col1 FROM tab0
----
-2835
-7461
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5440
SELECT + + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5440
SELECT + + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col2 ) * - col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT ALL + 78 AS col1 FROM tab1 cor0
----
78
78
78

query I rowsort
SELECT + ( + 8 ) AS col0 FROM tab2 AS cor0
----
8
8
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5444
SELECT DISTINCT 10 + 28 DIV - col2 AS col2 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT 10 + 28 / - col2 AS col2 FROM tab1 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col1 * cor0.col2 col0 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5446
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + 34 + col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT DISTINCT CAST ( NULL AS REAL ) * + 34 + col2 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5447
SELECT CAST( NULL AS SIGNED ) + 97 * cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5447
SELECT CAST ( NULL AS INTEGER ) + 97 * cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col1 AS REAL ) + + col1 - - col1 AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - col0 + 87 FROM tab1
----
23
7
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 + col0 * 98 * - 57 col1 FROM tab1
----
-15354
-356934
-445632

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5451
SELECT ALL - + CAST( NULL AS SIGNED ) + col0 * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL - + CAST ( NULL AS INTEGER ) + col0 * - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
86
91
97

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 FROM tab2, tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT cor1.col0 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

onlyif mysql # use DIV operator for integer division
query I rowsort label-5456
SELECT DISTINCT - - col0 + col1 * col0 DIV cor0.col0 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT - - col0 + col1 * col0 / cor0.col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + ( col1 * - col2 ) FROM tab2
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col2 FROM tab1
----
35
35
35

query I rowsort
SELECT + col2 * - cor0.col1 * + 2 FROM tab2 cor0
----
-1292
-1674
-3068

query I rowsort
SELECT - cor0.col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * ( col0 ) col1 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5462
SELECT + col2 + CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5462
SELECT + col2 + CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + cor0.col1 * - col1 AS col0 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT DISTINCT + + col2 + + 3 FROM tab0 cor0
----
36
4
85

query I rowsort
SELECT DISTINCT - + col0 + - 77 * ( - col2 ) FROM tab2 cor0
----
1924
2072
2847

query I rowsort
SELECT - col2 + col1 + 66 FROM tab1 AS cor0
----
-17
19
38

query I rowsort
SELECT + - cor0.col0 * col1 + - col0 * - col1 * cor0.col0 FROM tab1 AS cor0
----
156
40320
82160

query I rowsort
SELECT DISTINCT + col2 * + 33 AS col2 FROM tab1 cor0
----
1782
1881
3168

query I rowsort
SELECT + + col2 * 89 + - col0 * + col1 * - col0 FROM tab0 AS cor0
----
118914
52473
728109

query I rowsort
SELECT - ( cor0.col0 ) * col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL ( + cor0.col2 ) * + col1 AS col1 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5472
SELECT tab0.col1 * - CAST( col0 AS SIGNED ) * tab0.col1 FROM tab0
----
-177504
-329315
-737009

skipif mysql # not compatible
query I rowsort label-5472
SELECT tab0.col1 * - CAST ( col0 AS INTEGER ) * tab0.col1 FROM tab0
----
-177504
-329315
-737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5473
SELECT DISTINCT CAST( - 9 AS SIGNED ) FROM tab1, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT CAST ( - 9 AS INTEGER ) FROM tab1, tab2 AS cor0
----
-9

query I rowsort
SELECT - col1 + + ( 75 ) AS col2 FROM tab2
----
16
44
58

query I rowsort
SELECT - col0 * col0 * + col1 FROM tab0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL col2 + - ( - col0 ) * tab2.col0 - 9 AS col0 FROM tab2
----
6101
6270
67

query I rowsort
SELECT DISTINCT - col1 * - 4 - 73 FROM tab2
----
-5
163
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 * + col0 col2 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT col0 - 82 AS col1 FROM tab0
----
-47
-58
7

query I rowsort
SELECT + col1 * + 75 FROM tab2 cor0
----
1275
2325
4425

onlyif mysql # use DIV operator for integer division
query I rowsort label-5481
SELECT col0 DIV + col0 + col0 * col2 FROM tab1 AS cor0
----
163
3649
7681

skipif mysql # not compatible
query I rowsort label-5481
SELECT col0 / + col0 + col0 * col2 FROM tab1 AS cor0
----
163
3649
7681

query I rowsort
SELECT 95 * - col1 * col1 + col1 * 50 FROM tab1 AS cor0
----
-15405
-62920
-9000

query I rowsort
SELECT col0 + + tab1.col2 + + col2 * - col1 AS col2 FROM tab1
----
-1072
-1347
-449

query I rowsort
SELECT + cor0.col1 * + col0 - col2 AS col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL + 52 - - 44 AS col1 FROM tab1 cor0
----
96
96
96

query I rowsort
SELECT 3 * + ( col1 ) + - col1 * col2 FROM tab2 cor0
----
-1357
-595
-744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5487
SELECT DISTINCT ( + col2 ) * col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT ( + col2 ) * col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 84 * ( col0 ) AS col1 FROM tab1 AS cor0
----
-252
-5376
-6720

onlyif mysql # use DIV operator for integer division
query I rowsort label-5489
SELECT ALL + col2 + - col0 DIV col0 AS col0 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL + col2 + - col0 / col0 AS col0 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT ALL - col0 + + col0 * col2 * + 90 AS col0 FROM tab2 AS cor0
----
17003
182442
270101

onlyif mysql # use DIV operator for integer division
query I rowsort label-5491
SELECT col2 - 95 DIV col0 FROM tab1 AS cor0
----
23
56
95

skipif mysql # not compatible
query I rowsort label-5491
SELECT col2 - 95 / col0 FROM tab1 AS cor0
----
23
56
95

query I rowsort
SELECT + 3 + 56 AS col2 FROM tab2 cor0
----
59
59
59

query I rowsort
SELECT DISTINCT + col0 + 59 * col0 FROM tab0 AS cor0
----
1440
2100
5340

query I rowsort
SELECT ALL + 39 + 58 - col0 * - ( cor0.col2 ) FROM tab1 cor0
----
259
3745
7777

onlyif mysql # use DIV operator for integer division
query I rowsort label-5495
SELECT - + col1 DIV + cor0.col2 + + cor0.col1 * 87 col0 FROM tab1 AS cor0
----
1131
2262
870

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5495
SELECT - + col1 / + cor0.col2 + + cor0.col1 * 87 col0 FROM tab1 AS cor0
----
1131
2262
870

query I rowsort
SELECT - - 96 + cor0.col0 FROM tab2 AS cor0
----
103
174
175

query I rowsort
SELECT + + 66 * col1 FROM tab2 AS cor0
----
1122
2046
3894

query I rowsort
SELECT 77 * + col2 AS col1 FROM tab2 AS cor0
----
2002
2079
2926

query I rowsort
SELECT ALL col0 + 27 FROM tab0 AS cor0
----
116
51
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5500
SELECT - - col0 DIV ( col1 ) AS col1 FROM tab1 cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-5500
SELECT - - col0 / ( col1 ) AS col1 FROM tab1 cor0
----
0
6
6

query I rowsort
SELECT ALL col1 + - 39 * col2 AS col2 FROM tab0 AS cor0
----
-1201
-3107
58

query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 + - col0 + col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - col0 - ( col1 ) AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT - + cor0.col2 * 48 AS col0 FROM tab1 cor0
----
-2592
-2736
-4608

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5505
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5506
SELECT DISTINCT - - col0 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT - - col0 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + col2 col0 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5508
SELECT + + col0 DIV + 35 AS col1 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5508
SELECT + + col0 / + 35 AS col1 FROM tab1 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT + col0 * 98 + col0 FROM tab1 AS cor0
----
297
6336
7920

query I rowsort
SELECT DISTINCT - + col0 * ( - col2 ) + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-3239
-4056
140

onlyif mysql # use DIV operator for integer division
query I rowsort label-5511
SELECT - + col0 * col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5511
SELECT - + col0 * col1 / - col0 AS col0 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5512
SELECT ALL col0 DIV col2 + col1 AS col0 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL col0 / col2 + col1 AS col0 FROM tab0 AS cor0
----
132
86
92

query I rowsort
SELECT DISTINCT col0 * + 10 AS col1 FROM tab0 AS cor0
----
240
350
890

query I rowsort
SELECT - col0 + + tab1.col1 AS col2 FROM tab1
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-5515
SELECT DISTINCT - + cor0.col2 DIV - col0 + col1 * col1 + cor0.col0 * + col1 FROM tab2 AS cor0
----
1181
1632
8083

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT - + cor0.col2 / - col0 + col1 * col1 + cor0.col0 * + col1 FROM tab2 AS cor0
----
1181
1632
8083

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5516
SELECT ALL + CAST( NULL AS SIGNED ) + 68 * + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL + CAST ( NULL AS INTEGER ) + 68 * + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 col2 FROM tab2 AS cor0
----
41
41
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col0 + 97 col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 39620087addcddde5da4b0651292eaf6

query I rowsort
SELECT ALL col0 * + cor0.col1 * + cor0.col2 AS col0 FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT ALL tab2.col1 * col1 + - col0 FROM tab2
----
210
3403
954

query I rowsort
SELECT 13 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT 81 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT DISTINCT ( cor0.col2 ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 * tab2.col0 + 60 col1 FROM tab2
----
-626
-7584
-7682

query I rowsort
SELECT ALL 84 AS col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT ALL col1 * + cor0.col1 - col0 AS col0 FROM tab0 cor0
----
7372
8192
9374

query I rowsort
SELECT + col2 * + col2 + - tab0.col1 AS col2 FROM tab0
----
-96
1003
6633

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 / + col1 ) NOT BETWEEN ( - col2 ) AND col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT ( NULL ) <= + col2 + + col0
----

query I rowsort
SELECT - tab0.col0 * - col1 AS col1 FROM tab0 WHERE ( col1 * + col0 ) BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT ALL 59 FROM tab1, tab0 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + - col2 col1 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT - cor0.col2 + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT - - col1 + - col0 * ( col1 ) FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE ( NULL ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + cor0.col1 + col1 * col2 col2 FROM tab0 cor0
----
193
2891
7471

query I rowsort
SELECT col1 + - cor0.col1 * cor0.col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT col1 * col2 IN ( - col0 / - col0 + + col1 * col1 - - col0 * col2 )
----
-1
-33
-82

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 / col2 ) NOT IN ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT ALL - col0 + cor0.col1 AS col1 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT + col0 + - col1 * + col2 * - col1 FROM tab2 AS cor0
----
11061
25954
90584

query I rowsort
SELECT DISTINCT - col2 + col0 + - col2 AS col0 FROM tab1 AS cor0
----
-105
-112
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + cor0.col0 col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + col0 + col1 + + col2 FROM tab2
----
134
163
65

query I rowsort
SELECT ALL col1 * + tab1.col2 * col1 AS col2 FROM tab1
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-5546
SELECT col0 DIV + tab0.col0 col2 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5546
SELECT col0 / + tab0.col0 col2 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 + col0 * - tab2.col0 col2 FROM tab2
----
-29
-6136
-6282

query I rowsort
SELECT ALL + col0 * col2 * - col2 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT col1 + + col1 FROM tab2 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT col1 + - col2 * col2 + - col1 AS col1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT ALL col2 * col1 * + col2 AS col2 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT + col2 * col0 * + col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT - + ( - col0 ) + cor0.col2 FROM tab0 AS cor0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 col0 FROM tab1
----
28
47
83

query I rowsort
SELECT ( col1 ) * + col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL + cor0.col0 + - 55 - - 65 * cor0.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a535049ad4b97be795803cde71be8ca5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * + col2 + - col2 col1 FROM tab0 AS cor0
----
-2871
-7544
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col2 FROM tab0
----
37
37
37

query I rowsort
SELECT ALL ( + 88 ) * col0 + cor0.col2 FROM tab2 AS cor0
----
643
6890
6990

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5560
SELECT CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5560
SELECT CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5561
SELECT DISTINCT + 95 DIV + 35 AS col2 FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT + 95 / + 35 AS col2 FROM tab2
----
2

query I rowsort
SELECT - 56 * col0 AS col0 FROM tab0
----
-1344
-1960
-4984

query I rowsort
SELECT DISTINCT - tab0.col2 FROM tab0, tab2 cor0
----
-1
-33
-82

query I rowsort
SELECT - col2 + - 35 AS col0 FROM tab0 AS cor0
----
-117
-36
-68

query I rowsort
SELECT + col0 - 10 FROM tab0 AS cor0
----
14
25
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5566
SELECT DISTINCT col1 * - CAST( - col2 AS SIGNED ) + + col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT col1 * - CAST ( - col2 AS INTEGER ) + + col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT col0 * - 38 + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-11303
-1488
-2555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 col1 FROM tab2 cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col1 * col0 AS REAL ) col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - col0 * - 47 FROM tab0
----
1128
1645
4183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) * col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - 30 AS col0 FROM tab1
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col2 + + col0 * - 57 col1 FROM tab1 AS cor0
----
-9
0
3120

query I rowsort
SELECT + + col0 * - col0 + + 58 FROM tab2 AS cor0
----
-6026
-6183
9

query I rowsort
SELECT + col0 * col1 + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT col0 + - col1 + + col2 AS col1 FROM tab2 AS cor0
----
100
3
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5577
SELECT col0 * CAST( NULL AS SIGNED ) + + ( - col2 ) * col0 + - 81 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5577
SELECT col0 * CAST ( NULL AS INTEGER ) + + ( - col2 ) * col0 + - 81 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 25 * col0 FROM tab0 AS cor0
----
-2225
-600
-875

query I rowsort
SELECT ( 97 ) FROM tab2 cor0
----
97
97
97

query I rowsort
SELECT 33 * 98 AS col0 FROM tab1 AS cor0
----
3234
3234
3234

query I rowsort
SELECT - 2 * - 3 AS col2 FROM tab0 AS cor0
----
6
6
6

query I rowsort
SELECT + 52 + col1 FROM tab0 AS cor0
----
138
143
149

query I rowsort
SELECT + - col0 + + 18 AS col0 FROM tab2 AS cor0
----
-60
-61
11

query I rowsort
SELECT - col1 * + col1 * - tab0.col0 - - 21 FROM tab0
----
177525
329336
737030

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 21 + - col0 col2 FROM tab0
----
-21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5586
SELECT + CAST( - 6 * + tab1.col1 AS SIGNED ) FROM tab1
----
-156
-60
-78

skipif mysql # not compatible
query I rowsort label-5586
SELECT + CAST ( - 6 * + tab1.col1 AS INTEGER ) FROM tab1
----
-156
-60
-78

query I rowsort
SELECT DISTINCT col1 * + col0 * col1 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5588
SELECT ALL + CAST( 73 AS SIGNED ) FROM tab2 AS cor0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL + CAST ( 73 AS INTEGER ) FROM tab2 AS cor0
----
73
73
73

query I rowsort
SELECT 54 * + cor0.col2 * + col1 + col0 AS col1 FROM tab2 cor0
----
34963
45205
82914

query I rowsort
SELECT - + ( + cor0.col2 ) * + col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL 83 * col1 FROM tab0 AS cor0
----
7138
7553
8051

query I rowsort
SELECT DISTINCT - 20 + + col2 * cor0.col1 AS col0 FROM tab2 cor0
----
1514
626
817

onlyif mysql # use DIV operator for integer division
query I rowsort label-5593
SELECT ALL - 91 + + col1 * 40 DIV ( cor0.col0 + + ( col1 ) * col2 ) FROM tab0 AS cor0
----
-62
-90
-91

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL - 91 + + col1 * 40 / ( cor0.col0 + + ( col1 ) * col2 ) FROM tab0 AS cor0
----
-62
-90
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-5594
SELECT - 73 DIV col0 FROM tab1 AS cor0
----
-1
-24
0

skipif mysql # not compatible
query I rowsort label-5594
SELECT - 73 / col0 FROM tab1 AS cor0
----
-1
-24
0

query I rowsort
SELECT DISTINCT + 53 + + col2 * col1 + 96 FROM tab2
----
1683
795
986

query I rowsort
SELECT 68 * 86 FROM tab1
----
5848
5848
5848

query I rowsort
SELECT ALL + col2 + - cor0.col2 * - col1 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - - col2 * + col2 * + cor0.col2 - - col0 FROM tab2 AS cor0
----
17654
19690
54951

query I rowsort
SELECT - col1 + 56 * 70 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-211706
-223450
-376333

query I rowsort
SELECT DISTINCT - 81 * - 96 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
7776

query I rowsort
SELECT - 9 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5

query I rowsort
SELECT ALL - col1 + + 13 AS col2 FROM tab2
----
-18
-4
-46

query I rowsort
SELECT + - cor0.col2 + - 86 * col2 FROM tab2 cor0
----
-2262
-2349
-3306

query I rowsort
SELECT col2 + + 22 - + col0 * - col1 * - tab0.col1 AS col0 FROM tab0
----
-177449
-329292
-736905

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT - cor0.col0 * col2 + + cor0.col0 + + 15 FROM tab1 AS cor0
----
-144
-3569
-7585

query I rowsort
SELECT 61 * col1 AS col0 FROM tab2 AS cor0
----
1037
1891
3599

query I rowsort
SELECT ALL + + ( col1 ) FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT ( - cor1.col1 ) * cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col2 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + - col0 + ( - col0 ) * col0 FROM tab2 cor0
----
-56
-6162
-6320

query I rowsort
SELECT DISTINCT - + 45 AS col0 FROM tab0, tab0 AS cor0
----
-45

query I rowsort
SELECT + col2 * 47 FROM tab2 AS cor0
----
1222
1269
1786

query I rowsort
SELECT ALL col0 + 71 AS col0 FROM tab1 AS cor0
----
135
151
74

query I rowsort
SELECT DISTINCT + 40 * + ( col2 ) + col0 FROM tab0
----
1344
3369
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-5616
SELECT DISTINCT + ( col2 ) * + cor0.col2 + col2 DIV - col2 FROM tab1 AS cor0
----
2915
3248
9215

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT + ( col2 ) * + cor0.col2 + col2 / - col2 FROM tab1 AS cor0
----
2915
3248
9215

query I rowsort
SELECT + col0 + - ( - col2 ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT col0 + col2 * + tab1.col2 + 17 * - col0 AS col2 FROM tab1
----
2225
2868
7936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5619
SELECT + CAST( - col1 + col0 AS SIGNED ) * 9 FROM tab2
----
-216
171
558

skipif mysql # not compatible
query I rowsort label-5619
SELECT + CAST ( - col1 + col0 AS INTEGER ) * 9 FROM tab2
----
-216
171
558

query I rowsort
SELECT ALL - - col1 * + 36 FROM tab0 AS cor0
----
3096
3276
3492

query I rowsort
SELECT DISTINCT - col0 * - 26 AS col0 FROM tab1 AS cor0
----
1664
2080
78

query I rowsort
SELECT ALL + + col1 + 97 * col1 FROM tab0 cor0
----
8428
8918
9506

query I rowsort
SELECT ALL - col0 * 63 + col0 FROM tab2 AS cor0
----
-434
-4836
-4898

query I rowsort
SELECT DISTINCT + + col1 * - 73 FROM tab1 cor0
----
-1898
-730
-949

query I rowsort
SELECT + col0 + - 96 FROM tab2 cor0
----
-17
-18
-89

query I rowsort
SELECT DISTINCT - + 61 + col0 FROM tab1 AS cor0
----
-58
19
3

query I rowsort
SELECT + col0 * col1 + - col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL 70 * + col0 FROM tab0 AS cor0
----
1680
2450
6230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) + 34 col0 FROM tab2 AS cor0
----
-44
-45
27

query I rowsort
SELECT col0 * + col2 * + cor0.col0 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT ALL + 67 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1742
1809
2546

query I rowsort
SELECT - 72 * + ( col1 + + 33 ) FROM tab1
----
-3096
-3312
-4248

query I rowsort
SELECT DISTINCT col0 - + col2 * col1 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT - col2 + - 1 - col0 FROM tab2
----
-105
-118
-35

query I rowsort
SELECT + 70 * + col1 - col2 FROM tab0 AS cor0
----
5987
6288
6789

query I rowsort
SELECT ALL 31 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT DISTINCT 6 + col0 AS col2 FROM tab0 AS cor0
----
30
41
95

query I rowsort
SELECT ALL + col1 + col2 * 94 AS col1 FROM tab0 cor0
----
191
3188
7799

query I rowsort
SELECT ALL 30 + + col1 * - ( col0 ) + + col1 FROM tab2 AS cor0
----
-1296
-156
-4513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5640
SELECT + col1 * col1 - + CAST( - 92 * col0 + - 54 * - col0 AS SIGNED ) FROM tab0 cor0
----
10739
11663
8308

skipif mysql # not compatible
query I rowsort label-5640
SELECT + col1 * col1 - + CAST ( - 92 * col0 + - 54 * - col0 AS INTEGER ) FROM tab0 cor0
----
10739
11663
8308

query I rowsort
SELECT - - col0 * - col0 - ( col1 ) FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT - cor0.col1 * cor0.col0 - + col2 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 * + 14 col1 FROM tab2
----
1066
1068
71

query I rowsort
SELECT col2 + 33 + + 72 AS col2 FROM tab2 AS cor0
----
131
132
143

query I rowsort
SELECT ALL - tab1.col0 * + col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT col1 * - col0 * - ( + col1 ) FROM tab0
----
177504
329315
737009

query I rowsort
SELECT ALL + 53 * tab1.col2 FROM tab1
----
2862
3021
5088

onlyif mysql # use DIV operator for integer division
query I rowsort label-5648
SELECT col2 + + col1 DIV col0 + - 67 AS col1 FROM tab2
----
-29
-36
-41

skipif mysql # not compatible
query I rowsort label-5648
SELECT col2 + + col1 / col0 + - 67 AS col1 FROM tab2
----
-29
-36
-41

query I rowsort
SELECT ALL 26 AS col2 FROM tab2, tab1, tab1 cor0
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT 64 * + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-132096
-217280
-518336

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5651
SELECT + + ( + col2 ) * + col1 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5651
SELECT + + ( + col2 ) * + col1 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - 4 ) + cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
185
2024
2998

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * col0 + col2 * 67 * col0 col2 FROM tab2 cor0
----
12712
141960
207375

query I rowsort
SELECT ALL cor0.col0 + - col2 * - col2 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT DISTINCT ( 26 ) FROM tab0 AS cor0
----
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5656
SELECT ALL - ( + col1 ) + col0 DIV - ( 30 * - col0 ) col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL - ( + col1 ) + col0 / - ( 30 * - col0 ) col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL col0 * - col2 - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT + 5 * + 61 + + col2 * col1 * cor0.col0 FROM tab0 AS cor0
----
3700
664423
68417

query I rowsort
SELECT DISTINCT col1 * 98 FROM tab1 AS cor0
----
1274
2548
980

query I rowsort
SELECT + col0 * + 73 + - ( col0 ) FROM tab1 cor0
----
216
4608
5760

query I rowsort
SELECT DISTINCT + - col0 * 89 FROM tab2 AS cor0
----
-623
-6942
-7031

query I rowsort
SELECT DISTINCT - - col0 * ( + col1 ) FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5664
SELECT - col0 DIV 33 FROM tab1 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5664
SELECT - col0 / 33 FROM tab1 AS cor0
----
-1
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5665
SELECT + + col1 DIV 77 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5665
SELECT + + col1 / 77 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col2 * + ( - col2 ) AS col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - col2 * 74 FROM tab1 AS cor0
----
-3996
-4218
-7104

query I rowsort
SELECT DISTINCT + + col2 + 65 AS col0 FROM tab2 AS cor0
----
103
91
92

query I rowsort
SELECT ALL 68 * col2 AS col2 FROM tab2 AS cor0
----
1768
1836
2584

query I rowsort
SELECT - cor0.col2 + - col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - ( ( + cor0.col2 ) ) FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5672
SELECT + + 77 DIV + ( col1 ) AS col0 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-5672
SELECT + + 77 / + ( col1 ) AS col0 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT ALL col2 * + 90 FROM tab2
----
2340
2430
3420

query I rowsort
SELECT - 82 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

onlyif mysql # use DIV operator for integer division
query I rowsort label-5675
SELECT DISTINCT 24 + - cor0.col1 DIV col0 FROM tab0 AS cor0
----
21
22
23

skipif mysql # not compatible
query I rowsort label-5675
SELECT DISTINCT 24 + - cor0.col1 / col0 FROM tab0 AS cor0
----
21
22
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 - + col2 col1 FROM tab0 AS cor0
----
57
8
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5677
SELECT - col2 DIV - col2 + col0 col1 FROM tab0 AS cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5677
SELECT - col2 / - col2 + col0 col1 FROM tab0 AS cor0
----
25
36
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5678
SELECT DISTINCT + 87 + col2 DIV ( col2 ) FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT + 87 + col2 / ( col2 ) FROM tab1 AS cor0
----
88

query I rowsort
SELECT + 39 + col0 FROM tab0 AS cor0
----
128
63
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-5680
SELECT + cor0.col0 * + col2 + 11 DIV - 13 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-5680
SELECT + cor0.col0 * + col2 + 11 / - 13 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - 86 * col1 AS col2 FROM tab1 AS cor0
----
-1118
-2236
-860

query I rowsort
SELECT DISTINCT - tab0.col2 AS col1 FROM tab0, tab2 AS cor0, tab0 cor1
----
-1
-33
-82

query I rowsort
SELECT ALL - ( - 6 ) AS col2 FROM tab2
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( tab0.col1 ) * + col2 * ( + 39 ) col1 FROM tab0
----
-110682
-291018
-3783

query I rowsort
SELECT ALL 68 * col1 + ( - ( col1 ) + tab1.col2 * - ( col1 ) ) FROM tab1
----
-377
100
338

query I rowsort
SELECT - cor0.col2 * + 6 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 6c831792e43e43dff996e9b406056291

query I rowsort
SELECT + col1 * cor0.col0 + + col0 FROM tab1 cor0
----
1120
704
81

query I rowsort
SELECT - - col0 + cor0.col1 * 84 AS col2 FROM tab0 AS cor0
----
7248
7733
8183

query I rowsort
SELECT DISTINCT col0 * - col1 - - ( 28 * + col2 ) FROM tab2
----
-279
-3874
539

onlyif mysql # use DIV operator for integer division
query I rowsort label-5690
SELECT DISTINCT col0 * col1 + - 34 DIV + col2 AS col0 FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-5690
SELECT DISTINCT col0 * col1 + - 34 / + col2 AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT + col0 + - 42 FROM tab0 AS cor0
----
-18
-7
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-5692
SELECT + 14 * tab0.col2 DIV tab0.col0 AS col2 FROM tab0
----
0
12
19

skipif mysql # not compatible
query I rowsort label-5692
SELECT + 14 * tab0.col2 / tab0.col0 AS col2 FROM tab0
----
0
12
19

query I rowsort
SELECT - 59 * tab2.col2 + ( col0 ) - col1 * + tab2.col2 * 33 AS col0 FROM tab2
----
-23481
-29207
-52078

query I rowsort
SELECT 39 + col0 FROM tab0
----
128
63
74

query I rowsort
SELECT DISTINCT + + 40 AS col1 FROM tab0, tab1 AS cor0
----
40

query I rowsort
SELECT 99 + - col0 + col0 * tab0.col0 AS col0 FROM tab0
----
1289
651
7931

query I rowsort
SELECT DISTINCT col2 + tab1.col1 * + col1 * 24 AS col0 FROM tab1
----
16278
2457
4152

query I rowsort
SELECT ALL 47 + col2 AS col0 FROM tab0
----
129
48
80

query I rowsort
SELECT ALL - 69 FROM tab1, tab2 AS cor0
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5700
SELECT col1 * CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-5700
SELECT col1 * CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL col1 * ( col1 + col2 ) FROM tab0 AS cor0
----
10234
15743
9506

query I rowsort
SELECT ALL + cor0.col2 - - col0 AS col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - col1 + col1 * + ( col1 ) AS col2 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT - - col0 * - cor0.col0 * + cor0.col0 FROM tab2 AS cor0
----
-343
-474552
-493039

query I rowsort
SELECT ALL col2 + - tab0.col0 AS col1 FROM tab0
----
-34
-7
9

query I rowsort
SELECT ALL col1 + + 3 FROM tab0 AS cor0
----
100
89
94

query I rowsort
SELECT DISTINCT + + col1 + - col1 * col0 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL cor0.col1 + + ( col2 * col1 ) AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT ALL - - col0 + + ( + col2 ) FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5710
SELECT DISTINCT - cor0.col2 DIV + col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5710
SELECT DISTINCT - cor0.col2 / + col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT DISTINCT - - col2 + col1 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - col2 * 92 + col0 FROM tab0 AS cor0
----
-3012
-57
-7455

query I rowsort
SELECT + + 2 * - 87 AS col2 FROM tab0 AS cor0
----
-174
-174
-174

query I rowsort
SELECT DISTINCT - col2 * - 23 FROM tab1 AS cor0
----
1242
1311
2208

query I rowsort
SELECT + ( + ( col2 ) ) AS col0 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * + col1 col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT - 72 + + col1 FROM tab1 AS cor0
----
-46
-59
-62

query I rowsort
SELECT - 16 * 50 FROM tab2 AS cor0
----
-800
-800
-800

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 - cor0.col2 + + col1 * col1 AS col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT + - cor0.col2 * 36 FROM tab1 AS cor0
----
-1944
-2052
-3456

onlyif mysql # use DIV operator for integer division
query I rowsort label-5722
SELECT col1 DIV cor0.col2 - 50 AS col1 FROM tab1 AS cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-5722
SELECT col1 / cor0.col2 - 50 AS col1 FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT - 55 * col2 FROM tab2 AS cor0
----
-1430
-1485
-2090

query I rowsort
SELECT DISTINCT 43 * cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
-24768
-340603
-52675

onlyif mysql # use DIV operator for integer division
query I rowsort label-5725
SELECT ALL + col0 DIV col0 col1 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5725
SELECT ALL + col0 / col0 col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col0 + col1 + - ( + col1 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT ( - 83 ) AS col0 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col2 AS REAL ) * - col2 - ( cor0.col2 ) * col1 FROM tab0 AS cor0
----
-14186
-3927
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5729
SELECT ALL + + col2 + - cor0.col2 + + cor0.col1 DIV + CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5729
SELECT ALL + + col2 + - cor0.col2 + + cor0.col1 / + CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 72 + cor0.col1 AS col0 FROM tab1 AS cor0
----
82
85
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5731
SELECT ALL + - CAST( NULL AS SIGNED ) + + 17 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL + - CAST ( NULL AS INTEGER ) + + 17 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + tab1.col1 + tab1.col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT DISTINCT + col0 * 91 + + 18 FROM tab2
----
655
7116
7207

query I rowsort
SELECT + col0 + + col0 * tab0.col0 * + col2 + + col0 * 73 AS col1 FROM tab0
----
20784
3815
656108

query I rowsort
SELECT + 1 * + col2 - col1 * 62 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-39623
-4782
-64384

onlyif mysql # use DIV operator for integer division
query I rowsort label-5736
SELECT + col0 DIV ( col0 * - col1 + - 17 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5736
SELECT + col0 / ( col0 * - col1 + - 17 ) FROM tab1
----
0
0
0

query I rowsort
SELECT + ( col2 ) * tab1.col2 AS col0 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT ALL + ( 73 ) AS col2 FROM tab1 AS cor0
----
73
73
73

query I rowsort
SELECT ALL + 93 + cor0.col0 AS col0 FROM tab2 AS cor0
----
100
171
172

query I rowsort
SELECT + col1 * col0 + - col1 + 12 AS col2 FROM tab1 AS cor0
----
1039
64
642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + cor0.col0 + 59 AS col2 FROM tab1, tab2 cor0
----
137
138
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 * + 69 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d5713e4925baf82acb45ea85469a791c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * - col1 col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - col1 + + 0 FROM tab0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( 61 * + col2 ) + - col1 col1 FROM tab1
----
177850
198179
562163

query I rowsort
SELECT ALL + col0 * ( col2 ) * col2 AS col0 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT - - col0 + - ( + 53 ) AS col0 FROM tab0 AS cor0
----
-18
-29
36

query I rowsort
SELECT DISTINCT - col1 * - 84 - - col2 FROM tab1 AS cor0
----
1188
2238
897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - - col0 col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - col2 * + 53 FROM tab2 AS cor0
----
-1378
-1431
-2014

query I rowsort
SELECT - 18 + col0 AS col0 FROM tab2 AS cor0
----
-11
60
61

query I rowsort
SELECT - 31 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT ( 7 ) * col1 AS col1 FROM tab0
----
602
637
679

query I rowsort
SELECT DISTINCT - col2 - tab1.col2 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT - + col1 - + 93 * + col2 FROM tab0 AS cor0
----
-190
-3155
-7717

query I rowsort
SELECT DISTINCT + col0 - col1 * + tab2.col2 FROM tab2
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - col1 + col1 * 22 col2 FROM tab0 AS cor0
----
-1261
-172
-6097

query I rowsort
SELECT ALL cor0.col0 * 30 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 11636d367200d6ff91265460f177a16e

query I rowsort
SELECT + - ( - 47 ) + col2 FROM tab0 cor0
----
129
48
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 - - 30 col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 03ba2c5dd5ced92fb3ca7ecc7bd39df9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5762
SELECT 12 DIV + col2 AS col1 FROM tab0 cor0
----
0
0
12

skipif mysql # not compatible
query I rowsort label-5762
SELECT 12 / + col2 AS col1 FROM tab0 cor0
----
0
0
12

query I rowsort
SELECT DISTINCT col2 * - col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT col0 * col2 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT - - col2 + cor0.col0 * col0 * col0 FROM tab2 AS cor0
----
370
474578
493077

query I rowsort
SELECT col0 + cor0.col1 + + col2 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT ( col1 + 38 ) FROM tab1
----
48
51
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-5768
SELECT 93 DIV - col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-5768
SELECT 93 / - col0 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
30
81

query I rowsort
SELECT - + cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5770
SELECT col2 DIV + 12 FROM tab2 AS cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-5770
SELECT col2 / + 12 FROM tab2 AS cor0
----
2
2
3

query I rowsort
SELECT col0 * - ( cor0.col2 * col2 ) FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT + cor0.col2 + 82 AS col2 FROM tab2 AS cor0
----
108
109
120

query I rowsort
SELECT DISTINCT - 46 * + col1 FROM tab1
----
-1196
-460
-598

query I rowsort
SELECT DISTINCT + col2 + - tab0.col1 * col0 AS col0 FROM tab0
----
-2031
-3394
-8017

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 * - tab1.col0 + col0 col0 FROM tab1
----
-1408
-1760
-66

query I rowsort
SELECT - 4 FROM tab0, tab2 cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT + 84 + col0 AS col2 FROM tab2 AS cor0
----
162
163
91

query I rowsort
SELECT + cor0.col2 * + col1 - col0 AS col0 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT + ( col0 + - col2 ) AS col1 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT ( + col1 ) * - col2 + - col0 * col0 FROM tab2
----
-6887
-7618
-886

query I rowsort
SELECT - 55 + - 88 FROM tab1
----
-143
-143
-143

query I rowsort
SELECT - col0 - - col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - cor0.col2 * col0 * col1 + col1 * col1 col2 FROM tab2 AS cor0
----
-116145
-4871
-50707

query I rowsort
SELECT DISTINCT - + col0 + col2 * cor0.col1 + + col2 AS col0 FROM tab2 AS cor0
----
1482
605
857

query I rowsort
SELECT DISTINCT + col2 + col0 * - col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT - - 1 + col1 FROM tab2 AS cor0
----
18
32
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 51 col0 FROM tab0
----
-4386
-4641
-4947

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5788
SELECT - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5788
SELECT - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 21 FROM tab1 AS cor0
----
1344
1680
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-5790
SELECT + col1 DIV col1 + + col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-5790
SELECT + col1 / col1 + + col2 FROM tab0
----
2
34
83

query I rowsort
SELECT ALL + ( - 91 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT - col2 * + 94 * + 61 AS col1 FROM tab2
----
-149084
-154818
-217892

query I rowsort
SELECT ALL col2 * + col0 + + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + cor0.col1 + col1 * - 16 + col0 FROM tab0 AS cor0
----
-1266
-1276
-1420

query I rowsort
SELECT col0 * col0 * + col2 FROM tab1
----
233472
486
614400

query I rowsort
SELECT ALL + + cor0.col2 + - col0 * + col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + col0 * - col2 - col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL + - col2 + + col2 * - col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1146
-37
-6895

query I rowsort
SELECT col2 * col1 + + col0 * col0 * col0 AS col0 FROM tab1 cor0
----
1431
262714
513248

query I rowsort
SELECT ALL - + col1 + + col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5801
SELECT DISTINCT - - col1 + col2 DIV cor0.col0 FROM tab0 cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-5801
SELECT DISTINCT - - col1 + col2 / cor0.col0 FROM tab0 cor0
----
87
91
97

query I rowsort
SELECT col1 + - col0 * col0 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT ALL col0 * col0 - + col2 FROM tab1 AS cor0
----
-45
4039
6304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - cor0.col2 + + col1 col1 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-5805
SELECT DISTINCT + col0 + - col0 + cor0.col1 DIV - col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-5805
SELECT DISTINCT + col0 + - col0 + cor0.col1 / - col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 col0 FROM tab2
----
-33
-4
21

query I rowsort
SELECT col1 + + col0 * col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT + tab0.col0 - - tab0.col0 AS col1 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL - col2 * - col0 * col1 + col2 FROM tab0
----
3396
664200
68145

query I rowsort
SELECT + col0 + + col1 FROM tab1 WHERE NULL NOT IN ( - col1 + - col0 )
----

query I rowsort
SELECT ALL + col1 * + col1 - - col2 FROM tab1
----
157
265
730

query I rowsort
SELECT - col0 * + col0 * - cor0.col0 - cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
13248
41650
697048

query I rowsort
SELECT DISTINCT - - col1 + cor0.col0 * - col0 FROM tab0 cor0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT + + col2 * + col1 + col2 AS col0 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT + col1 + - col2 AS col1 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - cor0.col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT - - col0 + col1 AS col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( cor0.col2 ) OR NOT - col2 BETWEEN NULL AND - col0
----
10

query I rowsort
SELECT DISTINCT col1 * tab1.col1 + col0 + + col2 FROM tab1
----
221
345
733

query I rowsort
SELECT ALL + col1 + col2 + - col2 FROM tab0
----
86
91
97

query I rowsort
SELECT + col2 * col1 + - tab2.col1 FROM tab2
----
1475
629
806

query I rowsort
SELECT DISTINCT + col2 * + col2 * col0 + + col0 * - col0 + - tab1.col2 AS col0 FROM tab1
----
203783
730784
8685

query I rowsort
SELECT ALL - 59 * col0 FROM tab2
----
-413
-4602
-4661

query I rowsort
SELECT - ( col2 ) + - col2 FROM tab2 cor0
----
-52
-54
-76

query I rowsort
SELECT col2 + - col1 * col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT - 32 * + col2 FROM tab1
----
-1728
-1824
-3072

query I rowsort
SELECT + - col2 + + cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT ALL cor0.col0 * col2 + col2 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT col2 * - col2 + - col0 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT DISTINCT col1 + - cor0.col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1003
-6633
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5831
SELECT ALL + cor0.col0 * cor0.col2 DIV + col0 + + col0 AS col2 FROM tab0 cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL + cor0.col0 * cor0.col2 / + col0 + + col0 AS col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 * col1 AS col0 FROM tab0 cor0
----
611884
93654
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5833
SELECT DISTINCT + col2 * + cor0.col1 + col1 DIV + 25 FROM tab1 AS cor0
----
1248
1405
570

skipif mysql # not compatible
query I rowsort label-5833
SELECT DISTINCT + col2 * + cor0.col1 + col1 / + 25 FROM tab1 AS cor0
----
1248
1405
570

query I rowsort
SELECT - + 59 * + col1 + + 2 AS col1 FROM tab2 AS cor0
----
-1001
-1827
-3479

query I rowsort
SELECT ALL + col2 + - cor0.col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * col2 + cor0.col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
93

query I rowsort
SELECT + ( + col1 ) * 80 FROM tab0 AS cor0
----
6880
7280
7760

query I rowsort
SELECT DISTINCT - - ( cor0.col2 ) * + col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5840
SELECT DISTINCT + 98 + + cor0.col1 DIV + col1 AS col2 FROM tab1 cor0
----
99

skipif mysql # not compatible
query I rowsort label-5840
SELECT DISTINCT + 98 + + cor0.col1 / + col1 AS col2 FROM tab1 cor0
----
99

query I rowsort
SELECT + - 43 * + col0 FROM tab0 AS cor0
----
-1032
-1505
-3827

query I rowsort
SELECT + col2 - col1 * - col0 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT - - col0 - + ( - col1 ) * + cor0.col1 * - 42 FROM tab1 cor0
----
-28389
-4136
-7018

query I rowsort
SELECT DISTINCT col1 + ( col0 ) * + col2 + 17 AS col1 FROM tab0 AS cor0
----
149
7406
895

query I rowsort
SELECT + ( 9 ) AS col2 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT ( 38 ) + + col0 FROM tab1 AS cor0
----
102
118
41

query I rowsort
SELECT + ( col1 ) + + col1 FROM tab0 AS cor0
----
172
182
194

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 42 AS REAL ) FROM tab1 cor0
----
-42
-42
-42

query I rowsort
SELECT ALL + + ( + 68 ) AS col0 FROM tab1 AS cor0
----
68
68
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5850
SELECT col2 * - CAST( col2 + + col2 AS SIGNED ) FROM tab1
----
-18432
-5832
-6498

skipif mysql # not compatible
query I rowsort label-5850
SELECT col2 * - CAST ( col2 + + col2 AS INTEGER ) FROM tab1
----
-18432
-5832
-6498

query I rowsort
SELECT + col0 * - tab1.col0 + col1 AS col2 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT + ( + 43 ) * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1333
2537
731

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 col2 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT + tab1.col1 + col0 * col2 * ( tab1.col0 ) AS col1 FROM tab1
----
233482
512
614413

query I rowsort
SELECT 32 + 89 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to caef24c3af92e31c3c63f6930ea05b46

query I rowsort
SELECT + + col1 * ( + 90 ) + - col1 FROM tab2 AS cor0
----
1513
2759
5251

query I rowsort
SELECT - col1 + - 80 * col2 AS col2 FROM tab1 AS cor0
----
-4346
-4570
-7693

query I rowsort
SELECT DISTINCT col1 - + col2 * col1 FROM tab1 AS cor0
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-5859
SELECT + + 59 DIV col0 + - col0 AS col1 FROM tab2 AS cor0
----
-78
-79
1

skipif mysql # not compatible
query I rowsort label-5859
SELECT + + 59 / col0 + - col0 AS col1 FROM tab2 AS cor0
----
-78
-79
1

query I rowsort
SELECT + - col0 + 46 AS col1 FROM tab1 cor0
----
-18
-34
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5861
SELECT - CAST( NULL AS SIGNED ) * - ( col0 ) + - col1 + + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5861
SELECT - CAST ( NULL AS INTEGER ) * - ( col0 ) + - col1 + + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 * cor0.col1 + - col2 AS col0 FROM tab1 cor0
----
1152
1350
513

query I rowsort
SELECT - col0 * col1 + - col1 * 73 AS col2 FROM tab2 AS cor0
----
-2480
-2584
-8909

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5864
SELECT DISTINCT - + CAST( col0 AS SIGNED ) * + col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-5864
SELECT DISTINCT - + CAST ( col0 AS INTEGER ) * + col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT + col0 + + 19 AS col1 FROM tab2 AS cor0
----
26
97
98

query I rowsort
SELECT cor0.col0 * + 58 AS col1 FROM tab0 AS cor0
----
1392
2030
5162

onlyif mysql # use DIV operator for integer division
query I rowsort label-5867
SELECT + - cor0.col0 + - 37 DIV col2 FROM tab0 AS cor0
----
-25
-72
-89

skipif mysql # not compatible
query I rowsort label-5867
SELECT + - cor0.col0 + - 37 / col2 FROM tab0 AS cor0
----
-25
-72
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5868
SELECT DISTINCT - col2 + + ( + tab1.col0 ) DIV - col1 FROM tab1
----
-102
-54
-63

skipif mysql # not compatible
query I rowsort label-5868
SELECT DISTINCT - col2 + + ( + tab1.col0 ) / - col1 FROM tab1
----
-102
-54
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-5869
SELECT ALL col2 * tab2.col1 + col2 DIV col1 AS col2 FROM tab2
----
1534
648
837

skipif mysql # not compatible
query I rowsort label-5869
SELECT ALL col2 * tab2.col1 + col2 / col1 AS col2 FROM tab2
----
1534
648
837

query I rowsort
SELECT ALL col2 + tab1.col2 * col1 * col1 + col2 FROM tab1
----
16416
36612
5814

query I rowsort
SELECT 33 + 25 * - col2 AS col1 FROM tab0 AS cor0
----
-2017
-792
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5872
SELECT 20 + cor0.col2 DIV col0 AS col0 FROM tab0 AS cor0
----
20
20
21

skipif mysql # not compatible
query I rowsort label-5872
SELECT 20 + cor0.col2 / col0 AS col0 FROM tab0 AS cor0
----
20
20
21

query I rowsort
SELECT - ( 33 ) + col0 FROM tab2 cor0
----
-26
45
46

query I rowsort
SELECT DISTINCT - - col0 + 42 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-3588
-3733
-4039

query I rowsort
SELECT - 57 * + col0 * + cor0.col1 - ( col1 ) * col0 FROM tab1 AS cor0
----
-37120
-4524
-60320

query I rowsort
SELECT ALL - col0 - - 21 AS col2 FROM tab1 AS cor0
----
-43
-59
18

query I rowsort
SELECT DISTINCT 75 * col0 * col1 + col0 FROM tab0
----
154824
254660
607514

query I rowsort
SELECT - 22 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 + + col2 * col1 + - col1 col0 FROM tab1
----
1306
1449
631

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 * - 68 * col1 col1 FROM tab1
----
-43520
-5304
-70720

onlyif mysql # use DIV operator for integer division
query I rowsort label-5881
SELECT DISTINCT ( - tab2.col2 ) * + col0 + col0 DIV 12 AS col2 FROM tab2
----
-189
-2022
-2996

skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT ( - tab2.col2 ) * + col0 + col0 / 12 AS col2 FROM tab2
----
-189
-2022
-2996

onlyif mysql # use DIV operator for integer division
query I rowsort label-5882
SELECT - - col1 DIV 39 - cor0.col0 FROM tab0 AS cor0
----
-22
-33
-87

skipif mysql # not compatible
query I rowsort label-5882
SELECT - - col1 / 39 - cor0.col0 FROM tab0 AS cor0
----
-22
-33
-87

query I rowsort
SELECT DISTINCT col0 * col2 * - col1 + ( + col1 ) * - col1 AS col0 FROM tab1 AS cor0
----
-100009
-36580
-4888

query I rowsort
SELECT ALL - - 10 * col2 + col0 AS col1 FROM tab2 AS cor0
----
277
338
459

query I rowsort
SELECT + col1 * + 50 - col1 AS col0 FROM tab0 AS cor0
----
4214
4459
4753

query I rowsort
SELECT + - col1 - + 19 AS col2 FROM tab2 AS cor0
----
-36
-50
-78

query I rowsort
SELECT + 95 * + col1 + + col1 * col2 AS col2 FROM tab1 AS cor0
----
1520
2483
3874

query I rowsort
SELECT - - col2 * + col2 * col2 FROM tab0 cor0
----
1
35937
551368

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5889
SELECT - col2 * CAST( - ( + col2 ) AS SIGNED ) FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-5889
SELECT - col2 * CAST ( - ( + col2 ) AS INTEGER ) FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-5890
SELECT ALL - col2 + ( col0 ) DIV col0 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL - col2 + ( col0 ) / col0 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT ALL col2 + 19 * col2 AS col2 FROM tab0 AS cor0
----
1640
20
660

query I rowsort
SELECT ALL - - col1 * + 50 FROM tab0 AS cor0
----
4300
4550
4850

query I rowsort
SELECT ALL - col0 * + 27 AS col2 FROM tab2 AS cor0
----
-189
-2106
-2133

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5894
SELECT - col0 + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort label-5894
SELECT - col0 + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT - cor0.col0 * + 36 FROM tab0, tab1 AS cor0
----
9 values hashing to 32295d3af4c14773cdb609573391733d

onlyif mysql # use DIV operator for integer division
query I rowsort label-5896
SELECT DISTINCT - col2 * 61 DIV - cor0.col2 FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-5896
SELECT DISTINCT - col2 * 61 / - cor0.col2 FROM tab0 AS cor0
----
61

query I rowsort
SELECT DISTINCT + - col2 + 82 AS col2 FROM tab0 AS cor0
----
0
49
81

query I rowsort
SELECT ALL + cor0.col1 * - ( - cor0.col2 ) + col1 * - col0 * cor0.col1 FROM tab2 AS cor0
----
-22185
-269984
-5890

onlyif mysql # use DIV operator for integer division
query I rowsort label-5899
SELECT + col0 DIV 1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5899
SELECT + col0 / 1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT col0 + + ( col0 ) * + cor0.col0 FROM tab0 AS cor0
----
1260
600
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5901
SELECT DISTINCT col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5901
SELECT DISTINCT col2 / - col1 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col1 * - ( - col0 ) * + col2 AS col2 FROM tab0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT - + 7 AS col1 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to 180f983bbf84f38a53d5012e5c10c628

query I rowsort
SELECT - tab2.col2 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT ALL - - col0 * - 91 FROM tab2 AS cor0
----
-637
-7098
-7189

query I rowsort
SELECT ALL - + col0 + + col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT ALL - col2 + + col0 * + cor0.col2 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT 90 * ( cor0.col1 + col1 ) AS col0 FROM tab1 AS cor0
----
1800
2340
4680

query I rowsort
SELECT 10 * cor0.col0 FROM tab0 cor0
----
240
350
890

query I rowsort
SELECT ALL + + 0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + ( - 6 ) * + col0 AS col0 FROM tab1 AS cor0
----
-18
-384
-480

query I rowsort
SELECT + col2 * ( + col0 ) AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - cor0.col1 * - 13 FROM tab0 cor0
----
1118
1183
1261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 * col0 col0 FROM tab2 cor0
----
231
2574
2607

query I rowsort
SELECT col2 * - 55 + tab1.col1 * + col2 AS col2 FROM tab1
----
-1566
-2565
-4032

query I rowsort
SELECT ALL col0 * tab2.col0 * col1 FROM tab2
----
106097
1519
358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL - 32 * + col2 + - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-1295
-871
-910

query I rowsort
SELECT ALL + - ( col0 ) * col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT cor0.col1 + - col2 * - 37 AS col0 FROM tab1 AS cor0
----
2024
2119
3565

query I rowsort
SELECT col1 + col2 + - cor0.col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + ( col2 ) * + col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + 89 * + col2 AS col1 FROM tab1 AS cor0
----
4806
5073
8544

query I rowsort
SELECT ALL + col2 * col0 + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT - 49 + col1 * col0 - tab2.col2 AS col1 FROM tab2
----
1256
141
4527

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5927
SELECT ALL - CAST( NULL AS SIGNED ) - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5927
SELECT ALL - CAST ( NULL AS INTEGER ) - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 9 + - col0 FROM tab0
----
-15
-26
-80

query I rowsort
SELECT - ( col2 ) + + col1 AS col0 FROM tab0
----
53
9
96

query I rowsort
SELECT + col1 - + col2 AS col1 FROM tab1
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + tab2.col2 col2 FROM tab2
----
52
54
76

query I rowsort
SELECT - 3 + + col2 FROM tab2 AS cor0
----
23
24
35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5933
SELECT DISTINCT + col1 * + col2 + CAST( NULL AS DECIMAL ) / 68 + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT + col1 * + col2 + CAST ( NULL AS REAL ) / 68 + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col2 AS INTEGER ) * col1 * - CAST ( col2 AS REAL ) AS col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT ALL col2 + + col0 * tab0.col2 + 86 FROM tab0
----
122
7466
911

query I rowsort
SELECT + - col2 * col2 + col1 FROM tab0 AS cor0
----
-1003
-6633
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5937
SELECT + + col1 DIV - col1 col0 FROM tab1 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5937
SELECT + + col1 / - col1 col0 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - ( + col2 ) + 77 FROM tab2 AS cor0
----
39
50
51

query I rowsort
SELECT ALL - col0 * - col2 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + + ( - cor0.col0 ) * - cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fba72e8a114fbf2ddc05893592ee7f8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5941
SELECT ( - tab1.col0 ) DIV col1 + 38 col2 FROM tab1
----
32
32
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5941
SELECT ( - tab1.col0 ) / col1 + 38 col2 FROM tab1
----
32
32
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5942
SELECT + ( tab0.col2 ) + col0 DIV - col2 col1 FROM tab0
----
-34
33
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5942
SELECT + ( tab0.col2 ) + col0 / - col2 col1 FROM tab0
----
-34
33
81

query I rowsort
SELECT col1 * - col2 * - tab0.col0 AS col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT + ( + ( + col2 ) ) * 77 + col1 AS col2 FROM tab2 AS cor0
----
2061
2110
2943

query I rowsort
SELECT ALL - - col2 - - col1 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - ( - col2 * + col2 ) AS col2 FROM tab0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 + col2 col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 56 - - col1 * - 30 col0 FROM tab1 cor0
----
-356
-446
-836

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5949
SELECT ALL - 62 + col1 * - CAST( - col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
2776
35
7400

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL - 62 + col1 * - CAST ( - col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
2776
35
7400

query I rowsort
SELECT DISTINCT - col2 * col1 * ( 16 * col2 + - col1 * col2 ) FROM tab0 AS cor0
----
45891300
6555780
7857

query I rowsort
SELECT + 31 * col2 AS col1 FROM tab2 AS cor0
----
1178
806
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5952
SELECT + col1 * - CAST( NULL AS SIGNED ) + 39 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5952
SELECT + col1 * - CAST ( NULL AS INTEGER ) + 39 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * ( col2 * col0 ) FROM tab0
----
26136
35
598436

query I rowsort
SELECT + + col2 + - ( + col0 ) AS col0 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT + col2 - 4 FROM tab0 AS cor0
----
-3
29
78

query I rowsort
SELECT ALL + col2 + + ( col2 ) AS col1 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5957
SELECT - + col2 * CAST( + col2 * col0 AS SIGNED ) + + col2 + col1 AS col1 FROM tab0 cor0
----
-26017
-598263
63

skipif mysql # not compatible
query I rowsort label-5957
SELECT - + col2 * CAST ( + col2 * col0 AS INTEGER ) + + col2 + col1 AS col1 FROM tab0 cor0
----
-26017
-598263
63

query I rowsort
SELECT - col2 * - ( - col0 ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5959
SELECT - + col0 DIV 96 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5959
SELECT - + col0 / 96 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5960
SELECT DISTINCT - + col0 DIV 47 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5960
SELECT DISTINCT - + col0 / 47 FROM tab1 cor0
----
-1
0

query I rowsort
SELECT ALL col1 * - col0 + + 46 FROM tab2 AS cor0
----
-1297
-171
-4556

query I rowsort
SELECT DISTINCT col1 + ( - col2 ) AS col2 FROM tab2
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col0 ) + cor0.col2 * + cor0.col2 + col0 col2 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-5964
SELECT + + 34 DIV col2 + + col2 AS col0 FROM tab0 cor0
----
34
35
82

skipif mysql # not compatible
query I rowsort label-5964
SELECT + + 34 / col2 + + col2 AS col0 FROM tab0 cor0
----
34
35
82

query I rowsort
SELECT - col1 * col1 - col0 AS col2 FROM tab0 cor0
----
-7420
-8370
-9444

query I rowsort
SELECT DISTINCT ( + col1 ) * + col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + + 71 + - col2 * col0 * cor0.col2 + 86 AS col0 FROM tab2 AS cor0
----
-113919
-4946
-52571

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5968
SELECT col1 + col0 * + col1 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5968
SELECT col1 + col0 * + col1 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 43 * 41 + col2 * col1 AS col1 FROM tab2 AS cor0
----
-1117
-229
-926

query I rowsort
SELECT + + 64 * - col2 + col2 AS col2 FROM tab0 AS cor0
----
-2079
-5166
-63

query I rowsort
SELECT - + 3 AS col1 FROM tab1 AS cor0
----
-3
-3
-3

query I rowsort
SELECT ( + cor1.col0 ) AS col2 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-5973
SELECT - - col1 DIV - col1 - + col2 FROM tab1 AS cor0
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-5973
SELECT - - col1 / - col1 - + col2 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT + col2 + 9 AS col0 FROM tab2 cor0
----
35
36
47

query I rowsort
SELECT DISTINCT 69 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
69

query I rowsort
SELECT ALL - 76 AS col0 FROM tab1
----
-76
-76
-76

query I rowsort
SELECT DISTINCT - 29 - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-118
-53
-64

query I rowsort
SELECT tab1.col2 * ( + col0 ) * + tab1.col2 FROM tab1
----
207936
737280
8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 * - ( col1 ) col1 FROM tab1
----
-13520
-2028
-6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col0 ) + + col0 col0 FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) * col1 + col2 col0 FROM tab0 AS cor0
----
7429
8363
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 - 47 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

onlyif mysql # use DIV operator for integer division
query I rowsort label-5983
SELECT DISTINCT + 4 + col2 DIV - col1 - 24 AS col0 FROM tab1 AS cor0
----
-22
-25
-27

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT + 4 + col2 / - col1 - 24 AS col0 FROM tab1 AS cor0
----
-22
-25
-27

query I rowsort
SELECT col1 + + cor0.col0 * + 0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT cor0.col0 + + col2 AS col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT ALL - col1 * col0 + + 62 FROM tab1 AS cor0
----
-16
-578
-978

query I rowsort
SELECT 87 + tab2.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to bc3171eda4d1f95ac12eb4ab7ce97c59

query I rowsort
SELECT + cor1.col2 FROM tab1, tab0, tab0 AS cor0, tab2 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 99 col0 FROM tab1
----
-99
-99
-99

query I rowsort
SELECT ALL ( + 32 ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT - 59 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to 2d947a91062cb6f04dae4c2cd8f99509

query I rowsort
SELECT col1 * + ( 25 ) AS col1 FROM tab0
----
2150
2275
2425

query I rowsort
SELECT DISTINCT - ( + 4 ) * - col0 FROM tab0 AS cor0
----
140
356
96

query I rowsort
SELECT + 19 + - col1 AS col0 FROM tab1 AS cor0
----
-7
6
9

query I rowsort
SELECT - 50 * 22 AS col2 FROM tab1 AS cor0
----
-1100
-1100
-1100

query I rowsort
SELECT + - ( ( + col0 ) ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - + 23 AS col0 FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT ALL + + 30 * 54 + - col0 * 69 + + 87 AS col2 FROM tab2 AS cor0
----
-3675
-3744
1224

query I rowsort
SELECT ALL + + col0 + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT col1 + 55 AS col1 FROM tab1 AS cor0
----
65
68
81

query I rowsort
SELECT ALL + col1 + 2 FROM tab2
----
19
33
61

query I rowsort
SELECT ( - col1 ) + col1 * + col0 AS col2 FROM tab0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-6003
SELECT DISTINCT - col1 DIV + 76 col0 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6003
SELECT DISTINCT - col1 / + 76 col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - 44 * col1 + + cor0.col0 FROM tab2 AS cor0
----
-1357
-2518
-669

query I rowsort
SELECT ALL - - col1 * - col0 + col1 AS col1 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL col0 + col2 * - col2 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT + 53 * + ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
1378
1431
2014

onlyif mysql # use DIV operator for integer division
query I rowsort label-6008
SELECT + cor0.col1 DIV 45 + col2 * - CAST( col1 + + col1 AS SIGNED ) FROM tab2 AS cor0
----
-1292
-1674
-3067

skipif mysql # not compatible
query I rowsort label-6008
SELECT + cor0.col1 / 45 + col2 * - CAST ( col1 + + col1 AS INTEGER ) FROM tab2 AS cor0
----
-1292
-1674
-3067

query I rowsort
SELECT DISTINCT ( 18 ) FROM tab2 AS cor0
----
18

query I rowsort
SELECT - cor0.col2 * col2 * - col2 FROM tab0 cor0
----
1
35937
551368

onlyif mysql # use DIV operator for integer division
query I rowsort label-6011
SELECT DISTINCT 13 DIV + col2 col0 FROM tab0 AS cor0
----
0
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6011
SELECT DISTINCT 13 / + col2 col0 FROM tab0 AS cor0
----
0
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col2 * + 41 + + ( - col0 ) * + 60 * 57 col0 FROM tab0 cor0
----
-119624
-300929
-80703

query I rowsort
SELECT DISTINCT - + col0 * col2 + col0 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT + 86 + col0 AS col1 FROM tab2 AS cor0
----
164
165
93

query I rowsort
SELECT ALL + col1 + cor0.col2 - + col1 * 33 AS col1 FROM tab2 AS cor0
----
-1862
-506
-965

query I rowsort
SELECT + col0 * col1 + 70 AS col1 FROM tab2 cor0
----
1413
287
4672

query I rowsort
SELECT ALL ( ( tab0.col0 ) ) * col1 + col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + cor0.col1 + col2 * col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL 83 * - col2 FROM tab0 AS cor0
----
-2739
-6806
-83

query I rowsort
SELECT col2 * cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT - + 13 AS col1 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT ALL - + col0 + col2 AS col2 FROM tab0 cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - col0 col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT 26 + col1 AS col0 FROM tab2 AS cor0
----
43
57
85

query I rowsort
SELECT - col0 * 56 * ( cor0.col0 + + cor0.col0 * col1 ) FROM tab2 AS cor0
----
-20442240
-6290928
-87808

query I rowsort
SELECT ALL col1 * col0 + + ( + col0 ) FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + + col0 + 60 * col0 FROM tab2 AS cor0
----
427
4758
4819

query I rowsort
SELECT col1 * col2 * + col2 + + col2 AS col2 FROM tab1 AS cor0
----
119904
32547
75870

query I rowsort
SELECT ALL - col0 * - ( - col0 ) AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL + col0 * ( col2 ) FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6031
SELECT - col1 + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6031
SELECT - col1 + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + col2 * 86 FROM tab1
----
107328
120744
49020

onlyif mysql # use DIV operator for integer division
query I rowsort label-6033
SELECT + col0 DIV + ( col2 ) + + col1 AS col2 FROM tab1 AS cor0
----
11
13
26

skipif mysql # not compatible
query I rowsort label-6033
SELECT + col0 / + ( col2 ) + + col1 AS col2 FROM tab1 AS cor0
----
11
13
26

query I rowsort
SELECT + col1 - + col2 FROM tab1 cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6035
SELECT ALL - cor0.col1 DIV cor0.col0 col2 FROM tab1 AS cor0
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL - cor0.col1 / cor0.col0 col2 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT ALL + col2 * cor0.col2 * 6 FROM tab1 AS cor0
----
17496
19494
55296

query I rowsort
SELECT col2 * 98 + + 73 FROM tab2 AS cor0
----
2621
2719
3797

query I rowsort
SELECT - 83 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

query I rowsort
SELECT + col0 * cor0.col0 - + 13 AS col2 FROM tab0 AS cor0
----
1212
563
7908

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6040
SELECT DISTINCT + - col0 + - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-137
-38
-96

skipif mysql # not compatible
query I rowsort label-6040
SELECT DISTINCT + - col0 + - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL col1 * col0 + col1 * + col0 AS col1 FROM tab2 AS cor0
----
2686
434
9204

query I rowsort
SELECT ALL - col2 + - 18 FROM tab0 AS cor0
----
-100
-19
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - ( + col2 ) col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT col0 * col2 + 94 FROM tab1 AS cor0
----
256
3742
7774

query I rowsort
SELECT + col2 - + col2 * + col1 FROM tab1 cor0
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6046
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 78 + - col1 * - col0 FROM tab0 AS cor0
----
2142
3473
8177

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6048
SELECT - CAST( NULL AS DECIMAL ) * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6048
SELECT - CAST ( NULL AS REAL ) * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6049
SELECT + CAST( NULL AS SIGNED ) + + cor2.col1 AS col1 FROM tab0, tab2 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-6049
SELECT + CAST ( NULL AS INTEGER ) + + cor2.col1 AS col1 FROM tab0, tab2 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT col2 * + 66 AS col1 FROM tab0 AS cor0
----
2178
5412
66

query I rowsort
SELECT ALL - tab2.col1 - col0 * + 23 * col1 AS col2 FROM tab2
----
-105905
-30906
-5022

query I rowsort
SELECT - - col2 * - col1 + + 41 AS col0 FROM tab1 AS cor0
----
-1207
-1363
-529

query I rowsort
SELECT DISTINCT - tab2.col1 * tab2.col1 + 1 AS col0 FROM tab2
----
-288
-3480
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-6054
SELECT - - col0 * + ( 28 ) + cor0.col0 DIV - 27 AS col2 FROM tab0 AS cor0
----
2489
672
979

skipif mysql # not compatible
query I rowsort label-6054
SELECT - - col0 * + ( 28 ) + cor0.col0 / - 27 AS col2 FROM tab0 AS cor0
----
2489
672
979

query I rowsort
SELECT - col0 * - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-17
4086
6387

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6056
SELECT + + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6056
SELECT + + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 + + 66 FROM tab1, tab2 AS cor0
----
9 values hashing to de8e584ed7db84afe472177eec6b9fb3

query I rowsort
SELECT DISTINCT 30 * col1 + col2 FROM tab0
----
2613
2812
2911

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 22 * 74 FROM tab1, tab2 AS cor0
----
9 values hashing to 1e13148e8e05f9d52fccb8acdee684b6

query I rowsort
SELECT ALL - col0 + 88 * 27 FROM tab1 AS cor0
----
2296
2312
2373

onlyif mysql # use DIV operator for integer division
query I rowsort label-6062
SELECT + + col2 DIV - ( + col1 ) FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6062
SELECT + + col2 / - ( + col1 ) FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT - col1 * 7 + - cor0.col0 FROM tab1 AS cor0
----
-134
-171
-185

query I rowsort
SELECT ALL cor0.col2 * col2 - - col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT - col0 * col2 AS col1 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + + col2 + + 21 * col0 FROM tab2 AS cor0
----
1664
1697
174

query I rowsort
SELECT ALL - + cor0.col0 + + col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - - col1 * + ( col1 ) FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT DISTINCT 59 * col1 AS col0 FROM tab0 AS cor0
----
5074
5369
5723

query I rowsort
SELECT ALL - col0 * 17 - + col0 FROM tab0 cor0
----
-1602
-432
-630

query I rowsort
SELECT - + col0 + col0 * + col1 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL - - cor0.col2 + + col0 * col0 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6073
SELECT - CAST( 33 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
-50
-64
-92

skipif mysql # not compatible
query I rowsort label-6073
SELECT - CAST ( 33 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
-50
-64
-92

query I rowsort
SELECT tab0.col2 * + col2 * + col1 AS col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT ALL + col1 + + 25 + col1 AS col1 FROM tab2 AS cor0
----
143
59
87

query I rowsort
SELECT ( 30 ) + - col1 FROM tab0 AS cor0
----
-56
-61
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-6077
SELECT ALL col0 DIV + col1 - cor0.col1 AS col2 FROM tab1 AS cor0
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL col0 / + col1 - cor0.col1 AS col2 FROM tab1 AS cor0
----
-26
-4
-7

query I rowsort
SELECT ALL - + col2 + - col0 - - col1 AS col2 FROM tab0 AS cor0
----
-80
29
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6079
SELECT DISTINCT - + col0 + + col1 - CAST( cor0.col1 AS SIGNED ) * + col1 * col0 FROM tab1 AS cor0
----
-13587
-2005
-6454

skipif mysql # not compatible
query I rowsort label-6079
SELECT DISTINCT - + col0 + + col1 - CAST ( cor0.col1 AS INTEGER ) * + col1 * col0 FROM tab1 AS cor0
----
-13587
-2005
-6454

onlyif mysql # use DIV operator for integer division
query I rowsort label-6080
SELECT - col1 * col0 + col1 DIV - col2 FROM tab0 AS cor0
----
-2066
-3492
-8100

skipif mysql # not compatible
query I rowsort label-6080
SELECT - col1 * col0 + col1 / - col2 FROM tab0 AS cor0
----
-2066
-3492
-8100

query I rowsort
SELECT + col1 * + col2 - - 67 AS col0 FROM tab0 cor0
----
164
2905
7529

query I rowsort
SELECT col0 * col1 + col1 * - 90 AS col1 FROM tab1 AS cor0
----
-130
-2262
-260

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6083
SELECT DISTINCT + 40 * col1 + CAST( NULL AS SIGNED ) * 70 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6083
SELECT DISTINCT + 40 * col1 + CAST ( NULL AS INTEGER ) * 70 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 30 * col0 AS col2 FROM tab1 AS cor0
----
1920
2400
90

query I rowsort
SELECT - 60 * + col2 + - ( + ( col2 ) ) FROM tab2 AS cor0
----
-1586
-1647
-2318

query I rowsort
SELECT DISTINCT - - 88 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
88

query I rowsort
SELECT col1 + - cor0.col2 * + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + + 48 + cor0.col0 AS col0 FROM tab1 AS cor0
----
112
128
51

query I rowsort
SELECT + + col1 * + cor0.col2 + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-6090
SELECT + - cor0.col1 + - 46 DIV - col1 FROM tab1 AS cor0
----
-10
-25
-6

skipif mysql # not compatible
query I rowsort label-6090
SELECT + - cor0.col1 + - 46 / - col1 FROM tab1 AS cor0
----
-10
-25
-6

query I rowsort
SELECT - col2 * 5 FROM tab2 cor0
----
-130
-135
-190

onlyif mysql # use DIV operator for integer division
query I rowsort label-6092
SELECT ALL col1 DIV 25 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL col1 / 25 AS col2 FROM tab1
----
0
0
1

query I rowsort
SELECT - ( + col2 ) AS col1 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT + col0 * 23 AS col0 FROM tab2 AS cor0
----
161
1794
1817

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6095
SELECT - CAST( NULL AS SIGNED ) + - col0 * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6095
SELECT - CAST ( NULL AS INTEGER ) + - col0 * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - tab1.col1 * + 28 FROM tab1
----
-280
-364
-728

onlyif mysql # use DIV operator for integer division
query I rowsort label-6097
SELECT + ( - col1 ) DIV - 27 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6097
SELECT + ( - col1 ) / - 27 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6098
SELECT - CAST( tab1.col1 AS SIGNED ) FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6098
SELECT - CAST ( tab1.col1 AS INTEGER ) FROM tab1
----
-10
-13
-26

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT col0 + + col1 + + col0 AS col1 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT + col1 + + cor0.col0 + ( col0 + col0 ) * cor0.col1 FROM tab0 AS cor0
----
16378
4238
6922

query I rowsort
SELECT DISTINCT + - cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * ( 35 ) + - col1 col2 FROM tab0 cor0
----
-1322
-3206
-926

onlyif mysql # use DIV operator for integer division
query I rowsort label-6104
SELECT DISTINCT + cor0.col2 + col2 DIV + 93 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT + cor0.col2 + col2 / + 93 AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + col1 * col2 + 95 * col0 AS col1 FROM tab1 AS cor0
----
1689
6650
8848

query I rowsort
SELECT ALL - col2 + 26 * - ( col1 * col0 ) FROM tab0 AS cor0
----
-210656
-53697
-88271

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + col0 col2 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT - cor0.col2 * col0 + - 75 + col2 * col2 * col1 AS col1 FROM tab0 AS cor0
----
-13
604511
92787

query I rowsort
SELECT - - col1 * ( - col0 ) + + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 50 col0 FROM tab1 AS cor0
----
-150
-3200
-4000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6111
SELECT - cor0.col0 + CAST( - 36 AS SIGNED ) + - col2 col0 FROM tab1 cor0
----
-157
-212
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6111
SELECT - cor0.col0 + CAST ( - 36 AS INTEGER ) + - col2 col0 FROM tab1 cor0
----
-157
-212
-93

query I rowsort
SELECT - - cor0.col1 * + ( - 87 ) AS col2 FROM tab0 AS cor0
----
-7482
-7917
-8439

query I rowsort
SELECT DISTINCT + col2 * + 6 FROM tab2 AS cor0
----
156
162
228

query I rowsort
SELECT ALL col0 * 32 + + col2 * col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
1554
2675
3904

query I rowsort
SELECT - cor0.col0 * - ( - col2 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col0 * - ( + col2 ) * col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT cor1.col2 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + 47 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1222
470
611

query I rowsort
SELECT DISTINCT - + col1 + ( cor0.col1 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col0 * - ( - ( col1 ) ) + tab2.col2 AS col2 FROM tab2
----
-1305
-190
-4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6121
SELECT ALL col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL col0 * CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 17 ) col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) - col2 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) + col2 AS col0 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6125
SELECT col1 * col1 - CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6125
SELECT col1 * col1 - CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - ( cor0.col1 ) + col1 * + col0 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-6127
SELECT DISTINCT 87 + 36 DIV cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-6127
SELECT DISTINCT 87 + 36 / cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
87

query I rowsort
SELECT + 16 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0 CROSS JOIN tab2, tab1, tab0 AS cor1
----
3645 values hashing to b225d3765f33551c12574f545c8c91eb

query I rowsort
SELECT ALL - - 57 * col0 FROM tab2 AS cor0
----
399
4446
4503

query I rowsort
SELECT DISTINCT - ( - col0 ) * ( col2 ) + col0 + col1 * + tab1.col0 FROM tab1
----
243
4352
8800

query I rowsort
SELECT ALL tab2.col0 * col0 + 67 AS col2 FROM tab2
----
116
6151
6308

query I rowsort
SELECT - col2 + col0 + 34 AS col2 FROM tab1 AS cor0
----
-17
18
41

query I rowsort
SELECT - col0 * col2 - - col2 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT 56 * col2 + - col0 * + 54 FROM tab2
----
-2138
-2756
1134

query I rowsort
SELECT DISTINCT 75 * + col0 + - col2 AS col2 FROM tab1
----
171
4743
5904

query I rowsort
SELECT col2 * col1 - + cor0.col0 * - col2 * + col1 AS col1 FROM tab0 AS cor0
----
3492
671580
70950

query I rowsort
SELECT ALL 58 * col0 + + col2 FROM tab2
----
433
4550
4620

query I rowsort
SELECT - tab1.col0 + col0 + - col0 * + col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT + + cor0.col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 + col2 col0 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT ALL col2 * - col1 + col1 + + col2 AS col0 FROM tab1
----
-1139
-1324
-503

onlyif mysql # use DIV operator for integer division
query I rowsort label-6143
SELECT + col2 + + tab1.col1 DIV + col0 AS col1 FROM tab1
----
57
62
96

skipif mysql # not compatible
query I rowsort label-6143
SELECT + col2 + + tab1.col1 / + col0 AS col1 FROM tab1
----
57
62
96

query I rowsort
SELECT DISTINCT cor0.col2 * col2 + cor0.col2 FROM tab2 AS cor0
----
1482
702
756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + cor0.col2 + - cor0.col0 col0 FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT ( ( + col2 ) * + col0 + - col1 ) AS col1 FROM tab0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-6147
SELECT DISTINCT cor0.col2 + - col2 DIV + col2 col2 FROM tab1 AS cor0
----
53
56
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT cor0.col2 + - col2 / + col2 col2 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT DISTINCT + ( 93 ) + - col0 FROM tab1 AS cor0
----
13
29
90

query I rowsort
SELECT ALL - col2 * cor0.col0 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6150
SELECT DISTINCT col0 * - col2 * col1 + col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-3430
-664119
-68112

skipif mysql # not compatible
query I rowsort label-6150
SELECT DISTINCT col0 * - col2 * col1 + col0 / - col2 AS col2 FROM tab0 AS cor0
----
-3430
-664119
-68112

query I rowsort
SELECT + 14 FROM tab0, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT DISTINCT + col0 * - tab2.col2 FROM tab2
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 * + col0 * cor0.col0 col2 FROM tab1 AS cor0
----
262208
30
512080

query I rowsort
SELECT DISTINCT col2 + col1 * col0 AS col1 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-6155
SELECT ALL 16 + col2 + col0 DIV + col2 FROM tab0 AS cor0
----
49
52
99

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL 16 + col2 + col0 / + col2 FROM tab0 AS cor0
----
49
52
99

query I rowsort
SELECT ALL + cor0.col1 + col1 * + col1 * + col0 FROM tab2 AS cor0
----
22848
271577
6758

query I rowsort
SELECT ALL + col1 * col1 * col2 + col1 AS col0 FROM tab0 cor0
----
244154
679133
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 60 - - col0 * col2 col2 FROM tab1 AS cor0
----
102
3588
7620

query I rowsort
SELECT 8 * - col0 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-278
-377
-803

query I rowsort
SELECT + 28 * col1 * + tab1.col2 + col0 FROM tab1
----
16024
35024
39315

query I rowsort
SELECT DISTINCT - 29 * - tab0.col0 + + col0 * + col0 FROM tab0
----
10502
1272
2240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) * col1 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + + 28 AS col1 FROM tab0 cor0
----
28
28
28

query I rowsort
SELECT ALL col0 * - col0 * + cor0.col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT ALL col1 * cor0.col1 + + col2 AS col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT + + col1 * col1 - + cor0.col0 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT DISTINCT + col0 - col0 * col0 AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT ALL 56 * + col2 FROM tab1 cor0
----
3024
3192
5376

query I rowsort
SELECT DISTINCT + col0 * col1 + + col2 * + col0 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT 17 * col1 * cor0.col0 FROM tab1 AS cor0
----
10880
1326
17680

query I rowsort
SELECT ALL - 86 * col2 + col0 FROM tab0 AS cor0
----
-2814
-51
-6963

query I rowsort
SELECT + col1 + + col2 * + cor0.col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT + 97 * 33 AS col2 FROM tab2
----
3201
3201
3201

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6174
SELECT + CAST( NULL AS SIGNED ) - - 56 / + cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6174
SELECT + CAST ( NULL AS INTEGER ) - - 56 / + cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 + ( + col1 ) col1 FROM tab1 AS cor0
----
76
79
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-6176
SELECT ( col0 ) DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6176
SELECT ( col0 ) / + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6177
SELECT - - 60 DIV 77 col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6177
SELECT - - 60 / 77 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col2 * - cor0.col0 + 42 FROM tab0 AS cor0
----
-7256
-750
7

query I rowsort
SELECT ALL 47 * col1 + + col1 FROM tab2
----
1488
2832
816

query I rowsort
SELECT + 56 * ( + col2 ) FROM tab0
----
1848
4592
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-6181
SELECT col1 + col1 DIV - 20 AS col2 FROM tab2 cor0
----
17
30
57

skipif mysql # not compatible
query I rowsort label-6181
SELECT col1 + col1 / - 20 AS col2 FROM tab2 cor0
----
17
30
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6182
SELECT + - col2 + + CAST( col0 AS SIGNED ) FROM tab1 cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-6182
SELECT + - col2 + + CAST ( col0 AS INTEGER ) FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT 29 * + col1 * 18 AS col1 FROM tab1
----
13572
5220
6786

onlyif mysql # use DIV operator for integer division
query I rowsort label-6184
SELECT + col1 * tab2.col2 DIV 76 + - ( - col2 + col0 ) FROM tab2
----
-32
-33
31

skipif mysql # not compatible
query I rowsort label-6184
SELECT + col1 * tab2.col2 / 76 + - ( - col2 + col0 ) FROM tab2
----
-32
-33
31

query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT - ( + cor0.col0 * tab2.col2 ) FROM tab2, tab0 cor0
----
9 values hashing to f44e9f422bf83873be9594c18a0b2fe0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6187
SELECT DISTINCT + col2 / - CAST( NULL AS SIGNED ) + 65 * + col1 * col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6187
SELECT DISTINCT + col2 / - CAST ( NULL AS INTEGER ) + 65 * + col1 * col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col0 + col0 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 52 FROM tab1, tab1 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT ALL col0 + + 53 * - col0 FROM tab1 AS cor0
----
-156
-3328
-4160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 43 col0 FROM tab2 cor0
----
102
60
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6192
SELECT DISTINCT + + 73 * ( - col0 * CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6192
SELECT DISTINCT + + 73 * ( - col0 * CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 34 + col1 + col1 * col2 col2 FROM tab2 AS cor0
----
1627
697
902

query I rowsort
SELECT ALL ( - col0 ) * col1 + + cor0.col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT - ( cor0.col2 ) AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT + col0 + + 74 * - col1 FROM tab0
----
-6340
-6645
-7143

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - col1 AS REAL ) - col2 * - col1 AS col2 FROM tab2
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-6198
SELECT ALL ( tab1.col0 ) * col2 DIV + col2 - - ( tab1.col2 * + tab1.col2 ) AS col2 FROM tab1
----
2919
3313
9296

skipif mysql # not compatible
query I rowsort label-6198
SELECT ALL ( tab1.col0 ) * col2 / + col2 - - ( tab1.col2 * + tab1.col2 ) AS col2 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT - 89 + col0 FROM tab1 cor0
----
-25
-86
-9

query I rowsort
SELECT + col2 + - ( col0 ) * ( - ( col1 ) ) FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL + + 7 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1350
224
4609

onlyif mysql # use DIV operator for integer division
query I rowsort label-6202
SELECT + col1 DIV col0 + cor0.col1 AS col1 FROM tab1 cor0
----
10
13
34

skipif mysql # not compatible
query I rowsort label-6202
SELECT + col1 / col0 + cor0.col1 AS col1 FROM tab1 cor0
----
10
13
34

query I rowsort
SELECT + col1 * + 51 FROM tab0 AS cor0
----
4386
4641
4947

query I rowsort
SELECT - cor0.col0 FROM tab2, tab0 cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to 68438270ef4dcbfd48dcdbe0b98336f5

query I rowsort
SELECT - 34 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT - 19 + + col0 * col2 * - col1 AS col0 FROM tab0 AS cor0
----
-3414
-664137
-68131

onlyif mysql # use DIV operator for integer division
query I rowsort label-6207
SELECT - col0 DIV col1 + - col0 * col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-6207
SELECT - col0 / col1 + - col0 * col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 59 * cor0.col0 col0 FROM tab1 AS cor0
----
177
3776
4720

query I rowsort
SELECT ALL - + col0 - col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT 76 - col0 AS col2 FROM tab0 cor0
----
-13
41
52

query I rowsort
SELECT DISTINCT + - col1 * - col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + + col0 * + col1 + + 14 * - col0 * cor0.col1 FROM tab0 cor0
----
-105287
-26832
-44135

query I rowsort
SELECT ALL - col1 + - ( ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6214
SELECT DISTINCT col0 * ( - 32 ) DIV col1 FROM tab0 AS cor0
----
-11
-31
-8

skipif mysql # not compatible
query I rowsort label-6214
SELECT DISTINCT col0 * ( - 32 ) / col1 FROM tab0 AS cor0
----
-11
-31
-8

query I rowsort
SELECT + cor0.col1 * 95 * - col1 FROM tab1 AS cor0
----
-16055
-64220
-9500

query I rowsort
SELECT DISTINCT + col1 * - 81 AS col2 FROM tab1 cor0
----
-1053
-2106
-810

query I rowsort
SELECT - col0 * - ( col1 ) * - col1 AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT col1 * - 81 FROM tab0 AS cor0
----
-6966
-7371
-7857

query I rowsort
SELECT + col0 * + 85 AS col1 FROM tab2 AS cor0
----
595
6630
6715

query I rowsort
SELECT DISTINCT col0 * 49 * - col1 FROM tab1
----
-31360
-3822
-50960

query I rowsort
SELECT - col1 + + 3 * tab2.col1 * + 94 AS col0 FROM tab2
----
16579
4777
8711

query I rowsort
SELECT ALL - col0 + - col1 + + col2 AS col2 FROM tab0 cor0
----
-131
-77
-98

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2 cor1, tab2, tab2 AS cor2
----
3645 values hashing to 677ef6b86493a7e48d2f6a3cfd7eea4c

query I rowsort
SELECT ALL col1 + + col1 * col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 col2 FROM tab2 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col1 AS REAL ) * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - 30 FROM tab1, tab1 AS cor0
----
-30

query I rowsort
SELECT - ( + 82 ) * + col0 AS col1 FROM tab0 AS cor0
----
-1968
-2870
-7298

query I rowsort
SELECT ALL + ( col0 ) * + col2 AS col2 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-6230
SELECT DISTINCT + col2 + col2 DIV cor0.col0 + + col0 * + cor0.col2 FROM tab2 AS cor0
----
2054
219
3040

skipif mysql # not compatible
query I rowsort label-6230
SELECT DISTINCT + col2 + col2 / cor0.col0 + + col0 * + cor0.col2 FROM tab2 AS cor0
----
2054
219
3040

query I rowsort
SELECT - 77 * - cor0.col2 - 20 AS col1 FROM tab1 AS cor0
----
4138
4369
7372

query I rowsort
SELECT DISTINCT - col2 * + col1 * col2 AS col0 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT + + 91 FROM tab1 AS cor0
----
91

query I rowsort
SELECT 75 * col2 + + 7 FROM tab0 AS cor0
----
2482
6157
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6235
SELECT col1 DIV 78 col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6235
SELECT col1 / 78 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 + col1 - col2 AS col0 FROM tab2 AS cor0
----
-100
-3
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 * col2 col0 FROM tab0 AS cor0
----
1650
4100
50

query I rowsort
SELECT - col0 - - cor0.col2 AS col0 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL 7 AS col1 FROM tab1 cor0
----
7
7
7

query I rowsort
SELECT DISTINCT col0 + - col1 * - 21 AS col2 FROM tab1 AS cor0
----
274
353
549

query I rowsort
SELECT ALL - 20 - ( - col0 ) AS col1 FROM tab0
----
15
4
69

query I rowsort
SELECT - 22 + tab0.col2 AS col1 FROM tab0
----
-21
11
60

query I rowsort
SELECT - 81 AS col2 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to bab7cb237ee73283089388c330f59598

onlyif mysql # use DIV operator for integer division
query I rowsort label-6244
SELECT ALL + col1 DIV + tab0.col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL + col1 / + tab0.col0 FROM tab0
----
1
2
3

query I rowsort
SELECT - ( + cor0.col2 ) * 13 AS col2 FROM tab1 AS cor0
----
-1248
-702
-741

query I rowsort
SELECT DISTINCT - + cor0.col0 * + col1 + - col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT + col0 + - col0 * + col0 * col2 FROM tab0 AS cor0
----
-1190
-18984
-649433

query I rowsort
SELECT ALL - ( col2 ) + + cor0.col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL cor0.col2 * col2 + 6 * col0 + - cor0.col1 FROM tab0 AS cor0
----
114
1147
7167

query I rowsort
SELECT DISTINCT - col0 + + col0 * 34 FROM tab1
----
2112
2640
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-6251
SELECT - tab2.col2 DIV col0 AS col1 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6251
SELECT - tab2.col2 / col0 AS col1 FROM tab2
----
-3
0
0

query I rowsort
SELECT DISTINCT - col2 + - col2 + - 45 FROM tab1
----
-153
-159
-237

query I rowsort
SELECT + col0 * - col1 + cor0.col1 + col0 * + col0 AS col2 FROM tab2 AS cor0
----
-137
1541
4915

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 25 col1 FROM tab0 AS cor0
----
-2050
-25
-825

query I rowsort
SELECT ALL - 67 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

query I rowsort
SELECT tab0.col1 + col2 * + col2 AS col0 FROM tab0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - cor0.col2 + 44 * cor0.col0 * col1 col2 FROM tab0 AS cor0
----
149283
348894
87978

onlyif mysql # use DIV operator for integer division
query I rowsort label-6258
SELECT ( col0 ) DIV ( col1 ) FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-6258
SELECT ( col0 ) / ( col1 ) FROM tab2
----
0
1
4

query I rowsort
SELECT + 97 * col2 AS col2 FROM tab0
----
3201
7954
97

query I rowsort
SELECT DISTINCT 79 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6261
SELECT ALL + 53 * cor0.col2 * + col1 + + ( col0 ) DIV col0 AS col1 FROM tab2 AS cor0
----
34239
44362
81303

skipif mysql # not compatible
query I rowsort label-6261
SELECT ALL + 53 * cor0.col2 * + col1 + + ( col0 ) / col0 AS col1 FROM tab2 AS cor0
----
34239
44362
81303

query I rowsort
SELECT DISTINCT + ( col0 ) * + col2 + + col0 * - col2 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col2 * 38 FROM tab1 AS cor0
----
2052
2166
3648

query I rowsort
SELECT ALL + ( - col1 ) + col0 + col0 FROM tab1 AS cor0
----
-20
118
147

query I rowsort
SELECT + col2 * - 26 - col0 AS col0 FROM tab2
----
-1067
-709
-754

query I rowsort
SELECT DISTINCT tab0.col1 * 12 + - ( col2 ) FROM tab0
----
1010
1163
999

query I rowsort
SELECT ALL - col0 * col2 + - col1 FROM tab1
----
-188
-3658
-7693

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1, tab0 AS cor1
----
3645 values hashing to 5d94dfd9164033b5a92f743be8139ecc

query I rowsort
SELECT ALL 37 * - ( - col2 * - col0 ) + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-134912
-284080
-5991

query I rowsort
SELECT ALL - 34 * col2 + col1 * + ( col1 ) + + col1 AS col1 FROM tab2 AS cor0
----
-986
2656
74

query I rowsort
SELECT + col2 * 48 FROM tab1 AS cor0
----
2592
2736
4608

query I rowsort
SELECT ALL + col0 + 11 FROM tab1 AS cor0
----
14
75
91

query I rowsort
SELECT DISTINCT - 11 + + cor0.col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
56
69
98

query I rowsort
SELECT DISTINCT + 33 * col2 + col1 AS col0 FROM tab2 AS cor0
----
1271
917
922

query I rowsort
SELECT ALL - 93 - col1 AS col1 FROM tab1 cor0
----
-103
-106
-119

query I rowsort
SELECT ALL + col2 * 44 + + col2 FROM tab1 AS cor0
----
2430
2565
4320

query I rowsort
SELECT DISTINCT + col0 * + tab0.col1 FROM tab0 WHERE col0 * col2 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 <> NULL
----

query I rowsort
SELECT DISTINCT col2 + col0 AS col1 FROM tab2 WHERE NULL NOT BETWEEN col1 AND ( NULL )
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT - col2 * - col2 = + col0 + col2
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6281
SELECT ALL - col2 DIV - col1 + - col1 FROM tab1
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL - col2 / - col1 + - col1 FROM tab1
----
-24
-5
-6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT IN ( - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - cor0.col2 AND NULL
----

query I rowsort
SELECT + col0 * col2 * - col2 + col1 AS col0 FROM tab1
----
-207926
-737267
-8722

onlyif mysql # use DIV operator for integer division
query I rowsort label-6285
SELECT DISTINCT - col2 * col2 DIV tab0.col1 FROM tab0
----
-12
-73
0

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT - col2 * col2 / tab0.col1 FROM tab0
----
-12
-73
0

query III rowsort
SELECT * FROM tab0 WHERE + col2 - - col2 < ( col2 - col1 * col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6287
SELECT DISTINCT col2 DIV tab2.col0 AS col1 FROM tab2
----
0
3

skipif mysql # not compatible
query I rowsort label-6287
SELECT DISTINCT col2 / tab2.col0 AS col1 FROM tab2
----
0
3

query III rowsort
SELECT * FROM tab0 WHERE col1 - col0 * col0 <> NULL
----

query I rowsort
SELECT col1 * col0 + - col0 + col1 FROM tab1
----
101
586
973

query I rowsort
SELECT ALL + col1 + col1 - + col1 * tab2.col1 * + col1 FROM tab2
----
-205261
-29729
-4879

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 NOT IN ( col2 + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN col2 AND col2 * col2 + col1 / - col1 + col1
----

query I rowsort
SELECT + col1 + tab2.col1 + + col1 FROM tab2
----
177
51
93

query I rowsort
SELECT DISTINCT col1 * col1 + col2 - - col1 * col2 * + col1 AS col2 FROM tab2
----
11309
26935
94013

query I rowsort
SELECT ALL col1 * + tab0.col1 * col1 FROM tab0
----
636056
753571
912673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 * - col0 col1 FROM tab0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-6297
SELECT + col1 DIV - col2 - - col2 * - col0 FROM tab0
----
-132
-7299
-794

skipif mysql # not compatible
query I rowsort label-6297
SELECT + col1 / - col2 - - col2 * - col0 FROM tab0
----
-132
-7299
-794

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6299
SELECT DISTINCT - col1 DIV - col0 FROM tab1 cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT - col1 / - col0 FROM tab1 cor0
----
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6300
SELECT col1 DIV - cor0.col1 col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6300
SELECT col1 / - cor0.col1 col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col0 * + col1 * + col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT + col2 + col1 + col2 * - col0 AS col2 FROM tab2
----
-131
-1943
-2947

query I rowsort
SELECT - - col2 + + col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-6304
SELECT + col1 + - col0 DIV + cor0.col1 FROM tab2 cor0
----
13
31
58

skipif mysql # not compatible
query I rowsort label-6304
SELECT + col1 + - col0 / + cor0.col1 FROM tab2 cor0
----
13
31
58

query I rowsort
SELECT - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + col0 * - col2
----

query I rowsort
SELECT DISTINCT col2 + col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) BETWEEN NULL AND + col2 / - col2 + tab2.col2
----

query I rowsort
SELECT col2 * tab1.col1 FROM tab1 WHERE NOT NULL IN ( - col1 * - tab1.col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6310
SELECT ALL - tab0.col0 DIV tab0.col2 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL - tab0.col0 / tab0.col2 FROM tab0
----
-1
-35
0

query I rowsort
SELECT col0 / + col0 - col0 FROM tab2 WHERE ( NULL ) <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * + 49 col1 FROM tab2 cor0
----
1274
1323
1862

query I rowsort
SELECT ALL - col1 + + 70 FROM tab0 cor0
----
-16
-21
-27

query I rowsort
SELECT + col2 * 79 FROM tab2 AS cor0
----
2054
2133
3002

skipif mysql # not compatible
query I rowsort
SELECT col2 * cor0.col0 + + ( - col2 ) * + CAST ( 78 AS REAL ) * - cor0.col2 FROM tab2 cor0
----
115634
54756
57051

onlyif mysql # use DIV operator for integer division
query I rowsort label-6316
SELECT DISTINCT 90 DIV col1 FROM tab1
----
3
6
9

skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT 90 / col1 FROM tab1
----
3
6
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 - col2 col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT col0 * - 99 FROM tab1 cor0
----
-297
-6336
-7920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6319
SELECT - - col2 * CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-6319
SELECT - - col2 * CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1248
1404
570

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to fa0488bdae83f58c7ffa92505e928570

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 ) <> col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT + - cor0.col2 + + col1 * + col1 AS col1 FROM tab1 AS cor0
----
43
622
73

query I rowsort
SELECT DISTINCT + col1 * + col2 + + col1 * col2 AS col1 FROM tab0
----
14924
194
5676

query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT BETWEEN - col1 AND col0 - - col1
----
78
59
26
79
17
38

query I rowsort
SELECT tab0.col2 + col0 * col0 + + col0 FROM tab0
----
1261
633
8092

query I rowsort
SELECT col0 + col1 * tab1.col0 AS col0 FROM tab1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL col0 * col0 AS col1 FROM tab2 WHERE NULL <> col0 + col1
----

query I rowsort
SELECT DISTINCT + col1 - col2 * + col2 FROM tab2
----
-1427
-617
-698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6329
SELECT + col1 * - col1 * col1 + + col2 / col2 + CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6329
SELECT + col1 * - col1 * col1 + + col2 / col2 + CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * col1 col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - ( 7 ) AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

query I rowsort
SELECT DISTINCT tab2.col1 * + tab2.col2 FROM tab2, tab0, tab1 AS cor0
----
1534
646
837

query I rowsort
SELECT col1 * col1 * - col2 + + 99 FROM tab1 AS cor0
----
-16125
-36405
-5601

query I rowsort
SELECT col2 * - col0 + col2 FROM tab0 cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL + + 25 * 76 FROM tab1 AS cor0
----
1900
1900
1900

query I rowsort
SELECT + + 4 - cor0.col0 AS col0 FROM tab2 cor0
----
-3
-74
-75

query I rowsort
SELECT DISTINCT + 57 + - col0 * + col1 FROM tab2 AS cor0
----
-1286
-160
-4545

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col2 * col1 * cor0.col0 col2 FROM tab0 cor0
----
3394
664036
68079

query I rowsort
SELECT DISTINCT - - col1 * - ( - cor0.col1 ) FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT + ( 50 ) * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-2700
-2850
-4800

query I rowsort
SELECT ALL + ( cor0.col1 ) * col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6342
SELECT DISTINCT - ( cor0.col2 ) DIV + col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT - ( cor0.col2 ) / + col0 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT ALL - 16 FROM tab1 cor0
----
-16
-16
-16

onlyif mysql # use DIV operator for integer division
query I rowsort label-6344
SELECT - + col0 + + col1 + - col1 DIV + col1 FROM tab0 AS cor0
----
1
61
61

skipif mysql # not compatible
query I rowsort label-6344
SELECT - + col0 + + col1 + - col1 / + col1 FROM tab0 AS cor0
----
1
61
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6345
SELECT DISTINCT CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6345
SELECT DISTINCT CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + col1 + - col0 * col2 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL - 54 + - col2 FROM tab0 cor0
----
-136
-55
-87

query I rowsort
SELECT DISTINCT + ( col2 ) + col0 * + 83 FROM tab0 AS cor0
----
2025
2906
7469

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to 73edaf471aef3f42e9a0b0be98b79374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6350
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col2 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6350
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - ( col0 ) * + col2 * - 73 + + col1 AS col1 FROM tab0 AS cor0
----
2652
532845
57902

query I rowsort
SELECT ALL - - ( col0 ) + - col2 * 91 AS col2 FROM tab0 AS cor0
----
-2979
-56
-7373

query I rowsort
SELECT ALL cor0.col2 * - cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - col1 * 80 + - col0 FROM tab2 AS cor0
----
-1439
-2487
-4798

query I rowsort
SELECT + ( - 48 ) + col1 + + col0 FROM tab0 AS cor0
----
132
62
84

query I rowsort
SELECT DISTINCT - - 5 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
-35
-390
-395

query I rowsort
SELECT ALL + col2 + col1 * + col0 FROM tab1
----
1136
132
697

query I rowsort
SELECT ALL cor0.col1 + + 83 FROM tab2 AS cor0
----
100
114
142

query I rowsort
SELECT + - 12 * - col2 + + col1 FROM tab0 AS cor0
----
1075
109
482

onlyif mysql # use DIV operator for integer division
query I rowsort label-6360
SELECT DISTINCT - 85 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6360
SELECT DISTINCT - 85 / - col2 AS col0 FROM tab1 AS cor0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6361
SELECT 83 * + col0 + - 60 DIV cor0.col1 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
549
6414
6537

skipif mysql # not compatible
query I rowsort label-6361
SELECT 83 * + col0 + - 60 / cor0.col1 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
549
6414
6537

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6362
SELECT DISTINCT col1 + CAST( + ( col1 ) AS SIGNED ) * + col1 FROM tab1 AS cor0
----
110
182
702

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT col1 + CAST ( + ( col1 ) AS INTEGER ) * + col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT + cor0.col0 + + 82 FROM tab0 AS cor0
----
106
117
171

onlyif mysql # use DIV operator for integer division
query I rowsort label-6364
SELECT ALL col0 DIV + 94 + + cor0.col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL col0 / + 94 + + cor0.col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL col0 * - col0 - + col0 FROM tab0 AS cor0
----
-1260
-600
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-6366
SELECT ALL + col1 + + 64 DIV ( + col1 * + col0 ) + - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL + col1 + + 64 / ( + col1 * + col0 ) + - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col2 * - col2 * + col1 + col2 FROM tab2 AS cor0
----
-22572
-24510
-39858

query I rowsort
SELECT DISTINCT + col0 * - 24 + col1 AS col1 FROM tab1 cor0
----
-1526
-1907
-46

query I rowsort
SELECT ALL col2 + - col2 * + ( col2 ) AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6370
SELECT DISTINCT + cor0.col0 * - CAST( - ( col1 ) AS SIGNED ) + 4 FROM tab2 AS cor0
----
1347
221
4606

skipif mysql # not compatible
query I rowsort label-6370
SELECT DISTINCT + cor0.col0 * - CAST ( - ( col1 ) AS INTEGER ) + 4 FROM tab2 AS cor0
----
1347
221
4606

query I rowsort
SELECT DISTINCT - col2 + - col0 * - cor0.col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL col2 * col2 * ( col2 + + ( - col1 ) ) FROM tab2 cor0
----
-22308
-2916
30324

query I rowsort
SELECT ALL - cor0.col1 * col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL + + col1 + col2 * + col2 * - col2 FROM tab1 AS cor0
----
-157438
-185183
-884723

query I rowsort
SELECT - - col0 * 56 FROM tab2 AS cor0
----
392
4368
4424

query I rowsort
SELECT + 84 AS col2 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT - col1 * 71 AS col0 FROM tab0
----
-6106
-6461
-6887

query I rowsort
SELECT DISTINCT + + 30 AS col1 FROM tab0 cor0
----
30

query I rowsort
SELECT + 16 * col1 FROM tab0 AS cor0
----
1376
1456
1552

query I rowsort
SELECT ALL cor0.col0 * - 38 FROM tab1, tab2 AS cor0
----
9 values hashing to f87e18919de465dee5e8fff4d8dff50f

onlyif mysql # use DIV operator for integer division
query I rowsort label-6381
SELECT ALL + col0 * + col2 DIV + col2 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL + col0 * + col2 / + col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL ( col1 ) * + 91 AS col0 FROM tab1 AS cor0
----
1183
2366
910

query I rowsort
SELECT ALL 16 * col0 + ( col2 ) * + col2 FROM tab1 AS cor0
----
10496
2964
4273

query I rowsort
SELECT + col1 + col2 * 11 FROM tab1 AS cor0
----
1069
620
637

query I rowsort
SELECT + 94 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6386
SELECT ALL 3 * + tab1.col0 + - CAST( col2 AS SIGNED ) FROM tab1
----
-45
135
144

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL 3 * + tab1.col0 + - CAST ( col2 AS INTEGER ) FROM tab1
----
-45
135
144

onlyif mysql # use DIV operator for integer division
query I rowsort label-6387
SELECT DISTINCT tab2.col2 + - col2 + - col1 DIV tab2.col0 FROM tab2
----
-4
0

skipif mysql # not compatible
query I rowsort label-6387
SELECT DISTINCT tab2.col2 + - col2 + - col1 / tab2.col0 FROM tab2
----
-4
0

query I rowsort
SELECT 57 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

onlyif mysql # use DIV operator for integer division
query I rowsort label-6389
SELECT ALL col1 + + col1 DIV col0 AS col0 FROM tab1
----
10
13
34

skipif mysql # not compatible
query I rowsort label-6389
SELECT ALL col1 + + col1 / col0 AS col0 FROM tab1
----
10
13
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 48 col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor2.col0 col0 FROM tab1, tab1 cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT cor1.col1 * 67 - - tab1.col1 AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0, tab0 cor1
----
243 values hashing to 6d0bd57f43177f2aedd7981f630f8583

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-6394
SELECT DISTINCT - ( col0 ) * col2 DIV - col0 AS col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6394
SELECT DISTINCT - ( col0 ) * col2 / - col0 AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
54
57
96

query I rowsort
SELECT col2 + ( 51 ) * tab0.col1 FROM tab0
----
4419
4723
4948

query I rowsort
SELECT - col1 * col0 * + col2 + + tab2.col0 * ( - col1 ) FROM tab2
----
-124254
-52377
-6076

query I rowsort
SELECT - - cor0.col1 - - 16 AS col1 FROM tab2 AS cor0
----
33
47
75

query I rowsort
SELECT ALL - - col2 * - 34 AS col0 FROM tab0 AS cor0
----
-1122
-2788
-34

query I rowsort
SELECT ALL 1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6401
SELECT DISTINCT + + col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6401
SELECT DISTINCT + + col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 * col2 * col0 + col2 AS col1 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT cor0.col0 * cor0.col2 + col1 * col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
23904
36666
9348

query I rowsort
SELECT DISTINCT col2 * 73 FROM tab2
----
1898
1971
2774

query I rowsort
SELECT - cor0.col0 + col2 * col2 * + 67 FROM tab1 AS cor0
----
195369
217619
617392

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6406
SELECT + CAST( NULL AS DECIMAL ) * col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6406
SELECT + CAST ( NULL AS REAL ) * col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - cor0.col1 * - col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col2 * - col2 + - col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT - + 71 + + 52 FROM tab1 AS cor0
----
-19
-19
-19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6410
SELECT + CAST( NULL AS SIGNED ) * 93 + col2 * col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6410
SELECT + CAST ( NULL AS INTEGER ) * 93 + col2 * col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 16 + col1 col1 FROM tab0 cor0
----
70
75
81

query I rowsort
SELECT - col1 + col1 * - cor0.col0 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT 89 + col0 * + cor0.col1 FROM tab2 AS cor0
----
1432
306
4691

query I rowsort
SELECT DISTINCT + ( 8 ) + col1 AS col0 FROM tab0
----
105
94
99

query I rowsort
SELECT + + cor0.col1 * col2 * + col0 + ( - 82 ) FROM tab2 AS cor0
----
119570
50952
5777

onlyif mysql # use DIV operator for integer division
query I rowsort label-6416
SELECT tab1.col2 * ( col1 ) DIV + col0 + + col2 FROM tab1
----
111
522
65

skipif mysql # not compatible
query I rowsort label-6416
SELECT tab1.col2 * ( col1 ) / + col0 + + col2 FROM tab1
----
111
522
65

query I rowsort
SELECT + 58 * + 7 + + col2 FROM tab1
----
460
463
502

query I rowsort
SELECT 86 * 81 + + col0 AS col2 FROM tab2
----
6973
7044
7045

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6419
SELECT CAST( NULL AS SIGNED ) + - col1 * + col1 - col2 * + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6419
SELECT CAST ( NULL AS INTEGER ) + - col1 * + col1 - col2 * + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 42 ) * + col0 AS col1 FROM tab0 AS cor0
----
1008
1470
3738

query I rowsort
SELECT DISTINCT + + col0 * col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT ALL - + col1 * cor0.col1 - col0 AS col0 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT DISTINCT - col2 + - col2 * + cor0.col0 * 72 AS col1 FROM tab2 AS cor0
----
-13635
-146042
-216182

query I rowsort
SELECT + ( + col1 ) * col1 + + col2 AS col0 FROM tab1 AS cor0
----
157
265
730

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9

query I rowsort
SELECT DISTINCT - col0 - + col0 AS col2 FROM tab0 cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6427
SELECT - col2 DIV col1 + col0 * cor0.col1 FROM tab2 AS cor0
----
1341
217
4602

skipif mysql # not compatible
query I rowsort label-6427
SELECT - col2 / col1 + col0 * cor0.col1 FROM tab2 AS cor0
----
1341
217
4602

query I rowsort
SELECT DISTINCT + - 91 * col2 + col2 FROM tab1 AS cor0
----
-4860
-5130
-8640

query I rowsort
SELECT ALL - cor0.col2 * - col2 + 53 FROM tab2 AS cor0
----
1497
729
782

query I rowsort
SELECT DISTINCT + col2 - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 * col0 col1 FROM tab2 AS cor0
----
651
7254
7347

query I rowsort
SELECT DISTINCT 65 AS col2 FROM tab0 cor0
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col1 FROM tab2 cor0
----
99
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - col2 * - ( col2 * - col1 ) col2 FROM tab2 AS cor0
----
-22572
-24510
-39858

query I rowsort
SELECT - - col1 + + col1 * - 71 FROM tab1 AS cor0
----
-1820
-700
-910

query I rowsort
SELECT + 26 * col2 * col2 AS col0 FROM tab2
----
17576
18954
37544

query I rowsort
SELECT - ( col1 ) * col1 AS col1 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - 87 * - col2 AS col2 FROM tab2
----
2262
2349
3306

query I rowsort
SELECT col0 * + ( col0 * + col0 + 31 ) FROM tab0 AS cor0
----
14568
43960
707728

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6440
SELECT - - col1 - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6440
SELECT - - col1 - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - col0 * col1 + - col1 AS col2 FROM tab0 cor0
----
-2150
-3492
-8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 53 col2 FROM tab1 AS cor0
----
2862
3021
5088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col2 FROM tab0, tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT + col1 * - 67 FROM tab1
----
-1742
-670
-871

onlyif mysql # use DIV operator for integer division
query I rowsort label-6446
SELECT DISTINCT + ( - col2 ) + col1 DIV ( col1 ) AS col2 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-6446
SELECT DISTINCT + ( - col2 ) + col1 / ( col1 ) AS col2 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT - ( - col0 ) * + col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - + col2 * cor0.col2 * - col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT ALL - + ( - col0 ) + col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6450
SELECT ALL 0 DIV - col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL 0 / - col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 67 AS col0 FROM tab0 cor0
----
67

query I rowsort
SELECT DISTINCT - 81 * col2 AS col0 FROM tab2 AS cor0
----
-2106
-2187
-3078

query I rowsort
SELECT DISTINCT ( 3 ) * + col0 AS col2 FROM tab1
----
192
240
9

query I rowsort
SELECT ( 18 ) FROM tab0
----
18
18
18

query I rowsort
SELECT ALL + ( + col1 ) + - cor0.col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - 96 + - cor0.col1 * - ( col0 ) AS col0 FROM tab0 cor0
----
1968
3299
8003

query I rowsort
SELECT ALL + + col1 * - col0 + + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6458
SELECT DISTINCT + cor0.col0 + + col2 * - CAST( NULL AS SIGNED ) / 96 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT + cor0.col0 + + col2 * - CAST ( NULL AS INTEGER ) / 96 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 94 + tab0.col1 FROM tab0
----
180
185
191

query I rowsort
SELECT col1 * - 60 FROM tab0 AS cor0
----
-5160
-5460
-5820

query I rowsort
SELECT ALL + 55 * 10 AS col0 FROM tab2 AS cor0
----
550
550
550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 * - col1 col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-6463
SELECT ALL col1 DIV + 27 col2 FROM tab2 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6463
SELECT ALL col1 / + 27 col2 FROM tab2 AS cor0
----
0
1
2

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 cor1, tab2 AS cor2
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0

query I rowsort
SELECT ALL 83 FROM tab1, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6466
SELECT - CAST( 68 AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

skipif mysql # not compatible
query I rowsort label-6466
SELECT - CAST ( 68 AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT 91 - col1 AS col0 FROM tab1
----
65
78
81

query I rowsort
SELECT - ( col2 * tab0.col0 ) + + 68 * col1 * + col0 FROM tab0
----
139560
230825
543434

onlyif mysql # use DIV operator for integer division
query I rowsort label-6469
SELECT ALL - col2 DIV ( tab0.col2 ) AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL - col2 / ( tab0.col2 ) AS col0 FROM tab0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6470
SELECT CAST( NULL AS DECIMAL ) * + col0 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6470
SELECT CAST ( NULL AS REAL ) * + col0 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( col2 ) + col0 * - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT + + ( 74 ) * - col1 FROM tab0 cor0
----
-6364
-6734
-7178

query I rowsort
SELECT DISTINCT - - ( cor0.col2 ) FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT 72 + tab2.col2 FROM tab2
----
110
98
99

query I rowsort
SELECT ALL - ( 2 ) + + col2 * col0 FROM tab2 AS cor0
----
187
2026
3000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) + + col2 col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL - col1 * col2 + + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6478
SELECT CAST( NULL AS SIGNED ) * ( + col1 ) + + col0 + tab2.col1 * + col2 col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6478
SELECT CAST ( NULL AS INTEGER ) * ( + col1 ) + + col0 + tab2.col1 * + col2 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 70 * - col1 - - 20 AS col0 FROM tab1 AS cor0
----
-1800
-680
-890

onlyif mysql # use DIV operator for integer division
query I rowsort label-6480
SELECT - - col0 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-6480
SELECT - - col0 / + col1 AS col0 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT cor0.col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6482
SELECT DISTINCT + 96 DIV + cor0.col1 + ( 43 ) * col0 FROM tab1 AS cor0
----
132
2761
3447

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT + 96 / + cor0.col1 + ( 43 ) * col0 FROM tab1 AS cor0
----
132
2761
3447

query I rowsort
SELECT ALL + 32 FROM tab0, tab2 cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6484
SELECT col1 + - 36 DIV col0 + col1 AS col1 FROM tab1
----
20
26
40

skipif mysql # not compatible
query I rowsort label-6484
SELECT col1 + - 36 / col0 + col1 AS col1 FROM tab1
----
20
26
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6485
SELECT ALL - col1 + - CAST( col2 + col0 AS SIGNED ) AS col2 FROM tab1
----
-131
-189
-83

skipif mysql # not compatible
query I rowsort label-6485
SELECT ALL - col1 + - CAST ( col2 + col0 AS INTEGER ) AS col2 FROM tab1
----
-131
-189
-83

query I rowsort
SELECT col0 + + 30 + col2 FROM tab1
----
151
206
87

query I rowsort
SELECT + col0 * - ( - 71 * col0 ) FROM tab0
----
40896
562391
86975

query I rowsort
SELECT DISTINCT col1 * 15 FROM tab1 AS cor0
----
150
195
390

query I rowsort
SELECT ALL + col2 - + 82 AS col1 FROM tab1 cor0
----
-25
-28
14

query I rowsort
SELECT - col2 * 99 - - col1 AS col1 FROM tab0 cor0
----
-2
-3181
-8027

query I rowsort
SELECT ALL + col2 - - 12 * col1 AS col0 FROM tab2 AS cor0
----
242
399
734

query I rowsort
SELECT ALL cor0.col0 + + 7 FROM tab2 AS cor0
----
14
85
86

query I rowsort
SELECT ALL + col2 * - ( - col0 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL cor0.col1 + + col0 * + 24 * + col1 FROM tab1 AS cor0
----
15370
1898
24973

onlyif mysql # use DIV operator for integer division
query I rowsort label-6495
SELECT - 36 DIV + col0 + + col1 AS col2 FROM tab1 AS cor0
----
10
13
14

skipif mysql # not compatible
query I rowsort label-6495
SELECT - 36 / + col0 + + col1 AS col2 FROM tab1 AS cor0
----
10
13
14

query I rowsort
SELECT DISTINCT - col0 - + col2 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT col0 * col1 * - cor0.col2 + ( - 80 * col0 + col1 ) FROM tab1 AS cor0
----
-106227
-41590
-4426

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6498
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 62 * 35 AS col1 FROM tab1 AS cor0
----
2170

query I rowsort
SELECT DISTINCT - + col1 * - 5 FROM tab0 AS cor0
----
430
455
485

query I rowsort
SELECT ALL - - col1 * col2 + + col0 AS col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT - - 36 * col2 - col0 * 71 AS col1 FROM tab1 AS cor0
----
-2224
-2492
1731

query I rowsort
SELECT - cor0.col2 + 76 AS col1 FROM tab2 AS cor0
----
38
49
50

query I rowsort
SELECT + col2 - 93 FROM tab1
----
-36
-39
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6505
SELECT + tab2.col2 * CAST( col2 AS SIGNED ) - + col2 * ( + 8 * col1 ) FROM tab2
----
-11596
-3724
-5967

skipif mysql # not compatible
query I rowsort label-6505
SELECT + tab2.col2 * CAST ( col2 AS INTEGER ) - + col2 * ( + 8 * col1 ) FROM tab2
----
-11596
-3724
-5967

query I rowsort
SELECT DISTINCT - col0 * col0 + + col2 * col1 FROM tab2
----
-4550
-5595
788

query I rowsort
SELECT col1 * 85 + + col0 * + tab1.col2 + + 69 AS col1 FROM tab1
----
2441
4567
8854

query I rowsort
SELECT DISTINCT - 12 * cor0.col1 FROM tab0, tab1 AS cor0
----
-120
-156
-312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6509
SELECT + CAST( NULL AS SIGNED ) + col1 * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6509
SELECT + CAST ( NULL AS INTEGER ) + col1 * + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 3 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6511
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) * + 47 + - col0 * + ( + tab0.col0 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6511
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) * + 47 + - col0 * + ( + tab0.col0 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + col1 * ( - cor0.col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6513
SELECT - + col0 DIV 69 col2 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6513
SELECT - + col0 / 69 col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - + 28 FROM tab2, tab2 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT - 34 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7

query I rowsort
SELECT ALL 93 + + col1 AS col2 FROM tab2
----
110
124
152

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6517
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT + + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL

query I rowsort
SELECT 23 AS col0 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

query I rowsort
SELECT + cor0.col2 + col1 * + col0 * + col0 + + col0 FROM tab2 AS cor0
----
106214
1553
359060

query I rowsort
SELECT DISTINCT col0 * ( + col2 ) AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - col2 * col1 * tab2.col1 AS col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT + col1 + col1 * + col2 AS col2 FROM tab0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-6523
SELECT col2 + + col1 * col2 DIV + col0 FROM tab0
----
151
165
3

skipif mysql # not compatible
query I rowsort label-6523
SELECT col2 + + col1 * col2 / + col0 FROM tab0
----
151
165
3

query I rowsort
SELECT DISTINCT + col1 * col1 + + col2 AS col0 FROM tab2
----
327
3507
988

query I rowsort
SELECT DISTINCT col1 * - cor0.col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - ( + 46 ) * - col0 + + col2 FROM tab1
----
192
3001
3776

query I rowsort
SELECT ALL 95 AS col0 FROM tab0
----
95
95
95

query I rowsort
SELECT DISTINCT col2 + col1 * - col1 FROM tab0 cor0
----
-7363
-8199
-9408

query I rowsort
SELECT - - col0 * + col2 - + col2 AS col1 FROM tab2 cor0
----
162
2002
2964

query I rowsort
SELECT ALL - ( + col0 ) + col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - col0 * + cor0.col1 + ( - col1 ) + - col2 AS col0 FROM tab1 AS cor0
----
-1149
-158
-707

query I rowsort
SELECT - 81 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * col0 * + col0 col0 FROM tab0
----
13824
42875
704969

query I rowsort
SELECT - - col2 * - col1 + - col1 * + col1 * - col1 AS col1 FROM tab0 AS cor0
----
633218
746109
912576

onlyif mysql # use DIV operator for integer division
query I rowsort label-6535
SELECT + col2 + col2 + 93 DIV - col2 AS col2 FROM tab0 AS cor0
----
-91
163
64

skipif mysql # not compatible
query I rowsort label-6535
SELECT + col2 + col2 + 93 / - col2 AS col2 FROM tab0 AS cor0
----
-91
163
64

query I rowsort
SELECT cor0.col0 * col1 - + ( + col2 ) AS col2 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-6537
SELECT + + col1 + + col1 DIV 87 FROM tab0 AS cor0
----
86
92
98

skipif mysql # not compatible
query I rowsort label-6537
SELECT + + col1 + + col1 / 87 FROM tab0 AS cor0
----
86
92
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6538
SELECT + CAST( + 98 AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

skipif mysql # not compatible
query I rowsort label-6538
SELECT + CAST ( + 98 AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

query I rowsort
SELECT + ( tab0.col1 ) + tab0.col0 - + col2 AS col0 FROM tab0
----
131
77
98

query I rowsort
SELECT cor0.col1 + cor0.col0 + col0 AS col1 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT - 51 * + col0 AS col2 FROM tab2 AS cor0
----
-357
-3978
-4029

query I rowsort
SELECT ALL - col1 * + col2 - 8 * - col2 AS col0 FROM tab1
----
-114
-480
-972

query I rowsort
SELECT - + col2 * - col2 + - cor0.col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT + + col2 * 70 AS col2 FROM tab1 AS cor0
----
3780
3990
6720

query I rowsort
SELECT + + col0 + col2 * col2 AS col1 FROM tab2 cor0
----
1523
736
754

query I rowsort
SELECT + - col1 * + 15 + 52 AS col2 FROM tab0 AS cor0
----
-1238
-1313
-1403

query I rowsort
SELECT - col0 * - col0 - - 10 * + col0 AS col2 FROM tab1 AS cor0
----
39
4736
7200

query I rowsort
SELECT DISTINCT cor0.col1 * ( - cor0.col1 ) FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT + col2 - - cor0.col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT cor0.col1 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT col1 - cor0.col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL + col1 + 58 FROM tab1 AS cor0
----
68
71
84

query I rowsort
SELECT col0 * 12 + col1 AS col1 FROM tab2 AS cor0
----
115
965
995

query I rowsort
SELECT DISTINCT - col2 + 9 AS col0 FROM tab2 AS cor0
----
-17
-18
-29

onlyif mysql # use DIV operator for integer division
query I rowsort label-6555
SELECT DISTINCT - col1 DIV CAST( - 93 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6555
SELECT DISTINCT - col1 / CAST ( - 93 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col0 * 3 AS col2 FROM tab1 AS cor0
----
192
240
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6557
SELECT + col0 DIV 21 + + 87 * + col1 AS col0 FROM tab2 AS cor0
----
1482
2697
5136

skipif mysql # not compatible
query I rowsort label-6557
SELECT + col0 / 21 + + 87 * + col1 AS col0 FROM tab2 AS cor0
----
1482
2697
5136

query I rowsort
SELECT ALL - col2 * + ( col2 * cor0.col1 ) + col2 * 29 AS col2 FROM tab1 AS cor0
----
-117024
-30837
-74250

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6559
SELECT CAST( NULL AS SIGNED ) * + 6 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6559
SELECT CAST ( NULL AS INTEGER ) * + 6 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6560
SELECT - - CAST( cor0.col0 AS SIGNED ) * - col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6560
SELECT - - CAST ( cor0.col0 AS INTEGER ) * - col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col2 + ( col0 ) * 24 FROM tab0 AS cor0
----
2054
543
839

query I rowsort
SELECT DISTINCT + ( - ( - col1 ) ) FROM tab2
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 * 3 col1 FROM tab1 AS cor0
----
168
168
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - ( cor0.col0 ) * - col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT cor0.col2 + col2 * - cor0.col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT - - col1 + col1 * 0 * + 88 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - 65 AS col2 FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT - + col0 + col1 * 44 FROM tab1 AS cor0
----
1141
376
492

query I rowsort
SELECT ALL + 81 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT ( col1 ) + col1 FROM tab0
----
172
182
194

query I rowsort
SELECT 69 * - col1 + cor0.col1 FROM tab2 AS cor0
----
-1156
-2108
-4012

query I rowsort
SELECT + col0 * - col0 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT + - ( + col0 ) * col1 + - 13 AS col0 FROM tab2 AS cor0
----
-1356
-230
-4615

query I rowsort
SELECT ALL - - col2 - col0 * col0 AS col2 FROM tab2 cor0
----
-22
-6058
-6203

query I rowsort
SELECT + - 47 AS col2 FROM tab0 cor0
----
-47
-47
-47

query I rowsort
SELECT DISTINCT - + col1 * - col0 * - 75 + col0 + + cor0.col0 FROM tab0 AS cor0
----
-154752
-254555
-607247

query I rowsort
SELECT DISTINCT + 19 + - col0 AS col1 FROM tab2 AS cor0
----
-59
-60
12

query I rowsort
SELECT ALL + cor0.col2 + - col0 + + cor0.col1 * col2 FROM tab2 AS cor0
----
1482
605
857

query I rowsort
SELECT ALL + + col2 + - col2 * ( - 27 + + col2 ) * col0 FROM tab0 AS cor0
----
-401308
-4719
911

onlyif mysql # use DIV operator for integer division
query I rowsort label-6581
SELECT ALL - col1 + col1 DIV - col1 FROM tab2 AS cor0
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL - col1 + col1 / - col1 FROM tab2 AS cor0
----
-18
-32
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6582
SELECT + CAST( NULL AS SIGNED ) * col1 / - col1 - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6582
SELECT + CAST ( NULL AS INTEGER ) * col1 / - col1 - - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - ( - col1 + col2 ) FROM tab0
----
86
91
97

query I rowsort
SELECT ALL + cor0.col0 + + cor0.col2 + + 0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + col2 * col0 + col0 + - 20 AS col1 FROM tab2 AS cor0
----
176
2086
3061

onlyif mysql # use DIV operator for integer division
query I rowsort label-6586
SELECT DISTINCT - col1 + + col1 DIV col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT - col1 + + col1 / col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + col0 * col2 col2 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT - col2 + ( 13 ) * - col2 FROM tab1 AS cor0
----
-1344
-756
-798

onlyif mysql # use DIV operator for integer division
query I rowsort label-6589
SELECT ALL - cor0.col1 DIV + 19 FROM tab2 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-6589
SELECT ALL - cor0.col1 / + 19 FROM tab2 AS cor0
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * + 3 col2 FROM tab2 AS cor0
----
114
78
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6591
SELECT tab1.col2 + - col1 DIV 87 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6591
SELECT tab1.col2 + - col1 / 87 FROM tab1
----
54
57
96

query I rowsort
SELECT + col1 + + 53 FROM tab2 AS cor0
----
112
70
84

query I rowsort
SELECT + cor0.col0 * col2 + - col2 * + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6594
SELECT + - col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6594
SELECT + - col1 / - col1 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col0 * - cor0.col0 * col0 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT + cor0.col0 * + col0 + - col2 - col0 AS col1 FROM tab2 AS cor0
----
15
5980
6124

query I rowsort
SELECT ALL col1 * 59 AS col0 FROM tab1 AS cor0
----
1534
590
767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + 12 * - cor0.col1 col1 FROM tab2 AS cor0
----
-187
-341
-649

query I rowsort
SELECT ALL + + cor0.col2 + cor0.col1 * - 97 AS col0 FROM tab2 AS cor0
----
-1611
-2980
-5697

query I rowsort
SELECT DISTINCT - col1 + + col2 * col1 * - cor0.col2 FROM tab2 AS cor0
----
-22630
-24565
-39943

query I rowsort
SELECT DISTINCT col1 + - ( col2 * tab1.col0 + 67 ) FROM tab1
----
-203
-3705
-7734

query I rowsort
SELECT ALL - cor0.col0 * - col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + + col2 * 28 + + col0 AS col0 FROM tab1 AS cor0
----
1515
1660
2768

query I rowsort
SELECT + col0 * - ( col1 ) + - col1 * + col1 + col0 FROM tab0 AS cor0
----
-12769
-16291
-9436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 * 0 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6606
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6607
SELECT - col2 DIV + cor0.col1 + + col1 AS col2 FROM tab2 AS cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-6607
SELECT - col2 / + cor0.col1 + + col1 AS col2 FROM tab2 AS cor0
----
15
31
59

query I rowsort
SELECT ALL 9 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-486
-513
-864

query I rowsort
SELECT col0 * 17 AS col0 FROM tab1 AS cor0
----
1088
1360
51

query I rowsort
SELECT + col1 * col0 * col1 AS col0 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT - col1 * - col0 + 40 FROM tab0
----
2104
3435
8139

query I rowsort
SELECT + - col2 * cor0.col0 - - col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT 95 + + col1 FROM tab1 AS cor0
----
105
108
121

query I rowsort
SELECT col2 + col0 + - col2 * col1 AS col0 FROM tab0
----
-2781
-61
-7291

onlyif mysql # use DIV operator for integer division
query I rowsort label-6615
SELECT + tab0.col0 DIV col0 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6615
SELECT + tab0.col0 / col0 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT - 70 AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to d0e68852e45abdcfbe6812110913ee01

query I rowsort
SELECT DISTINCT - col2 * col2 + - col2 * col0 AS col1 FROM tab0 AS cor0
----
-14022
-1881
-36

query I rowsort
SELECT DISTINCT 54 * + col1 FROM tab2 AS cor0
----
1674
3186
918

query I rowsort
SELECT - 19 + 91 FROM tab1 AS cor0
----
72
72
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6620
SELECT ALL - + CAST( col0 AS SIGNED ) FROM tab2 cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL - + CAST ( col0 AS INTEGER ) FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT - 13 FROM tab0, tab2 cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0 CROSS JOIN tab0, tab1 AS cor1
----
972 values hashing to 9af67d6f98010464af5d560bf949d487

onlyif mysql # use DIV operator for integer division
query I rowsort label-6623
SELECT DISTINCT 91 DIV col0 FROM tab1
----
1
30

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT 91 / col0 FROM tab1
----
1
30

query I rowsort
SELECT DISTINCT cor0.col1 + - tab2.col0 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
9 values hashing to 28f70a38d22725ee756ac68dbc5b6101

query I rowsort
SELECT + - ( cor0.col1 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

onlyif mysql # use DIV operator for integer division
query I rowsort label-6626
SELECT ALL + col0 + - tab0.col0 DIV - col2 + col1 DIV ( + col0 ) col2 FROM tab0
----
27
72
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL + col0 + - tab0.col0 / - col2 + col1 / ( + col0 ) col2 FROM tab0
----
27
72
91

query I rowsort
SELECT ALL col2 * ( 10 ) AS col2 FROM tab0
----
10
330
820

onlyif mysql # use DIV operator for integer division
query I rowsort label-6628
SELECT ALL - col0 DIV 89 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL - col0 / 89 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6629
SELECT DISTINCT - col0 + CAST( + col2 AS SIGNED ) FROM tab0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-6629
SELECT DISTINCT - col0 + CAST ( + col2 AS INTEGER ) FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - col2 + - ( col1 + + tab0.col0 ) FROM tab0
----
-133
-143
-262

query I rowsort
SELECT ALL col2 + col0 * + col2 AS col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL - cor0.col0 + - 34 * + col1 * col1 FROM tab1 AS cor0
----
-22987
-3464
-5826

query I rowsort
SELECT DISTINCT - 46 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-46

query I rowsort
SELECT DISTINCT col0 * - col1 + 68 AS col0 FROM tab2 cor0
----
-1275
-149
-4534

query I rowsort
SELECT ALL + col2 + ( ( col2 ) ) FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT col2 - - col2 * col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT col1 * - col0 + col0 AS col0 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + - col1 * - cor0.col2 + col2 AS col2 FROM tab1 cor0
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * - col2 + - cor0.col0 - col0 col0 FROM tab2 AS cor0
----
1378
488
823

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 * + col1 + col1 + + col0 ) = NULL
----

query I rowsort
SELECT col1 * - col1 * col0 + cor0.col1 FROM tab2 AS cor0
----
-22814
-271459
-6696

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 / + col0 = NULL
----

query I rowsort
SELECT + col0 + + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT col0 * col0 + + col2 AS col0 FROM tab2
----
6110
6279
76

query I rowsort
SELECT col0 * col1 + + tab0.col0 * col1 AS col0 FROM tab0
----
16198
4128
6790

query I rowsort
SELECT ALL col0 - tab2.col0 AS col0 FROM tab2 WHERE NOT col1 NOT IN ( col1 * tab2.col0 + col0 ) AND NOT ( NULL ) NOT IN ( - col1 )
----

query I rowsort
SELECT DISTINCT - col0 * - col0 * + col0 FROM tab1
----
262144
27
512000

query I rowsort
SELECT DISTINCT 9 * col0 AS col0 FROM tab1 AS cor0
----
27
576
720

query I rowsort
SELECT ALL + ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - 8 AS col0 FROM tab2 cor0
----
-8

query I rowsort
SELECT ALL - col1 * col1 * - 88 + - col1 * - cor0.col2 FROM tab1 AS cor0
----
16120
60892
9370

query I rowsort
SELECT 14 * col1 AS col1 FROM tab0 AS cor0
----
1204
1274
1358

query I rowsort
SELECT DISTINCT + + 62 + - col0 FROM tab1 AS cor0
----
-18
-2
59

query I rowsort
SELECT 41 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT ALL + 3 AS col2 FROM tab1 AS cor0
----
3
3
3

query I rowsort
SELECT tab2.col2 * col0 + col0 + + col0 FROM tab2 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + tab2.col2 col0 FROM tab2
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 - col1 col1 FROM tab0
----
-1322
-662
-8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 * col0 - col0 * + col2 col0 FROM tab0
----
1272
3360
801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col1 col0 FROM tab0
----
-2
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6661
SELECT + CAST( 30 AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

skipif mysql # not compatible
query I rowsort label-6661
SELECT + CAST ( 30 AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT ALL - col0 * col2 * ( 42 + - col2 ) AS col0 FROM tab2
----
-12008
-2835
-32448

query I rowsort
SELECT DISTINCT - 68 AS col1 FROM tab2, tab1, tab2 AS cor0
----
-68

query I rowsort
SELECT DISTINCT + + 54 AS col2 FROM tab1, tab2, tab0 AS cor0
----
54

query I rowsort
SELECT + col2 + - col1 * col0 AS col0 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT col1 * col0 * + col2 FROM tab0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-6667
SELECT - col0 * col1 + - col1 + - col1 DIV tab2.col1 AS col2 FROM tab2
----
-1361
-249
-4662

skipif mysql # not compatible
query I rowsort label-6667
SELECT - col0 * col1 + - col1 + - col1 / tab2.col1 AS col2 FROM tab2
----
-1361
-249
-4662

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE ( NULL ) BETWEEN + col2 AND col0 / col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6669
SELECT - col0 DIV - col2 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6669
SELECT - col0 / - col2 AS col0 FROM tab1
----
0
0
1

query I rowsort
SELECT - col1 - + col0 AS col2 FROM tab0 WHERE NOT - col1 * - col1 * col2 < + col1
----
-110
-132
-180

query I rowsort
SELECT DISTINCT tab1.col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND col1 * col1 + col0 * col1 * - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 + - tab2.col2 * col2 col2 FROM tab2
----
-1286
-520
-715

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE NOT ( col2 ) IN ( col0 * + col2 )
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 col2 FROM tab0 WHERE col1 * + tab0.col1 IN ( tab0.col1 )
----

query I rowsort
SELECT ALL tab2.col0 * col2 - tab2.col0 AS col1 FROM tab2
----
182
1950
2923

query I rowsort
SELECT DISTINCT col0 - - col2 * - col0 * tab2.col0 FROM tab2
----
-1316
-158106
-237079

query I rowsort
SELECT + tab2.col2 - - col2 * 60 AS col1 FROM tab2
----
1586
1647
2318

query I rowsort
SELECT col0 + - col1 + + col1 AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort
SELECT - + col0 * - CAST ( col0 AS REAL ) + - col2 + - col1 FROM tab0 AS cor0
----
1127
457
7748

query I rowsort
SELECT ALL col0 * col2 * - col1 + tab0.col2 FROM tab0
----
-3394
-664036
-68079

query I rowsort
SELECT ALL - ( - col1 * - col1 ) + col2 AS col2 FROM tab2
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT tab2.col0 * - col1 + + col1 * 66 FROM tab2
----
-221
-708
1829

query I rowsort
SELECT DISTINCT + 39 * + tab1.col2 + + col2 FROM tab1
----
2160
2280
3840

onlyif mysql # use DIV operator for integer division
query I rowsort label-6684
SELECT ALL - + col1 + - CAST( col2 + - col0 AS SIGNED ) * + cor0.col0 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
-51
-7
24

skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL - + col1 + - CAST ( col2 + - col0 AS INTEGER ) * + cor0.col0 / cor0.col0 AS col2 FROM tab2 AS cor0
----
-51
-7
24

query I rowsort
SELECT DISTINCT + col0 * 37 * cor0.col0 FROM tab1 AS cor0
----
151552
236800
333

query I rowsort
SELECT col2 + 15 * col2 FROM tab2
----
416
432
608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + + ( + cor0.col2 ) - col2 col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + - col1 * ( 2 ) FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT + col1 * - cor0.col1 * 26 + col0 FROM tab1 AS cor0
----
-17573
-2536
-4314

query I rowsort
SELECT DISTINCT + + col1 + 70 * + 22 AS col2 FROM tab0 AS cor0
----
1626
1631
1637

query I rowsort
SELECT DISTINCT + col0 + + ( col0 ) AS col2 FROM tab0 AS cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6692
SELECT ALL + col2 DIV col2 - col2 DIV + cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6692
SELECT ALL + col2 / col2 - col2 / + cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 + - ( - cor0.col2 ) * - col1 * - col2 + + 66 FROM tab0 cor0
----
260
612041
93806

query I rowsort
SELECT - col0 * + 77 * + col2 + - col1 FROM tab0 AS cor0
----
-2792
-562037
-61070

query I rowsort
SELECT - col1 + 95 FROM tab0 AS cor0
----
-2
4
9

query I rowsort
SELECT DISTINCT cor0.col1 + 2 * col0 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT ALL - col0 * - col1 * col0 AS col1 FROM tab0 AS cor0
----
118825
49536
720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-6698
SELECT tab2.col2 * tab2.col0 DIV col0 + col0 col2 FROM tab2
----
104
117
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6698
SELECT tab2.col2 * tab2.col0 / col0 + col0 col2 FROM tab2
----
104
117
34

query I rowsort
SELECT ( + 42 ) + + col0 FROM tab2
----
120
121
49

query I rowsort
SELECT ALL - 17 * + col1 FROM tab0 AS cor0
----
-1462
-1547
-1649

onlyif mysql # use DIV operator for integer division
query I rowsort label-6701
SELECT DISTINCT + + col0 DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-6701
SELECT DISTINCT + + col0 / cor0.col1 AS col1 FROM tab2 AS cor0
----
0
1
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6702
SELECT DISTINCT + - 43 * + cor0.col1 * col1 + - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6702
SELECT DISTINCT + - 43 * + cor0.col1 * col1 + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col1 FROM tab0 AS cor0
----
65
65
65

query I rowsort
SELECT ALL - + col0 * + col1 * col1 + cor0.col1 AS col1 FROM tab0 cor0
----
-177418
-329218
-736918

query I rowsort
SELECT + col0 - cor0.col2 AS col2 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT ALL - cor0.col1 * col0 + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT 62 * col2 + 18 FROM tab1 AS cor0
----
3366
3552
5970

query I rowsort
SELECT DISTINCT - cor0.col0 + + col0 - - 88 AS col0 FROM tab0 AS cor0
----
88

query I rowsort
SELECT + + col2 * cor0.col1 * - col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * + col0 col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6711
SELECT + - 58 DIV + col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6711
SELECT + - 58 / + col0 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT - + 12 AS col0 FROM tab1 AS cor0
----
-12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6713
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
NULL

query I rowsort
SELECT DISTINCT col0 + col2 * - col1 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT + - col1 * ( col2 ) + col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # use DIV operator for integer division
query I rowsort label-6716
SELECT - col0 DIV - col1 - col2 FROM tab2 AS cor0
----
-25
-27
-34

skipif mysql # not compatible
query I rowsort label-6716
SELECT - col0 / - col1 - col2 FROM tab2 AS cor0
----
-25
-27
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 * col2 + + col2 * col1 col1 FROM tab1
----
10152
208506
738528

query I rowsort
SELECT DISTINCT - 58 * + 62 FROM tab1 AS cor0
----
-3596

query I rowsort
SELECT + 74 * 4 AS col1 FROM tab0 AS cor0
----
296
296
296

query I rowsort
SELECT - 92 + cor0.col1 FROM tab0, tab2 cor0
----
9 values hashing to c59df4d3d2d2155bd27dcfbd5e753dbe

onlyif mysql # use DIV operator for integer division
query I rowsort label-6721
SELECT + 44 DIV col1 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6721
SELECT + 44 / col1 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6722
SELECT ALL + CAST( NULL AS SIGNED ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL + CAST ( NULL AS INTEGER ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + cor0.col1 ) AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT + 74 * - col0 * col1 FROM tab0 cor0
----
-152736
-251230
-599326

query I rowsort
SELECT ALL + + cor0.col1 + 39 * - col0 FROM tab2 AS cor0
----
-242
-2983
-3064

query I rowsort
SELECT DISTINCT + col0 + + 16 AS col1 FROM tab2
----
23
94
95

query I rowsort
SELECT - col0 + 69 * + col1 FROM tab1
----
1791
626
817

query I rowsort
SELECT ALL 15 * + tab1.col0 FROM tab1
----
1200
45
960

query I rowsort
SELECT ALL ( + ( col0 ) ) * 45 * col0 AS col2 FROM tab0 AS cor0
----
25920
356445
55125

onlyif mysql # use DIV operator for integer division
query I rowsort label-6730
SELECT DISTINCT + ( - col1 ) DIV - col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6730
SELECT DISTINCT + ( - col1 ) / - col1 FROM tab1
----
1

query I rowsort
SELECT + ( 81 ) FROM tab0 AS cor0
----
81
81
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6732
SELECT DISTINCT - - 58 DIV + col1 AS col0 FROM tab1 AS cor0
----
2
4
5

skipif mysql # not compatible
query I rowsort label-6732
SELECT DISTINCT - - 58 / + col1 AS col0 FROM tab1 AS cor0
----
2
4
5

query I rowsort
SELECT - cor0.col0 * + cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6734
SELECT DISTINCT col1 DIV - 46 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-6734
SELECT DISTINCT col1 / - 46 FROM tab2
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) * col0 * - 77 col0 FROM tab0
----
44352
609917
94325

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1, tab2 AS cor2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 col2 FROM tab0, tab2 AS cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6738
SELECT DISTINCT - CAST( + cor0.col1 + + tab1.col1 AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d90a41d0be24758d9b6849a5949c8871

skipif mysql # not compatible
query I rowsort label-6738
SELECT DISTINCT - CAST ( + cor0.col1 + + tab1.col1 AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d90a41d0be24758d9b6849a5949c8871

query I rowsort
SELECT cor0.col0 * + col0 * + col1 AS col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT col1 * col2 - - col0 * - ( - col2 ) FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT tab2.col2 + - col1 * - col2 + tab2.col2 * col2 FROM tab2
----
1593
2128
2236

query I rowsort
SELECT col1 * - tab0.col1 + - col2 FROM tab0
----
-7429
-8363
-9410

query I rowsort
SELECT ALL - tab1.col2 * col2 + - col0 - - 94 AS col1 FROM tab1
----
-2825
-3219
-9202

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6744
SELECT DISTINCT CAST( NULL AS SIGNED ) - col1 * + col1 * ( + col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6744
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col1 * + col1 * ( + col2 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - 78 * 87 + col1 AS col1 FROM tab0 AS cor0
----
6872
6877
6883

query I rowsort
SELECT - 3 * 69 - - col1 * 29 FROM tab0 AS cor0
----
2287
2432
2606

skipif mysql # not compatible
query I rowsort
SELECT ( - col2 ) * - col2 + CAST ( + col2 AS REAL ) FROM tab1 AS cor0
----
2970
3306
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 + - col2 col0 FROM tab2 AS cor0
----
40
51
52

query I rowsort
SELECT DISTINCT col2 + col1 * 84 FROM tab1 AS cor0
----
1188
2238
897

query I rowsort
SELECT + 95 * col1 + + col2 FROM tab0 AS cor0
----
8203
8727
9216

query I rowsort
SELECT 79 * - col2 * + 43 AS col2 FROM tab2
----
-129086
-88322
-91719

query I rowsort
SELECT - col1 + 17 * col2 FROM tab2 AS cor0
----
383
428
629

query I rowsort
SELECT + col2 + - 53 FROM tab2 cor0
----
-15
-26
-27

query I rowsort
SELECT + + col1 * 14 FROM tab2 AS cor0
----
238
434
826

query I rowsort
SELECT ALL - col0 * - 12 FROM tab2
----
84
936
948

query I rowsort
SELECT - cor0.col0 * + col1 + + col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-526
-848
30

query I rowsort
SELECT ALL col2 * ( + 40 ) AS col1 FROM tab1 AS cor0
----
2160
2280
3840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6758
SELECT DISTINCT + CAST( col1 AS SIGNED ) + col2 AS col1 FROM tab0 cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-6758
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + col2 AS col1 FROM tab0 cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6759
SELECT DISTINCT 51 * 78 + cor0.col0 DIV col2 FROM tab0 AS cor0
----
3978
3979
4013

skipif mysql # not compatible
query I rowsort label-6759
SELECT DISTINCT 51 * 78 + cor0.col0 / col2 FROM tab0 AS cor0
----
3978
3979
4013

query I rowsort
SELECT DISTINCT + ( 25 ) * cor0.col2 * 33 AS col2 FROM tab1 cor0
----
44550
47025
79200

query I rowsort
SELECT ALL - + ( col2 ) - col0 * col0 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT 34 + cor1.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 86b492a48734f78e4721f596d8c0aa2b

query I rowsort
SELECT col2 * col1 - + 78 FROM tab1
----
1170
1326
492

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6764
SELECT ALL + col1 * + CAST( col0 AS SIGNED ) FROM tab1
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL + col1 * + CAST ( col0 AS INTEGER ) FROM tab1
----
1040
640
78

query I rowsort
SELECT col0 * 9 - - col0 FROM tab2
----
70
780
790

query I rowsort
SELECT ALL + col0 * - tab2.col1 AS col1 FROM tab2
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6767
SELECT DISTINCT + ( col2 ) * - CAST( + cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-6767
SELECT DISTINCT + ( col2 ) * - CAST ( + cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - 46 * col0 FROM tab0 cor0
----
-1104
-1610
-4094

query I rowsort
SELECT + 53 + + col2 * - 12 AS col1 FROM tab2 AS cor0
----
-259
-271
-403

query I rowsort
SELECT - + col2 + col2 * - col0 * + col2 AS col0 FROM tab2 AS cor0
----
-114114
-5130
-52754

query I rowsort
SELECT ALL 98 + + col1 FROM tab2 cor0
----
115
129
157

query I rowsort
SELECT cor0.col2 + col0 + ( 92 ) FROM tab1 AS cor0
----
149
213
268

query I rowsort
SELECT ALL - 22 AS col0 FROM tab0 cor0
----
-22
-22
-22

query I rowsort
SELECT + 23 * - col1 FROM tab2 AS cor0
----
-1357
-391
-713

query I rowsort
SELECT 44 * + 65 * + tab2.col2 AS col2 FROM tab2
----
108680
74360
77220

query I rowsort
SELECT ALL - col1 * - col1 + - col2 AS col1 FROM tab0
----
7363
8199
9408

query I rowsort
SELECT ALL + 78 + - col0 + - ( - 68 ) AS col1 FROM tab0
----
111
122
57

query I rowsort
SELECT + col0 * col1 + 59 FROM tab0 AS cor0
----
2123
3454
8158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 * - col0 - + col0 col2 FROM tab2 AS cor0
----
-686
-7644
-7742

query I rowsort
SELECT DISTINCT + - 91 FROM tab2 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + - 76 * col1 AS col1 FROM tab0 AS cor0
----
-6536
-6916
-7372

query I rowsort
SELECT - - 39 + - 46 * col2 AS col1 FROM tab0 AS cor0
----
-1479
-3733
-7

query I rowsort
SELECT 46 + col2 * col2 * + ( ( - cor0.col1 ) ) FROM tab2 cor0
----
-22553
-24502
-39838

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 63 AS REAL ) + col0 * ( col1 ) AS col2 FROM tab2 AS cor0
----
1406
280
4665

query I rowsort
SELECT DISTINCT - - 5 * col0 - + col1 * - col1 AS col2 FROM tab2 AS cor0
----
3871
684
996

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + tab1.col2 col2 FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6787
SELECT 14 DIV col0 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6787
SELECT 14 / col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * - ( tab0.col2 ) * 71 + - 98 FROM tab0
----
-169
-477502
-77417

onlyif mysql # use DIV operator for integer division
query I rowsort label-6789
SELECT DISTINCT - col1 * 44 DIV col0 + ( + col2 ) AS col1 FROM tab1
----
-327
51
89

skipif mysql # not compatible
query I rowsort label-6789
SELECT DISTINCT - col1 * 44 / col0 + ( + col2 ) AS col1 FROM tab1
----
-327
51
89

query I rowsort
SELECT 59 + col2 AS col2 FROM tab2 AS cor0
----
85
86
97

query I rowsort
SELECT - + col2 * + col0 + - col0 AS col1 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT 66 - - col2 AS col2 FROM tab2 AS cor0
----
104
92
93

query I rowsort
SELECT DISTINCT - col1 + col2 * - tab1.col0 AS col1 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT ALL ( - tab2.col2 ) + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - ( col1 ) + + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ( 19 ) * col2 AS col1 FROM tab0
----
1558
19
627

query I rowsort
SELECT col1 + - tab1.col0 + col2 FROM tab1
----
29
3
77

query I rowsort
SELECT ALL col2 + ( + tab1.col2 ) AS col2 FROM tab1
----
108
114
192

query I rowsort
SELECT ALL 40 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0

query I rowsort
SELECT - col2 * - ( cor0.col1 ) * + col0 AS col2 FROM tab1 cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-6801
SELECT DISTINCT 11 DIV + col0 col1 FROM tab2
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6801
SELECT DISTINCT 11 / + col0 col1 FROM tab2
----
0
1

query I rowsort
SELECT ALL + col2 * + 8 + - 57 FROM tab2 AS cor0
----
151
159
247

onlyif mysql # use DIV operator for integer division
query I rowsort label-6803
SELECT ALL - + cor0.col0 * - 67 + cor0.col1 DIV + col2 FROM tab1 AS cor0
----
201
4288
5360

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL - + cor0.col0 * - 67 + cor0.col1 / + col2 FROM tab1 AS cor0
----
201
4288
5360

query I rowsort
SELECT - + col1 * - 32 FROM tab0 cor0
----
2752
2912
3104

query I rowsort
SELECT + ( cor0.col0 ) + cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8733ba2dd568938e338b27ad757d3e3b

query I rowsort
SELECT DISTINCT - cor0.col2 + 70 FROM tab2 AS cor0
----
32
43
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-6807
SELECT DISTINCT + col0 * - col1 + 68 + col1 DIV 23 FROM tab1 AS cor0
----
-572
-9
-972

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT + col0 * - col1 + 68 + col1 / 23 FROM tab1 AS cor0
----
-572
-9
-972

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6808
SELECT ALL col1 * - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL col1 * - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6809
SELECT DISTINCT - col1 * + CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT - col1 * + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6810
SELECT ALL + + cor0.col0 DIV col0 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL + + cor0.col0 / col0 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col2 * 47 FROM tab0 AS cor0
----
1551
3854
47

query I rowsort
SELECT cor0.col2 * + 11 FROM tab2 AS cor0
----
286
297
418

query I rowsort
SELECT col1 * ( col2 ) + + col0 AS col1 FROM tab0
----
132
2862
7551

query I rowsort
SELECT - + col0 * col2 + + 94 * - col2 * + ( + cor0.col0 ) FROM tab0 AS cor0
----
-3325
-693310
-75240

query I rowsort
SELECT ALL - + col0 * col1 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT ( - col1 ) * + col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * + cor0.col1 col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - 65 + 55 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1365
1420
2025

onlyif mysql # use DIV operator for integer division
query I rowsort label-6819
SELECT DISTINCT - 87 DIV + col0 + + cor0.col2 * col2 FROM tab2 AS cor0
----
1443
675
717

skipif mysql # not compatible
query I rowsort label-6819
SELECT DISTINCT - 87 / + col0 + + cor0.col2 * col2 FROM tab2 AS cor0
----
1443
675
717

query I rowsort
SELECT DISTINCT + ( + col1 ) + + 77 * col0 * col1 AS col1 FROM tab1 cor0
----
49290
6032
80093

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + - cor0.col2 col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + col0 * - tab2.col0 AS col0 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT + 51 * cor0.col1 FROM tab0 AS cor0
----
4386
4641
4947

query I rowsort
SELECT + - col0 - col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - col1 * + col1 - - 15 AS col1 FROM tab0 AS cor0
----
-7381
-8266
-9394

query I rowsort
SELECT col2 * - cor0.col0 + cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 87 - - col2 AS col0 FROM tab2 cor0
----
-49
-60
-61

query I rowsort
SELECT ALL + + col2 * + cor0.col0 + - 44 AS col0 FROM tab2 AS cor0
----
145
1984
2958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 + col2 col0 FROM tab0 AS cor0
----
124
173
92

query I rowsort
SELECT ALL - col2 + + ( + col0 ) * + cor0.col0 AS col2 FROM tab1 cor0
----
-45
4039
6304

query I rowsort
SELECT cor0.col1 * + col0 + ( - col0 ) AS col0 FROM tab0 cor0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-6832
SELECT ALL - 12 + + col2 DIV col2 FROM tab0 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL - 12 + + col2 / col2 FROM tab0 AS cor0
----
-11
-11
-11

query I rowsort
SELECT + col0 * + 92 AS col2 FROM tab1
----
276
5888
7360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 * cor1.col1 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 845fd9de767a635bfd6049e4d02a7196

query I rowsort
SELECT ALL + col2 * - 56 AS col2 FROM tab2
----
-1456
-1512
-2128

query I rowsort
SELECT DISTINCT ( cor0.col2 ) * col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + ( col0 ) * - col2 + ( + col1 + col0 ) * - cor0.col2 * col1 FROM tab2 AS cor0
----
-212186
-31995
-65018

query I rowsort
SELECT DISTINCT 53 AS col2 FROM tab2, tab2 AS cor0
----
53

query I rowsort
SELECT col2 * col1 - col1 FROM tab1
----
1235
1378
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 col2 FROM tab0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6841
SELECT cor0.col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6841
SELECT cor0.col0 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6842
SELECT cor0.col0 + - 25 + - col0 * + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6842
SELECT cor0.col0 + - 25 + - col0 * + CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6843
SELECT CAST( NULL AS SIGNED ) * + 0 + - col2 * - col2 + 27 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6843
SELECT CAST ( NULL AS INTEGER ) * + 0 + - col2 * - col2 + 27 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6844
SELECT - - 84 DIV ( + col1 ) AS col1 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-6844
SELECT - - 84 / ( + col1 ) AS col1 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT ALL - 93 + - 46 AS col0 FROM tab0
----
-139
-139
-139

onlyif mysql # use DIV operator for integer division
query I rowsort label-6846
SELECT ALL - col1 + + col2 DIV + col1 col0 FROM tab1
----
-24
-5
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL - col1 + + col2 / + col1 col0 FROM tab1
----
-24
-5
-6

query I rowsort
SELECT - 84 * 98 + - col1 * col2 AS col1 FROM tab0 AS cor0
----
-11070
-15694
-8329

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 * + col0 * + col0 + - col2 col1 FROM tab1 AS cor0
----
245703
383904
486

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6849
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2 col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6849
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6850
SELECT - - CAST( + 0 AS SIGNED ) + col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6850
SELECT - - CAST ( + 0 AS INTEGER ) + col0 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6851
SELECT DISTINCT CAST( + 44 AS SIGNED ) FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-6851
SELECT DISTINCT CAST ( + 44 AS INTEGER ) FROM tab1 AS cor0
----
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-6852
SELECT ALL col1 DIV col2 - - col1 * cor0.col1 * - col1 col1 FROM tab1 AS cor0
----
-1000
-17576
-2197

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6852
SELECT ALL col1 / col2 - - col1 * cor0.col1 * - col1 col1 FROM tab1 AS cor0
----
-1000
-17576
-2197

onlyif mysql # use DIV operator for integer division
query I rowsort label-6853
SELECT DISTINCT - - ( + cor0.col0 ) + 35 DIV 12 FROM tab1 AS cor0
----
5
66
82

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT - - ( + cor0.col0 ) + 35 / 12 FROM tab1 AS cor0
----
5
66
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col0 col1 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT - cor0.col1 * col2 + + col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL cor0.col1 * col2 * col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT ALL + - cor0.col1 * col2 * - cor0.col2 + col2 AS col1 FROM tab0 AS cor0
----
611966
93687
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6858
SELECT ALL - col0 DIV cor0.col2 col0 FROM tab1 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6858
SELECT ALL - col0 / cor0.col2 col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT 2 + + col0 AS col1 FROM tab1 AS cor0
----
5
66
82

query I rowsort
SELECT + col0 + ( 52 ) FROM tab0 cor0
----
141
76
87

query I rowsort
SELECT ALL tab1.col0 - - col2 AS col0 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT tab2.col0 + + 96 - 87 AS col0 FROM tab2
----
16
87
88

query I rowsort
SELECT DISTINCT + cor0.col0 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - + col0 + 4 AS col2 FROM tab2 AS cor0
----
-3
-74
-75

query I rowsort
SELECT col2 + - cor0.col1 * - col1 FROM tab0 AS cor0
----
7429
8363
9410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6866
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 + col2 col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 + col2 col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - ( + 20 ) + - col0 * - ( - col0 ) AS col1 FROM tab0 AS cor0
----
-1205
-556
-7901

query I rowsort
SELECT DISTINCT - ( col2 ) * col0 + 15 AS col1 FROM tab1 AS cor0
----
-147
-3633
-7665

query I rowsort
SELECT ( - 56 ) AS col1 FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT ALL - + 87 + col0 * col2 + + col1 * + ( - col2 ) * + col1 AS col1 FROM tab2 cor0
----
-25845
-8067
-88565

query I rowsort
SELECT ALL + ( ( col2 ) ) * + cor0.col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6872
SELECT ALL - ( 98 ) DIV + col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL - ( 98 ) / + col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * cor0.col1 + + cor0.col1 + - col0 AS col2 FROM tab0 AS cor0
----
7458
8283
9471

query I rowsort
SELECT + col2 * 42 + col2 FROM tab2 AS cor0
----
1118
1161
1634

query I rowsort
SELECT ALL ( 83 ) AS col0 FROM tab0 cor0
----
83
83
83

query I rowsort
SELECT + cor0.col1 * col2 + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL + 56 AS col2 FROM tab1 AS cor0
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col2 FROM tab2, tab0 cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT ALL - col2 - 62 * - col1 AS col1 FROM tab0
----
5299
5560
6013

query I rowsort
SELECT DISTINCT - - 15 * + cor0.col0 FROM tab0 AS cor0
----
1335
360
525

query I rowsort
SELECT ALL - 31 * - col2 + col0 AS col1 FROM tab2 cor0
----
1257
844
884

query I rowsort
SELECT - col1 * col1 + 32 * col0 FROM tab2
----
-737
-985
2239

query I rowsort
SELECT ALL + + 52 * cor0.col2 FROM tab2 cor0
----
1352
1404
1976

query I rowsort
SELECT ALL - 89 * col0 AS col1 FROM tab1 AS cor0
----
-267
-5696
-7120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * 88 col1 FROM tab0 AS cor0
----
2904
7216
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6886
SELECT DISTINCT - col1 + CAST( NULL AS DECIMAL ) * + 69 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6886
SELECT DISTINCT - col1 + CAST ( NULL AS REAL ) * + 69 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * 52 AS col1 FROM tab1 AS cor0
----
156
3328
4160

query I rowsort
SELECT ALL - + cor0.col2 + + 83 AS col1 FROM tab1 AS cor0
----
-13
26
29

query I rowsort
SELECT - col2 + - 56 FROM tab0 AS cor0
----
-138
-57
-89

query I rowsort
SELECT ALL col0 + + 78 * col0 AS col0 FROM tab2 AS cor0
----
553
6162
6241

query I rowsort
SELECT DISTINCT - + col1 + 38 + + cor0.col0 FROM tab2 AS cor0
----
100
14
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6892
SELECT ALL + col1 * col0 DIV 90 + cor0.col1 * col2 FROM tab0 cor0
----
134
2860
7551

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL + col1 * col0 / 90 + cor0.col1 * col2 FROM tab0 cor0
----
134
2860
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-6893
SELECT ALL - col0 DIV 61 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL - col0 / 61 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT - ( + cor0.col2 ) + col2 + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - + ( - 82 ) FROM tab2 cor0
----
82

query I rowsort
SELECT DISTINCT - 86 * col0 FROM tab1 AS cor0
----
-258
-5504
-6880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 + + col2 * col1 col1 FROM tab2 AS cor0
----
1546
658
849

query I rowsort
SELECT - tab1.col0 - ( 93 ) FROM tab1
----
-157
-173
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6899
SELECT DISTINCT + ( cor0.col1 ) DIV col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6899
SELECT DISTINCT + ( cor0.col1 ) / col1 FROM tab0 cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6900
SELECT + col0 * + ( + col2 ) + CAST( NULL AS SIGNED ) + - 33 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6900
SELECT + col0 * + ( + col2 ) + CAST ( NULL AS INTEGER ) + - 33 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - col0 * col0 + col2 AS col2 FROM tab2 AS cor0
----
-106059
-1492
-358930

onlyif mysql # use DIV operator for integer division
query I rowsort label-6902
SELECT ALL ( col2 ) DIV col0 + col0 * tab1.col0 AS col1 FROM tab1
----
27
4096
6401

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL ( col2 ) / col0 + col0 * tab1.col0 AS col1 FROM tab1
----
27
4096
6401

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 col2 FROM tab2 AS cor0
----
18
18
18

query I rowsort
SELECT ALL + + ( - col2 ) + col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + col2 * - col0 + col0 FROM tab1
----
-159
-3584
-7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) + - col2 col0 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT + ( col2 + + col1 ) AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT - 12 * ( tab0.col0 ) * col2 + - tab0.col1 AS col1 FROM tab0
----
-517
-87667
-9590

query I rowsort
SELECT - 72 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-39
-71
10

query I rowsort
SELECT + - 77 + - col2 AS col2 FROM tab1 cor0
----
-131
-134
-173

query I rowsort
SELECT ALL + ( - tab0.col2 * - tab0.col1 ) AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT col2 * - ( col2 + col0 ) FROM tab1
----
-16896
-3078
-6897

query I rowsort
SELECT DISTINCT + + 4 * col1 AS col0 FROM tab1 AS cor0
----
104
40
52

query I rowsort
SELECT DISTINCT ( col1 ) + col2 * - col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT DISTINCT - cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6916
SELECT ALL - 60 DIV + cor0.col0 col2 FROM tab2 cor0
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL - 60 / + cor0.col0 col2 FROM tab2 cor0
----
-8
0
0

query I rowsort
SELECT DISTINCT cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
10
13
26

query I rowsort
SELECT ALL col1 + ( 53 ) AS col0 FROM tab0
----
139
144
150

onlyif mysql # use DIV operator for integer division
query I rowsort label-6919
SELECT DISTINCT col0 DIV 61 - col1 FROM tab0 AS cor0
----
-86
-90
-97

skipif mysql # not compatible
query I rowsort label-6919
SELECT DISTINCT col0 / 61 - col1 FROM tab0 AS cor0
----
-86
-90
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6920
SELECT col2 + col1 DIV - 46 FROM tab2 AS cor0
----
25
27
38

skipif mysql # not compatible
query I rowsort label-6920
SELECT col2 + col1 / - 46 FROM tab2 AS cor0
----
25
27
38

query I rowsort
SELECT ALL + col1 + - ( - 81 ) * - col2 FROM tab0 AS cor0
----
-2587
-6551
16

query I rowsort
SELECT ALL col0 * + col0 - cor0.col1 AS col2 FROM tab2 AS cor0
----
18
6025
6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * 81 + + cor0.col0 col2 FROM tab0 AS cor0
----
6990
7460
7892

query I rowsort
SELECT ALL - col0 + - 7 FROM tab0 AS cor0
----
-31
-42
-96

query I rowsort
SELECT DISTINCT - col1 * - 73 * col2 + col2 FROM tab1
----
102546
41667
91200

query I rowsort
SELECT DISTINCT + + cor0.col1 * col0 + + col0 + col1 FROM tab0 AS cor0
----
2174
3527
8279

onlyif mysql # use DIV operator for integer division
query I rowsort label-6927
SELECT + 70 DIV col1 - col0 FROM tab1 AS cor0
----
-1
-57
-75

skipif mysql # not compatible
query I rowsort label-6927
SELECT + 70 / col1 - col0 FROM tab1 AS cor0
----
-1
-57
-75

query I rowsort
SELECT ALL ( - tab1.col0 ) AS col1 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT + - 76 + - col2 + col0 * col1 AS col0 FROM tab0 AS cor0
----
1955
3318
7941

query I rowsort
SELECT + 76 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6931
SELECT - CAST( NULL AS SIGNED ) * + col0 + cor0.col0 col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6931
SELECT - CAST ( NULL AS INTEGER ) * + col0 + cor0.col0 col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( - col1 ) * + cor0.col1 - - col0 AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - 29 col1 FROM tab2 AS cor0
----
-22
49
50

query I rowsort
SELECT - + col0 * + 54 + + col0 AS col2 FROM tab1 cor0
----
-159
-3392
-4240

query I rowsort
SELECT - col1 * ( - 94 ) AS col0 FROM tab0 AS cor0
----
8084
8554
9118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 * + col0 - - col0 col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - col0 * - 55 AS col1 FROM tab2 AS cor0
----
385
4290
4345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * ( + col2 + - col2 ) col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 + + col0 * + ( - col1 ) FROM tab0 cor0
----
-2097
-3396
-8181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT + + cor1.col0 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT cor1.col0 * cor1.col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 421c686606be6ea267ac0dc7521bf659

query I rowsort
SELECT ALL + 71 + + 35 AS col0 FROM tab0 AS cor0
----
106
106
106

query I rowsort
SELECT DISTINCT - ( + tab2.col1 ) FROM tab2, tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT col2 - cor0.col0 AS col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT cor0.col1 * + col2 - + col2 AS col1 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT - col1 - col2 * ( + ( col2 ) ) FROM tab1 AS cor0
----
-2942
-3259
-9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col1 - col2 col0 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT - 51 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4

query I rowsort
SELECT - - col0 - col1 * cor0.col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT ALL + 29 + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ec107307acc3762b401e172173796cf4

query I rowsort
SELECT - col2 * - col1 - - col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + col2 * ( col2 ) FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - - 91 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT - 35 + col2 AS col0 FROM tab0
----
-2
-34
47

query I rowsort
SELECT ALL + tab1.col2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6958
SELECT - - CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6958
SELECT - - CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6959
SELECT - col0 * 0 + tab1.col2 + col0 DIV 29 FROM tab1
----
54
59
98

skipif mysql # not compatible
query I rowsort label-6959
SELECT - col0 * 0 + tab1.col2 + col0 / 29 FROM tab1
----
54
59
98

query I rowsort
SELECT DISTINCT col1 + + 86 AS col1 FROM tab2
----
103
117
145

query I rowsort
SELECT - cor0.col2 - ( - cor0.col2 ) * - cor0.col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT - col2 + - 67 FROM tab2
----
-105
-93
-94

query I rowsort
SELECT - col1 + 71 + col0 AS col2 FROM tab1
----
125
138
48

query I rowsort
SELECT DISTINCT - tab0.col0 * ( + tab0.col0 * col0 ) + - ( col1 ) FROM tab0
----
-13910
-42972
-705060

query I rowsort
SELECT ALL + + cor0.col1 + - col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL col2 * + 54 + 83 FROM tab1 AS cor0
----
2999
3161
5267

query I rowsort
SELECT cor0.col1 + ( - col2 ) + col1 * 62 FROM tab2 AS cor0
----
1033
1926
3691

query I rowsort
SELECT DISTINCT + col0 * + col1 * ( cor0.col1 ) + - col1 FROM tab0 AS cor0
----
177418
329218
736918

query I rowsort
SELECT + - col1 + - col1 * + col0 * - col1 FROM tab1 AS cor0
----
13507
2002
6390

query I rowsort
SELECT ALL col0 * col0 + 73 AS col1 FROM tab1 AS cor0
----
4169
6473
82

query I rowsort
SELECT - - 48 * col2 FROM tab0 AS cor0
----
1584
3936
48

query I rowsort
SELECT ALL 74 * tab0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to d7efb2e82d6773b176f2308875ba5b65

query I rowsort
SELECT DISTINCT ( 75 ) FROM tab1
----
75

query I rowsort
SELECT + + col1 * + cor0.col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - col1 + col0 - col1 FROM tab0 AS cor0
----
-148
-159
-93

query I rowsort
SELECT DISTINCT + ( + col2 ) + ( 55 ) FROM tab0 AS cor0
----
137
56
88

query I rowsort
SELECT DISTINCT - - col0 * - cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT ( col0 ) + - col1 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + + 67 + - cor0.col0 FROM tab0 AS cor0
----
-22
32
43

query I rowsort
SELECT ALL + 63 AS col2 FROM tab2 cor0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + ( + col1 ) col1 FROM tab1 AS cor0
----
100
169
676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6982
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6982
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6983
SELECT CAST( 3 AS SIGNED ) * - col0 FROM tab0
----
-105
-267
-72

skipif mysql # not compatible
query I rowsort label-6983
SELECT CAST ( 3 AS INTEGER ) * - col0 FROM tab0
----
-105
-267
-72

query I rowsort
SELECT - - 62 * col0 FROM tab1 AS cor0
----
186
3968
4960

query I rowsort
SELECT DISTINCT + col2 * col0 * ( + cor0.col1 ) FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - 88 AS col1 FROM tab1
----
-88
-88
-88

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab1 cor0, tab1 cor1
----
972 values hashing to cee640567b2a4ba7d97109d5025bf4d9

query I rowsort
SELECT + col1 + col2 * 42 FROM tab1 AS cor0
----
2294
2404
4045

query I rowsort
SELECT ALL - col1 + col0 * 48 FROM tab1 cor0
----
118
3062
3827

query I rowsort
SELECT DISTINCT col0 * col0 + col1 AS col0 FROM tab2
----
6143
6258
80

query I rowsort
SELECT + col2 + - ( + 9 ) * + col2 + - ( col2 ) AS col1 FROM tab1
----
-486
-513
-864

query I rowsort
SELECT + col0 + col2 * 50 * tab1.col2 FROM tab1
----
145803
162514
460880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 84 col0 FROM tab1
----
1092
2184
840

skipif mysql # not compatible
query I rowsort
SELECT - col0 - CAST ( - col2 AS REAL ) FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL - col0 * ( + col0 ) - + col2 FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT + col0 * - col1 + col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-6997
SELECT ALL + cor0.col0 + col1 DIV col0 AS col0 FROM tab0 AS cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL + cor0.col0 + col1 / col0 AS col0 FROM tab0 AS cor0
----
27
37
90

query I rowsort
SELECT DISTINCT - - col0 - 13 FROM tab0 AS cor0
----
11
22
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6999
SELECT + col2 DIV + col0 + cor0.col2 AS col0 FROM tab2 cor0
----
26
30
38

skipif mysql # not compatible
query I rowsort label-6999
SELECT + col2 / + col0 + cor0.col2 AS col0 FROM tab2 cor0
----
26
30
38

query I rowsort
SELECT DISTINCT - col0 + + ( - col1 ) FROM tab1 cor0
----
-29
-74
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + col1 col1 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7002
SELECT ALL + CAST( + cor0.col0 AS SIGNED ) * cor0.col2 + col0 FROM tab2 AS cor0
----
196
2106
3081

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL + CAST ( + cor0.col0 AS INTEGER ) * cor0.col2 + col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-7003
SELECT ALL - 81 DIV - cor0.col2 AS col0 FROM tab0 AS cor0
----
0
2
81

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL - 81 / - cor0.col2 AS col0 FROM tab0 AS cor0
----
0
2
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7004
SELECT ALL + - CAST( cor0.col0 AS SIGNED ) + col1 FROM tab1 AS cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL + - CAST ( cor0.col0 AS INTEGER ) + col1 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-7005
SELECT DISTINCT + + 39 DIV + col1 FROM tab1 AS cor0
----
1
3

skipif mysql # not compatible
query I rowsort label-7005
SELECT DISTINCT + + 39 / + col1 FROM tab1 AS cor0
----
1
3

query I rowsort
SELECT ALL ( 86 ) AS col1 FROM tab2 AS cor0
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col0 + cor0.col1 * 62 * - col2 col2 FROM tab2 AS cor0
----
-41395
-52111
-99710

query I rowsort
SELECT ALL - ( cor0.col1 ) - cor0.col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT - col1 * - 49 AS col2 FROM tab1 AS cor0
----
1274
490
637

query I rowsort
SELECT ALL ( - col0 ) * - col2 * cor0.col1 + - col0 FROM tab1 AS cor0
----
36416
4209
99760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7011
SELECT DISTINCT + - CAST( - col0 AS SIGNED ) + + col1 - CAST( ( - col0 ) AS SIGNED ) * col2 FROM tab2 AS cor0
----
2165
227
3098

skipif mysql # not compatible
query I rowsort label-7011
SELECT DISTINCT + - CAST ( - col0 AS INTEGER ) + + col1 - CAST ( ( - col0 ) AS INTEGER ) * col2 FROM tab2 AS cor0
----
2165
227
3098

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7012
SELECT col0 * col1 * + col1 + + col0 + + CAST( NULL AS SIGNED ) / - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7012
SELECT col0 * col1 * + col1 + + col0 + + CAST ( NULL AS INTEGER ) / - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab2.col0 + ( 23 ) FROM tab2
----
101
102
30

query I rowsort
SELECT DISTINCT + tab0.col0 * col2 + - col1 AS col0 FROM tab0
----
-62
706
7207

query I rowsort
SELECT - 53 * col2 FROM tab2 cor0
----
-1378
-1431
-2014

query I rowsort
SELECT - 3 + + col0 FROM tab1 AS cor0
----
0
61
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7017
SELECT + CAST( NULL AS SIGNED ) * col2 - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7017
SELECT + CAST ( NULL AS INTEGER ) * col2 - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 + + 50 FROM tab0 AS cor0
----
-32
17
49

query I rowsort
SELECT ALL 41 * col1 FROM tab2
----
1271
2419
697

skipif mysql # not compatible
query I rowsort
SELECT - + ( cor0.col1 ) * - col2 + CAST ( + col0 + col1 AS REAL ) FROM tab2 AS cor0
----
1671
742
875

query I rowsort
SELECT DISTINCT + 48 - - cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
145
2886
7510

onlyif mysql # use DIV operator for integer division
query I rowsort label-7022
SELECT + 73 DIV col0 + col0 FROM tab1 AS cor0
----
27
65
80

skipif mysql # not compatible
query I rowsort label-7022
SELECT + 73 / col0 + col0 FROM tab1 AS cor0
----
27
65
80

query I rowsort
SELECT - cor0.col2 * + 52 - - col1 AS col1 FROM tab0 AS cor0
----
-1630
-4173
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7024
SELECT cor0.col1 * cor0.col0 + + CAST( NULL AS DECIMAL ) * cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7024
SELECT cor0.col1 * cor0.col0 + + CAST ( NULL AS REAL ) * cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - + cor0.col1 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

onlyif mysql # use DIV operator for integer division
query I rowsort label-7026
SELECT + col0 DIV + col2 + 14 AS col2 FROM tab1 AS cor0
----
14
14
15

skipif mysql # not compatible
query I rowsort label-7026
SELECT + col0 / + col2 + 14 AS col2 FROM tab1 AS cor0
----
14
14
15

query I rowsort
SELECT ALL - + col1 + + col1 * - 13 AS col0 FROM tab1 AS cor0
----
-140
-182
-364

query I rowsort
SELECT col2 + cor0.col0 * + 41 AS col0 FROM tab0 AS cor0
----
1017
1436
3731

query I rowsort
SELECT ALL + tab2.col0 * + col0 * - ( - col0 * col2 ) FROM tab2
----
12338352
18735482
9261

query I rowsort
SELECT - - tab0.col2 * - cor0.col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7bbc838944bf624aeb89c83e3012c97c

query I rowsort
SELECT ALL ( cor0.col2 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7032
SELECT - col1 * + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-7032
SELECT - col1 * + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - col1 * 82 * + 3 AS col2 FROM tab2 AS cor0
----
-14514
-4182
-7626

query I rowsort
SELECT DISTINCT col1 * ( + col1 ) FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT + + col2 * - 48 FROM tab2 cor0
----
-1248
-1296
-1824

onlyif mysql # use DIV operator for integer division
query I rowsort label-7036
SELECT ALL ( tab1.col2 ) * ( col0 ) DIV - col0 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL ( tab1.col2 ) * ( col0 ) / - col0 FROM tab1
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7037
SELECT ALL col1 - - tab2.col2 DIV 21 AS col1 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL col1 - - tab2.col2 / 21 AS col1 FROM tab2
----
18
32
60

query I rowsort
SELECT col1 * - 13 FROM tab2 cor0
----
-221
-403
-767

query I rowsort
SELECT - col0 * - col1 + - cor0.col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT col2 + - 82 FROM tab2 AS cor0
----
-44
-55
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col1 * + col0 col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL - col0 + 26 * + 38 + - col2 * col1 FROM tab0 AS cor0
----
-1874
-6563
856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + col1 * - cor0.col1 col2 FROM tab2 cor0
----
-3559
-368
-968

query I rowsort
SELECT DISTINCT - - cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL + - col1 * - col0 * - col2 + col0 AS col1 FROM tab2 AS cor0
----
-119574
-50955
-5852

query I rowsort
SELECT cor0.col1 * ( + 70 ) + col0 AS col0 FROM tab1 AS cor0
----
1823
764
990

query I rowsort
SELECT DISTINCT col1 + 22 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
107
77
80

query I rowsort
SELECT - col1 + col0 + col1 * - cor0.col1 * - col2 FROM tab1 AS cor0
----
16291
36481
5754

query I rowsort
SELECT DISTINCT + - col1 * 97 + col2 FROM tab0 cor0
----
-8309
-8745
-9408

query I rowsort
SELECT + + col1 + - col1 + - col1 AS col2 FROM tab2 cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 60 col0 FROM tab2 AS cor0
----
-138
-139
-67

query I rowsort
SELECT ALL - - col1 * - ( + col2 ) + cor0.col0 * ( - col2 ) AS col2 FROM tab2 AS cor0
----
-1026
-3562
-3648

query I rowsort
SELECT + + 37 AS col0 FROM tab0 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort
SELECT + ( col0 ) + - col1 * CAST ( + col0 AS REAL ) FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL + col1 * + col0 + 70 FROM tab1 cor0
----
1110
148
710

query I rowsort
SELECT ALL ( 47 ) FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 * + col0 col0 FROM tab2 AS cor0
----
49
546
553

query I rowsort
SELECT - - 20 * col2 - - ( col0 ) FROM tab1 cor0
----
1083
1204
2000

query I rowsort
SELECT ALL 9 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT DISTINCT + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1
33
82

query I rowsort
SELECT ALL col1 - + col2 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT ALL col1 + - col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
100
139
193

query I rowsort
SELECT ALL 83 - col2 AS col0 FROM tab1 AS cor0
----
-13
26
29

query I rowsort
SELECT + 48 * + col2 FROM tab0 AS cor0
----
1584
3936
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col1 col0 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 17 col2 FROM tab0 cor0
----
-17

query I rowsort
SELECT + 2 * col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT + ( col2 * col0 + - 11 ) FROM tab1
----
151
3637
7669

query I rowsort
SELECT ALL + - 17 * col2 AS col2 FROM tab2 AS cor0
----
-442
-459
-646

onlyif mysql # use DIV operator for integer division
query I rowsort label-7070
SELECT ALL + - col1 DIV col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL + - col1 / col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7071
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7071
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 56 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
56

query I rowsort
SELECT DISTINCT + - 34 * 68 + + cor0.col0 * - col1 AS col0 FROM tab1 AS cor0
----
-2390
-2952
-3352

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7074
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1, tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7074
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT cor0.col1 * - 64 FROM tab2, tab1 AS cor0, tab1 cor1
----
-1664
-640
-832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 * + col2 + cor0.col2 col1 FROM tab0 cor0
----
-34
-7216
-759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( tab0.col0 ) * col1 col1 FROM tab0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7078
SELECT DISTINCT + CAST( col1 + col1 AS SIGNED ) col2 FROM tab1
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7078
SELECT DISTINCT + CAST ( col1 + col1 AS INTEGER ) col2 FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT + ( col0 + + tab2.col1 ) FROM tab2
----
137
38
96

query I rowsort
SELECT ALL col0 + col0 * col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL + + 44 + - col2 FROM tab0 cor0
----
-38
11
43

query I rowsort
SELECT DISTINCT + - 5 * col2 FROM tab1 AS cor0
----
-270
-285
-480

query I rowsort
SELECT + - col2 + + col2 * - cor0.col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT ALL col2 * - col0 + col1 * - col2 FROM tab1
----
-1566
-4218
-8928

query I rowsort
SELECT DISTINCT + col0 + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7086
SELECT col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7086
SELECT col0 * CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + tab0.col1 + - 81 AS col2 FROM tab0
----
-178
-2919
-7543

query I rowsort
SELECT 54 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7089
SELECT ALL + col0 / CAST( NULL AS SIGNED ) + - col2 + col0 * 47 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7089
SELECT ALL + col0 / CAST ( NULL AS INTEGER ) + - col2 + col0 * 47 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + cor0.col1 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - 83 FROM tab2, tab0 AS cor0
----
-83

query I rowsort
SELECT - - col0 * col0 + - ( col0 + col0 ) AS col2 FROM tab1 AS cor0
----
3
3968
6240

query I rowsort
SELECT ALL col1 * + col2 + + col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 * col2 col0 FROM tab0 AS cor0
----
198
492
6

query I rowsort
SELECT DISTINCT + col1 + col2 AS col0 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + - col1 - col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 + - tab2.col1 col2 FROM tab2
----
28
56
70

query I rowsort
SELECT DISTINCT - 4 * - cor0.col0 FROM tab2 AS cor0
----
28
312
316

query I rowsort
SELECT DISTINCT - 5 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-430
-455
-485

query I rowsort
SELECT + + 54 * col2 AS col0 FROM tab1 AS cor0
----
2916
3078
5184

onlyif mysql # use DIV operator for integer division
query I rowsort label-7101
SELECT DISTINCT col2 DIV - col2 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7101
SELECT DISTINCT col2 / - col2 FROM tab1 cor0
----
-1

query I rowsort
SELECT + ( + col2 ) * + 6 FROM tab1 AS cor0
----
324
342
576

onlyif mysql # use DIV operator for integer division
query I rowsort label-7103
SELECT DISTINCT - col2 DIV - col1 + col2 AS col1 FROM tab2 AS cor0
----
26
27
40

skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT - col2 / - col1 + col2 AS col1 FROM tab2 AS cor0
----
26
27
40

query I rowsort
SELECT ALL - - 39 FROM tab0 AS cor0
----
39
39
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7105
SELECT ALL + col1 * - col0 + + CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL + col1 * - col0 + + CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 11 * - col2 + col2 * col2 AS col1 FROM tab0 cor0
----
12
1452
7626

query I rowsort
SELECT + + ( cor0.col1 ) - + 55 * col0 * col0 AS col0 FROM tab2 AS cor0
----
-2664
-334561
-343238

query I rowsort
SELECT DISTINCT col0 + + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL - ( col2 ) + - 70 * col1 * + col0 AS col0 FROM tab0 AS cor0
----
-144513
-237651
-567012

query I rowsort
SELECT col0 * + col2 * 80 FROM tab0 cor0
----
2800
583840
63360

query I rowsort
SELECT col1 + + ( col2 ) + - col0 AS col0 FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT col0 * - 4 - + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-246
-307
14

query I rowsort
SELECT + col0 * + ( - col1 ) + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT + col2 + ( + 62 ) * col1 AS col0 FROM tab0 AS cor0
----
5365
5724
6015

query I rowsort
SELECT - - col1 * + col1 - + col1 * - col1 FROM tab1 AS cor0
----
1352
200
338

query I rowsort
SELECT - col0 + 67 * 50 FROM tab1 AS cor0
----
3270
3286
3347

query I rowsort
SELECT - col2 + + col1 + 37 FROM tab0
----
133
46
90

query I rowsort
SELECT DISTINCT - col1 + + col2 * col1 AS col0 FROM tab2
----
1475
629
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-7119
SELECT - 4 DIV + col2 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-7119
SELECT - 4 / + col2 FROM tab0
----
-4
0
0

query I rowsort
SELECT col0 * + col2 * 52 AS col0 FROM tab1
----
189696
399360
8424

query I rowsort
SELECT + + col0 * - ( col2 ) - - col2 AS col2 FROM tab0 cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL - col1 - col2 * col2 FROM tab0 AS cor0
----
-1175
-6815
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7123
SELECT ALL 20 * - cor0.col0 + + cor0.col1 * + CAST( - col1 AS SIGNED ) FROM tab2 cor0
----
-1101
-1869
-5041

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL 20 * - cor0.col0 + + cor0.col1 * + CAST ( - col1 AS INTEGER ) FROM tab2 cor0
----
-1101
-1869
-5041

query I rowsort
SELECT + + col1 * 55 AS col0 FROM tab2 AS cor0
----
1705
3245
935

query I rowsort
SELECT + 72 * 43 AS col1 FROM tab0 AS cor0
----
3096
3096
3096

query I rowsort
SELECT ALL - col1 * + col2 + + col2 * col0 - col2 AS col2 FROM tab2 cor0
----
-675
2318
468

query I rowsort
SELECT 32 + col2 * + col2 FROM tab0 AS cor0
----
1121
33
6756

query I rowsort
SELECT DISTINCT + 94 + col2 AS col2 FROM tab0 AS cor0
----
127
176
95

query I rowsort
SELECT + 19 AS col1 FROM tab2 cor0
----
19
19
19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7130
SELECT - tab0.col1 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7130
SELECT - tab0.col1 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - tab2.col0 + - 60 FROM tab2
----
-138
-139
-67

query I rowsort
SELECT ( + 56 ) AS col1 FROM tab0
----
56
56
56

query I rowsort
SELECT ALL - 49 AS col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
81 values hashing to f1b2d4fe76c1d323cc1ffd93b2fcab89

query I rowsort
SELECT ( + col2 * col1 ) AS col2 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col1 AS REAL ) + - col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 + + col0 FROM tab0 cor0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7137
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7137
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7138
SELECT DISTINCT CAST( 80 AS SIGNED ) * - col1 AS col1 FROM tab2 AS cor0
----
-1360
-2480
-4720

skipif mysql # not compatible
query I rowsort label-7138
SELECT DISTINCT CAST ( 80 AS INTEGER ) * - col1 AS col1 FROM tab2 AS cor0
----
-1360
-2480
-4720

query I rowsort
SELECT + + ( col2 ) * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 col1 FROM tab1, tab0 AS cor0
----
63

query I rowsort
SELECT DISTINCT 49 AS col2 FROM tab2, tab2 AS cor0
----
49

query I rowsort
SELECT ALL + 56 AS col0 FROM tab1, tab2 cor0 CROSS JOIN tab0
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT + cor0.col2 + 60 AS col1 FROM tab2 AS cor0
----
86
87
98

query I rowsort
SELECT 95 * tab1.col1 AS col1 FROM tab1
----
1235
2470
950

query I rowsort
SELECT 36 AS col2 FROM tab1, tab0 cor0 CROSS JOIN tab0
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT - 2 AS col1 FROM tab2, tab2 cor0 CROSS JOIN tab0
----
27 values hashing to 20c9213316527d507e26425041e08387

onlyif mysql # use DIV operator for integer division
query I rowsort label-7147
SELECT 89 + 62 DIV cor0.col1 FROM tab1 AS cor0
----
91
93
95

skipif mysql # not compatible
query I rowsort label-7147
SELECT 89 + 62 / cor0.col1 FROM tab1 AS cor0
----
91
93
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-7148
SELECT + cor0.col2 DIV col1 AS col1 FROM tab2 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7148
SELECT + cor0.col2 / col1 AS col1 FROM tab2 cor0
----
0
0
2

query I rowsort
SELECT DISTINCT + col2 + - col0 + + col0 AS col1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-7150
SELECT DISTINCT 0 * col1 DIV col0 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT 0 * col1 / col0 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ( col2 ) * cor0.col1 + col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1322
15383
3414

onlyif mysql # use DIV operator for integer division
query I rowsort label-7152
SELECT + ( col0 ) DIV - col1 FROM tab2 cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-7152
SELECT + ( col0 ) / - col1 FROM tab2 cor0
----
-1
-4
0

query I rowsort
SELECT - col1 * + col0 * col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col0 * cor0.col2 col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ALL cor0.col2 * - col1 * - col2 + col1 AS col2 FROM tab2 AS cor0
----
22630
24565
39943

query I rowsort
SELECT ALL col0 * + 8 AS col1 FROM tab1 AS cor0
----
24
512
640

query I rowsort
SELECT ALL - + col1 * + 42 FROM tab0 AS cor0
----
-3612
-3822
-4074

query I rowsort
SELECT ALL + + col0 + 34 AS col2 FROM tab0 AS cor0
----
123
58
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + col0 + - col1 - col0 col0 FROM tab1 AS cor0
----
-38
-4170
-6493

onlyif mysql # use DIV operator for integer division
query I rowsort label-7160
SELECT ALL - cor0.col2 DIV + 29 - - 85 FROM tab0 AS cor0
----
83
84
85

skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL - cor0.col2 / + 29 - - 85 FROM tab0 AS cor0
----
83
84
85

query I rowsort
SELECT ALL + col2 * - col2 - + col0 FROM tab1 AS cor0
----
-2919
-3313
-9296

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( ( + col0 ) AS REAL ) * - col1 + col0 FROM tab2 AS cor0
----
1422
224
4680

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + 62 AS REAL ) * col0 + ( 69 * cor0.col1 ) FROM tab2 cor0
----
2573
6071
8907

onlyif mysql # use DIV operator for integer division
query I rowsort label-7164
SELECT DISTINCT + col2 * + 6 + cor0.col1 DIV col1 + + col1 FROM tab1 AS cor0
----
351
353
590

skipif mysql # not compatible
query I rowsort label-7164
SELECT DISTINCT + col2 * + 6 + cor0.col1 / col1 + + col1 FROM tab1 AS cor0
----
351
353
590

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7165
SELECT DISTINCT CAST( col1 AS SIGNED ) * + col0 + - 33 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-674
3744
89

skipif mysql # not compatible
query I rowsort label-7165
SELECT DISTINCT CAST ( col1 AS INTEGER ) * + col0 + - 33 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-674
3744
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7166
SELECT DISTINCT 59 * col2 * - col1 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7166
SELECT DISTINCT 59 * col2 * - col1 + - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 36 - - col0 FROM tab2 cor0
----
-29
42
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 * + col2 col0 FROM tab1 AS cor0
----
432
456
768

query I rowsort
SELECT 37 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT 63 * - col1 * col1 AS col0 FROM tab0
----
-465948
-521703
-592767

query I rowsort
SELECT DISTINCT + col0 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7172
SELECT - - col0 * 30 * col1 + col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7172
SELECT - - col0 * 30 * col1 + col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 10 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0

query I rowsort
SELECT 12 + col1 AS col0 FROM tab2 AS cor0
----
29
43
71

query I rowsort
SELECT 17 * - tab0.col1 AS col0 FROM tab0
----
-1462
-1547
-1649

query I rowsort
SELECT - tab2.col1 * + col0 * - 36 FROM tab2
----
165672
48348
7812

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 * + col1 col1 FROM tab1
----
1898
730
949

query I rowsort
SELECT DISTINCT col2 + - col0 + - ( - col2 ) AS col1 FROM tab1
----
105
112
50

query I rowsort
SELECT DISTINCT + col0 + - tab1.col1 AS col1 FROM tab1
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7180
SELECT DISTINCT - CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-7180
SELECT DISTINCT - CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - 29 AS col1 FROM tab2 AS cor0
----
-29
-29
-29

query I rowsort
SELECT ALL - ( + 64 ) FROM tab2 AS cor0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT ( col2 ) * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + + col0 * 81 AS col0 FROM tab2 cor0
----
567
6318
6399

query I rowsort
SELECT ALL - 64 * - col1 + + col1 * - col0 * + cor0.col2 FROM tab1 AS cor0
----
-2548
-35840
-99008

query I rowsort
SELECT DISTINCT col0 * + ( + col0 ) AS col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL + 13 * - 21 + col0 * + col0 AS col1 FROM tab1 AS cor0
----
-264
3823
6127

query I rowsort
SELECT col1 * + 20 AS col1 FROM tab1
----
200
260
520

query I rowsort
SELECT - col2 + + col0 * col2 FROM tab1 cor0
----
108
3591
7584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - ( col1 ) + col1 * ( - col2 ) AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( col2 ) * cor0.col2 + ( + col0 ) col1 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT ( col1 ) * col2 - ( - ( col1 ) * - col2 + cor0.col1 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT 46 + 97 FROM tab2 cor0
----
143
143
143

onlyif mysql # use DIV operator for integer division
query I rowsort label-7195
SELECT + cor0.col2 DIV cor0.col0 - + ( col0 ) FROM tab1 cor0
----
-64
-79
15

skipif mysql # not compatible
query I rowsort label-7195
SELECT + cor0.col2 / cor0.col0 - + ( col0 ) FROM tab1 cor0
----
-64
-79
15

query I rowsort
SELECT ALL 24 + - cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 7607aa711594b93a04a1b001dc2b95bf

query I rowsort
SELECT + 54 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT col0 * + col2 + + col2 * col1 AS col0 FROM tab0
----
132
14760
3630

query I rowsort
SELECT - 50 + - col1 * + 63 AS col2 FROM tab0
----
-5468
-5783
-6161

query I rowsort
SELECT ALL 15 FROM tab0, tab0 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT ALL col0 * col2 * ( - col1 ) FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT + col1 * ( cor0.col0 ) AS col1 FROM tab0 cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + cor0.col1 col1 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7204
SELECT - cor0.col2 * + CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-7204
SELECT - cor0.col2 * + CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - tab2.col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT col0 * + 16 AS col2 FROM tab2
----
112
1248
1264

onlyif mysql # use DIV operator for integer division
query I rowsort label-7208
SELECT ALL - col2 DIV col1 col2 FROM tab2
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL - col2 / col1 col2 FROM tab2
----
-2
0
0

query I rowsort
SELECT DISTINCT col2 * ( col2 + col1 ) AS col2 FROM tab2
----
1566
2090
2210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col0 FROM tab1
----
45
45
45

query I rowsort
SELECT DISTINCT col2 * col0 * - col0 AS col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT - 24 * + 90 AS col1 FROM tab0
----
-2160

onlyif mysql # use DIV operator for integer division
query I rowsort label-7213
SELECT + - cor0.col1 DIV + cor0.col0 AS col1 FROM tab1 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-7213
SELECT + - cor0.col1 / + cor0.col0 AS col1 FROM tab1 cor0
----
-8
0
0

query I rowsort
SELECT 63 * 82 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 9db6bc9178b28f489efc11e582ab0ee5

query I rowsort
SELECT ALL ( col1 ) * col1 AS col1 FROM tab2
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - col0 + col2 col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT - - col1 * - cor0.col0 + col2 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT ALL ( col2 * tab1.col2 ) FROM tab1
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7219
SELECT - - 32 + col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7219
SELECT - - 32 + col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + col0 * col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
336
474474
492960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7221
SELECT + col2 / 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-7221
SELECT + col2 / CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 47 + + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ea736fc1f3e44ab1631574c02012b478

query I rowsort
SELECT ALL + + col1 * ( 8 ) * col1 + - col0 * col1 * col0 FROM tab0 AS cor0
----
-43553
-654563
9632

query I rowsort
SELECT + col0 + - col1 * 32 AS col2 FROM tab0 AS cor0
----
-2728
-2823
-3069

query I rowsort
SELECT - col0 + col0 + 46 FROM tab0
----
46
46
46

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7226
SELECT col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7226
SELECT col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - 25 + col1 + col2 FROM tab0 AS cor0
----
-1877
-706
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-7228
SELECT - - col1 DIV - cor0.col0 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-7228
SELECT - - col1 / - cor0.col0 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT cor0.col1 + - 87 AS col0 FROM tab2 cor0
----
-28
-56
-70

query I rowsort
SELECT - col2 * cor0.col1 * ( 43 * - col0 ) FROM tab2 AS cor0
----
2194462
251937
5145036

query I rowsort
SELECT ALL + + 75 * col0 FROM tab0 cor0
----
1800
2625
6675

onlyif mysql # use DIV operator for integer division
query I rowsort label-7232
SELECT ALL col2 DIV cor0.col2 + + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-161
-3647
-7679

skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL col2 / cor0.col2 + + col0 * - col2 AS col1 FROM tab1 AS cor0
----
-161
-3647
-7679

query I rowsort
SELECT ALL + + 65 * - col0 AS col2 FROM tab0 cor0
----
-1560
-2275
-5785

query I rowsort
SELECT DISTINCT + col0 * col2 + + ( col2 + + col1 ) * ( 18 + - col0 ) FROM tab2 AS cor0
----
-3072
-353
827

query I rowsort
SELECT ALL + + col1 * + cor0.col2 * + 97 FROM tab2 AS cor0
----
148798
62662
81189

query I rowsort
SELECT ALL - col1 * + col1 * ( col0 ) + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-13616
-2082
-6457

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7237
SELECT DISTINCT - cor0.col1 / - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT - cor0.col1 / - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL col1 + col2 * - 58 AS col1 FROM tab2 AS cor0
----
-1449
-1535
-2187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 - ( - ( cor0.col2 ) ) col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 24 AS col1 FROM tab2
----
24
24
24

query I rowsort
SELECT DISTINCT + 53 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
53

query I rowsort
SELECT DISTINCT - 89 FROM tab2, tab0, tab0 AS cor0
----
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor1.col1 ) col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT ALL - 47 + col1 * col1 AS col0 FROM tab2 AS cor0
----
242
3434
914

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 * col1 col2 FROM tab0 AS cor0
----
-4214
-4459
-4753

query I rowsort
SELECT + col2 + - 13 + + col1 FROM tab2 AS cor0
----
42
45
72

query I rowsort
SELECT DISTINCT col0 + - 49 AS col2 FROM tab0 AS cor0
----
-14
-25
40

query I rowsort
SELECT - - ( cor0.col1 ) + col0 + col0 AS col1 FROM tab2 AS cor0
----
175
215
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) + - col0 col2 FROM tab1 AS cor0
----
-128
-160
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-7250
SELECT DISTINCT - ( - 39 ) DIV - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-39
0

skipif mysql # not compatible
query I rowsort label-7250
SELECT DISTINCT - ( - 39 ) / - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-39
0

query I rowsort
SELECT col2 * - 6 FROM tab0 AS cor0
----
-198
-492
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-7252
SELECT DISTINCT col2 DIV - ( + tab2.col1 * + tab2.col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7252
SELECT DISTINCT col2 / - ( + tab2.col1 * + tab2.col0 ) FROM tab2
----
0

query I rowsort
SELECT - col0 * 99 AS col0 FROM tab1
----
-297
-6336
-7920

query I rowsort
SELECT - col2 * + col2 * col2 AS col2 FROM tab2
----
-17576
-19683
-54872

query I rowsort
SELECT 6 + 73 * + col1 AS col1 FROM tab2 AS cor0
----
1247
2269
4313

query I rowsort
SELECT ( 30 ) * + col0 AS col2 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT + + col0 * cor0.col2 + + col1 + - col0 AS col2 FROM tab2 AS cor0
----
2009
213
2940

query I rowsort
SELECT DISTINCT + col1 + 40 FROM tab1
----
50
53
66

query I rowsort
SELECT - 20 AS col0 FROM tab2
----
-20
-20
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col0 FROM tab0 AS cor0
----
-38
-38
-38

query I rowsort
SELECT 65 * + col2 AS col2 FROM tab0
----
2145
5330
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7262
SELECT CAST( + col2 AS SIGNED ) * tab0.col0 * col2 AS col1 FROM tab0
----
26136
35
598436

skipif mysql # not compatible
query I rowsort label-7262
SELECT CAST ( + col2 AS INTEGER ) * tab0.col0 * col2 AS col1 FROM tab0
----
26136
35
598436

query I rowsort
SELECT DISTINCT col2 + + col0 + + col0 AS col0 FROM tab1
----
185
256
60

query I rowsort
SELECT DISTINCT 27 + 43 FROM tab2
----
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-7265
SELECT ALL 37 + col0 DIV - col1 AS col1 FROM tab1
----
31
31
37

skipif mysql # not compatible
query I rowsort label-7265
SELECT ALL 37 + col0 / - col1 AS col1 FROM tab1
----
31
31
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-7266
SELECT DISTINCT - col0 + col2 + col2 DIV col2 FROM tab1
----
-6
17
52

skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT - col0 + col2 + col2 / col2 FROM tab1
----
-6
17
52

query I rowsort
SELECT + ( + col0 ) + - col0 * col0 AS col1 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT - 6 * col1 * col1 FROM tab2
----
-1734
-20886
-5766

query I rowsort
SELECT + + col0 + - col0 * - col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT + col1 * tab0.col1 * col2 FROM tab0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-7271
SELECT ALL + 46 DIV col0 AS col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7271
SELECT ALL + 46 / col0 AS col0 FROM tab0
----
0
1
1

query I rowsort
SELECT ALL 68 AS col0 FROM tab0 AS cor0
----
68
68
68

query I rowsort
SELECT - col1 + + col0 * 76 AS col2 FROM tab1 AS cor0
----
202
4854
6067

query I rowsort
SELECT ( - col1 ) * - 78 AS col2 FROM tab1 AS cor0
----
1014
2028
780

query I rowsort
SELECT DISTINCT - col1 * + col2 * col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT - + 57 * + col2 + 72 * - col2 * + col2 + 67 * + col0 FROM tab0 AS cor0
----
-482839
-78681
2216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 86 * - col1 * - 80 col1 FROM tab0 AS cor0
----
-591680
-626080
-667360

query I rowsort
SELECT DISTINCT + - col2 + col1 * - 95 FROM tab1 AS cor0
----
-1007
-1331
-2524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7279
SELECT + 47 + + cor0.col2 + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7279
SELECT + 47 + + cor0.col2 + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + + col2 * - col0 * + ( - col2 ) FROM tab2 AS cor0
----
114093
5134
52787

query I rowsort
SELECT ALL - col1 * - 9 AS col2 FROM tab1
----
117
234
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor1.col0 col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT + col1 + + ( + col2 ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + col0 * + col2 - col1 AS col2 FROM tab2 AS cor0
----
158
1969
2985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7285
SELECT ALL - col0 * CAST( ( + col1 ) * - 30 AS SIGNED ) + col0 * col1 AS col0 FROM tab1 AS cor0
----
19840
2418
32240

skipif mysql # not compatible
query I rowsort label-7285
SELECT ALL - col0 * CAST ( ( + col1 ) * - 30 AS INTEGER ) + col0 * col1 AS col0 FROM tab1 AS cor0
----
19840
2418
32240

query I rowsort
SELECT DISTINCT - + col1 * - col1 + ( col0 + col1 ) * col2 * - col0 AS col1 FROM tab2 AS cor0
----
-274355
-287903
-6221

query I rowsort
SELECT 68 * - col2 + col2 FROM tab2 AS cor0
----
-1742
-1809
-2546

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7288
SELECT DISTINCT + col0 * ( cor0.col0 ) + - CAST( ( col2 ) AS SIGNED ) FROM tab2 AS cor0
----
22
6058
6203

skipif mysql # not compatible
query I rowsort label-7288
SELECT DISTINCT + col0 * ( cor0.col0 ) + - CAST ( ( col2 ) AS INTEGER ) FROM tab2 AS cor0
----
22
6058
6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-7289
SELECT DISTINCT - - 90 DIV 86 + - col1 FROM tab2 AS cor0
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT - - 90 / 86 + - col1 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT DISTINCT + - ( - ( col1 ) ) * - col0 - + col0 AS col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT DISTINCT - col2 - tab1.col2 * ( + col2 ) FROM tab1
----
-2970
-3306
-9312

query I rowsort
SELECT + col1 * - 5 FROM tab2
----
-155
-295
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7293
SELECT DISTINCT - CAST( col2 AS SIGNED ) + - col0 AS col2 FROM tab1 cor0
----
-121
-176
-57

skipif mysql # not compatible
query I rowsort label-7293
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + - col0 AS col2 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT + + 1 * cor0.col0 - cor0.col2 FROM tab2 cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( 17 AS REAL ) AS col2 FROM tab2 AS cor0
----
17

query I rowsort
SELECT ALL - 52 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7297
SELECT ALL + col2 * + CAST( NULL AS DECIMAL ) + col0 + - col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL + col2 * + CAST ( NULL AS REAL ) + col0 + - col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col2 * ( col2 ) * col1 + - ( + 38 ) + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-22606
-24569
-39863

query I rowsort
SELECT ALL col2 * col0 + - 53 FROM tab0 AS cor0
----
-18
7245
739

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7300
SELECT + col2 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7300
SELECT + col2 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * 84 + col0 FROM tab0 AS cor0
----
-7200
-7555
-8113

onlyif mysql # use DIV operator for integer division
query I rowsort label-7302
SELECT ALL + col1 DIV col2 + col1 FROM tab0 cor0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-7302
SELECT ALL + col1 / col2 + col1 FROM tab0 cor0
----
194
88
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-7303
SELECT ALL + col1 * - ( cor0.col2 ) + col0 DIV - 63 AS col0 FROM tab2 AS cor0
----
-1535
-647
-837

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL + col1 * - ( cor0.col2 ) + col0 / - 63 AS col0 FROM tab2 AS cor0
----
-1535
-647
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col0 + - 17 * - col2 * - ( - cor0.col0 ) col0 FROM tab1 AS cor0
----
124160
2745
57920

query I rowsort
SELECT - col2 * + 39 AS col2 FROM tab1 AS cor0
----
-2106
-2223
-3744

query I rowsort
SELECT ALL - col1 * - ( col1 ) FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + ( col0 ) * + cor0.col0 AS col0 FROM tab1 cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7308
SELECT DISTINCT + col2 DIV 89 + + cor0.col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT + col2 / 89 + + cor0.col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT 14 - + cor0.col2 FROM tab1 AS cor0
----
-40
-43
-82

query I rowsort
SELECT - cor0.col1 + 66 FROM tab1, tab2 AS cor0
----
9 values hashing to b616a6b156ff18d2bdd13f2cb7ffbc5a

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE NOT NULL = ( col1 )
----

query I rowsort
SELECT ALL col2 * - col2 * col1 AS col1 FROM tab2
----
-22599
-24548
-39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-7313
SELECT DISTINCT + col2 + + col1 DIV tab1.col1 + col1 AS col2 FROM tab1
----
110
68
81

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT + col2 + + col1 / tab1.col1 + col1 AS col2 FROM tab1
----
110
68
81

query I rowsort
SELECT ALL - 47 * - col2 AS col2 FROM tab2 AS cor0
----
1222
1269
1786

query I rowsort
SELECT ALL + 52 * col1 - 64 AS col1 FROM tab1 AS cor0
----
1288
456
612

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT + col2 * - ( - 22 ) AS col0 FROM tab0 AS cor0
----
1804
22
726

query I rowsort
SELECT DISTINCT 60 * + col2 AS col2 FROM tab0
----
1980
4920
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7319
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7321
SELECT ALL - cor0.col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL - cor0.col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT col2 * 71 FROM tab2
----
1846
1917
2698

query I rowsort
SELECT + 21 * - col1 AS col2 FROM tab2
----
-1239
-357
-651

query I rowsort
SELECT + + col0 * cor0.col2 + + col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - - col1 + col1 * col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT + 38 + tab0.col0 FROM tab0
----
127
62
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-7327
SELECT DISTINCT col0 + + 95 DIV + col0 AS col1 FROM tab1
----
34
65
81

skipif mysql # not compatible
query I rowsort label-7327
SELECT DISTINCT col0 + + 95 / + col0 AS col1 FROM tab1
----
34
65
81

query I rowsort
SELECT DISTINCT + col0 + - col0 * + col2 + + col0 AS col2 FROM tab1
----
-156
-3520
-7520

onlyif mysql # use DIV operator for integer division
query I rowsort label-7329
SELECT col1 DIV 77 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7329
SELECT col1 / 77 AS col2 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7330
SELECT ALL - ( + 9 ) DIV + col0 FROM tab1
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL - ( + 9 ) / + col0 FROM tab1
----
-3
0
0

query I rowsort
SELECT 66 * - col1 + + 65 AS col0 FROM tab2 cor0
----
-1057
-1981
-3829

query I rowsort
SELECT col1 + - col0 * - 91 FROM tab1 AS cor0
----
299
5834
7293

query I rowsort
SELECT DISTINCT - - 13 * - col1 + col2 FROM tab0 AS cor0
----
-1085
-1101
-1260

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 * col0 col1 FROM tab2
----
343
474552
493039

query I rowsort
SELECT - + 55 + - col1 * col2 AS col2 FROM tab2 cor0
----
-1589
-701
-892

query I rowsort
SELECT + 48 + - cor0.col2 + - col1 * col1 AS col1 FROM tab2 AS cor0
----
-279
-3459
-940

query I rowsort
SELECT DISTINCT + col2 * + col1 * col2 + tab0.col0 AS col2 FROM tab0
----
132
611973
93678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col2 col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL col1 + col1 * - col0 AS col1 FROM tab2
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-7340
SELECT col1 DIV col1 + col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-7340
SELECT col1 / col1 + col1 FROM tab1
----
11
14
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-7341
SELECT - cor0.col2 DIV - col2 + col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-7341
SELECT - cor0.col2 / - col2 + col1 FROM tab0 AS cor0
----
87
92
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7342
SELECT ALL col0 DIV col2 + - col0 * col1 AS col0 FROM tab1 AS cor0
----
-1040
-639
-78

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL col0 / col2 + - col0 * col1 AS col0 FROM tab1 AS cor0
----
-1040
-639
-78

query I rowsort
SELECT ALL col2 * + col0 + cor0.col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-7344
SELECT + col0 * col0 DIV + col1 FROM tab1 AS cor0
----
0
409
492

skipif mysql # not compatible
query I rowsort label-7344
SELECT + col0 * col0 / + col1 FROM tab1 AS cor0
----
0
409
492

query I rowsort
SELECT DISTINCT + + cor0.col0 * col0 * col2 + + col2 FROM tab1 AS cor0
----
233529
540
614496

query I rowsort
SELECT DISTINCT - - col2 + - col1 + + col0 FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT ALL col1 - + col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col0 + col2 * - cor0.col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT ALL + col1 * cor0.col0 + + col1 * + col1 AS col0 FROM tab1 AS cor0
----
1209
740
754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col2 col1 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-7351
SELECT - + 35 * col2 DIV col1 - col1 FROM tab1 AS cor0
----
-209
-271
-98

skipif mysql # not compatible
query I rowsort label-7351
SELECT - + 35 * col2 / col1 - col1 FROM tab1 AS cor0
----
-209
-271
-98

query I rowsort
SELECT + + col0 * col0 + + col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT 41 + col1 FROM tab1 AS cor0
----
51
54
67

query I rowsort
SELECT + col2 + - col2 * col1 - col0 AS col1 FROM tab1 cor0
----
-1232
-1353
-577

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7355
SELECT ALL CAST( tab1.col2 AS SIGNED ) AS col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7355
SELECT ALL CAST ( tab1.col2 AS INTEGER ) AS col1 FROM tab1
----
54
57
96

query I rowsort
SELECT - + 44 * + col0 + col0 FROM tab2 cor0
----
-301
-3354
-3397

query I rowsort
SELECT ALL - + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT ALL col0 * - cor0.col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT + ( col1 + + tab1.col2 ) * + col2 FROM tab1
----
10464
3819
4320

query I rowsort
SELECT ALL - + cor0.col1 - col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL + + cor0.col1 + + col1 * + col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT - - col2 + col1 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE - col1 = - col1 + - col1
----

query I rowsort
SELECT - col2 + - tab1.col0 * col0 + col2 * col2 FROM tab1
----
-904
2720
2853

query I rowsort
SELECT ALL tab0.col0 - - col2 * tab0.col2 AS col0 FROM tab0
----
1113
36
6813

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND col1 + - col2
----

query I rowsort
SELECT tab1.col0 * - col0 + - col2 * + col1 FROM tab1
----
-1413
-4666
-7648

query I rowsort
SELECT ALL col2 + col0 * + col2 AS col2 FROM tab2
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-7369
SELECT ALL - col0 DIV col0 col2 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7369
SELECT ALL - col0 / col0 col2 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + col2 * col2 * - col2 AS col1 FROM tab2
----
-17576
-19683
-54872

query I rowsort
SELECT col2 + col1 + + col1 AS col0 FROM tab1
----
106
122
77

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT NULL NOT IN ( + col2 - col0 )
----

query I rowsort
SELECT col0 * col0 * - col0 + col2 + - col0 AS col0 FROM tab0
----
-13815
-42909
-704976

query I rowsort
SELECT ALL col0 * + col1 * - col2 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT ALL col0 * - tab1.col0 + col1 - col2 FROM tab1
----
-37
-4143
-6483

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col1 + - col0 / - col0 )
----

query I rowsort
SELECT ALL col1 * + col2 * - col1 AS col0 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT - col2 * tab0.col2 * col1 AS col1 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE - col2 + col0 NOT BETWEEN ( + col0 ) AND col1
----
17
31
59

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + + col1 * col2 * + col1 > ( NULL )
----

query I rowsort
SELECT col1 + col2 * col1 AS col0 FROM tab0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + cor0.col1 col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT col1 - + tab1.col0 FROM tab1
----
-54
-67
23

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( + tab2.col1 * + col1 )
----

query I rowsort
SELECT DISTINCT col0 - + tab0.col2 AS col2 FROM tab0 WHERE ( NULL ) IN ( col2 )
----

query I rowsort
SELECT ALL - cor0.col0 * cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b1a10d0ce1bd78a97a3f25900325a81f

query I rowsort
SELECT DISTINCT col0 * - col1 + - col1 + col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-7389
SELECT + col0 + - col1 DIV col2 + - col1 FROM tab1 AS cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-7389
SELECT + col0 + - col1 / col2 + - col1 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7390
SELECT - ( + col1 ) * CAST( ( + col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-7390
SELECT - ( + col1 ) * CAST ( ( + col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col2 * col2 * - tab0.col1 AS col2 FROM tab0
----
611884
93654
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7392
SELECT - cor0.col2 DIV col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7392
SELECT - cor0.col2 / col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + - 11 + + col2 + 21 FROM tab0 AS cor0
----
11
43
92

query I rowsort
SELECT DISTINCT + 79 * - tab0.col0 AS col0 FROM tab0
----
-1896
-2765
-7031

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7395
SELECT ALL - CAST( col0 + + col0 AS SIGNED ) * - tab1.col2 FROM tab1
----
15360
324
7296

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL - CAST ( col0 + + col0 AS INTEGER ) * - tab1.col2 FROM tab1
----
15360
324
7296

query I rowsort
SELECT DISTINCT + tab2.col0 * 46 AS col1 FROM tab2
----
322
3588
3634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT - col1 * col2 + + 92 * - col2 - cor0.col0 FROM tab0 cor0
----
-15095
-224
-5898

query I rowsort
SELECT ALL + - col1 + + col0 AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + - 81 * - col0 + 11 * 60 FROM tab2 AS cor0
----
1227
6978
7059

query I rowsort
SELECT DISTINCT + + cor0.col1 - - col2 AS col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - 19 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query I rowsort
SELECT ALL + col0 + + 80 * + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-6856
-7191
-7725

query I rowsort
SELECT + col1 + + col1 * - cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
-106080
-1488
-358897

query I rowsort
SELECT ALL col1 * ( cor0.col0 ) + - col0 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-7406
SELECT ALL - + col1 DIV - 8 col0 FROM tab0 AS cor0
----
10
11
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7406
SELECT ALL - + col1 / - 8 col0 FROM tab0 AS cor0
----
10
11
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * + cor0.col2 + col1 col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL - + col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7409
SELECT + col2 + col2 DIV 12 + col2 AS col2 FROM tab0 AS cor0
----
170
2
68

skipif mysql # not compatible
query I rowsort label-7409
SELECT + col2 + col2 / 12 + col2 AS col2 FROM tab0 AS cor0
----
170
2
68

query I rowsort
SELECT ALL col0 + - 46 * ( + col1 ) FROM tab2 cor0
----
-1419
-2636
-703

onlyif mysql # use DIV operator for integer division
query I rowsort label-7411
SELECT ALL col0 DIV 93 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL col0 / 93 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - + col1 + col2 * + col2 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT + - ( ( cor0.col0 ) ) FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col0 FROM tab1, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ( ( + col2 ) ) * - col1 * + col0 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT + col2 * - cor0.col0 + col0 * + col2 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ( - 15 ) * + col2 FROM tab0 AS cor0
----
-1230
-15
-495

query I rowsort
SELECT + + cor0.col1 * + cor0.col1 - col2 AS col0 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT col0 - 9 FROM tab1 AS cor0
----
-6
55
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-7420
SELECT - cor0.col1 * col2 + 75 DIV col2 FROM tab0 AS cor0
----
-22
-2836
-7462

skipif mysql # not compatible
query I rowsort label-7420
SELECT - cor0.col1 * col2 + 75 / col2 FROM tab0 AS cor0
----
-22
-2836
-7462

query I rowsort
SELECT DISTINCT - + cor0.col0 + + col2 * - col0 FROM tab0 AS cor0
----
-70
-7387
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-7422
SELECT 13 * col2 DIV col1 FROM tab1 cor0
----
27
74
96

skipif mysql # not compatible
query I rowsort label-7422
SELECT 13 * col2 / col1 FROM tab1 cor0
----
27
74
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7423
SELECT DISTINCT - 70 + - cor1.col2 * cor0.col0 / + CAST( NULL AS SIGNED ) col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7423
SELECT DISTINCT - 70 + - cor1.col2 * cor0.col0 / + CAST ( NULL AS INTEGER ) col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL ( - 81 ) * cor1.col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 640d96604aac8a415b8d187370909909

query I rowsort
SELECT 59 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT - 77 + 34 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT + cor0.col0 * ( + 68 ) FROM tab2 AS cor0
----
476
5304
5372

query I rowsort
SELECT DISTINCT col1 * - col2 + tab0.col0 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT ( + cor0.col0 ) + col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT - - col1 * - ( col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT cor0.col0 * col2 - + col1 AS col0 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ALL + - col0 * col2 + - col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT col1 * 2 * - col2 AS col0 FROM tab1
----
-1140
-2496
-2808

query I rowsort
SELECT col2 * 49 AS col2 FROM tab1
----
2646
2793
4704

onlyif mysql # use DIV operator for integer division
query I rowsort label-7435
SELECT tab1.col1 + - 66 DIV - col2 col2 FROM tab1
----
11
13
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7435
SELECT tab1.col1 + - 66 / - col2 col2 FROM tab1
----
11
13
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-7436
SELECT DISTINCT tab0.col1 DIV 6 + - col2 AS col0 FROM tab0
----
-19
-67
15

skipif mysql # not compatible
query I rowsort label-7436
SELECT DISTINCT tab0.col1 / 6 + - col2 AS col0 FROM tab0
----
-19
-67
15

query I rowsort
SELECT DISTINCT tab0.col2 * col0 + - col2 AS col0 FROM tab0
----
34
7216
759

query I rowsort
SELECT + + col2 * cor0.col1 + 1 * col2 * + cor0.col1 FROM tab2 AS cor0
----
1292
1674
3068

query I rowsort
SELECT DISTINCT tab0.col2 + + col1 * - 48 AS col2 FROM tab0
----
-4095
-4286
-4655

query I rowsort
SELECT ALL col2 * ( + col0 ) AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - col1 * - 96 AS col0 FROM tab2 AS cor0
----
1632
2976
5664

onlyif mysql # use DIV operator for integer division
query I rowsort label-7442
SELECT - col2 * col1 + 64 DIV col0 AS col1 FROM tab1 AS cor0
----
-1248
-1383
-569

skipif mysql # not compatible
query I rowsort label-7442
SELECT - col2 * col1 + 64 / col0 AS col1 FROM tab1 AS cor0
----
-1248
-1383
-569

onlyif mysql # use DIV operator for integer division
query I rowsort label-7443
SELECT + + col0 + cor0.col2 DIV col1 AS col1 FROM tab2 AS cor0
----
7
78
81

skipif mysql # not compatible
query I rowsort label-7443
SELECT + + col0 + cor0.col2 / col1 AS col1 FROM tab2 AS cor0
----
7
78
81

query I rowsort
SELECT ALL + col2 * + 97 AS col2 FROM tab2 cor0
----
2522
2619
3686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 99 col1 FROM tab1, tab0 AS cor0
----
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7446
SELECT 5 * col0 + col1 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7446
SELECT 5 * col0 + col1 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 31 * col0 AS col0 FROM tab0
----
1085
2759
744

query I rowsort
SELECT ( - col2 ) * col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT - 11 * - col0 FROM tab0 AS cor0
----
264
385
979

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7451
SELECT DISTINCT col2 * - col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT col2 * - col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 50 + col0 AS col0 FROM tab0 AS cor0
----
139
74
85

query I rowsort
SELECT 18 * col2 FROM tab1 cor0
----
1026
1728
972

query I rowsort
SELECT + 19 * + col1 FROM tab0 AS cor0
----
1634
1729
1843

query I rowsort
SELECT DISTINCT + + 62 * + col0 AS col2 FROM tab1 AS cor0
----
186
3968
4960

query I rowsort
SELECT DISTINCT + + ( + col2 ) + cor0.col1 AS col2 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) * col2 * ( - cor0.col0 ) col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT - - 72 * col1 FROM tab1 AS cor0
----
1872
720
936

query I rowsort
SELECT DISTINCT + - cor0.col0 + + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * col2 col0 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT - 48 + + col1 AS col0 FROM tab2 cor0
----
-17
-31
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 + col2 col2 FROM tab1 cor0
----
-26
-29
13

query I rowsort
SELECT ALL 69 + - col0 FROM tab0 AS cor0
----
-20
34
45

query I rowsort
SELECT 25 + col2 * + col2 AS col1 FROM tab2 AS cor0
----
1469
701
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-7465
SELECT ALL 38 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL 38 / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 + col1 * + col1 AS col2 FROM tab2 AS cor0
----
272
3422
930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + col1 col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT col1 * - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-611884
-93654
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7469
SELECT - col1 * + CAST( 27 AS SIGNED ) - + col0 FROM tab0 cor0
----
-2346
-2546
-2654

skipif mysql # not compatible
query I rowsort label-7469
SELECT - col1 * + CAST ( 27 AS INTEGER ) - + col0 FROM tab0 cor0
----
-2346
-2546
-2654

query I rowsort
SELECT ALL - cor0.col1 + - 99 FROM tab2 cor0
----
-116
-130
-158

onlyif mysql # use DIV operator for integer division
query I rowsort label-7471
SELECT DISTINCT cor0.col0 + 83 DIV - 94 AS col2 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-7471
SELECT DISTINCT cor0.col0 + 83 / - 94 AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + col0 - col1 * col1 * + col1 AS col2 FROM tab2 AS cor0
----
-205301
-29784
-4834

query I rowsort
SELECT DISTINCT + col2 - - 23 * col2 AS col1 FROM tab0 AS cor0
----
1968
24
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 19 * col2 col1 FROM tab0 AS cor0
----
-141778
-1843
-53922

query I rowsort
SELECT col1 * - col0 + col1 * - col1 FROM tab0
----
-12804
-16380
-9460

query I rowsort
SELECT DISTINCT col2 * - ( col2 + col2 ) FROM tab2 cor0
----
-1352
-1458
-2888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( col0 * 15 ) col1 FROM tab1 AS cor0
----
135
61440
96000

query I rowsort
SELECT DISTINCT - ( 78 ) FROM tab0 AS cor0
----
-78

query I rowsort
SELECT ALL + 55 * cor0.col0 FROM tab1 AS cor0
----
165
3520
4400

query I rowsort
SELECT + col0 + + col2 * - col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL - col0 * col2 + + col2 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT + - col2 + col2 + - col2 * - col0 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7483
SELECT ALL + CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7484
SELECT col1 * - col0 + + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7484
SELECT col1 * - col0 + + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 61 * 99 * cor0.col2 FROM tab1 AS cor0
----
326106
344223
579744

query I rowsort
SELECT DISTINCT - + ( - 79 ) FROM tab2 AS cor0
----
79

query I rowsort
SELECT DISTINCT - + 71 * + col0 AS col1 FROM tab1 AS cor0
----
-213
-4544
-5680

query I rowsort
SELECT col1 + + cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL - - ( - col0 ) * col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + col0 * + 6 + col1 FROM tab1
----
394
44
493

query I rowsort
SELECT col0 + tab0.col0 * - col0 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT ALL + tab2.col1 + - 80 * - col1 AS col0 FROM tab2
----
1377
2511
4779

query I rowsort
SELECT ALL tab2.col1 * 49 + + col2 FROM tab2
----
1546
2917
871

query I rowsort
SELECT DISTINCT col2 - 51 AS col1 FROM tab2 AS cor0
----
-13
-24
-25

query I rowsort
SELECT - - 65 FROM tab1 cor0
----
65
65
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7496
SELECT ALL CAST( + col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT ALL ( col2 ) * col2 AS col0 FROM tab0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + 31 * cor0.col2 col1 FROM tab1 AS cor0
----
1700
1777
2989

query I rowsort
SELECT ALL + 36 * cor0.col1 + - cor0.col1 FROM tab2 AS cor0
----
1085
2065
595

query I rowsort
SELECT 99 * + col1 AS col2 FROM tab0 cor0
----
8514
9009
9603

query I rowsort
SELECT DISTINCT + 56 * 68 * - col1 - col0 FROM tab2 AS cor0
----
-118055
-224750
-64815

query I rowsort
SELECT - col2 + 30 AS col2 FROM tab1
----
-24
-27
-66

query I rowsort
SELECT col0 * col2 + - cor0.col0 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-7504
SELECT - + col0 DIV ( 37 ) AS col1 FROM tab1 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7504
SELECT - + col0 / ( 37 ) AS col1 FROM tab1 AS cor0
----
-1
-2
0

query I rowsort
SELECT + cor0.col1 + 91 FROM tab1 cor0
----
101
104
117

query I rowsort
SELECT ALL - col2 * 25 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-16900
-18225
-36100

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7507
SELECT - col0 * + CAST( NULL AS SIGNED ) - 36 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT - col0 * + CAST ( NULL AS INTEGER ) - 36 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7508
SELECT DISTINCT + - col0 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT + - col0 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * ( - cor0.col0 ) col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT col0 * col1 * - col1 + + cor0.col2 FROM tab2 AS cor0
----
-22793
-271492
-6700

onlyif mysql # use DIV operator for integer division
query I rowsort label-7511
SELECT - col0 DIV - 40 + - ( - col2 ) * + cor0.col2 AS col0 FROM tab1 AS cor0
----
2916
3250
9218

skipif mysql # not compatible
query I rowsort label-7511
SELECT - col0 / - 40 + - ( - col2 ) * + cor0.col2 AS col0 FROM tab1 AS cor0
----
2916
3250
9218

query I rowsort
SELECT ALL - tab1.col2 * col1 + - ( ( + col2 ) * col1 + + col1 ) FROM tab1
----
-1150
-2509
-2834

onlyif mysql # use DIV operator for integer division
query I rowsort label-7513
SELECT DISTINCT + col1 DIV col0 + + col2 AS col0 FROM tab2
----
26
31
38

skipif mysql # not compatible
query I rowsort label-7513
SELECT DISTINCT + col1 / col0 + + col2 AS col0 FROM tab2
----
26
31
38

query I rowsort
SELECT + ( + cor0.col1 ) FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 60 col0 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1

query I rowsort
SELECT ALL 88 + - col1 * 12 AS col2 FROM tab2
----
-116
-284
-620

query I rowsort
SELECT DISTINCT - 50 AS col2 FROM tab2, tab2 AS cor0
----
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-7518
SELECT - col0 DIV + cor0.col1 + + col1 DIV + col0 FROM tab2 AS cor0
----
-1
-4
4

skipif mysql # not compatible
query I rowsort label-7518
SELECT - col0 / + cor0.col1 + + col1 / + col0 FROM tab2 AS cor0
----
-1
-4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col2 col2 FROM tab0 cor0
----
1
1089
6724

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 489b7b2b5c4980d50e86e51be30361c3

query I rowsort
SELECT - col2 + + col1 * - col0 FROM tab0
----
-2097
-3396
-8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-7522
SELECT DISTINCT - tab2.col2 * col0 DIV 22 FROM tab2
----
-136
-8
-92

skipif mysql # not compatible
query I rowsort label-7522
SELECT DISTINCT - tab2.col2 * col0 / 22 FROM tab2
----
-136
-8
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-7523
SELECT tab1.col1 * col0 DIV 73 FROM tab1
----
1
14
8

skipif mysql # not compatible
query I rowsort label-7523
SELECT tab1.col1 * col0 / 73 FROM tab1
----
1
14
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT DISTINCT + col2 + - col2 + 56 AS col0 FROM tab0
----
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-7526
SELECT DISTINCT col0 + col0 DIV col0 FROM tab2
----
79
8
80

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT col0 + col0 / col0 FROM tab2
----
79
8
80

query I rowsort
SELECT + + 71 * col0 AS col0 FROM tab1 cor0
----
213
4544
5680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + col0 col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT - + col2 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2862
3192
9120

query I rowsort
SELECT ALL - + col1 * + cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - 82 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT - 12 * - cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8e5ea344e010f81883d3febf1b417e51

query I rowsort
SELECT DISTINCT - 24 + - cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-34
-37
-50

query I rowsort
SELECT cor0.col2 * - 59 + - cor0.col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1376
-899
3068

query I rowsort
SELECT + + col1 * 22 + cor0.col0 FROM tab1 cor0
----
284
366
575

onlyif mysql # use DIV operator for integer division
query I rowsort label-7536
SELECT + col2 * 5 - - ( + col2 + + 34 ) DIV col1 FROM tab0 AS cor0
----
165
411
5

skipif mysql # not compatible
query I rowsort label-7536
SELECT + col2 * 5 - - ( + col2 + + 34 ) / col1 FROM tab0 AS cor0
----
165
411
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-7537
SELECT ALL - 80 DIV + 32 FROM tab0, tab0 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL - 80 / + 32 FROM tab0, tab0 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT DISTINCT - col2 - 93 FROM tab0
----
-126
-175
-94

query I rowsort
SELECT ALL - col2 * ( tab0.col0 ) - - col2 AS col2 FROM tab0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-7540
SELECT + cor0.col1 + col2 DIV 76 AS col0 FROM tab0 AS cor0
----
86
92
97

skipif mysql # not compatible
query I rowsort label-7540
SELECT + cor0.col1 + col2 / 76 AS col0 FROM tab0 AS cor0
----
86
92
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7541
SELECT + col0 DIV 24 AS col1 FROM tab0 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-7541
SELECT + col0 / 24 AS col1 FROM tab0 AS cor0
----
1
1
3

query I rowsort
SELECT col1 * col1 + + col1 - + col2 FROM tab2 cor0
----
268
3514
965

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col2 * cor0.col0 col1 FROM tab0 AS cor0
----
70
7387
816

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT + - ( + 60 ) AS col2 FROM tab1 AS cor0
----
-60
-60
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-7546
SELECT + col0 DIV cor0.col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-7546
SELECT + col0 / cor0.col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT - col1 * col0 * 72 FROM tab2 AS cor0
----
-15624
-331344
-96696

query I rowsort
SELECT DISTINCT + + 78 AS col1 FROM tab2 cor0
----
78

query I rowsort
SELECT ALL col2 - col2 * - col0 AS col2 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT + 38 * + col0 FROM tab2 AS cor0
----
266
2964
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 * cor0.col2 col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL ( col2 ) - - col2 AS col1 FROM tab2
----
52
54
76

query I rowsort
SELECT ALL - ( tab0.col2 ) - - col1 FROM tab0
----
53
9
96

query I rowsort
SELECT ALL 32 - + 14 FROM tab1
----
18
18
18

query I rowsort
SELECT col2 * col1 * - col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT - - col2 + cor0.col0 * col1 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT ALL tab0.col0 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT - 0 * - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 1 + tab2.col0 * ( + col0 ) + + tab2.col2 FROM tab2
----
6111
6280
77

query I rowsort
SELECT - col0 + tab0.col0 * + col2 FROM tab0
----
0
7209
768

query I rowsort
SELECT ALL - col1 * + ( col0 ) + cor0.col0 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-7562
SELECT cor0.col1 + 5 DIV - col2 AS col2 FROM tab0 AS cor0
----
86
91
92

skipif mysql # not compatible
query I rowsort label-7562
SELECT cor0.col1 + 5 / - col2 AS col2 FROM tab0 AS cor0
----
86
91
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-7563
SELECT col2 + 4 DIV + col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-7563
SELECT col2 + 4 / + col2 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7564
SELECT DISTINCT - col0 DIV - 84 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT - col0 / - 84 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7565
SELECT - cor0.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-7565
SELECT - cor0.col0 / col1 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col0 * cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - col0 + + col1 * - col1 FROM tab0
----
-7420
-8370
-9444

query I rowsort
SELECT ALL col0 * + ( - cor0.col1 + + col1 ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT col1 * - col2 + + col0 AS col0 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - + col1 + + ( col2 ) * col0 * - cor0.col1 FROM tab2 AS cor0
----
-119711
-51051
-5890

query I rowsort
SELECT DISTINCT - 95 + ( col1 ) * col1 AS col1 FROM tab0 cor0
----
7301
8186
9314

query I rowsort
SELECT DISTINCT - - 58 * col1 FROM tab2 AS cor0
----
1798
3422
986

query I rowsort
SELECT ALL 10 * col0 + col0 + ( + 29 ) AS col1 FROM tab0 AS cor0
----
1008
293
414

query I rowsort
SELECT - - 66 + cor0.col1 * col1 FROM tab0 cor0
----
7462
8347
9475

query I rowsort
SELECT DISTINCT + col2 + ( - col2 ) + - 65 * - cor0.col2 * + col1 FROM tab1 AS cor0
----
37050
81120
91260

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7576
SELECT DISTINCT + CAST( col0 AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-7576
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + ( ( col2 ) ) AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + ( - col2 ) + + cor0.col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT + - ( - 24 ) * col0 FROM tab0 AS cor0
----
2136
576
840

query I rowsort
SELECT + col2 + 70 * col2 * 49 FROM tab1 AS cor0
----
185274
195567
329376

onlyif mysql # use DIV operator for integer division
query I rowsort label-7581
SELECT - col0 DIV - col1 - col0 AS col1 FROM tab2 AS cor0
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-7581
SELECT - col0 / - col1 - col0 AS col1 FROM tab2 AS cor0
----
-7
-75
-77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7582
SELECT + - 62 * col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7582
SELECT + - 62 * col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL col0 * col1 + - 64 AS col0 FROM tab2 AS cor0
----
1279
153
4538

onlyif mysql # use DIV operator for integer division
query I rowsort label-7586
SELECT ALL col1 * + col0 + - col1 DIV tab1.col1 AS col0 FROM tab1
----
1039
639
77

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL col1 * + col0 + - col1 / tab1.col1 AS col0 FROM tab1
----
1039
639
77

query I rowsort
SELECT - 85 * col1 FROM tab0 AS cor0
----
-7310
-7735
-8245

onlyif mysql # use DIV operator for integer division
query I rowsort label-7588
SELECT - + col0 + - col1 DIV - 7 FROM tab1 cor0
----
-63
-79
0

skipif mysql # not compatible
query I rowsort label-7588
SELECT - + col0 + - col1 / - 7 FROM tab1 cor0
----
-63
-79
0

query I rowsort
SELECT DISTINCT + 45 + col0 AS col0 FROM tab1 AS cor0
----
109
125
48

query I rowsort
SELECT + ( + col2 ) - ( col1 ) FROM tab1 cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-7591
SELECT ALL col0 DIV cor0.col0 + col0 col2 FROM tab2 AS cor0
----
79
8
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL col0 / cor0.col0 + col0 col2 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT DISTINCT 90 * col1 + col2 AS col1 FROM tab1 AS cor0
----
1266
2394
957

onlyif mysql # use DIV operator for integer division
query I rowsort label-7593
SELECT DISTINCT - 81 + + col1 * 29 * col1 - cor0.col1 DIV + ( - col2 ) FROM tab0 AS cor0
----
214405
240069
272877

skipif mysql # not compatible
query I rowsort label-7593
SELECT DISTINCT - 81 + + col1 * 29 * col1 - cor0.col1 / + ( - col2 ) FROM tab0 AS cor0
----
214405
240069
272877

query I rowsort
SELECT ALL col0 + col0 * + cor0.col1 + col2 * col2 FROM tab1 AS cor0
----
10336
2997
3953

query I rowsort
SELECT + - col1 - + cor0.col2 AS col1 FROM tab1 cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7596
SELECT ALL - - col0 * cor0.col2 + + 77 DIV - 15 AS col2 FROM tab2 AS cor0
----
184
2023
2997

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL - - col0 * cor0.col2 + + 77 / - 15 AS col2 FROM tab2 AS cor0
----
184
2023
2997

query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 - 40 FROM tab2 AS cor0
----
-19
-44
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-7598
SELECT 90 + col1 DIV + 68 AS col2 FROM tab2 AS cor0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-7598
SELECT 90 + col1 / + 68 AS col2 FROM tab2 AS cor0
----
90
90
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7599
SELECT DISTINCT + col1 DIV - 65 col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT + col1 / - 65 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 + 89 AS col1 FROM tab0 AS cor0
----
113
124
178

query I rowsort
SELECT + + col0 + + 85 FROM tab2 AS cor0
----
163
164
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 + col0 * - col2 col2 FROM tab1
----
-3573
-7605
-87

query I rowsort
SELECT DISTINCT ( + col1 * - ( col2 ) ) FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-7604
SELECT + tab2.col2 DIV + col0 AS col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-7604
SELECT + tab2.col2 / + col0 AS col0 FROM tab2
----
0
0
3

query I rowsort
SELECT DISTINCT + - 17 + col2 FROM tab1 AS cor0
----
37
40
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7606
SELECT + + 46 * col2 DIV - ( col2 ) FROM tab0 AS cor0
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-7606
SELECT + + 46 * col2 / - ( col2 ) FROM tab0 AS cor0
----
-46
-46
-46

query I rowsort
SELECT - col1 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT + + col0 + - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7609
SELECT - - col2 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7609
SELECT - - col2 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * 8 * + col2 + col2 + 0 FROM tab1 AS cor0
----
1350
29241
61536

query I rowsort
SELECT + col1 * + ( - 87 ) + + col0 * col2 * - col0 FROM tab2 AS cor0
----
-163317
-238637
-4020

query I rowsort
SELECT col0 + + col1 + tab1.col2 FROM tab1
----
131
189
83

query I rowsort
SELECT DISTINCT col1 + - col0 * 83 AS col0 FROM tab2
----
-550
-6415
-6540

query I rowsort
SELECT - cor0.col0 * - 70 - - col1 * + col0 FROM tab1 AS cor0
----
288
5120
6640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + + 34 * - 4 + - col1 col0 FROM tab1 cor0
----
-108
-53
-89

query I rowsort
SELECT + + col2 * col2 + col0 AS col2 FROM tab0 cor0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-7617
SELECT DISTINCT tab2.col2 - col2 DIV tab2.col1 FROM tab2
----
26
27
36

skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT tab2.col2 - col2 / tab2.col1 FROM tab2
----
26
27
36

query I rowsort
SELECT DISTINCT col1 * + col1 * col1 FROM tab1
----
1000
17576
2197

query I rowsort
SELECT - col0 + tab1.col1 + col0 * tab1.col2 FROM tab1
----
185
3594
7613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 * + col0 col0 FROM tab0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-7621
SELECT + col0 + + col2 * col1 DIV col1 + col0 FROM tab0
----
260
71
81

skipif mysql # not compatible
query I rowsort label-7621
SELECT + col0 + + col2 * col1 / col1 + col0 FROM tab0
----
260
71
81

query I rowsort
SELECT ALL tab1.col1 * - col2 * col0 FROM tab1
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-7623
SELECT - tab2.col1 DIV - col0 col0 FROM tab2
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7623
SELECT - tab2.col1 / - col0 col0 FROM tab2
----
0
0
4

query I rowsort
SELECT - col1 * col2 FROM tab0 WHERE - col1 / - col2 + col2 IN ( col2 + col1 )
----
-97

query I rowsort
SELECT + col1 + - tab1.col1 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( + col1 )
----

query I rowsort
SELECT DISTINCT col2 * + col1 + col1 AS col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT - tab2.col1 AS col1 FROM tab2 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT ALL col0 * + tab1.col1 + - tab1.col0 FROM tab1
----
576
75
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-7630
SELECT DISTINCT col2 DIV - col1 + - tab2.col0 AS col0 FROM tab2
----
-7
-78
-81

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT col2 / - col1 + - tab2.col0 AS col0 FROM tab2
----
-7
-78
-81

query I rowsort
SELECT - col0 * col0 + - col1 AS col0 FROM tab2 WHERE ( col0 * + col0 ) <> col1 + col1
----
-6143
-6258
-80

query I rowsort
SELECT - + 17 * col2 * - ( - col0 + col1 ) AS col2 FROM tab2 cor0
----
-40052
-8398
11016

query I rowsort
SELECT ALL - 44 + + col0 AS col1 FROM tab2 AS cor0
----
-37
34
35

query I rowsort
SELECT - col0 + + col0 * - 42 AS col0 FROM tab1 AS cor0
----
-129
-2752
-3440

query I rowsort
SELECT - 95 * col0 * - 85 FROM tab2 cor0
----
56525
629850
637925

query I rowsort
SELECT ALL col1 * - 43 * col2 AS col0 FROM tab2
----
-27778
-35991
-65962

query I rowsort
SELECT DISTINCT - 3 AS col0 FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 col0 FROM tab0
----
-32
-32
-32

query I rowsort
SELECT DISTINCT 9 * 25 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 * col0 * + col0 col2 FROM tab1 AS cor0
----
311296
486400
684

query I rowsort
SELECT 16 + - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 4c6827ac950da821fb07d9a1a3507899

query I rowsort
SELECT ALL col2 * - 69 AS col0 FROM tab1 cor0
----
-3726
-3933
-6624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 col2 FROM tab1
----
100
169
676

query I rowsort
SELECT - col2 * + 60 FROM tab1 AS cor0
----
-3240
-3420
-5760

query I rowsort
SELECT tab0.col0 * ( - col0 ) FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT - col0 * ( + col2 ) FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT ALL - col1 * + 25 AS col2 FROM tab2
----
-1475
-425
-775

query I rowsort
SELECT - 62 * 75 * - col1 + - col1 FROM tab2
----
144119
274291
79033

query I rowsort
SELECT DISTINCT + + 27 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-7650
SELECT DISTINCT + col0 DIV + col0 + tab0.col0 * col0 + + 4 DIV + col2 AS col1 FROM tab0
----
1230
577
7922

skipif mysql # not compatible
query I rowsort label-7650
SELECT DISTINCT + col0 / + col0 + tab0.col0 * col0 + + 4 / + col2 AS col1 FROM tab0
----
1230
577
7922

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT - - col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - col1 * cor0.col0 col2 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT + 93 + col0 FROM tab0
----
117
128
182

query I rowsort
SELECT ALL col0 * col1 * col0 + col1 * col1 AS col2 FROM tab1 AS cor0
----
41060
83369
910

query I rowsort
SELECT DISTINCT 80 + cor0.col1 FROM tab2 AS cor0
----
111
139
97

query I rowsort
SELECT DISTINCT + col1 + - col0 * - cor0.col2 FROM tab0 AS cor0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-7658
SELECT col0 DIV col2 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7396
8282
9444

skipif mysql # not compatible
query I rowsort label-7658
SELECT col0 / col2 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7396
8282
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 * col2 col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT + col0 + col2 * cor0.col0 AS col1 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT ALL - ( + col1 ) * col2 + cor0.col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT col1 * cor0.col0 - col2 FROM tab2 AS cor0
----
1305
190
4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-7663
SELECT + ( - col1 ) + cor0.col0 DIV + col1 AS col0 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-7663
SELECT + ( - col1 ) + cor0.col0 / + col1 AS col0 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - col0 * + cor0.col0 + col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT ALL 69 * col2 AS col1 FROM tab0 AS cor0
----
2277
5658
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-7666
SELECT DISTINCT + 33 + - cor0.col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
130
34
35

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT + 33 + - cor0.col1 / - col2 AS col2 FROM tab0 AS cor0
----
130
34
35

query I rowsort
SELECT ALL + col2 * col0 * col2 AS col0 FROM tab1 cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT - col0 + col0 + col1 * + col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT + cor0.col2 * col0 - - col0 * + col2 FROM tab1 AS cor0
----
15360
324
7296

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL - 39 * ( col0 ) FROM tab2 AS cor0
----
-273
-3042
-3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7672
SELECT + + CAST( col0 AS SIGNED ) + col2 * + col1 * col1 FROM tab2 AS cor0
----
11061
25954
90584

skipif mysql # not compatible
query I rowsort label-7672
SELECT + + CAST ( col0 AS INTEGER ) + col2 * + col1 * col1 FROM tab2 AS cor0
----
11061
25954
90584

query I rowsort
SELECT DISTINCT - col1 * - 53 FROM tab1 AS cor0
----
1378
530
689

query I rowsort
SELECT col2 - col2 * col1 * - col0 AS col0 FROM tab0 AS cor0
----
3396
664200
68145

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7675
SELECT - CAST( NULL AS DECIMAL ) * ( col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7675
SELECT - CAST ( NULL AS REAL ) * ( col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7676
SELECT col0 * CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7676
SELECT col0 * CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7677
SELECT DISTINCT + col0 DIV 22 FROM tab1 cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT + col0 / 22 FROM tab1 cor0
----
0
2
3

query I rowsort
SELECT - + col1 * + col0 AS col2 FROM tab2 cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - tab0.col2 ) + + col2 col2 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7680
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * - col2 + + col0 * col0 AS col1 FROM tab2
----
-788
4550
5595

skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * - col2 + + col0 * col0 AS col1 FROM tab2
----
-788
4550
5595

query I rowsort
SELECT col0 * 73 AS col1 FROM tab0
----
1752
2555
6497

onlyif mysql # use DIV operator for integer division
query I rowsort label-7682
SELECT DISTINCT + 85 * col1 DIV col2 + col0 FROM tab0
----
183
245
8280

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT + 85 * col1 / col2 + col0 FROM tab0
----
183
245
8280

query I rowsort
SELECT + + col0 + - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL - col2 * - col2 * col1 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT ALL + col2 + col0 * col0 AS col2 FROM tab2 cor0
----
6110
6279
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7686
SELECT DISTINCT CAST( NULL AS SIGNED ) * tab1.col0 + col1 * col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7686
SELECT DISTINCT CAST ( NULL AS INTEGER ) * tab1.col0 + col1 * col0 FROM tab1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7687
SELECT col1 * col2 * tab2.col1 + col2 DIV col1 FROM tab2
----
10984
25947
90506

skipif mysql # not compatible
query I rowsort label-7687
SELECT col1 * col2 * tab2.col1 + col2 / col1 FROM tab2
----
10984
25947
90506

query I rowsort
SELECT - 3 + 77 AS col0 FROM tab1
----
74
74
74

query I rowsort
SELECT col0 + 46 * + col2 FROM tab0
----
1542
3861
81

query I rowsort
SELECT - col2 - + col1 * col1 FROM tab0
----
-7429
-8363
-9410

query I rowsort
SELECT ALL + 41 * col1 + col0 FROM tab1
----
1069
474
613

query I rowsort
SELECT + ( + col1 ) * col2 + col2 + - col2 FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * ( col0 ) - + col2 col0 FROM tab0
----
34
7216
759

query I rowsort
SELECT DISTINCT - col2 + 53 AS col0 FROM tab0
----
-29
20
52

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) IN ( + col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT - col0 * - col2 + - tab1.col0 AS col2 FROM tab1
----
159
3584
7600

query I rowsort
SELECT cor0.col2 * col1 AS col2 FROM tab1 AS cor0 WHERE ( col0 ) BETWEEN ( col1 + - col2 * col2 ) AND ( + col0 * - col1 )
----

query I rowsort
SELECT - col2 + col1 * col0 AS col1 FROM tab0
----
2031
3394
8017

query I rowsort
SELECT tab1.col1 - - col2 * col2 * col0 AS col2 FROM tab1
----
207946
737293
8774

query I rowsort
SELECT DISTINCT col0 * col0 * + col2 + col2 AS col1 FROM tab1
----
233529
540
614496

query I rowsort
SELECT DISTINCT - col2 - col0 AS col0 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT ALL + col0 * col0 - - col2 AS col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT ALL + col2 + col2 - + col1 FROM tab2
----
-7
23
59

query I rowsort
SELECT col2 + col0 * tab0.col0 AS col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT ALL col1 + - cor0.col2 * col1 * - col2 AS col0 FROM tab1 AS cor0
----
119821
32500
75842

onlyif mysql # use DIV operator for integer division
query I rowsort label-7706
SELECT DISTINCT + col1 + col1 DIV + col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT + col1 + col1 / + col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT col0 * col0 + - cor0.col2 * - col1 FROM tab1 AS cor0
----
1413
4666
7648

query I rowsort
SELECT - cor0.col1 + col2 - col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + col0 * - col0 * tab1.col1 + col0 * - col2 + + tab1.col2 AS col1 FROM tab1
----
-342
-44551
-90784

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <= + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND ( col2 )
----

query I rowsort
SELECT + col1 * cor0.col1 - col0 AS col1 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT col2 + col1 * col2 * col0 + + col1 FROM tab2 AS cor0
----
119737
51089
5917

onlyif mysql # use DIV operator for integer division
query I rowsort label-7714
SELECT DISTINCT - cor0.col2 + col2 * col1 DIV col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT - cor0.col2 + col2 * col1 / col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-7715
SELECT + - 50 DIV col0 FROM tab1 AS cor0
----
-16
0
0

skipif mysql # not compatible
query I rowsort label-7715
SELECT + - 50 / col0 FROM tab1 AS cor0
----
-16
0
0

query I rowsort
SELECT ALL - 25 FROM tab1, tab1 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT - col1 + + ( col1 ) * tab2.col2 AS col2 FROM tab2
----
1475
629
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-7718
SELECT + - col2 DIV - cor0.col2 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7718
SELECT + - col2 / - cor0.col2 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + 24 * cor0.col1 FROM tab1 cor0
----
240
312
624

query I rowsort
SELECT - 52 * + col2 FROM tab2 AS cor0
----
-1352
-1404
-1976

onlyif mysql # use DIV operator for integer division
query I rowsort label-7721
SELECT col1 DIV + 69 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7721
SELECT col1 / + 69 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 79 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-53
-66
-69

query I rowsort
SELECT - ( 79 ) FROM tab0 cor0
----
-79
-79
-79

query I rowsort
SELECT 28 * - col2 AS col0 FROM tab2
----
-1064
-728
-756

query I rowsort
SELECT ALL + - 70 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT ALL + + 23 AS col0 FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT ALL - col2 + + col2 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + cor0.col0 * - col2 - col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT - 61 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-61

onlyif mysql # use DIV operator for integer division
query I rowsort label-7730
SELECT DISTINCT - 79 DIV - 87 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7730
SELECT DISTINCT - 79 / - 87 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - col2 col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT - col0 * - col1 + 39 FROM tab1 AS cor0
----
1079
117
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-7733
SELECT DISTINCT + + ( + col0 ) + + 7 * - col0 DIV col0 FROM tab0 AS cor0
----
17
28
82

skipif mysql # not compatible
query I rowsort label-7733
SELECT DISTINCT + + ( + col0 ) + + 7 * - col0 / col0 FROM tab0 AS cor0
----
17
28
82

query I rowsort
SELECT DISTINCT col1 * col0 + 43 AS col2 FROM tab0 AS cor0
----
2107
3438
8142

onlyif mysql # use DIV operator for integer division
query I rowsort label-7735
SELECT ALL - + col0 + cor0.col2 DIV 60 AS col2 FROM tab2 cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL - + col0 + cor0.col2 / 60 AS col2 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT - + cor0.col0 + col0 * col1 * 54 AS col2 FROM tab2 AS cor0
----
11711
248430
72443

query I rowsort
SELECT DISTINCT col1 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab2 AS cor1, tab0, tab0 cor2
----
3645 values hashing to f655b6f4c5b9ff73813030f2822ea1fd

query I rowsort
SELECT + ( + 8 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT cor0.col2 * + col0 AS col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL - col1 * tab2.col2 + - 92 * - col0 * col2 FROM tab2
----
16551
185042
275538

query I rowsort
SELECT DISTINCT - col0 * 39 * col2 - - col1 AS col1 FROM tab2 AS cor0
----
-117061
-7340
-79033

onlyif mysql # use DIV operator for integer division
query I rowsort label-7743
SELECT ALL - col2 DIV col1 + cor0.col0 * + col0 AS col0 FROM tab2 cor0
----
49
6084
6239

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL - col2 / col1 + cor0.col0 * + col0 AS col0 FROM tab2 cor0
----
49
6084
6239

query I rowsort
SELECT ALL + - col1 + - col1 + - col2 AS col2 FROM tab0 AS cor0
----
-195
-205
-264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7745
SELECT DISTINCT + - col0 * CAST( NULL AS SIGNED ) + - col0 / cor0.col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7745
SELECT DISTINCT + - col0 * CAST ( NULL AS INTEGER ) + - col0 / cor0.col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + ( cor0.col1 ) + col2 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + 29 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # use DIV operator for integer division
query I rowsort label-7749
SELECT cor0.col1 DIV + cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 318c9ee2d951551d2809d5b794d537f4

skipif mysql # not compatible
query I rowsort label-7749
SELECT cor0.col1 / + cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 318c9ee2d951551d2809d5b794d537f4

query I rowsort
SELECT DISTINCT + col0 + + 33 AS col1 FROM tab0 AS cor0
----
122
57
68

query I rowsort
SELECT DISTINCT + - col0 + - 5 AS col2 FROM tab2 cor0
----
-12
-83
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( col1 ) col0 FROM tab0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 - 78 col0 FROM tab0, tab2 AS cor0
----
-156
-157
-85

query I rowsort
SELECT col1 * cor0.col1 + - cor0.col0 - col1 * - col2 AS col0 FROM tab1 AS cor0
----
1337
2077
606

query I rowsort
SELECT DISTINCT col1 * col2 * + 63 + + col1 * + col0 AS col2 FROM tab0 AS cor0
----
180858
478205
9506

query I rowsort
SELECT + - col2 * cor0.col0 + 11 FROM tab0 AS cor0
----
-24
-7287
-781

query I rowsort
SELECT - ( + cor0.col0 ) - col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + tab0.col1 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + tab1.col1 AS col0 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * tab0.col2 col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - 84 * - col2 AS col1 FROM tab2
----
2184
2268
3192

query I rowsort
SELECT + + 75 + col1 * - ( + 58 ) FROM tab1 AS cor0
----
-1433
-505
-679

onlyif mysql # use DIV operator for integer division
query I rowsort label-7763
SELECT col1 DIV col1 + - 75 col0 FROM tab1
----
-74
-74
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7763
SELECT col1 / col1 + - 75 col0 FROM tab1
----
-74
-74
-74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7764
SELECT CAST( NULL AS SIGNED ) * - 8 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT CAST ( NULL AS INTEGER ) * - 8 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + 87 AS col1 FROM tab1
----
151
167
90

query I rowsort
SELECT ALL col2 * - col2 + - col0 FROM tab1
----
-2919
-3313
-9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7767
SELECT ALL - CAST( - col0 AS SIGNED ) FROM tab1 cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL - CAST ( - col0 AS INTEGER ) FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT ALL - cor0.col2 + - col1 + + col1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + - cor1.col1 AS col2 FROM tab0, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

query I rowsort
SELECT ALL - 94 FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to d4c5b1dbf2cd8753fb5ffe745ca9f5de

query I rowsort
SELECT + ( ( col2 ) ) + col1 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ( + col2 ) + cor0.col0 * ( - col2 * cor0.col0 ) - col1 AS col1 FROM tab0 cor0
----
-1321
-19061
-649531

query I rowsort
SELECT DISTINCT + - col2 * - cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - + col1 + + col1 AS col2 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT col1 * col0 + 44 AS col2 FROM tab0 AS cor0
----
2108
3439
8143

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7776
SELECT col0 * - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7776
SELECT col0 * - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 3 * - col1 AS col1 FROM tab0 AS cor0
----
-258
-273
-291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 12 - col2 * col1 col2 FROM tab2 AS cor0
----
-1209
-2242
-850

query I rowsort
SELECT ALL + tab1.col2 * - col2 - - col2 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT - - cor0.col2 * + col2 + col1 * col0 AS col0 FROM tab2 AS cor0
----
2787
5278
946

query I rowsort
SELECT col2 + - col0 * + 28 FROM tab0 cor0
----
-2410
-639
-979

query I rowsort
SELECT ALL - col1 * + col0 - col1 * - col2 FROM tab1 AS cor0
----
-70
1326
208

query I rowsort
SELECT 1 * - 62 FROM tab1, tab0 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT DISTINCT + col0 + ( - col0 ) * col2 FROM tab2 cor0
----
-182
-1950
-2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7785
SELECT DISTINCT + ( col1 ) - - cor0.col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7785
SELECT DISTINCT + ( col1 ) - - cor0.col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( + 7 ) * + cor0.col2 + + col1 FROM tab2 AS cor0
----
220
241
283

query I rowsort
SELECT ( + col0 ) * col1 - - 65 AS col0 FROM tab1 AS cor0
----
1105
143
705

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 73 AS REAL ) + - col1 FROM tab0 AS cor0
----
-13
-18
-24

query I rowsort
SELECT ALL - ( col1 ) * col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT + - 35 + 19 FROM tab0 AS cor0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT + + cor0.col2 * + col0 + col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL 52 + + ( - col2 ) FROM tab1 cor0
----
-2
-44
-5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7793
SELECT ALL - CAST( NULL AS DECIMAL ) * col1 + col0 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-7793
SELECT ALL - CAST ( NULL AS REAL ) * col1 + col0 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7794
SELECT ALL + + ( col0 ) * - col1 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL + + ( col0 ) * - col1 + - CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 8 - - col0 FROM tab0 AS cor0
----
32
43
97

query I rowsort
SELECT DISTINCT - col1 * - col0 + col2 * 5 + col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
1495
1752
2768

onlyif mysql # use DIV operator for integer division
query I rowsort label-7797
SELECT ALL col0 - - col0 DIV + tab0.col0 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL col0 - - col0 / + tab0.col0 FROM tab0
----
25
36
90

query I rowsort
SELECT col1 * + 90 * - col1 FROM tab1
----
-15210
-60840
-9000

onlyif mysql # use DIV operator for integer division
query I rowsort label-7799
SELECT DISTINCT - col1 DIV 87 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT - col1 / 87 FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7800
SELECT - 69 * - col0 + - col2 - + CAST( NULL AS SIGNED ) 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-7800
SELECT - 69 * - col0 + - col2 - + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 22 + col2 * col1 FROM tab2 AS cor0
----
1512
624
815

query I rowsort
SELECT DISTINCT + - 49 + ( col2 ) * + col2 AS col0 FROM tab1 AS cor0
----
2867
3200
9167

onlyif mysql # use DIV operator for integer division
query I rowsort label-7803
SELECT + CAST( 1 AS SIGNED ) * + col1 + - col0 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-7803
SELECT + CAST ( 1 AS INTEGER ) * + col1 + - col0 / cor0.col0 AS col2 FROM tab2 AS cor0
----
16
30
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-7804
SELECT ALL + col2 DIV 28 - - col1 AS col0 FROM tab2 AS cor0
----
18
31
59

skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL + col2 / 28 - - col1 AS col0 FROM tab2 AS cor0
----
18
31
59

query I rowsort
SELECT ALL 60 FROM tab1, tab1 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT col1 + - ( col1 * col0 ) AS col0 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT col1 * - 78 FROM tab0
----
-6708
-7098
-7566

query I rowsort
SELECT DISTINCT + col2 * tab0.col1 + + col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT + col0 * - col1 + - 4 AS col0 FROM tab1 AS cor0
----
-1044
-644
-82

query I rowsort
SELECT - col0 * + 33 AS col1 FROM tab2
----
-231
-2574
-2607

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * 25 + + col2 col1 FROM tab1
----
129
1657
2096

query I rowsort
SELECT DISTINCT ( + 93 ) + col2 AS col0 FROM tab1
----
147
150
189

query I rowsort
SELECT DISTINCT col1 * tab2.col2 + col2 * tab2.col0 AS col2 FROM tab2
----
1026
3562
3648

query I rowsort
SELECT - col2 - - col1 * 86 FROM tab2
----
1424
2639
5048

query I rowsort
SELECT ALL - tab0.col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT - col2 * - 4 FROM tab1 AS cor0
----
216
228
384

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7817
SELECT DISTINCT + col1 + CAST( 99 AS SIGNED ) * col2 FROM tab1 cor0
----
5372
5653
9517

skipif mysql # not compatible
query I rowsort label-7817
SELECT DISTINCT + col1 + CAST ( 99 AS INTEGER ) * col2 FROM tab1 cor0
----
5372
5653
9517

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( 20 ) * + col0 col0 FROM tab2 cor0
----
147
1638
1659

query I rowsort
SELECT ALL - 51 * col1 FROM tab1
----
-1326
-510
-663

query I rowsort
SELECT ( + tab1.col1 ) + ( col2 ) AS col0 FROM tab1
----
109
67
80

query I rowsort
SELECT + 63 * + col1 - col1 AS col0 FROM tab2
----
1054
1922
3658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 * - ( + col2 ) col0 FROM tab0
----
1122
2
6806

query I rowsort
SELECT DISTINCT col2 + ( + col2 ) AS col0 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - col0 * cor0.col0 AS col2 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT col1 * + col1 AS col1 FROM tab0 cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 - + col2 col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT col0 * - ( 79 ) FROM tab1 AS cor0
----
-237
-5056
-6320

query I rowsort
SELECT DISTINCT + col2 - ( 13 ) FROM tab2 AS cor0
----
13
14
25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7829
SELECT + 53 * cor0.col1 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7829
SELECT + 53 * cor0.col1 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col0 * 44 FROM tab0, tab0 AS cor0
----
1056
1540
3916

query I rowsort
SELECT DISTINCT + col0 + - col1 - - cor0.col2 AS col1 FROM tab1 cor0
----
111
163
31

query I rowsort
SELECT DISTINCT col1 * + col0 * 30 + - col0 * - col2 FROM tab2
----
140088
43292
6699

query I rowsort
SELECT + 6 * cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
117
174
210

query I rowsort
SELECT - col2 * + tab0.col2 * + col0 FROM tab0
----
-26136
-35
-598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-7835
SELECT DISTINCT col2 DIV - tab0.col2 + + col2 AS col0 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-7835
SELECT DISTINCT col2 / - tab0.col2 + + col2 AS col0 FROM tab0
----
0
32
81

query I rowsort
SELECT DISTINCT + col0 + ( tab1.col2 ) AS col2 FROM tab1
----
121
176
57

query I rowsort
SELECT ALL col2 + + 75 * col1 AS col1 FROM tab0
----
6483
6907
7276

query I rowsort
SELECT 78 * + 41 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to b3d3044d954ff075af46ed3dcc08011d

query I rowsort
SELECT + + ( col1 ) * col2 + - col0 * + 44 FROM tab2 AS cor0
----
-1898
-2830
529

onlyif mysql # use DIV operator for integer division
query I rowsort label-7840
SELECT DISTINCT col0 DIV + 31 + - col2 AS col1 FROM tab1
----
-54
-55
-94

skipif mysql # not compatible
query I rowsort label-7840
SELECT DISTINCT col0 / + 31 + - col2 AS col1 FROM tab1
----
-54
-55
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-7841
SELECT DISTINCT col1 + + 16 DIV + col2 + col1 FROM tab1
----
20
26
52

skipif mysql # not compatible
query I rowsort label-7841
SELECT DISTINCT col1 + + 16 / + col2 + col1 FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT 90 * - tab2.col1 AS col0 FROM tab2
----
-1530
-2790
-5310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( col2 ) ) col0 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT - ( col2 ) + cor0.col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT + + col2 - - col0 * col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT tab2.col1 * col2 * col2 + col0 - + tab2.col0 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT ( col0 ) * + col2 * - col0 AS col2 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT - + col2 - - col0 AS col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL 77 * col1 - col0 FROM tab2
----
1230
2380
4465

onlyif mysql # use DIV operator for integer division
query I rowsort label-7850
SELECT ALL ( 96 ) - tab2.col1 DIV col1 FROM tab2
----
95
95
95

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL ( 96 ) - tab2.col1 / col1 FROM tab2
----
95
95
95

query I rowsort
SELECT + 73 * + cor0.col2 FROM tab2 AS cor0
----
1898
1971
2774

onlyif mysql # use DIV operator for integer division
query I rowsort label-7852
SELECT + col1 * col2 + - col0 DIV col1 + - col2 AS col2 FROM tab2 cor0
----
1507
604
810

skipif mysql # not compatible
query I rowsort label-7852
SELECT + col1 * col2 + - col0 / col1 + - col2 AS col2 FROM tab2 cor0
----
1507
604
810

query I rowsort
SELECT DISTINCT - 72 * col1 AS col0 FROM tab2 AS cor0
----
-1224
-2232
-4248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 col0 FROM tab1
----
-17

onlyif mysql # use DIV operator for integer division
query I rowsort label-7855
SELECT - + cor0.col1 DIV + col2 + - col0 + - 66 AS col2 FROM tab1 AS cor0
----
-130
-146
-69

skipif mysql # not compatible
query I rowsort label-7855
SELECT - + cor0.col1 / + col2 + - col0 + - 66 AS col2 FROM tab1 AS cor0
----
-130
-146
-69

query I rowsort
SELECT - 3 * + col2 AS col2 FROM tab2 AS cor0
----
-114
-78
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-7857
SELECT DISTINCT - - col1 DIV - col0 + 64 * - col1 FROM tab1 AS cor0
----
-1672
-640
-832

skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT - - col1 / - col0 + 64 * - col1 FROM tab1 AS cor0
----
-1672
-640
-832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7858
SELECT col0 * - col1 + - CAST( col0 * col0 AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7858
SELECT col0 * - col1 + - CAST ( col0 * col0 AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col1 * col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 * cor0.col2 col1 FROM tab2 AS cor0
----
-2314
-2403
-3382

query I rowsort
SELECT 15 * + col0 + + cor0.col1 FROM tab1 AS cor0
----
1213
71
970

query I rowsort
SELECT + - col0 + col0 * 5 FROM tab2 AS cor0
----
28
312
316

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + ( col0 ) col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL col1 * - 24 + col1 AS col0 FROM tab1 cor0
----
-230
-299
-598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + cor0.col0 col1 FROM tab0 cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + col1 ) * col2 + - 74 col2 FROM tab2 AS cor0
----
1460
572
763

query I rowsort
SELECT + + col2 * + 28 + cor0.col2 FROM tab1 AS cor0
----
1566
1653
2784

query I rowsort
SELECT DISTINCT + cor0.col1 + ( + col2 + 3 ) FROM tab2 AS cor0
----
58
61
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-7869
SELECT + col0 - cor0.col1 DIV col2 FROM tab0 AS cor0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-7869
SELECT + col0 - cor0.col1 / col2 FROM tab0 AS cor0
----
-62
22
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7870
SELECT DISTINCT - + col1 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT DISTINCT - + col1 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( col0 * - col0 ) + col0 col1 FROM tab2 AS cor0
----
1330
158262
237237

query I rowsort
SELECT DISTINCT - col2 + col0 * col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT DISTINCT - - col2 + 86 AS col0 FROM tab0 cor0
----
119
168
87

query I rowsort
SELECT ALL col1 * 61 + col1 - col2 FROM tab0 AS cor0
----
5299
5560
6013

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * 54 col1 FROM tab0 AS cor0
----
-4644
-4914
-5238

query I rowsort
SELECT DISTINCT - col2 * - col0 + 47 FROM tab2 AS cor0
----
2075
236
3049

query I rowsort
SELECT ALL - col0 - + 24 FROM tab1 AS cor0
----
-104
-27
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-7878
SELECT - - col0 DIV 22 + - 19 AS col0 FROM tab0 AS cor0
----
-15
-18
-18

skipif mysql # not compatible
query I rowsort label-7878
SELECT - - col0 / 22 + - 19 AS col0 FROM tab0 AS cor0
----
-15
-18
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 57 col2 FROM tab1 AS cor0
----
-3078
-3249
-5472

query I rowsort
SELECT ALL - + col1 * 37 AS col1 FROM tab0 cor0
----
-3182
-3367
-3589

query I rowsort
SELECT ALL - 48 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 2558735eaa258a08592aef9d33020c18

query I rowsort
SELECT ALL col2 - - tab2.col2 * - tab2.col1 AS col1 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT 46 - + col1 * - tab1.col0 AS col1 FROM tab1
----
1086
124
686

query I rowsort
SELECT col1 + col1 - - 24 FROM tab0
----
196
206
218

query I rowsort
SELECT - col0 + - col2 + + col0 AS col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL + col0 + 3 AS col2 FROM tab2
----
10
81
82

query I rowsort
SELECT DISTINCT + 48 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
48

query I rowsort
SELECT ALL + - col1 + - ( col0 ) FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + - col2 * ( cor0.col0 ) + - col0 FROM tab0 cor0
----
-70
-7387
-816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7890
SELECT DISTINCT cor0.col0 + CAST( col2 + - col2 AS SIGNED ) * - ( col2 ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT cor0.col0 + CAST ( col2 + - col2 AS INTEGER ) * - ( col2 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL col1 * col1 + 30 * col1 * - ( - col1 ) FROM tab0 AS cor0
----
229276
256711
291679

onlyif mysql # use DIV operator for integer division
query I rowsort label-7892
SELECT + col1 DIV ( col1 ) + col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-7892
SELECT + col1 / ( col1 ) + col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT ALL + col2 * - 97 + - col0 FROM tab0 AS cor0
----
-132
-3225
-8043

query I rowsort
SELECT DISTINCT - cor0.col0 + + 88 AS col0 FROM tab0 AS cor0
----
-1
53
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-7895
SELECT - 49 DIV col0 AS col2 FROM tab2 cor0
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-7895
SELECT - 49 / col0 AS col2 FROM tab2 cor0
----
-7
0
0

query I rowsort
SELECT ALL 59 * col0 AS col1 FROM tab2 AS cor0
----
413
4602
4661

query I rowsort
SELECT DISTINCT - col2 * col1 * + 46 FROM tab2 AS cor0
----
-29716
-38502
-70564

query I rowsort
SELECT - 8 + - col1 FROM tab2
----
-25
-39
-67

query I rowsort
SELECT DISTINCT + cor0.col0 - - col2 AS col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - 56 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 34348c65780193c8d601ab14b29af6e7

query I rowsort
SELECT DISTINCT + cor0.col0 * + col1 AS col2 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-7902
SELECT DISTINCT ( - col2 ) * ( - col2 ) DIV col0 FROM tab2 AS cor0
----
104
18
8

skipif mysql # not compatible
query I rowsort label-7902
SELECT DISTINCT ( - col2 ) * ( - col2 ) / col0 FROM tab2 AS cor0
----
104
18
8

query I rowsort
SELECT - cor0.col1 FROM tab2, tab1 cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

query I rowsort
SELECT ALL + col1 + - col0 - ( col0 * - col1 ) AS col2 FROM tab0 AS cor0
----
2126
3457
8101

query I rowsort
SELECT DISTINCT 90 + + col1 FROM tab2 AS cor0
----
107
121
149

query I rowsort
SELECT ALL ( + col1 * - ( 25 ) ) AS col2 FROM tab1
----
-250
-325
-650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7907
SELECT ( col0 ) / + CAST( NULL AS SIGNED ) + 2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7907
SELECT ( col0 ) / + CAST ( NULL AS INTEGER ) + 2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 55 * + 67 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5cee74e5b7c568bc5cef70d557c86502

onlyif mysql # use DIV operator for integer division
query I rowsort label-7909
SELECT - 77 DIV - col2 FROM tab0 cor0
----
0
2
77

skipif mysql # not compatible
query I rowsort label-7909
SELECT - 77 / - col2 FROM tab0 cor0
----
0
2
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-7910
SELECT + col2 DIV + col2 AS col0 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7910
SELECT + col2 / + col2 AS col0 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ALL 73 * col2 AS col1 FROM tab1 AS cor0
----
3942
4161
7008

query I rowsort
SELECT 29 * - col1 FROM tab1 AS cor0
----
-290
-377
-754

query I rowsort
SELECT DISTINCT col0 * + col1 * - ( - cor0.col1 ) + col0 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
21567
266994
6517

skipif mysql # not compatible
query I rowsort
SELECT + col1 * CAST ( - col0 AS REAL ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - 11 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202

query I rowsort
SELECT ALL + 71 * + col0 * - col1 FROM tab1 AS cor0
----
-45440
-5538
-73840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7917
SELECT CAST( NULL AS DECIMAL ) * - 3 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT CAST ( NULL AS REAL ) * - 3 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT - 15 AS col1 FROM tab2, tab2 AS cor0
----
-15

query I rowsort
SELECT + - ( + col2 ) + - col2 * col2 AS col0 FROM tab0 AS cor0
----
-1122
-2
-6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-7921
SELECT - cor0.col1 DIV + col0 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-7921
SELECT - cor0.col1 / + col0 FROM tab1 AS cor0
----
-8
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7922
SELECT - CAST( NULL AS SIGNED ) + 16 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7922
SELECT - CAST ( NULL AS INTEGER ) + 16 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT cor1.col0 * + 87 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to bd0c969fcfd47a629771496c04ab0faa

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab0, tab2 AS cor0, tab1 cor1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7925
SELECT ALL + tab2.col2 DIV 99 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL + tab2.col2 / 99 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7926
SELECT + cor0.col0 * + CAST( 30 AS SIGNED ) + col2 FROM tab0 AS cor0
----
1051
2752
753

skipif mysql # not compatible
query I rowsort label-7926
SELECT + cor0.col0 * + CAST ( 30 AS INTEGER ) + col2 FROM tab0 AS cor0
----
1051
2752
753

query I rowsort
SELECT + col1 - + col0 * + col0 AS col1 FROM tab0 AS cor0
----
-1128
-490
-7830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 - - cor0.col2 col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT col2 + 57 FROM tab2 AS cor0
----
83
84
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-7930
SELECT col2 DIV - col0 - - ( col2 ) * - col2 FROM tab0 cor0
----
-1
-1090
-6724

skipif mysql # not compatible
query I rowsort label-7930
SELECT col2 / - col0 - - ( col2 ) * - col2 FROM tab0 cor0
----
-1
-1090
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-7931
SELECT - col1 * col2 DIV col2 + 11 AS col2 FROM tab0 AS cor0
----
-75
-80
-86

skipif mysql # not compatible
query I rowsort label-7931
SELECT - col1 * col2 / col2 + 11 AS col2 FROM tab0 AS cor0
----
-75
-80
-86

query I rowsort
SELECT - + ( ( col1 ) ) * + col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT col1 * col2 * - 48 FROM tab2
----
-31008
-40176
-73632

query I rowsort
SELECT DISTINCT col0 * + ( 93 + col2 ) FROM tab2
----
10349
840
9282

query I rowsort
SELECT - - 80 * cor0.col2 AS col0 FROM tab0 AS cor0
----
2640
6560
80

query I rowsort
SELECT 2 * col0 FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT + 53 AS col1 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
53

query I rowsort
SELECT - col1 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT + - 96 * col0 + cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
-1280
-2048
-279

query I rowsort
SELECT - + col2 + + 33 FROM tab2 AS cor0
----
-5
6
7

query I rowsort
SELECT DISTINCT + ( col1 + + col1 ) * col1 FROM tab1
----
1352
200
338

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) * col0 col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT - col1 + ( col1 ) + col0 AS col1 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL - col0 + - ( + col0 * - col2 ) - + col0 AS col2 FROM tab1
----
156
3520
7520

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7945
SELECT - col1 * - CAST( NULL AS SIGNED ) / + tab2.col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7945
SELECT - col1 * - CAST ( NULL AS INTEGER ) / + tab2.col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * ( 52 ) FROM tab0 AS cor0
----
4472
4732
5044

query I rowsort
SELECT + col2 * col0 + 55 * col0 * cor0.col1 - col2 FROM tab0 AS cor0
----
114279
186759
452661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 56 * col0 col0 FROM tab1 AS cor0
----
142
3574
4467

query I rowsort
SELECT col0 * 89 + + col2 * + col1 FROM tab0 AS cor0
----
15383
3212
4974

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col1 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - ( ( - col2 ) * + ( 28 ) ) AS col0 FROM tab2
----
1064
728
756

query I rowsort
SELECT DISTINCT + ( + col1 * col2 ) AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT 24 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT + - ( 20 ) AS col0 FROM tab2 AS cor0
----
-20
-20
-20

query I rowsort
SELECT col0 + + cor0.col0 * col0 AS col1 FROM tab0 cor0
----
1260
600
8010

query I rowsort
SELECT - 27 * 52 AS col0 FROM tab1 AS cor0
----
-1404
-1404
-1404

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 98 + col2 col0 FROM tab1 cor0
----
152
155
194

query I rowsort
SELECT ALL - 22 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 + cor0.col1 col0 FROM tab2 cor0
----
-20
-34
8

query I rowsort
SELECT ALL col0 * col1 + - col0 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT - col2 - - cor0.col0 * col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT + col1 + cor0.col2 * col0 + col2 AS col2 FROM tab1 AS cor0
----
242
3715
7789

query I rowsort
SELECT DISTINCT - col1 - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL + col1 + + col2 * + col0 AS col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT 51 + cor0.col2 FROM tab0 AS cor0
----
133
52
84

query I rowsort
SELECT DISTINCT col1 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL 7 * col0 * + col2 FROM tab1 cor0
----
1134
25536
53760

query I rowsort
SELECT ALL col1 * - 68 * + col0 FROM tab0 AS cor0
----
-140352
-230860
-550732

query I rowsort
SELECT ALL + ( - 83 ) + col2 AS col2 FROM tab0 AS cor0
----
-1
-50
-82

query I rowsort
SELECT ALL + 83 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 * + 63 * col1 col2 FROM tab0 cor0
----
330498
349713
372771

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7972
SELECT + - CAST( NULL AS SIGNED ) * ( - col0 * + col2 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7972
SELECT + - CAST ( NULL AS INTEGER ) * ( - col0 * + col2 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + 65 FROM tab0 AS cor0
----
147
66
98

query I rowsort
SELECT DISTINCT + col2 * col0 + col1 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT + ( + tab1.col0 * col2 ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL - col1 * cor0.col2 + - col0 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-132
-14760
-3630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT ALL + col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL + col0 + - 19 * 82 AS col0 FROM tab0 AS cor0
----
-1469
-1523
-1534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * + col1 * + 79 col0 FROM tab0
----
163056
268205
639821

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 + col2 col0 FROM tab2
----
55
58
85

query I rowsort
SELECT col1 + ( col2 ) FROM tab1
----
109
67
80

query I rowsort
SELECT col0 - 0 FROM tab2
----
7
78
79

query I rowsort
SELECT - col2 * - ( - col0 ) AS col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + col2 * 98 + col0 * + col1 AS col0 FROM tab0 AS cor0
----
16135
3493
5298

query I rowsort
SELECT ALL + col2 + 50 AS col2 FROM tab2 AS cor0
----
76
77
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-7987
SELECT ALL - col1 DIV 62 col1 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL - col1 / 62 col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 94 FROM tab1, tab1 cor0
----
94

query I rowsort
SELECT ALL - col2 * - 84 + cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
3229
3481
5665

query I rowsort
SELECT DISTINCT - 26 * cor0.col1 FROM tab0, tab1 AS cor0
----
-260
-338
-676

query I rowsort
SELECT - + ( - cor0.col0 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT ALL + col0 * + col2 * col1 AS col2 FROM tab0 cor0
----
3395
664118
68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 52 ) col1 FROM tab2
----
52
52
52

query I rowsort
SELECT ALL cor1.col0 + 67 * + 77 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e6c99089c29be3145ea357da5c7485e6

query I rowsort
SELECT DISTINCT cor1.col1 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7996
SELECT - col2 + 74 DIV - col1 FROM tab1 AS cor0
----
-101
-56
-64

skipif mysql # not compatible
query I rowsort label-7996
SELECT - col2 + 74 / - col1 FROM tab1 AS cor0
----
-101
-56
-64

query I rowsort
SELECT ALL + - col2 + - cor0.col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT 36 + - col0 * col2 FROM tab2
----
-153
-1992
-2966

query I rowsort
SELECT - 13 * cor1.col2 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f91c785942f894feb101da608ec03840

query I rowsort
SELECT ALL - 10 * col1 + - col1 FROM tab1 AS cor0
----
-110
-143
-286

query I rowsort
SELECT - col1 * col1 + - 36 FROM tab0 AS cor0
----
-7432
-8317
-9445

query I rowsort
SELECT DISTINCT + col2 + col0 + col2 AS col1 FROM tab0
----
253
37
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-8003
SELECT DISTINCT + 6 + + col1 + - col2 DIV + 9 AS col2 FROM tab0
----
103
88
89

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT + 6 + + col1 + - col2 / + 9 AS col2 FROM tab0
----
103
88
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-8004
SELECT col0 + - col0 DIV col0 AS col1 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-8004
SELECT col0 + - col0 / col0 AS col1 FROM tab1
----
2
63
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-8005
SELECT + - col2 DIV cor0.col0 + + 73 * + col1 - + col2 FROM tab2 AS cor0
----
1203
2233
4281

skipif mysql # not compatible
query I rowsort label-8005
SELECT + - col2 / cor0.col0 + + 73 * + col1 - + col2 FROM tab2 AS cor0
----
1203
2233
4281

query I rowsort
SELECT DISTINCT - + col0 + - col2 * col0 + - 7 FROM tab2 AS cor0
----
-203
-2113
-3088

query I rowsort
SELECT ALL + ( col2 ) - 20 * col0 AS col1 FROM tab0 AS cor0
----
-1698
-447
-699

query I rowsort
SELECT - col1 + cor0.col1 + 24 * - col1 AS col0 FROM tab1 AS cor0
----
-240
-312
-624

query I rowsort
SELECT DISTINCT + - col2 * - col0 + ( 93 + col1 ) AS col1 FROM tab2 AS cor0
----
2180
3112
313

onlyif mysql # use DIV operator for integer division
query I rowsort label-8010
SELECT - + col2 DIV + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8010
SELECT - + col2 / + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col1 + ( + 68 ) FROM tab2 AS cor0
----
127
85
99

query I rowsort
SELECT + - col2 + - ( ( col2 ) ) FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT DISTINCT col0 * - ( col0 ) AS col2 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT - col0 + + 19 + - col0 AS col2 FROM tab1 AS cor0
----
-109
-141
13

query I rowsort
SELECT ALL cor0.col2 * - ( - 0 * + col2 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8016
SELECT DISTINCT col0 DIV - col2 + 55 FROM tab1 cor0
----
54
55

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT col0 / - col2 + 55 FROM tab1 cor0
----
54
55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8017
SELECT ALL - CAST( NULL AS SIGNED ) * + 60 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8017
SELECT ALL - CAST ( NULL AS INTEGER ) * + 60 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-8018
SELECT DISTINCT - col1 * col0 DIV col2 + + tab1.col1 * - col0 * 30 AS col0 FROM tab1
----
-19211
-2341
-31210

skipif mysql # not compatible
query I rowsort label-8018
SELECT DISTINCT - col1 * col0 / col2 + + tab1.col1 * - col0 * 30 AS col0 FROM tab1
----
-19211
-2341
-31210

query I rowsort
SELECT 3 * col1 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT DISTINCT - 45 AS col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
-45

query I rowsort
SELECT + tab1.col2 FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT + col1 * - cor0.col1 + - 92 AS col2 FROM tab0 AS cor0
----
-7488
-8373
-9501

onlyif mysql # use DIV operator for integer division
query I rowsort label-8023
SELECT ALL col0 DIV - 33 - col1 FROM tab0
----
-86
-93
-98

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL col0 / - 33 - col1 FROM tab0
----
-86
-93
-98

query I rowsort
SELECT ALL col0 - 34 FROM tab1
----
-31
30
46

query I rowsort
SELECT - col1 * + ( col1 * + col0 ) - 7 FROM tab2 cor0
----
-22838
-271525
-6734

query I rowsort
SELECT ( 86 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT DISTINCT + col2 + + 12 * - col0 * col2 FROM tab2 AS cor0
----
-2241
-24310
-35986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - ( + col0 ) - - col2 * - cor0.col2 col0 FROM tab1 AS cor0
----
-2816
-2907
847

onlyif mysql # use DIV operator for integer division
query I rowsort label-8029
SELECT DISTINCT - - col1 DIV col1 AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT - - col1 / col1 AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - - col0 * ( col1 ) - col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT col0 * ( 52 ) * col0 + - col1 - + col2 FROM tab0 AS cor0
----
29833
411719
63602

onlyif mysql # use DIV operator for integer division
query I rowsort label-8032
SELECT DISTINCT - ( + col2 ) DIV - col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-8032
SELECT DISTINCT - ( + col2 ) / - col0 FROM tab0
----
0
1

query I rowsort
SELECT + cor0.col0 * 83 AS col0 FROM tab1 AS cor0
----
249
5312
6640

query I rowsort
SELECT + 1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 0 * cor0.col1 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col0 + + col1 * 23 FROM tab1 AS cor0
----
166
219
595

onlyif mysql # use DIV operator for integer division
query I rowsort label-8037
SELECT ALL - col1 DIV + tab2.col0 AS col2 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL - col1 / + tab2.col0 AS col2 FROM tab2
----
-4
0
0

query I rowsort
SELECT + - 0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + cor0.col2 * col1 + col0 * ( + col1 ) FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT DISTINCT + 33 + col1 AS col2 FROM tab1 AS cor0
----
43
46
59

query I rowsort
SELECT + 48 + + col1 * - cor0.col0 FROM tab1 AS cor0
----
-30
-592
-992

query I rowsort
SELECT + 80 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT DISTINCT - cor0.col1 * col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + col2 * col1 + col0 + col1 * col2 FROM tab1 AS cor0
----
1204
2576
2811

query I rowsort
SELECT ALL + - col1 + col1 * col1 FROM tab0 cor0
----
7310
8190
9312

query I rowsort
SELECT cor0.col2 + cor0.col1 * 28 * col1 FROM tab2 AS cor0
----
26935
8130
97494

onlyif mysql # use DIV operator for integer division
query I rowsort label-8047
SELECT cor0.col1 DIV - 93 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8047
SELECT cor0.col1 / - 93 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - cor0.col0 + + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - + col0 + + 10 FROM tab1 AS cor0
----
-54
-70
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 + 27 col0 FROM tab2
----
-162
-2001
-2975

query I rowsort
SELECT + 9 * col2 + - 2 * tab1.col2 AS col1 FROM tab1
----
378
399
672

onlyif mysql # use DIV operator for integer division
query I rowsort label-8052
SELECT - col2 DIV + col0 - + col0 FROM tab1
----
-21
-64
-81

skipif mysql # not compatible
query I rowsort label-8052
SELECT - col2 / + col0 - + col0 FROM tab1
----
-21
-64
-81

query I rowsort
SELECT DISTINCT - ( - col2 ) * - cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - ( + col0 ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + + ( + 22 ) * - col0 AS col0 FROM tab0 AS cor0
----
-1958
-528
-770

query I rowsort
SELECT - - ( col0 ) + col2 + ( col2 * col0 ) FROM tab1 cor0
----
219
3769
7856

query I rowsort
SELECT ALL + ( - 78 ) FROM tab0 cor0
----
-78
-78
-78

query I rowsort
SELECT - 21 * + 25 + + col0 * - col2 * - col2 FROM tab0 AS cor0
----
-490
25611
597911

query I rowsort
SELECT DISTINCT - ( 32 ) * + col0 + + 37 FROM tab1 AS cor0
----
-2011
-2523
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-8060
SELECT col0 * col0 DIV - cor0.col1 + - 91 AS col0 FROM tab1 cor0
----
-500
-583
-91

skipif mysql # not compatible
query I rowsort label-8060
SELECT col0 * col0 / - cor0.col1 + - 91 AS col0 FROM tab1 cor0
----
-500
-583
-91

query I rowsort
SELECT DISTINCT - + 77 * + ( - col0 ) + + ( col2 ) AS col1 FROM tab0 AS cor0
----
1881
2696
6935

query I rowsort
SELECT DISTINCT ( - 12 ) + col0 FROM tab0 cor0
----
12
23
77

query I rowsort
SELECT cor0.col1 * - 24 FROM tab1 AS cor0
----
-240
-312
-624

query I rowsort
SELECT ( cor0.col2 ) AS col2 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + 84 * 83 AS col1 FROM tab1 cor0
----
6972
6972
6972

query I rowsort
SELECT ( - col2 ) * col0 + + 38 FROM tab0 AS cor0
----
-7260
-754
3

query I rowsort
SELECT DISTINCT ( - 53 ) FROM tab0, tab0 AS cor0
----
-53

query I rowsort
SELECT + 8 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094

onlyif mysql # use DIV operator for integer division
query I rowsort label-8070
SELECT ALL + col0 DIV ( 74 ) AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL + col0 / ( 74 ) AS col2 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8071
SELECT cor0.col2 DIV + 45 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8071
SELECT cor0.col2 / + 45 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - col1 + - ( + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL + ( - 24 ) FROM tab0 AS cor0
----
-24
-24
-24

query I rowsort
SELECT ALL - col2 * + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - - 48 AS col2 FROM tab2 AS cor0
----
48

onlyif mysql # use DIV operator for integer division
query I rowsort label-8076
SELECT 17 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8076
SELECT 17 / col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 27 * + col2 + + col0 FROM tab0 AS cor0
----
2303
62
915

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8078
SELECT - + CAST( NULL AS SIGNED ) + + ( col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8078
SELECT - + CAST ( NULL AS INTEGER ) + + ( col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 + - col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT tab2.col2 * - tab2.col1 + col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT + 84 * col2 AS col0 FROM tab2 cor0
----
2184
2268
3192

onlyif mysql # use DIV operator for integer division
query I rowsort label-8082
SELECT - col2 DIV 15 FROM tab1 AS cor0
----
-3
-3
-6

skipif mysql # not compatible
query I rowsort label-8082
SELECT - col2 / 15 FROM tab1 AS cor0
----
-3
-3
-6

query I rowsort
SELECT DISTINCT + - 46 + + col0 * col2 * - 58 + col2 FROM tab1 AS cor0
----
-211573
-445390
-9388

query I rowsort
SELECT DISTINCT - - col1 + - col1 AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT col2 + - col2 * 57 * col1 + col2 AS col2 FROM tab2 AS cor0
----
-36746
-47655
-87386

query I rowsort
SELECT DISTINCT 1 * col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8087
SELECT + + 21 * col1 + 25 + - 74 DIV col2 AS col1 FROM tab1 AS cor0
----
234
298
570

skipif mysql # not compatible
query I rowsort label-8087
SELECT + + 21 * col1 + 25 + - 74 / col2 AS col1 FROM tab1 AS cor0
----
234
298
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8088
SELECT ( + col2 ) + + CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8088
SELECT ( + col2 ) + + CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * - col1 + 32 AS col2 FROM tab1 AS cor0
----
1072
110
672

onlyif mysql # use DIV operator for integer division
query I rowsort label-8090
SELECT DISTINCT col1 DIV - col0 + + 53 * - ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-2870
-3021
-5088

skipif mysql # not compatible
query I rowsort label-8090
SELECT DISTINCT col1 / - col0 + + 53 * - ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
-2870
-3021
-5088

query I rowsort
SELECT + ( - col2 ) * - ( + col0 * - col0 ) + - col0 AS col1 FROM tab2 AS cor0
----
-1330
-158262
-237237

query I rowsort
SELECT - col0 * - col2 + 79 * col0 AS col0 FROM tab2 AS cor0
----
742
8190
9243

query I rowsort
SELECT DISTINCT - 44 + + col0 * 47 FROM tab2 cor0
----
285
3622
3669

query I rowsort
SELECT - ( + col2 ) + 71 FROM tab1 cor0
----
-25
14
17

query I rowsort
SELECT ALL col1 * col1 + + col2 - col1 AS col2 FROM tab2 AS cor0
----
310
3448
957

query I rowsort
SELECT + 70 + cor0.col1 * - col0 FROM tab1 AS cor0
----
-570
-8
-970

onlyif mysql # use DIV operator for integer division
query I rowsort label-8097
SELECT - col1 DIV + ( - col0 ) AS col1 FROM tab0 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8097
SELECT - col1 / + ( - col0 ) AS col1 FROM tab0 AS cor0
----
1
2
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-8098
SELECT DISTINCT col0 + ( col2 ) DIV - col1 FROM tab2 cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-8098
SELECT DISTINCT col0 + ( col2 ) / - col1 FROM tab2 cor0
----
7
77
78

query I rowsort
SELECT 74 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT ALL tab2.col0 + - col0 + col2 * + tab2.col2 FROM tab2
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 49 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-49

query I rowsort
SELECT ALL col1 + + ( 64 ) * - col1 FROM tab0 AS cor0
----
-5418
-5733
-6111

query I rowsort
SELECT ALL + col2 * - cor0.col2 + - col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT col1 + 3 AS col1 FROM tab1 AS cor0
----
13
16
29

query I rowsort
SELECT + ( col2 * + col2 ) + col1 AS col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT col0 + col2 + ( - tab1.col1 + col0 ) * - col2 * 71 FROM tab1
----
-218417
-456496
88239

onlyif mysql # use DIV operator for integer division
query I rowsort label-8107
SELECT DISTINCT + 76 + col1 DIV col0 col2 FROM tab2
----
76
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT + 76 + col1 / col0 col2 FROM tab2
----
76
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8108
SELECT - col2 + tab1.col1 + + ( 37 + + col2 ) DIV - 97 FROM tab1
----
-28
-47
-84

skipif mysql # not compatible
query I rowsort label-8108
SELECT - col2 + tab1.col1 + + ( 37 + + col2 ) / - 97 FROM tab1
----
-28
-47
-84

query I rowsort
SELECT + + cor0.col1 * + col0 - + col2 AS col2 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-8110
SELECT - - 71 DIV col1 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-8110
SELECT - - 71 / col1 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT - - cor0.col1 + + 4 FROM tab2 AS cor0
----
21
35
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

onlyif mysql # use DIV operator for integer division
query I rowsort label-8113
SELECT + 62 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8113
SELECT + 62 / col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8114
SELECT DISTINCT + 88 DIV cor0.col1 FROM tab0, tab2, tab2 AS cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT + 88 / cor0.col1 FROM tab0, tab2, tab2 AS cor0
----
1
2
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-8115
SELECT + col0 - - col1 DIV - col0 FROM tab1 AS cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-8115
SELECT + col0 - - col1 / - col0 FROM tab1 AS cor0
----
-5
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col0 * ( + ( - col0 ) ) * - 92 + 3 col0 FROM tab0 AS cor0
----
112738
53019
728824

query I rowsort
SELECT - col2 * col0 - col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-132
-14760
-3630

query I rowsort
SELECT + cor0.col0 * col2 - col0 * + col1 AS col1 FROM tab1 AS cor0
----
3008
6640
84

query I rowsort
SELECT DISTINCT - 12 * + cor0.col0 FROM tab2 cor0
----
-84
-936
-948

query I rowsort
SELECT DISTINCT 22 * col2 FROM tab1 AS cor0
----
1188
1254
2112

onlyif mysql # use DIV operator for integer division
query I rowsort label-8121
SELECT - cor0.col2 + + col1 DIV col1 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-8121
SELECT - cor0.col2 + + col1 / col1 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT DISTINCT col2 * 22 FROM tab1
----
1188
1254
2112

onlyif mysql # use DIV operator for integer division
query I rowsort label-8123
SELECT DISTINCT col1 DIV 29 col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT col1 / 29 col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT ( 73 ) AS col1 FROM tab2, tab1 AS cor0
----
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8125
SELECT CAST( - 81 AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

skipif mysql # not compatible
query I rowsort label-8125
SELECT CAST ( - 81 AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT - - 35 * - col2 FROM tab1 AS cor0
----
-1890
-1995
-3360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 col0 FROM tab0, tab0 AS cor0
----
-30

query I rowsort
SELECT ALL - ( col2 + + 40 ) * col2 FROM tab2
----
-1716
-1809
-2964

query I rowsort
SELECT DISTINCT 50 * - col2 FROM tab1
----
-2700
-2850
-4800

query I rowsort
SELECT - 58 + col0 * - ( + col0 ) * col1 AS col1 FROM tab2
----
-106155
-1577
-359014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + col0 + - ( - 41 * + col1 ) FROM tab0 AS cor0
----
3550
3820
4012

query I rowsort
SELECT + - col1 + cor0.col0 + col0 * - col1 * ( ( cor0.col0 ) ) FROM tab2 AS cor0
----
-106035
-1543
-358937

query I rowsort
SELECT + col2 * 75 AS col2 FROM tab0 AS cor0
----
2475
6150
75

query I rowsort
SELECT ALL 94 FROM tab2, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT - - col2 * col0 + - 24 AS col2 FROM tab2 AS cor0
----
165
2004
2978

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8137
SELECT col0 + + CAST( col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8137
SELECT col0 + + CAST ( col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT col0 + - 97 * col1 + col2 FROM tab0
----
-8285
-8656
-9373

query I rowsort
SELECT DISTINCT col0 + + tab2.col1 AS col0 FROM tab2
----
137
38
96

query I rowsort
SELECT - tab1.col1 + col2 AS col1 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT + col2 * - col1 * col0 + col2 + + col0 AS col0 FROM tab0
----
-3359
-663947
-68055

onlyif mysql # use DIV operator for integer division
query I rowsort label-8142
SELECT ALL + 73 DIV - cor0.col0 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d14cda7891f54c0a63602e97bb32b238

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL + 73 / - cor0.col0 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d14cda7891f54c0a63602e97bb32b238

query I rowsort
SELECT col2 * ( col0 ) + + col2 + + col0 FROM tab2 AS cor0
----
2132
223
3119

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8144
SELECT DISTINCT - + ( ( col0 ) ) + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8144
SELECT DISTINCT - + ( ( col0 ) ) + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL + 1 + cor0.col0 * + col0 FROM tab1 AS cor0
----
10
4097
6401

onlyif mysql # use DIV operator for integer division
query I rowsort label-8146
SELECT DISTINCT + + cor0.col1 + - col2 DIV - col1 col1 FROM tab2 cor0
----
19
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8146
SELECT DISTINCT + + cor0.col1 + - col2 / - col1 col1 FROM tab2 cor0
----
19
31
59

query I rowsort
SELECT DISTINCT + ( col0 ) * col1 * ( ( col2 ) ) FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-8148
SELECT ALL - 76 DIV col0 AS col1 FROM tab2 AS cor0
----
-10
0
0

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL - 76 / col0 AS col1 FROM tab2 AS cor0
----
-10
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8149
SELECT DISTINCT + CAST( col1 AS SIGNED ) * - col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * - col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT 16 * cor0.col2 * col2 FROM tab0 cor0
----
107584
16
17424

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8151
SELECT - + CAST( NULL AS SIGNED ) / + 24 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8151
SELECT - + CAST ( NULL AS INTEGER ) / + 24 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8152
SELECT DISTINCT + ( col1 ) * col2 DIV 76 FROM tab1 AS cor0
----
16
18
7

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT + ( col1 ) * col2 / 76 FROM tab1 AS cor0
----
16
18
7

query I rowsort
SELECT DISTINCT col0 + + 30 * col0 FROM tab0
----
1085
2759
744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - tab0.col0 * 48 + - col2 * + ( + col2 ) + + col0 col2 FROM tab0
----
26583
373573
58834

query I rowsort
SELECT DISTINCT - 40 * + col2 + cor0.col2 FROM tab2 cor0
----
-1014
-1053
-1482

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8156
SELECT + + 63 / col0 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8156
SELECT + + 63 / col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 79 + - cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to e1cf0bbca346b77fe0f0c678099b8034

query I rowsort
SELECT ALL + 94 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT + col0 * col2 * col0 - - 52 FROM tab2 AS cor0
----
1375
158236
237210

query I rowsort
SELECT + - col0 + col1 * + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-22910
-271596
-6734

query I rowsort
SELECT 68 + + cor0.col0 FROM tab1 AS cor0
----
132
148
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-8162
SELECT + col1 DIV + col1 - - ( col1 ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
1344
218
4603

skipif mysql # not compatible
query I rowsort label-8162
SELECT + col1 / + col1 - - ( col1 ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
1344
218
4603

query I rowsort
SELECT DISTINCT + cor0.col0 + - cor0.col1 AS col2 FROM tab0, tab0 AS cor0
----
-2
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-8164
SELECT DISTINCT - ( tab1.col2 ) DIV col2 + - tab1.col0 FROM tab1
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-8164
SELECT DISTINCT - ( tab1.col2 ) / col2 + - tab1.col0 FROM tab1
----
-4
-65
-81

query I rowsort
SELECT ALL 16 + col2 * col1 * + col0 + - col2 FROM tab1
----
36439
4174
99760

onlyif mysql # use DIV operator for integer division
query I rowsort label-8166
SELECT col2 DIV col1 + - col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-8166
SELECT col2 / col1 + - col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - - 77 AS col0 FROM tab0 cor0
----
77

query I rowsort
SELECT ALL - col0 + col0 * - tab0.col2 FROM tab0
----
-70
-7387
-816

query I rowsort
SELECT ALL - 38 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 + - col1 ) col1 FROM tab0
----
2
62
62

query I rowsort
SELECT DISTINCT 27 + col2 * - tab0.col0 FROM tab0
----
-7271
-765
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-8172
SELECT DISTINCT col2 DIV + col2 + col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-8172
SELECT DISTINCT col2 / + col2 + col1 FROM tab1
----
11
14
27

query I rowsort
SELECT col1 * 65 + col1 AS col2 FROM tab2
----
1122
2046
3894

query I rowsort
SELECT + + 68 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT ALL - col2 * col2 * 23 AS col0 FROM tab0 AS cor0
----
-154652
-23
-25047

query I rowsort
SELECT + 55 + - col2 FROM tab0 AS cor0
----
-27
22
54

query I rowsort
SELECT DISTINCT + - col1 + col1 * col0 AS col0 FROM tab1 AS cor0
----
1027
52
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 * + col0 col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL - ( + cor0.col0 ) + + 15 AS col1 FROM tab0 AS cor0
----
-20
-74
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8180
SELECT DISTINCT - + ( + cor0.col2 ) * - CAST( 21 AS SIGNED ) FROM tab2 AS cor0
----
546
567
798

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT - + ( + cor0.col2 ) * - CAST ( 21 AS INTEGER ) FROM tab2 AS cor0
----
546
567
798

query I rowsort
SELECT ALL - cor0.col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-8182
SELECT ALL + 22 + + col2 DIV + col1 - 6 * - col2 AS col0 FROM tab1 AS cor0
----
348
369
605

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL + 22 + + col2 / + col1 - 6 * - col2 AS col0 FROM tab1 AS cor0
----
348
369
605

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8183
SELECT ALL col2 + col2 * CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2871
7544
98

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL col2 + col2 * CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL - - col2 - col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT + - 67 + - col1 AS col1 FROM tab2 AS cor0
----
-126
-84
-98

query I rowsort
SELECT - 75 AS col1 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to a0b2f2fd1ab7466175d5b39a8fa7be73

query I rowsort
SELECT - col2 + + 53 + col0 FROM tab2
----
105
33
94

query I rowsort
SELECT ALL + col0 + - 11 AS col1 FROM tab2 AS cor0
----
-4
67
68

query I rowsort
SELECT DISTINCT col2 + 61 * col2 AS col0 FROM tab0 AS cor0
----
2046
5084
62

query I rowsort
SELECT DISTINCT + col0 * 23 + ( col1 ) + + col0 FROM tab2 AS cor0
----
1913
1931
199

onlyif mysql # use DIV operator for integer division
query I rowsort label-8191
SELECT DISTINCT cor0.col0 DIV - CAST( - col0 AS SIGNED ) + col2 AS col1 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-8191
SELECT DISTINCT cor0.col0 / - CAST ( - col0 AS INTEGER ) + col2 AS col1 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT - + col0 + - 11 FROM tab0 cor0
----
-100
-35
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + col1 col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL col2 * - 61 FROM tab1 AS cor0
----
-3294
-3477
-5856

query I rowsort
SELECT DISTINCT + col1 + 54 AS col2 FROM tab0 cor0
----
140
145
151

query I rowsort
SELECT ALL 33 AS col2 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT - 2 + col0 FROM tab2 AS cor0
----
5
76
77

query I rowsort
SELECT ALL - 80 + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-115
-7378
-872

query I rowsort
SELECT ( - 77 ) + - col1 AS col2 FROM tab0 AS cor0
----
-163
-168
-174

query I rowsort
SELECT DISTINCT - + ( col1 ) + + col2 * ( col0 ) FROM tab0 cor0
----
-62
706
7207

query I rowsort
SELECT ALL tab0.col2 * - 80 * col0 - - col0 * col2 FROM tab0
----
-2765
-576542
-62568

query I rowsort
SELECT DISTINCT - 84 * 45 FROM tab2 AS cor0
----
-3780

onlyif mysql # use DIV operator for integer division
query I rowsort label-8203
SELECT DISTINCT col0 DIV - 21 + + col0 FROM tab0 cor0
----
23
34
85

skipif mysql # not compatible
query I rowsort label-8203
SELECT DISTINCT col0 / - 21 + + col0 FROM tab0 cor0
----
23
34
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-8204
SELECT DISTINCT + - 76 DIV - col2 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT + - 76 / - col2 AS col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL ( - 60 ) * col1 + - ( col2 + + col2 * 59 ) FROM tab1 AS cor0
----
-4020
-4800
-6540

query I rowsort
SELECT ALL - 48 * 78 FROM tab1 AS cor0
----
-3744
-3744
-3744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 - - ( + col1 ) col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL ( 23 ) * col1 + 70 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1581
2883
5487

query I rowsort
SELECT ( + col0 ) + - col2 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - ( - 51 ) * col2 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
1385
1408
1955

onlyif mysql # use DIV operator for integer division
query I rowsort label-8211
SELECT ( - cor0.col0 ) + - col1 DIV 34 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-8211
SELECT ( - cor0.col0 ) + - col1 / 34 AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + col0 + 32 FROM tab0 cor0
----
121
56
67

query I rowsort
SELECT + - col0 - col0 * 99 FROM tab2 AS cor0
----
-700
-7800
-7900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 * ( + col0 + col1 ) col1 FROM tab2 AS cor0
----
3536
3610
999

query I rowsort
SELECT DISTINCT - col2 * - col1 + - col2 AS col2 FROM tab1
----
1152
1350
513

query I rowsort
SELECT ALL - - col1 + 91 FROM tab2 AS cor0
----
108
122
150

onlyif mysql # use DIV operator for integer division
query I rowsort label-8217
SELECT ALL - - col1 * - col2 + - col0 DIV + col2 FROM tab0 cor0
----
-132
-2838
-7463

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL - - col1 * - col2 + - col0 / + col2 FROM tab0 cor0
----
-132
-2838
-7463

query I rowsort
SELECT ALL col1 * 49 + + col1 * col0 AS col2 FROM tab1 cor0
----
1130
1352
1677

query I rowsort
SELECT ( - cor0.col1 ) FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8220
SELECT DISTINCT col1 * CAST( + 27 * + col0 AS SIGNED ) + 46 FROM tab0 cor0
----
218719
55774
91711

skipif mysql # not compatible
query I rowsort label-8220
SELECT DISTINCT col1 * CAST ( + 27 * + col0 AS INTEGER ) + 46 FROM tab0 cor0
----
218719
55774
91711

query I rowsort
SELECT 59 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT ALL + col0 * col0 + 77 FROM tab1 AS cor0
----
4173
6477
86

query I rowsort
SELECT ALL 88 - 66 FROM tab2, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8224
SELECT + col2 + - cor0.col2 DIV 35 FROM tab0 AS cor0
----
1
33
80

skipif mysql # not compatible
query I rowsort label-8224
SELECT + col2 + - cor0.col2 / 35 FROM tab0 AS cor0
----
1
33
80

query I rowsort
SELECT + ( + col1 ) * col1 + - 68 * - col1 AS col2 FROM tab2 AS cor0
----
1445
3069
7493

query I rowsort
SELECT + col2 * col2 + col2 * col2 FROM tab2 AS cor0
----
1352
1458
2888

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col0 col2 FROM tab1 cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8228
SELECT ALL - - col2 * col1 + - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
132
2862
7551

skipif mysql # not compatible
query I rowsort label-8228
SELECT ALL - - col2 * col1 + - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT 89 * col0 * col1 FROM tab2 AS cor0
----
119527
19313
409578

query I rowsort
SELECT + + col0 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * - cor0.col1 + col1 col0 FROM tab2 AS cor0
----
-1271
-2419
-697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 * col1 col2 FROM tab1
----
1014
390
507

query I rowsort
SELECT col2 + - col0 * - 9 FROM tab0 AS cor0
----
249
316
883

query I rowsort
SELECT + 21 + + col0 * ( + cor0.col2 ) AS col2 FROM tab2 AS cor0
----
2049
210
3023

query I rowsort
SELECT ALL col2 * col2 - + col1 AS col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT + col2 * + col0 + + 65 FROM tab0 AS cor0
----
100
7363
857

query I rowsort
SELECT ALL - col1 * - ( 88 + col0 ) FROM tab2 AS cor0
----
2839
2945
9794

query I rowsort
SELECT + + col2 + col2 * col2 * col1 AS col2 FROM tab0 AS cor0
----
611966
93687
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-8239
SELECT DISTINCT col2 + - cor0.col1 * col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-8239
SELECT DISTINCT col2 + - cor0.col1 * col2 / col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8240
SELECT ALL tab2.col1 * + tab2.col1 + col0 DIV tab2.col0 AS col0 FROM tab2
----
290
3482
962

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL tab2.col1 * + tab2.col1 + col0 / tab2.col0 AS col0 FROM tab2
----
290
3482
962

onlyif mysql # use DIV operator for integer division
query I rowsort label-8241
SELECT cor0.col2 DIV 90 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-8241
SELECT cor0.col2 / 90 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT cor0.col1 + 65 * - tab2.col2 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 1cbbf08754067e913a0a62b2a5e99e65

query I rowsort
SELECT + - col0 - 86 FROM tab2 AS cor0
----
-164
-165
-93

query I rowsort
SELECT 21 - col1 * + cor0.col1 FROM tab1 cor0
----
-148
-655
-79

query I rowsort
SELECT + 35 * col2 - col2 * + ( - col2 ) AS col1 FROM tab2 AS cor0
----
1586
1674
2774

query I rowsort
SELECT - - cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ( + 46 ) * col1 AS col2 FROM tab0
----
3956
4186
4462

query I rowsort
SELECT - ( tab2.col2 ) * - col1 AS col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT - 25 * col2 FROM tab0
----
-2050
-25
-825

query I rowsort
SELECT - ( 7 ) + + col1 AS col1 FROM tab0 AS cor0
----
79
84
90

query I rowsort
SELECT DISTINCT + col1 - + col2 * - col2 FROM tab2
----
1461
735
760

query I rowsort
SELECT ALL - 83 * - 30 - + col2 * + 73 AS col0 FROM tab0
----
-3496
2417
81

query I rowsort
SELECT DISTINCT col1 - - col1 * - tab0.col1 AS col0 FROM tab0
----
-7310
-8190
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * + cor0.col1 col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + - cor0.col1 * + col1 + ( col1 ) - cor0.col2 FROM tab0 cor0
----
-7343
-8272
-9313

onlyif mysql # use DIV operator for integer division
query I rowsort label-8256
SELECT DISTINCT 18 + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8256
SELECT DISTINCT 18 + col2 / col1 AS col2 FROM tab0 AS cor0
----
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 + - col1 col1 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT col1 + col1 - col0 * ( col0 ) FROM tab2
----
-5966
-6207
13

query I rowsort
SELECT + col0 * tab1.col0 * col2 AS col2 FROM tab1
----
233472
486
614400

skipif mysql # not compatible
query I rowsort
SELECT - col0 * + col0 + - CAST ( - col1 AS REAL ) AS col2 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT + 49 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT ALL 77 * tab2.col0 + col0 AS col0 FROM tab2
----
546
6084
6162

query I rowsort
SELECT 43 + - col1 AS col2 FROM tab2
----
-16
12
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8264
SELECT ALL col1 + col0 * - CAST( col2 AS SIGNED ) * - col1 FROM tab1
----
36490
4238
99853

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL col1 + col0 * - CAST ( col2 AS INTEGER ) * - col1 FROM tab1
----
36490
4238
99853

query I rowsort
SELECT DISTINCT col1 + col1 - - col0 FROM tab1 AS cor0
----
106
55
84

query I rowsort
SELECT DISTINCT - ( 94 ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-94

query I rowsort
SELECT - + col0 * col1 + 60 FROM tab2 AS cor0
----
-1283
-157
-4542

onlyif mysql # use DIV operator for integer division
query I rowsort label-8268
SELECT + 88 * col2 + - ( 24 ) DIV - col2 FROM tab1 AS cor0
----
4752
5016
8448

skipif mysql # not compatible
query I rowsort label-8268
SELECT + 88 * col2 + - ( 24 ) / - col2 FROM tab1 AS cor0
----
4752
5016
8448

query I rowsort
SELECT DISTINCT - 5 * - col1 AS col1 FROM tab0 AS cor0
----
430
455
485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 * col0 col1 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT ALL - 80 AS col2 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd

query I rowsort
SELECT col0 - + 52 FROM tab0
----
-17
-28
37

query I rowsort
SELECT - col2 * ( - 81 ) + - tab2.col2 AS col1 FROM tab2
----
2080
2160
3040

query I rowsort
SELECT cor0.col2 + tab0.col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c4b3f256aed754fcefbf420423e5b6e1

query I rowsort
SELECT DISTINCT + 21 + cor0.col2 * - cor0.col1 AS col2 FROM tab1, tab1 AS cor0
----
-1227
-1383
-549

query I rowsort
SELECT ALL + + cor0.col0 * + col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT 13 + col1 AS col2 FROM tab0 AS cor0
----
104
110
99

query I rowsort
SELECT DISTINCT - - 48 AS col2 FROM tab1 AS cor0
----
48

query I rowsort
SELECT ALL - cor0.col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + col0 * + 13 FROM tab2 AS cor0
----
1014
1027
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col0 ) + cor0.col1 col1 FROM tab1 AS cor0
----
-54
-67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 * - col2 - - col1 col2 FROM tab1 cor0
----
-16211
-36478
-5690

onlyif mysql # use DIV operator for integer division
query I rowsort label-8283
SELECT + + cor0.col2 DIV 96 + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-8283
SELECT + + cor0.col2 / 96 + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - 61 * - 52 AS col1 FROM tab0 AS cor0
----
3172
3172
3172

query I rowsort
SELECT ALL + col0 + 71 FROM tab0 AS cor0
----
106
160
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8286
SELECT ALL CAST( ( - cor0.col2 ) AS SIGNED ) + - col0 * 77 + - col0 FROM tab0 AS cor0
----
-1905
-2731
-7024

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL CAST ( ( - cor0.col2 ) AS INTEGER ) + - col0 * 77 + - col0 FROM tab0 AS cor0
----
-1905
-2731
-7024

onlyif mysql # use DIV operator for integer division
query I rowsort label-8287
SELECT DISTINCT + + ( - 34 ) DIV - col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8287
SELECT DISTINCT + + ( - 34 ) / - col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 17 * - 54 * col0 FROM tab0 AS cor0
----
-22032
-32130
-81702

query I rowsort
SELECT ALL - + col0 * cor0.col1 * - col2 + col0 FROM tab1 AS cor0
----
36544
4215
99920

query I rowsort
SELECT DISTINCT - col0 + + col0 * col1 FROM tab0 AS cor0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-8291
SELECT DISTINCT + cor0.col2 DIV - 67 + + col0 * col0 + col1 FROM tab0 AS cor0
----
1322
662
8011

skipif mysql # not compatible
query I rowsort label-8291
SELECT DISTINCT + cor0.col2 / - 67 + + col0 * col0 + col1 FROM tab0 AS cor0
----
1322
662
8011

query I rowsort
SELECT ALL cor0.col0 * col0 + 2 + col2 * ( col2 ) * col1 FROM tab2 AS cor0
----
22650
30791
45970

query I rowsort
SELECT - - col2 * + col0 - + col1 AS col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT + col2 * + col0 + col0 AS col2 FROM tab2
----
196
2106
3081

query I rowsort
SELECT + tab2.col2 * + ( + col1 ) AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT col0 + + 76 FROM tab1
----
140
156
79

query I rowsort
SELECT DISTINCT - 2 AS col1 FROM tab0, tab0 AS cor0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 78 * tab1.col0 + tab1.col2 * 68 * + col0 col2 FROM tab1
----
17100
297984
603360

onlyif mysql # use DIV operator for integer division
query I rowsort label-8299
SELECT ALL + cor0.col1 DIV - col1 - - col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL + cor0.col1 / - col1 - - col0 FROM tab1 AS cor0
----
2
63
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8300
SELECT ALL 6 * col2 + CAST( NULL AS DECIMAL ) * col2 / col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL 6 * col2 + CAST ( NULL AS REAL ) * col2 / col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 60 + col0 - 36 AS col2 FROM tab2 cor0
----
-17
-18
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8302
SELECT ALL - + col1 + + col1 * + CAST( + col0 + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1200
1456
2275

skipif mysql # not compatible
query I rowsort label-8302
SELECT ALL - + col1 + + col1 * + CAST ( + col0 + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1200
1456
2275

query I rowsort
SELECT DISTINCT + - 72 - col2 * - cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
119736
32418
75744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8304
SELECT ALL - CAST( - col2 AS SIGNED ) col0 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL - CAST ( - col2 AS INTEGER ) col0 FROM tab1
----
54
57
96

query I rowsort
SELECT - cor0.col2 * cor0.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 315ab91f9844de122b0c28cd16e982e4

query I rowsort
SELECT ALL + - 64 FROM tab2 AS cor0
----
-64
-64
-64

query I rowsort
SELECT ALL - 66 + + cor0.col1 AS col0 FROM tab2 cor0
----
-35
-49
-7

query I rowsort
SELECT ALL - - 14 * col1 - - col0 AS col0 FROM tab0 AS cor0
----
1228
1363
1393

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 col2 FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col1 ) * - 40 col2 FROM tab1 AS cor0
----
1040
400
520

query I rowsort
SELECT col1 + col2 * ( + 37 ) FROM tab0 cor0
----
1307
134
3125

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - col1 col0 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * cor0.col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT 29 + col2 * 50 FROM tab2
----
1329
1379
1929

query I rowsort
SELECT + cor0.col1 - 97 FROM tab1, tab1 AS cor0
----
9 values hashing to 3d8fbd01b1d3904b5e97163aba378b21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 * + 20 col1 FROM tab2 AS cor0
----
1102
261
613

query I rowsort
SELECT ALL + 42 * + tab1.col2 FROM tab1
----
2268
2394
4032

query I rowsort
SELECT ALL + 85 FROM tab0, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT col0 * 75 * col0 AS col0 FROM tab1 AS cor0
----
307200
480000
675

query I rowsort
SELECT + col1 * col2 * 31 AS col2 FROM tab1 cor0
----
17670
38688
43524

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8321
SELECT - col0 * CAST( - ( + col2 ) AS SIGNED ) FROM tab0 cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-8321
SELECT - col0 * CAST ( - ( + col2 ) AS INTEGER ) FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - + 12 + - col2 AS col1 FROM tab1 AS cor0
----
-108
-66
-69

query I rowsort
SELECT - ( col2 ) + col0 * col1 + cor0.col0 FROM tab1 AS cor0
----
1024
27
647

query I rowsort
SELECT ALL - + cor0.col2 * + 50 AS col0 FROM tab2 cor0
----
-1300
-1350
-1900

onlyif mysql # use DIV operator for integer division
query I rowsort label-8325
SELECT + col1 DIV ( col2 ) + cor0.col0 + - 6 FROM tab0 AS cor0
----
126
20
84

skipif mysql # not compatible
query I rowsort label-8325
SELECT + col1 / ( col2 ) + cor0.col0 + - 6 FROM tab0 AS cor0
----
126
20
84

query I rowsort
SELECT - 15 * tab0.col2 AS col1 FROM tab0
----
-1230
-15
-495

onlyif mysql # use DIV operator for integer division
query I rowsort label-8327
SELECT col2 * + 88 * col1 + ( col1 ) DIV - cor0.col0 FROM tab0 AS cor0
----
249741
656655
8534

skipif mysql # not compatible
query I rowsort label-8327
SELECT col2 * + 88 * col1 + ( col1 ) / - cor0.col0 FROM tab0 AS cor0
----
249741
656655
8534

query I rowsort
SELECT ALL 78 + 12 * - col0 + + col1 AS col0 FROM tab0 AS cor0
----
-124
-245
-899

query I rowsort
SELECT + 22 + + col1 FROM tab2 AS cor0
----
39
53
81

query I rowsort
SELECT DISTINCT + - 41 * cor0.col0 * + col2 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-149511
-314784
-6588

query I rowsort
SELECT col2 + + 88 FROM tab0 AS cor0
----
121
170
89

query I rowsort
SELECT ALL - 49 + + 75 AS col1 FROM tab0 AS cor0
----
26
26
26

query I rowsort
SELECT - + ( + col1 ) + + cor0.col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * col2 + + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-14924
-194
-5676

query I rowsort
SELECT ALL - 97 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5

query I rowsort
SELECT - - cor0.col1 + - 14 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1d1e999d6fca22e475452f1e83320066

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + tab0.col1 * - col0 + col2 col2 FROM tab0
----
-1945
-3297
-7926

query I rowsort
SELECT DISTINCT + col1 + col0 + + col0 AS col1 FROM tab0
----
134
167
269

query I rowsort
SELECT - col0 * - col2 * - col1 FROM tab2
----
-119652
-51034
-5859

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + tab0.col1 * - col0 )
----

query I rowsort
SELECT DISTINCT + col2 * + tab0.col0 AS col0 FROM tab0 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 * col0 col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( - col0 ) AND + col0
----

query I rowsort
SELECT tab2.col1 * + col0 + col1 * - col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col1 * - col1 * - col1 FROM tab0
----
636056
753571
912673

onlyif mysql # use DIV operator for integer division
query I rowsort label-8345
SELECT col2 * col2 DIV col1 FROM tab1
----
112
324
708

skipif mysql # not compatible
query I rowsort label-8345
SELECT col2 * col2 / col1 FROM tab1
----
112
324
708

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < ( - col0 )
----

query I rowsort
SELECT col0 * - col1 + + tab1.col2 AS col2 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT DISTINCT col0 + - col0 - - col2 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT 4 + - cor0.col0 * col1 FROM tab2 AS cor0
----
-1339
-213
-4598

query I rowsort
SELECT + col0 * - col2 FROM tab0 WHERE NOT ( col2 ) BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT 67 * + col1 + - ( - col2 ) FROM tab2 AS cor0
----
1177
2104
3979

query I rowsort
SELECT DISTINCT - + 28 + col1 AS col1 FROM tab2 cor0
----
-11
3
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + cor0.col2 col2 FROM tab0 cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - tab1.col0 * - col1 col1 FROM tab1
----
1136
132
697

query I rowsort
SELECT DISTINCT - col2 * tab0.col2 * col1 AS col2 FROM tab0 WHERE NULL <> col1
----

query I rowsort
SELECT DISTINCT + col2 * col0 * + col2 FROM tab1
----
207936
737280
8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * tab0.col2 + + col2 col1 FROM tab0 WHERE ( - col2 ) <= col1 + tab0.col0
----
-95
1036
6715

query I rowsort
SELECT - col0 * - col1 + - col2 * col0 FROM tab1
----
-3008
-6640
-84

query I rowsort
SELECT + col0 * col1 * - col0 - - col1 FROM tab0
----
-118728
-49450
-720720

query III rowsort
SELECT * FROM tab1 WHERE col2 + col2 >= ( - col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * + col1 * col2 = ( col0 / col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < col2
----

query I rowsort
SELECT + col0 * col2 + - col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT col0 * col2 + + col1 * tab2.col2 AS col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND + col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8365
SELECT DISTINCT + col0 DIV col1 - col1 AS col1 FROM tab2
----
-13
-31
-58

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT + col0 / col1 - col1 AS col1 FROM tab2
----
-13
-31
-58

query I rowsort
SELECT + tab1.col2 - col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8367
SELECT DISTINCT + - col2 * col2 - - col2 DIV col1 AS col1 FROM tab1 AS cor0
----
-2914
-3244
-9209

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT + - col2 * col2 - - col2 / col1 AS col1 FROM tab1 AS cor0
----
-2914
-3244
-9209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 col2 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT DISTINCT col2 * + col2 - + col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT - 7 * - ( - cor0.col0 * + 43 ) FROM tab1 AS cor0
----
-19264
-24080
-903

query I rowsort
SELECT ALL + col1 * 8 AS col2 FROM tab1 AS cor0
----
104
208
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8372
SELECT ALL - - cor0.col1 * col2 DIV - col0 + + col0 AS col0 FROM tab0 cor0
----
-94
33
6

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL - - cor0.col1 * col2 / - col0 + + col0 AS col0 FROM tab0 cor0
----
-94
33
6

query I rowsort
SELECT ALL + + 69 * col0 + col2 FROM tab2 AS cor0
----
510
5408
5489

onlyif mysql # use DIV operator for integer division
query I rowsort label-8374
SELECT DISTINCT - col2 - - 80 DIV - col0 FROM tab1 AS cor0
----
-58
-80
-97

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT - col2 - - 80 / - col0 FROM tab1 AS cor0
----
-58
-80
-97

query I rowsort
SELECT ALL + col2 * 86 * col0 + 62 AS col2 FROM tab2 cor0
----
16316
174470
258234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * 30 col2 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT DISTINCT - col1 - 12 FROM tab0
----
-103
-109
-98

query I rowsort
SELECT - 73 * + 95 FROM tab2
----
-6935
-6935
-6935

query I rowsort
SELECT DISTINCT - 67 AS col0 FROM tab0
----
-67

onlyif mysql # use DIV operator for integer division
query I rowsort label-8380
SELECT ALL + col1 DIV col2 - + col2 AS col2 FROM tab0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL + col1 / col2 - + col2 AS col2 FROM tab0
----
-31
-81
96

query I rowsort
SELECT ALL - ( - col0 ) * - col1 - 51 AS col1 FROM tab2
----
-1394
-268
-4653

query I rowsort
SELECT ( 88 ) + - tab1.col2 - col2 FROM tab1
----
-104
-20
-26

query I rowsort
SELECT 50 * col2 + col0 FROM tab1
----
2703
2914
4880

query I rowsort
SELECT ALL - ( - col2 * col0 ) + col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT ALL col1 * + col0 + col2 AS col1 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-8386
SELECT DISTINCT + col1 DIV col2 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT + col1 / col2 FROM tab0 cor0
----
1
2
97

query I rowsort
SELECT + tab0.col0 * col1 + tab0.col1 AS col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT - - 13 FROM tab2 cor0
----
13
13
13

query I rowsort
SELECT ALL - col2 + col1 * - 36 AS col2 FROM tab0
----
-3129
-3358
-3493

query I rowsort
SELECT + - tab0.col0 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d

query I rowsort
SELECT DISTINCT - col1 + col0 + + col0 AS col1 FROM tab2
----
-17
141
97

query I rowsort
SELECT - 60 * cor1.col1 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d1fac577a0325165ec37f095e924282d

query I rowsort
SELECT col1 + 41 AS col1 FROM tab0 AS cor0
----
127
132
138

query I rowsort
SELECT ALL - col1 - ( 55 ) AS col1 FROM tab0 AS cor0
----
-141
-146
-152

query I rowsort
SELECT - col0 * - 37 AS col0 FROM tab0 AS cor0
----
1295
3293
888

onlyif mysql # use DIV operator for integer division
query I rowsort label-8396
SELECT DISTINCT - - col0 DIV ( ( + col1 ) ) FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-8396
SELECT DISTINCT - - col0 / ( ( + col1 ) ) FROM tab1 AS cor0
----
0
6

query I rowsort
SELECT DISTINCT col1 * col2 + + col1 AS col0 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT ALL + cor0.col1 - + ( + cor0.col2 ) FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + - col1 * 95 FROM tab1 AS cor0
----
-1235
-2470
-950

query I rowsort
SELECT ALL + col0 * 74 AS col1 FROM tab0 AS cor0
----
1776
2590
6586

query I rowsort
SELECT DISTINCT - - col1 * + 5 AS col2 FROM tab0 AS cor0
----
430
455
485

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - CAST ( + col2 AS REAL ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - 27 + + cor0.col0 FROM tab0, tab0 AS cor0
----
-3
62
8

query I rowsort
SELECT DISTINCT + 52 + + col2 AS col1 FROM tab2 AS cor0
----
78
79
90

query I rowsort
SELECT DISTINCT + col0 + - 71 AS col1 FROM tab2 AS cor0
----
-64
7
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 36 * + col2 + col0 col2 FROM tab1 AS cor0
----
1947
2116
3536

query I rowsort
SELECT DISTINCT 92 AS col0 FROM tab0, tab1 AS cor0
----
92

query I rowsort
SELECT + + cor0.col0 * + cor0.col0 + col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT 97 + - col0 AS col1 FROM tab1 AS cor0
----
17
33
94

query I rowsort
SELECT + col0 * col1 * col1 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-8411
SELECT + - col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-8411
SELECT + - col1 / + col0 AS col2 FROM tab0 AS cor0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 - cor0.col2 col1 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT DISTINCT - + col2 * cor0.col2 FROM tab0 cor0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-8414
SELECT ALL + ( col2 ) DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL + ( col2 ) / - col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT col1 * col0 - col2 AS col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + 1 + - col2 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT - col0 + 71 FROM tab1
----
-9
68
7

query I rowsort
SELECT DISTINCT + + col2 + + col1 * 85 AS col0 FROM tab1 AS cor0
----
1201
2264
907

query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT - - cor0.col2 + + 22 FROM tab1 AS cor0
----
118
76
79

query I rowsort
SELECT - col1 + - 46 AS col2 FROM tab0 AS cor0
----
-132
-137
-143

onlyif mysql # use DIV operator for integer division
query I rowsort label-8422
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-8422
SELECT DISTINCT col0 * - col2 + col1 / - cor0.col0 AS col0 FROM tab2 AS cor0
----
-193
-2028
-3002

query I rowsort
SELECT col0 + col0 * 31 FROM tab1
----
2048
2560
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 + 15 ) * - col0 col1 FROM tab1
----
-33
160
320

query I rowsort
SELECT ALL + col2 * 57 + 7 FROM tab2 AS cor0
----
1489
1546
2173

query I rowsort
SELECT DISTINCT + + cor0.col0 - - col2 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8427
SELECT DISTINCT + + col2 * - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-8427
SELECT DISTINCT + + col2 * - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 29 col2 FROM tab1 cor0
----
39
42
55

query I rowsort
SELECT ALL - col0 + 8 AS col0 FROM tab1 AS cor0
----
-56
-72
5

query I rowsort
SELECT col1 * + col0 + - 45 AS col0 FROM tab1
----
33
595
995

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8431
SELECT ALL col2 + + CAST( col2 AS SIGNED ) * col1 FROM tab0 cor0
----
2871
7544
98

skipif mysql # not compatible
query I rowsort label-8431
SELECT ALL col2 + + CAST ( col2 AS INTEGER ) * col1 FROM tab0 cor0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8432
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) + - col2 * col1 / + col1 + col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) + - col2 * col1 / + col1 + col0 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + cor0.col1 * - col1 + ( - col2 ) * - col1 FROM tab0 AS cor0
----
-4558
-819
-9312

query I rowsort
SELECT ( 58 * + cor0.col0 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 05bb4f6e4320cc780703f038f9a1e57a

onlyif mysql # use DIV operator for integer division
query I rowsort label-8435
SELECT tab1.col0 + + col1 DIV + tab1.col1 AS col2 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-8435
SELECT tab1.col0 + + col1 / + tab1.col1 AS col2 FROM tab1
----
4
65
81

query I rowsort
SELECT + col2 * col2 * - col2 + + col1 FROM tab1
----
-157438
-185183
-884723

onlyif mysql # use DIV operator for integer division
query I rowsort label-8437
SELECT col1 DIV cor0.col2 + col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8437
SELECT col1 / cor0.col2 + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT tab0.col0 + col0 * tab0.col0 FROM tab0
----
1260
600
8010

query I rowsort
SELECT + tab1.col2 * + col1 * + col2 + + tab1.col0 FROM tab1
----
119888
32554
75819

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 >= NULL
----

query I rowsort
SELECT + col2 * + col1 * col0 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT + col2 + + col0 * + col2 AS col0 FROM tab1 cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-8443
SELECT + - col1 DIV + col2 + col2 + - col1 * - col1 * + col2 AS col1 FROM tab1 AS cor0
----
16320
36558
5757

skipif mysql # not compatible
query I rowsort label-8443
SELECT + - col1 / + col2 + col2 + - col1 * - col1 * + col2 AS col1 FROM tab1 AS cor0
----
16320
36558
5757

query I rowsort
SELECT 14 * + col0 + - tab1.col0 AS col2 FROM tab1
----
1040
39
832

query I rowsort
SELECT + col2 * col0 * + tab1.col0 FROM tab1
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-8446
SELECT 30 * + col1 - + cor0.col2 DIV cor0.col0 FROM tab2 AS cor0
----
1770
510
927

skipif mysql # not compatible
query I rowsort label-8446
SELECT 30 * + col1 - + cor0.col2 / cor0.col0 FROM tab2 AS cor0
----
1770
510
927

onlyif mysql # use DIV operator for integer division
query I rowsort label-8447
SELECT DISTINCT - + 97 + col2 DIV col0 AS col0 FROM tab0 AS cor0
----
-96
-97

skipif mysql # not compatible
query I rowsort label-8447
SELECT DISTINCT - + 97 + col2 / col0 AS col0 FROM tab0 AS cor0
----
-96
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col1 col2 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT - 20 * - col2 FROM tab0 AS cor0
----
1640
20
660

query I rowsort
SELECT - col2 * + col0 * - col0 FROM tab1
----
233472
486
614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col0 - + col1 * + cor0.col2 col0 FROM tab2 AS cor0
----
-788
4550
5595

query I rowsort
SELECT DISTINCT - col0 * + col2 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL - col1 - + ( + col0 ) AS col1 FROM tab1 AS cor0
----
-29
-74
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - cor0.col2 * + col2 * - col0 col0 FROM tab2 AS cor0
----
114059
5072
52669

query I rowsort
SELECT - - col0 * + ( + col0 ) AS col1 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8456
SELECT col0 + tab2.col1 * - CAST( + 79 * col0 AS SIGNED ) FROM tab2
----
-106018
-17136
-363480

skipif mysql # not compatible
query I rowsort label-8456
SELECT col0 + tab2.col1 * - CAST ( + 79 * col0 AS INTEGER ) FROM tab2
----
-106018
-17136
-363480

onlyif mysql # use DIV operator for integer division
query I rowsort label-8457
SELECT + 41 DIV - col0 + ( 60 * + col1 ) AS col1 FROM tab2
----
1020
1855
3540

skipif mysql # not compatible
query I rowsort label-8457
SELECT + 41 / - col0 + ( 60 * + col1 ) AS col1 FROM tab2
----
1020
1855
3540

query I rowsort
SELECT col1 * - ( - col2 ) FROM tab2
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - + col2 col2 FROM tab2
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-8460
SELECT DISTINCT col2 - col2 DIV col2 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT col2 - col2 / col2 FROM tab0
----
0
32
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8461
SELECT col0 + - CAST( col0 AS SIGNED ) * - col0 AS col1 FROM tab0
----
1260
600
8010

skipif mysql # not compatible
query I rowsort label-8461
SELECT col0 + - CAST ( col0 AS INTEGER ) * - col0 AS col1 FROM tab0
----
1260
600
8010

query I rowsort
SELECT DISTINCT col0 * col0 - ( + col1 ) FROM tab0
----
1128
490
7830

query I rowsort
SELECT ALL - cor0.col1 * + 40 * ( col0 ) FROM tab1 AS cor0
----
-25600
-3120
-41600

query I rowsort
SELECT DISTINCT - col1 + + col1 * 11 FROM tab0 AS cor0
----
860
910
970

query I rowsort
SELECT + - col1 * - cor0.col0 - 34 AS col0 FROM tab2 AS cor0
----
1309
183
4568

query I rowsort
SELECT + cor0.col2 * + ( - col0 ) + - cor0.col2 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT - - cor0.col2 * - col0 + + 19 AS col2 FROM tab2 AS cor0
----
-170
-2009
-2983

onlyif mysql # use DIV operator for integer division
query I rowsort label-8468
SELECT ( + col1 ) DIV col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8468
SELECT ( + col1 ) / col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT + - 62 * - col1 FROM tab1 AS cor0
----
1612
620
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-8470
SELECT + + ( - 16 ) DIV col0 AS col2 FROM tab1 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-8470
SELECT + + ( - 16 ) / col0 AS col2 FROM tab1 AS cor0
----
-5
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8471
SELECT ALL cor0.col2 DIV col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-8471
SELECT ALL cor0.col2 / col1 FROM tab1 cor0
----
2
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-8472
SELECT DISTINCT col1 DIV 92 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT col1 / 92 AS col0 FROM tab1
----
0

query I rowsort
SELECT 63 + + 16 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT + + 76 + + col2 FROM tab0 AS cor0
----
109
158
77

query I rowsort
SELECT tab0.col1 * tab0.col2 + + 98 FROM tab0
----
195
2936
7560

onlyif mysql # use DIV operator for integer division
query I rowsort label-8476
SELECT DISTINCT + col1 * col0 DIV - 55 FROM tab0 AS cor0
----
-147
-37
-61

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT + col1 * col0 / - 55 FROM tab0 AS cor0
----
-147
-37
-61

query I rowsort
SELECT ALL + 45 + + col2 FROM tab1 AS cor0
----
102
141
99

query I rowsort
SELECT + col0 + col0 * col1 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT col0 * col2 + 43 * col1 FROM tab0 AS cor0
----
11211
4206
4490

query I rowsort
SELECT ALL - col1 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1128
490
7830

query I rowsort
SELECT DISTINCT + ( col0 ) * + 41 FROM tab1 AS cor0
----
123
2624
3280

query I rowsort
SELECT ALL + col1 * + 41 FROM tab1 cor0
----
1066
410
533

query I rowsort
SELECT ALL 5 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT DISTINCT + col2 * 49 FROM tab1 AS cor0
----
2646
2793
4704

onlyif mysql # use DIV operator for integer division
query I rowsort label-8485
SELECT ALL col2 DIV + ( col0 ) AS col0 FROM tab1 cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL col2 / + ( col0 ) AS col0 FROM tab1 cor0
----
0
1
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8486
SELECT DISTINCT - col0 * - CAST( col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8486
SELECT DISTINCT - col0 * - CAST ( col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8487
SELECT + col0 + - CAST( + 33 AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
-1779
-1817
-3088

skipif mysql # not compatible
query I rowsort label-8487
SELECT + col0 + - CAST ( + 33 AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
-1779
-1817
-3088

query I rowsort
SELECT + - col2 * col0 * - ( col1 ) FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT + + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT + - ( - col2 ) * col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT col1 + - ( + col1 ) + + 91 * col1 AS col2 FROM tab0 AS cor0
----
7826
8281
8827

query I rowsort
SELECT ALL + - ( 80 ) AS col2 FROM tab2 AS cor0
----
-80
-80
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( 36 ) * cor0.col0 + col0 + 29 col1 FROM tab2 cor0
----
-216
-2701
-2736

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8495
SELECT ALL CAST( NULL AS SIGNED ) * + 12 * col1 + + col2 * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8495
SELECT ALL CAST ( NULL AS INTEGER ) * + 12 * col1 + + col2 * + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8496
SELECT + col2 + - col0 * + CAST( NULL AS SIGNED ) / + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8496
SELECT + col2 + - col0 * + CAST ( NULL AS INTEGER ) / + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8497
SELECT ALL col1 DIV - col1 col0 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL col1 / - col1 col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col1 + + 73 FROM tab1
----
83
86
99

query I rowsort
SELECT DISTINCT + ( 17 ) + + col2 FROM tab2
----
43
44
55

query I rowsort
SELECT DISTINCT - tab1.col2 * col2 * col0 + col2 FROM tab1
----
-207879
-737184
-8694

onlyif mysql # use DIV operator for integer division
query I rowsort label-8501
SELECT DISTINCT - col2 + - 44 DIV - col2 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-8501
SELECT DISTINCT - col2 + - 44 / - col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ( tab0.col0 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8503
SELECT - col2 + ( 76 + - col0 ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8503
SELECT - col2 + ( 76 + - col0 ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 42 * cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to b76f97c104003b91b34e723ae5e818ca

query I rowsort
SELECT ALL - ( col1 ) + col0 * col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT - col1 * + ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + 99 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT - col0 * - ( col2 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - cor0.col2 + cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 363494b33b4d1826f58e179e26d91c4a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8510
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + + col0 * - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + col0 * - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 51 * tab2.col1 + + 33 AS col2 FROM tab2
----
1614
3042
900

query I rowsort
SELECT 55 * col0 * + tab0.col2 FROM tab0
----
1925
401390
43560

query I rowsort
SELECT + col1 + tab0.col2 * + ( - col2 ) AS col0 FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT + 14 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

query I rowsort
SELECT col0 * tab1.col2 * + col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT col0 + + col1 + col0 FROM tab1
----
138
173
32

query I rowsort
SELECT + - ( col0 ) - cor0.col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - + 63 + cor0.col1 AS col1 FROM tab0 AS cor0
----
23
28
34

query I rowsort
SELECT 54 - - col0 * cor0.col1 FROM tab1 AS cor0
----
1094
132
694

query I rowsort
SELECT + cor0.col0 * - cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 18f45a7edd86e3eccc832dcdb6123662

onlyif mysql # use DIV operator for integer division
query I rowsort label-8521
SELECT DISTINCT - 53 DIV - cor0.col0 + - ( cor0.col0 ) FROM tab0 AS cor0
----
-22
-34
-89

skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT - 53 / - cor0.col0 + - ( cor0.col0 ) FROM tab0 AS cor0
----
-22
-34
-89

query I rowsort
SELECT DISTINCT + - ( col1 ) * 58 + col0 AS col0 FROM tab1 AS cor0
----
-1505
-516
-674

query I rowsort
SELECT - 34 * + cor0.col2 FROM tab2 AS cor0
----
-1292
-884
-918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 * - col1 col1 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT col2 + - 39 AS col2 FROM tab0 AS cor0
----
-38
-6
43

query I rowsort
SELECT + + cor0.col2 + + ( + col2 * - col2 ) AS col0 FROM tab0 cor0
----
-1056
-6642
0

query I rowsort
SELECT + col2 + + ( + 26 ) AS col0 FROM tab0 AS cor0
----
108
27
59

query I rowsort
SELECT ALL col2 * col1 * 54 + col1 AS col2 FROM tab2 AS cor0
----
34901
45229
82895

query I rowsort
SELECT DISTINCT + col2 - ( - col2 ) * - col1 * - col0 AS col1 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT - col0 * + 3 + col1 FROM tab2 AS cor0
----
-175
-220
10

query I rowsort
SELECT ALL col0 * 92 FROM tab1 AS cor0
----
276
5888
7360

query I rowsort
SELECT + col1 + + tab1.col2 + - col1 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT + col0 + 80 * - col1 + cor0.col0 FROM tab0 AS cor0
----
-6832
-7102
-7690

query I rowsort
SELECT - col0 + + 40 + - 64 AS col2 FROM tab1 AS cor0
----
-104
-27
-88

query I rowsort
SELECT + col1 - + ( - col2 * cor0.col1 ) AS col2 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT + cor0.col0 * 75 FROM tab1 AS cor0
----
225
4800
6000

query I rowsort
SELECT + - col1 + + 66 * - 99 AS col2 FROM tab0 cor0
----
-6620
-6625
-6631

query I rowsort
SELECT col2 + col1 * - col0 + - 48 * + col0 AS col1 FROM tab1 AS cor0
----
-168
-3655
-4784

query I rowsort
SELECT DISTINCT 18 AS col1 FROM tab1 cor0
----
18

query I rowsort
SELECT - 72 + + col0 AS col0 FROM tab0 cor0
----
-37
-48
17

query I rowsort
SELECT + ( col1 ) * + col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - 59 * ( + col2 ) + 41 AS col0 FROM tab0 cor0
----
-18
-1906
-4797

query I rowsort
SELECT + + 23 AS col1 FROM tab0 cor0
----
23
23
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-8544
SELECT + + 21 DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8544
SELECT + + 21 / col1 AS col2 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT 18 + col0 AS col0 FROM tab2 AS cor0
----
25
96
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8546
SELECT tab0.col0 * 95 + + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8546
SELECT tab0.col0 * 95 + + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 * col0 - ( + cor0.col1 ) FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT ALL - - 67 + col1 + - col1 * - col2 FROM tab2 AS cor0
----
1660
730
935

query I rowsort
SELECT + + 78 * - col0 - - col2 FROM tab2 AS cor0
----
-519
-6058
-6124

onlyif mysql # use DIV operator for integer division
query I rowsort label-8550
SELECT DISTINCT + 17 - - col2 DIV col2 FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-8550
SELECT DISTINCT + 17 - - col2 / col2 FROM tab0 cor0
----
18

query I rowsort
SELECT DISTINCT + ( 46 ) * cor0.col1 + - col2 * col1 AS col0 FROM tab2 AS cor0
----
1180
136
589

query I rowsort
SELECT DISTINCT - 95 + + col2 FROM tab2 AS cor0
----
-57
-68
-69

query I rowsort
SELECT DISTINCT + + 64 + ( col1 ) AS col1 FROM tab0 AS cor0
----
150
155
161

onlyif mysql # use DIV operator for integer division
query I rowsort label-8554
SELECT ALL - + col1 * + col2 - + cor0.col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL - + col1 * + col2 - + cor0.col2 / + col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT 31 + - col2 FROM tab0 AS cor0
----
-2
-51
30

query I rowsort
SELECT ALL - col2 - + 80 AS col1 FROM tab0 AS cor0
----
-113
-162
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8557
SELECT - CAST( - tab1.col1 AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

skipif mysql # not compatible
query I rowsort label-8557
SELECT - CAST ( - tab1.col1 AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT + 42 AS col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
42

query I rowsort
SELECT - 69 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to ca5f4bc365dc2c6b14187d6ffc83a01d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8560
SELECT CAST( + col0 AS SIGNED ) + - col1 * + 67 FROM tab2
----
-1060
-2070
-3875

skipif mysql # not compatible
query I rowsort label-8560
SELECT CAST ( + col0 AS INTEGER ) + - col1 * + 67 FROM tab2
----
-1060
-2070
-3875

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8561
SELECT ALL + col1 * + CAST( + col2 AS SIGNED ) + col2 + + col0 AS col0 FROM tab2 AS cor0
----
1638
763
871

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL + col1 * + CAST ( + col2 AS INTEGER ) + col2 + + col0 AS col0 FROM tab2 AS cor0
----
1638
763
871

query I rowsort
SELECT DISTINCT + cor0.col1 * - 82 + col1 * col1 FROM tab1 AS cor0
----
-1456
-720
-897

onlyif mysql # use DIV operator for integer division
query I rowsort label-8563
SELECT - col1 + col2 DIV 74 + - col2 AS col2 FROM tab2
----
-55
-58
-85

skipif mysql # not compatible
query I rowsort label-8563
SELECT - col1 + col2 / 74 + - col2 AS col2 FROM tab2
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-8564
SELECT + + col2 + col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-8564
SELECT + + col2 + col2 / + col0 AS col0 FROM tab1 AS cor0
----
57
72
97

query I rowsort
SELECT col2 * ( + col1 + tab2.col0 ) * + col1 AS col0 FROM tab2
----
210158
31806
62016

query I rowsort
SELECT + - col1 + cor0.col1 + - 35 * col1 * + col1 AS col1 FROM tab0 AS cor0
----
-258860
-289835
-329315

query I rowsort
SELECT DISTINCT - + col1 + col0 AS col2 FROM tab0 cor0
----
-2
-62

query I rowsort
SELECT ALL col2 + - ( col1 ) + col1 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL - col0 * + 53 AS col0 FROM tab1 AS cor0
----
-159
-3392
-4240

query I rowsort
SELECT ALL + - 50 AS col2 FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT 89 * - 59 FROM tab1 AS cor0
----
-5251

query I rowsort
SELECT - - cor0.col2 * + cor0.col1 + col0 * + ( col0 ) * + col0 AS col1 FROM tab1 AS cor0
----
1431
262714
513248

query I rowsort
SELECT ALL + col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT col0 + 0 + - cor0.col1 * ( col2 + - col2 ) FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT - cor0.col2 - - cor1.col1 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to be991a59f14759117ef2f271c2d2216f

onlyif mysql # use DIV operator for integer division
query I rowsort label-8576
SELECT - 82 + col2 + + cor0.col0 DIV + col0 FROM tab2 AS cor0
----
-43
-54
-55

skipif mysql # not compatible
query I rowsort label-8576
SELECT - 82 + col2 + + cor0.col0 / + col0 FROM tab2 AS cor0
----
-43
-54
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - tab0.col0 col2 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT ALL + tab1.col2 + + tab1.col0 - 51 FROM tab1
----
125
6
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-8579
SELECT DISTINCT + col2 + + col2 DIV - col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-8579
SELECT DISTINCT + col2 + + col2 / - col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT DISTINCT + - cor0.col0 + + col1 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT ALL - col2 + col0 * - 98 AS col2 FROM tab2 AS cor0
----
-713
-7670
-7780

onlyif mysql # use DIV operator for integer division
query I rowsort label-8582
SELECT ALL cor0.col0 * col2 + - ( - ( - col1 ) ) DIV - col1 FROM tab0 AS cor0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL cor0.col0 * col2 + - ( - ( - col1 ) ) / - col1 FROM tab0 AS cor0
----
36
7299
793

query I rowsort
SELECT + + 71 FROM tab0 cor0
----
71
71
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-8584
SELECT ALL - col1 + col0 DIV 75 col1 FROM tab2 AS cor0
----
-16
-31
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8584
SELECT ALL - col1 + col0 / 75 col1 FROM tab2 AS cor0
----
-16
-31
-58

query I rowsort
SELECT + - col1 * 46 + col0 + col1 FROM tab0 AS cor0
----
-3846
-4006
-4330

query I rowsort
SELECT + cor0.col1 * - 75 FROM tab2 AS cor0
----
-1275
-2325
-4425

query I rowsort
SELECT DISTINCT - col1 * col0 * ( + cor0.col2 + - col0 ) FROM tab0 AS cor0
----
-18576
115430
56693

query I rowsort
SELECT DISTINCT + - col1 * + 88 AS col2 FROM tab1 cor0
----
-1144
-2288
-880

query I rowsort
SELECT ALL + + col1 + ( col2 ) AS col1 FROM tab2 cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-8590
SELECT + col1 + + col1 DIV cor0.col0 + col1 AS col2 FROM tab0 cor0
----
175
183
196

skipif mysql # not compatible
query I rowsort label-8590
SELECT + col1 + + col1 / cor0.col0 + col1 AS col2 FROM tab0 cor0
----
175
183
196

query I rowsort
SELECT ALL col1 * - ( - 13 + col1 ) AS col2 FROM tab1 AS cor0
----
-338
0
30

query I rowsort
SELECT col2 + + col1 + - ( 93 ) * col1 FROM tab1
----
-1100
-2338
-863

query I rowsort
SELECT ALL + tab2.col1 + col1 - + ( col2 ) FROM tab2
----
-4
35
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-8594
SELECT - col2 DIV - tab1.col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-8594
SELECT - col2 / - tab1.col0 FROM tab1
----
0
1
18

query I rowsort
SELECT + 17 + col0 FROM tab2 AS cor0
----
24
95
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 35 * col0 col0 FROM tab0 cor0
----
1225
3115
840

onlyif mysql # use DIV operator for integer division
query I rowsort label-8597
SELECT ALL 21 DIV + col1 AS col2 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-8597
SELECT ALL 21 / + col1 AS col2 FROM tab1 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( tab2.col1 ) + + col1 col0 FROM tab2
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT - tab0.col2 * - 88 FROM tab0
----
2904
7216
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 52 + col0 col0 FROM tab2
----
-45
26
27

query I rowsort
SELECT ALL + 12 AS col2 FROM tab2
----
12
12
12

query I rowsort
SELECT - col0 * + col1 * - tab0.col1 + + col1 FROM tab0
----
177590
329412
737100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT 13 * + col2 FROM tab2
----
338
351
494

query I rowsort
SELECT + 57 FROM tab1, tab0 cor0, tab0 cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8607
SELECT CAST( NULL AS SIGNED ) * + 65 * col1 + + 82 * + 22 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8607
SELECT CAST ( NULL AS INTEGER ) * + 65 * col1 + + 82 * + 22 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8608
SELECT + tab2.col1 * 6 DIV col0 AS col2 FROM tab2
----
1
26
4

skipif mysql # not compatible
query I rowsort label-8608
SELECT + tab2.col1 * 6 / col0 AS col2 FROM tab2
----
1
26
4

query I rowsort
SELECT ALL - col0 - + ( + tab1.col1 ) AS col0 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT - col1 * - col0 * col1 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8611
SELECT ALL col1 * CAST( NULL AS SIGNED ) * + cor0.col2 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL col1 * CAST ( NULL AS INTEGER ) * + cor0.col2 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * col0 - ( + col2 ) * - 82 AS col2 FROM tab0 AS cor0
----
1307
14645
3282

query I rowsort
SELECT DISTINCT 75 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
75

query I rowsort
SELECT tab0.col2 + + col1 * - 26 FROM tab0
----
-2203
-2284
-2521

query I rowsort
SELECT ALL - 66 - + col0 AS col0 FROM tab1 AS cor0
----
-130
-146
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 * col0 col2 FROM tab2 AS cor0
----
-490
-5460
-5530

query I rowsort
SELECT + - col1 * cor0.col1 - col0 FROM tab1 AS cor0
----
-164
-249
-679

onlyif mysql # use DIV operator for integer division
query I rowsort label-8618
SELECT DISTINCT + col0 DIV - ( - cor0.col1 * col1 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8618
SELECT DISTINCT + col0 / - ( - cor0.col1 * col1 ) FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT + 64 + cor0.col1 AS col0 FROM tab2 AS cor0
----
123
81
95

query I rowsort
SELECT DISTINCT + + ( 77 ) * + col1 FROM tab0 AS cor0
----
6622
7007
7469

query I rowsort
SELECT + ( 43 ) - col1 FROM tab2 AS cor0
----
-16
12
26

query I rowsort
SELECT 16 - col0 FROM tab1 AS cor0
----
-48
-64
13

query I rowsort
SELECT + + col2 * - col0 * col2 AS col1 FROM tab0 AS cor0
----
-26136
-35
-598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - col0 col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8625
SELECT ALL - CAST( - col0 AS SIGNED ) * col2 col2 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL - CAST ( - col0 AS INTEGER ) * col2 col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - + 90 + col0 * col2 FROM tab2 AS cor0
----
1938
2912
99

query I rowsort
SELECT DISTINCT ( + col0 + + col2 ) FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT 50 * + col1 AS col2 FROM tab2
----
1550
2950
850

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col1 AS REAL ) * + col2 AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT - 28 AS col2 FROM tab2, tab0, tab1 AS cor0, tab0 AS cor1
----
-28

query I rowsort
SELECT ( tab2.col2 ) * col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL 4 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT DISTINCT - cor1.col1 * - cor0.col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
7396
7826
8281
8342
8827
9409

query I rowsort
SELECT + 54 * 55 AS col2 FROM tab1 AS cor0
----
2970
2970
2970

query I rowsort
SELECT + - col2 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-8636
SELECT - cor0.col1 + - col0 DIV + 84 col0 FROM tab2 AS cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8636
SELECT - cor0.col1 + - col0 / + 84 col0 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-8637
SELECT - - col1 * col0 DIV + 42 + col1 AS col1 FROM tab1 AS cor0
----
25
27
37

skipif mysql # not compatible
query I rowsort label-8637
SELECT - - col1 * col0 / + 42 + col1 AS col1 FROM tab1 AS cor0
----
25
27
37

query I rowsort
SELECT - 25 + col1 * col2 AS col1 FROM tab1
----
1223
1379
545

query I rowsort
SELECT + + col1 + cor0.col1 * - col0 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col0 ) - 30 col2 FROM tab0 cor0
----
-119
-54
-65

query I rowsort
SELECT + col0 * + col0 + col2 AS col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT DISTINCT - + cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL cor0.col0 * col1 + col1 AS col1 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT + + col1 + ( 52 ) * + cor0.col1 FROM tab0 AS cor0
----
4558
4823
5141

query I rowsort
SELECT + 20 AS col0 FROM tab0 cor0
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab0 WHERE ( NULL ) = ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE ( col2 * + col2 + - col1 ) <= col1 * col1
----
7
31
27
78
59
26

query I rowsort
SELECT ALL - tab1.col0 * - col0 * + col2 FROM tab1
----
233472
486
614400

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT NULL NOT IN ( col1 )
----

query I rowsort
SELECT DISTINCT col0 - tab2.col2 AS col1 FROM tab2
----
-20
41
52

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL tab0.col0 * col1 * col1 - - col1 AS col2 FROM tab0
----
177590
329412
737100

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT NULL BETWEEN ( col2 * col0 + + col1 * + col2 * + col2 ) AND - tab0.col2
----

query I rowsort
SELECT - col2 + + col1 + + col2 AS col0 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL - col2 * col0 * col0 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT tab0.col2 + col0 * + col2 AS col0 FROM tab0
----
36
7380
825

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT col0 * - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT tab0.col2 - - col2 FROM tab0
----
164
2
66

query I rowsort
SELECT - col1 * col1 - col2 AS col2 FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT - col2 * - cor0.col2 + + col2 + - col2 AS col1 FROM tab2 cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - col0 + + col1 col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT + + col1 - - col2 * col0 AS col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL col2 * cor0.col1 + + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-8665
SELECT - col2 DIV - col0 - - col1 AS col0 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-8665
SELECT - col2 / - col0 - - col1 AS col0 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT - col2 * + col2 + + col0 * + col0 AS col1 FROM tab1 cor0
----
-2816
-2907
847

query I rowsort
SELECT DISTINCT cor0.col1 + + col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + + col2 * col0 AS col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT + - col2 * - col1 AS col2 FROM tab1 cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8670
SELECT DISTINCT col0 * - col0 + col1 * col2 DIV cor0.col2 FROM tab0 AS cor0
----
-1128
-490
-7830

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT col0 * - col0 + col1 * col2 / cor0.col2 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT DISTINCT + col2 - + col1 * + col0 AS col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT + col2 + col1 + col0 FROM tab1
----
131
189
83

query I rowsort
SELECT ALL + + col2 * 88 + ( cor0.col0 ) FROM tab0 AS cor0
----
123
2928
7305

onlyif mysql # use DIV operator for integer division
query I rowsort label-8674
SELECT col0 DIV + ( col2 ) - col1 col1 FROM tab0 cor0
----
-62
-86
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8674
SELECT col0 / + ( col2 ) - col1 col1 FROM tab0 cor0
----
-62
-86
-90

query I rowsort
SELECT DISTINCT col0 + col2 * - col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT + col0 * 67 + cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
13884
2184
3570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8677
SELECT col2 + - CAST( col1 AS SIGNED ) * cor0.col0 * - col1 + + col2 DIV - col2 FROM tab0 AS cor0
----
177536
329315
737090

skipif mysql # not compatible
query I rowsort label-8677
SELECT col2 + - CAST ( col1 AS INTEGER ) * cor0.col0 * - col1 + + col2 / - col2 FROM tab0 AS cor0
----
177536
329315
737090

query I rowsort
SELECT ALL - col0 * 90 + - col1 * - col1 * col1 + col0 AS col0 FROM tab1 AS cor0
----
-4696
-4923
17309

onlyif mysql # use DIV operator for integer division
query I rowsort label-8679
SELECT DISTINCT + tab2.col0 DIV col1 - 56 FROM tab2
----
-52
-55
-56

skipif mysql # not compatible
query I rowsort label-8679
SELECT DISTINCT + tab2.col0 / col1 - 56 FROM tab2
----
-52
-55
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 - + 2 col0 FROM tab2
----
1532
644
835

query I rowsort
SELECT + col2 + + tab1.col2 * col2 + - col1 FROM tab1
----
2944
3296
9299

query I rowsort
SELECT DISTINCT col0 - - col0 * col1 AS col1 FROM tab2
----
1422
224
4680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8683
SELECT - col2 * col1 + + CAST( NULL AS SIGNED ) - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT - col2 * col1 + + CAST ( NULL AS INTEGER ) - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + col0 * ( + col0 ) + col2 AS col2 FROM tab0
----
1323
695
8094

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 + + CAST ( col1 AS REAL ) AS col1 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL + - col0 + + 97 - col0 FROM tab2 AS cor0
----
-59
-61
83

query I rowsort
SELECT DISTINCT + - col2 + + 11 FROM tab0 AS cor0
----
-22
-71
10

query I rowsort
SELECT ALL - col1 * 55 + col2 * + col0 * + col0 FROM tab0 AS cor0
----
-4110
14278
644517

query I rowsort
SELECT - - cor0.col0 * + cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-8690
SELECT ALL - col1 + col1 DIV + col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-18

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL - col1 + col1 / + col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-18

query I rowsort
SELECT DISTINCT + + col0 - - col0 AS col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT col2 * col2 + col2 + col1 FROM tab1
----
2996
3316
9325

query I rowsort
SELECT + 12 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 cor2
----
81 values hashing to c60b9398e29d6382e0d15363f9325811

query I rowsort
SELECT + tab2.col2 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT col0 = NULL
----

query I rowsort
SELECT ALL col2 + col1 * - col1 AS col0 FROM tab1
----
-43
-622
-73

query I rowsort
SELECT ALL + tab2.col1 + + col2 FROM tab2 WHERE ( NULL ) < col1 * col2 * + col1 + + col0 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 * - cor0.col0 + ( - 95 ) col1 FROM tab2 AS cor0
----
402
5443
5514

query I rowsort
SELECT ALL + - cor0.col1 * + col0 + col0 + ( col2 ) AS col0 FROM tab0 AS cor0
----
-2007
-3359
-7928

query I rowsort
SELECT ALL - - 32 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT ALL tab0.col2 + tab0.col2 AS col2 FROM tab0
----
164
2
66

query I rowsort
SELECT cor1.col0 * - 9 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to beb652d02ae800468d38c1e2b339c342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + cor0.col0 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * - cor0.col1 * ( - col0 ) AS col2 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT - 63 + - col0 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-4159
-6463
-72

query I rowsort
SELECT DISTINCT 73 - cor0.col1 FROM tab0 AS cor0
----
-13
-18
-24

onlyif mysql # use DIV operator for integer division
query I rowsort label-8707
SELECT DISTINCT - col1 DIV col1 + col0 + - col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT - col1 / col1 + col0 + - col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + - col2 * + col1 + col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT + - col1 + + 57 AS col0 FROM tab1 AS cor0
----
31
44
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-8710
SELECT col2 DIV - 23 col1 FROM tab1
----
-2
-2
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8710
SELECT col2 / - 23 col1 FROM tab1
----
-2
-2
-4

query I rowsort
SELECT + - col0 * + ( + col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col1 - - col2 * col0 * col0 AS col0 FROM tab1 cor0
----
233482
512
614413

query I rowsort
SELECT - + col0 * + ( col2 ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + col2 * col2 - col1 AS col0 FROM tab1 cor0
----
2890
3239
9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-8715
SELECT - col0 DIV - 22 FROM tab1 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-8715
SELECT - col0 / - 22 FROM tab1 AS cor0
----
0
2
3

query I rowsort
SELECT 51 * + col1 FROM tab0 AS cor0
----
4386
4641
4947

query I rowsort
SELECT + - cor0.col0 * + col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col0 * + col0 + - col2 * - col1 FROM tab1 AS cor0
----
1413
4666
7648

onlyif mysql # use DIV operator for integer division
query I rowsort label-8719
SELECT DISTINCT - cor0.col0 * col0 * + ( + col1 ) + col0 DIV col0 FROM tab2 AS cor0
----
-106096
-1518
-358955

skipif mysql # not compatible
query I rowsort label-8719
SELECT DISTINCT - cor0.col0 * col0 * + ( + col1 ) + col0 / col0 FROM tab2 AS cor0
----
-106096
-1518
-358955

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 * cor0.col0 col2 FROM tab1 AS cor0
----
186
3968
4960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( cor0.col1 ) + - col1 * + col0 col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT + 51 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

query I rowsort
SELECT ALL 92 AS col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT - cor0.col0 * - col1 + col1 FROM tab0 AS cor0
----
2150
3492
8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-8725
SELECT ALL tab0.col0 DIV + col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL tab0.col0 / + col1 AS col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8726
SELECT ALL - 79 DIV tab1.col0 FROM tab1
----
-1
-26
0

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL - 79 / tab1.col0 FROM tab1
----
-1
-26
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col1 FROM tab2
----
74
74
74

query I rowsort
SELECT DISTINCT + 5 + col0 AS col1 FROM tab0 cor0
----
29
40
94

query I rowsort
SELECT ALL 18 * cor0.col2 AS col0 FROM tab1 AS cor0
----
1026
1728
972

query I rowsort
SELECT DISTINCT - col0 * col0 + col1 * - cor0.col0 FROM tab1 AS cor0
----
-4736
-7440
-87

query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 + col0 FROM tab2 AS cor0
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-8732
SELECT + cor0.col0 DIV - cor0.col0 FROM tab1, tab1 cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-8732
SELECT + cor0.col0 / - cor0.col0 FROM tab1, tab1 cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT ( - 66 ) AS col2 FROM tab2
----
-66
-66
-66

query I rowsort
SELECT 5 * + col2 FROM tab1
----
270
285
480

query I rowsort
SELECT tab0.col2 * col2 * - col0 AS col2 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT cor0.col2 * col2 * col2 + col2 FROM tab0 AS cor0
----
2
35970
551450

query I rowsort
SELECT - col2 + cor0.col1 + + col1 AS col1 FROM tab0 AS cor0
----
100
139
193

query I rowsort
SELECT + col1 + col0 + - cor0.col2 * col0 * col0 AS col2 FROM tab2 AS cor0
----
-1285
-158047
-237062

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8739
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + 89 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8739
SELECT DISTINCT CAST ( NULL AS REAL ) / + 89 FROM tab2
----
NULL

query I rowsort
SELECT ALL 64 - + 55 AS col2 FROM tab1
----
9
9
9

query I rowsort
SELECT tab2.col0 - col0 * + col0 AS col1 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT ALL - col2 * + col0 + - col2 * col0 - - col1 AS col1 FROM tab2
----
-347
-3997
-5987

onlyif mysql # use DIV operator for integer division
query I rowsort label-8743
SELECT tab0.col0 DIV - tab0.col2 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-8743
SELECT tab0.col0 / - tab0.col2 FROM tab0
----
-1
-35
0

query I rowsort
SELECT - ( col1 ) + col2 * col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT + + col0 + + col1 AS col2 FROM tab2 cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8746
SELECT + - col1 * + col0 + - CAST( NULL AS SIGNED ) / + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8746
SELECT + - col1 * + col0 + - CAST ( NULL AS INTEGER ) / + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + cor0.col2 * 4 AS col1 FROM tab2 AS cor0
----
101
26
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-8748
SELECT ALL - + col1 DIV cor0.col0 - CAST( col2 + col1 AS SIGNED ) FROM tab1 cor0
----
-109
-67
-88

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL - + col1 / cor0.col0 - CAST ( col2 + col1 AS INTEGER ) FROM tab1 cor0
----
-109
-67
-88

query I rowsort
SELECT DISTINCT + - 43 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-43

query I rowsort
SELECT ( - col2 * ( - 90 ) ) + - col2 AS col2 FROM tab0
----
2937
7298
89

query I rowsort
SELECT - 25 * col1 + - col2 + - ( col0 ) AS col1 FROM tab2 cor0
----
-1579
-542
-809

onlyif mysql # use DIV operator for integer division
query I rowsort label-8752
SELECT + + 12 + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
14
17
19

skipif mysql # not compatible
query I rowsort label-8752
SELECT + + 12 + col2 / col1 AS col1 FROM tab1 AS cor0
----
14
17
19

query I rowsort
SELECT ALL + 65 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1690
650
845

query I rowsort
SELECT ALL + 27 * col1 * - col0 FROM tab2 AS cor0
----
-124254
-36261
-5859

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab2 cor2
----
3645 values hashing to 577401eb866f52e8954d694a867c38d2

skipif mysql # not compatible
query I rowsort
SELECT + col0 + CAST ( - ( + col1 ) AS REAL ) AS col1 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-8757
SELECT + col0 + + col0 DIV 32 AS col2 FROM tab2 cor0
----
7
80
81

skipif mysql # not compatible
query I rowsort label-8757
SELECT + col0 + + col0 / 32 AS col2 FROM tab2 cor0
----
7
80
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 83 col0 FROM tab2 AS cor0
----
161
162
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 84 col2 FROM tab0 cor0
----
-108
-119
-173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 51 col0 FROM tab0 AS cor0
----
137
142
148

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8761
SELECT ALL - CAST( NULL AS SIGNED ) * + 26 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL - CAST ( NULL AS INTEGER ) * + 26 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8762
SELECT DISTINCT + + 10 DIV col2 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8762
SELECT DISTINCT + + 10 / col2 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - + 66 + + 40 AS col2 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT + 13 - 14 * + col0 AS col1 FROM tab2 AS cor0
----
-1079
-1093
-85

query I rowsort
SELECT - ( col0 ) - - col2 * col2 * + col0 AS col0 FROM tab1 AS cor0
----
207872
737200
8745

query I rowsort
SELECT - tab0.col0 + 52 * cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 384ee5976019b01b822487887276262f

query I rowsort
SELECT DISTINCT + 25 AS col1 FROM tab1, tab1 AS cor0, tab0 cor1
----
25

onlyif mysql # use DIV operator for integer division
query I rowsort label-8768
SELECT + + cor0.col0 DIV col1 + - col1 - + col0 * 67 FROM tab2 AS cor0
----
-500
-5284
-5306

skipif mysql # not compatible
query I rowsort label-8768
SELECT + + cor0.col0 / col1 + - col1 - + col0 * 67 FROM tab2 AS cor0
----
-500
-5284
-5306

query I rowsort
SELECT ALL + cor0.col0 + - col0 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - 2 ) * col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT + 3 + - col0 AS col2 FROM tab2 AS cor0
----
-4
-75
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-8772
SELECT ALL ( + 99 ) DIV col1 AS col0 FROM tab1 AS cor0
----
3
7
9

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL ( + 99 ) / col1 AS col0 FROM tab1 AS cor0
----
3
7
9

query I rowsort
SELECT + + col1 * 53 AS col0 FROM tab1 AS cor0
----
1378
530
689

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8774
SELECT ALL + CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL + CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + col1 + col1 AS col0 FROM tab1
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-8776
SELECT - col0 + ( + col0 ) DIV - col1 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-8776
SELECT - col0 + ( + col0 ) / - col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT + - 55 * col1 FROM tab1 AS cor0
----
-1430
-550
-715

query I rowsort
SELECT DISTINCT - col2 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL 25 * - col1 * col0 + - col2 AS col1 FROM tab1 AS cor0
----
-16057
-2004
-26096

query I rowsort
SELECT ALL col2 * col0 - col2 * + 29 AS col2 FROM tab2
----
-594
1274
1900

query I rowsort
SELECT - 79 - col0 AS col0 FROM tab0
----
-103
-114
-168

query I rowsort
SELECT col1 - - col0 * col2 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT ALL col2 * 63 + - ( + col2 ) AS col1 FROM tab2 AS cor0
----
1612
1674
2356

query I rowsort
SELECT ALL - cor0.col2 * 71 FROM tab2 cor0
----
-1846
-1917
-2698

query I rowsort
SELECT DISTINCT + col1 * col2 * + col0 + - col2 FROM tab0 AS cor0
----
3394
664036
68079

query I rowsort
SELECT + col0 + + col2 * 19 * col2 FROM tab0
----
127845
20715
54

query I rowsort
SELECT + col0 * col1 + + 77 FROM tab0
----
2141
3472
8176

query I rowsort
SELECT ALL - 68 FROM tab0, tab0 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT col0 + + col2 * - col1 AS col1 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT - cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8791
SELECT tab0.col1 - - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8791
SELECT tab0.col1 - - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * cor0.col1 + + col2 * col2 FROM tab0 AS cor0
----
15005
8485
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-8793
SELECT - col0 + tab2.col1 DIV + 70 AS col1 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-8793
SELECT - col0 + tab2.col1 / + 70 AS col1 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL + col0 * + col0 + - ( col1 ) AS col1 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT 79 AS col0 FROM tab1 cor0
----
79
79
79

query I rowsort
SELECT ALL ( col1 ) * - ( 68 ) AS col0 FROM tab2 AS cor0
----
-1156
-2108
-4012

query I rowsort
SELECT DISTINCT - col1 + + col0 * col0 AS col1 FROM tab1 AS cor0
----
-17
4086
6387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * ( + cor0.col2 ) + col2 col1 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT + col0 * + 90 + col0 * - col0 FROM tab1 AS cor0
----
1664
261
800

query I rowsort
SELECT + + col2 * col1 + + col2 * + col0 FROM tab0 AS cor0
----
132
14760
3630

query I rowsort
SELECT col2 * + ( + col2 ) FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-8802
SELECT - 1 DIV 43 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8802
SELECT - 1 / 43 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - col2 * - 74 AS col2 FROM tab1 AS cor0
----
3996
4218
7104

query I rowsort
SELECT DISTINCT + - 46 FROM tab0 AS cor0
----
-46

query I rowsort
SELECT DISTINCT + - 4 + - 22 AS col0 FROM tab0, tab1, tab2 cor0
----
-26

query I rowsort
SELECT DISTINCT - + col1 * 71 FROM tab0 AS cor0
----
-6106
-6461
-6887

query I rowsort
SELECT + col0 * 59 AS col2 FROM tab1 AS cor0
----
177
3776
4720

query I rowsort
SELECT ALL + 37 FROM tab0, tab1 cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to b8def841e97863779a391f3a05d3eb92

onlyif mysql # use DIV operator for integer division
query I rowsort label-8810
SELECT DISTINCT - - col1 DIV + 98 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT - - col1 / + 98 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + - col2 + 37 AS col0 FROM tab2 AS cor0
----
-1
10
11

query I rowsort
SELECT - 72 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-504
-5616
-5688

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8813
SELECT ALL + CAST( + 93 AS SIGNED ) FROM tab1
----
93
93
93

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL + CAST ( + 93 AS INTEGER ) FROM tab1
----
93
93
93

query I rowsort
SELECT ( 45 ) + + tab1.col2 * 84 AS col0 FROM tab1
----
4581
4833
8109

onlyif mysql # use DIV operator for integer division
query I rowsort label-8815
SELECT col0 + + col1 DIV col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-8815
SELECT col0 + + col1 / col2 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8816
SELECT - col0 DIV col0 + col0 col0 FROM tab0
----
23
34
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8816
SELECT - col0 / col0 + col0 col0 FROM tab0
----
23
34
88

query I rowsort
SELECT tab0.col0 AS col2 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT DISTINCT - tab0.col0 * tab0.col1 AS col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - cor1.col1 * cor1.col0 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 3cc7d59cff1ad3bc2f598fe457add157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + col1 * - ( - col1 ) AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - col2 * + col0 + ( col2 ) * col2 FROM tab1
----
-399
1536
2754

query I rowsort
SELECT ALL + + 29 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT - + 96 + + col0 FROM tab1 AS cor0
----
-16
-32
-93

query I rowsort
SELECT + col2 * - 54 AS col0 FROM tab2
----
-1404
-1458
-2052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 * + 24 col2 FROM tab0
----
2136
576
840

query I rowsort
SELECT ALL + col1 * col1 * - col1 FROM tab2
----
-205379
-29791
-4913

query I rowsort
SELECT + - col1 * col2 + col1 * col0 AS col0 FROM tab2 AS cor0
----
-620
3068
697

query I rowsort
SELECT ALL col0 + ( + col1 ) AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - cor0.col2 + + 39 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d799fc4dff7f529d485f97eea8dc8bfd

query I rowsort
SELECT - col0 * 21 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1787
-471
-734

query I rowsort
SELECT cor0.col1 + + 79 FROM tab2 AS cor0
----
110
138
96

query I rowsort
SELECT ( col1 ) + col0 * + col0 AS col1 FROM tab1 AS cor0
----
35
4106
6413

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8834
SELECT + + CAST( NULL AS DECIMAL ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT + + CAST ( NULL AS REAL ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + 9 + + col2 col2 FROM tab0 AS cor0
----
-737
-741
-872

query I rowsort
SELECT DISTINCT + - col1 * - col0 + - ( + col2 * - cor0.col1 ) FROM tab1 AS cor0
----
1210
1482
2288

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8837
SELECT ALL col1 * - col1 - - ( - cor0.col2 ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL col1 * - col1 - - ( - cor0.col2 ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 * 80 AS col1 FROM tab1 AS cor0
----
112320
45600
99840

query I rowsort
SELECT ALL + col0 + + ( cor0.col2 + - col0 ) * col1 * 85 FROM tab1 AS cor0
----
-5886
112713
17760

query I rowsort
SELECT col2 + 44 - - 14 * col1 FROM tab2
----
320
505
896

query I rowsort
SELECT DISTINCT + col0 * - 31 * 40 + - col2 - + 52 * col2 AS col0 FROM tab0
----
-114706
-31509
-43453

query I rowsort
SELECT - col1 * col2 - col0 * + tab2.col1 FROM tab2
----
-1054
-1989
-6136

query I rowsort
SELECT DISTINCT + col0 * 26 + + tab0.col0 FROM tab0
----
2403
648
945

query I rowsort
SELECT - cor0.col1 * + col2 - 45 AS col2 FROM tab2 AS cor0
----
-1579
-691
-882

query I rowsort
SELECT DISTINCT + col2 + + 57 + 93 AS col2 FROM tab2 AS cor0
----
176
177
188

onlyif mysql # use DIV operator for integer division
query I rowsort label-8846
SELECT DISTINCT col1 DIV 83 + - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1088
-6723
0

skipif mysql # not compatible
query I rowsort label-8846
SELECT DISTINCT col1 / 83 + - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1088
-6723
0

query I rowsort
SELECT + col2 + - 20 AS col2 FROM tab0
----
-19
13
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-8848
SELECT 59 DIV 69 FROM tab2, tab1, tab1 AS cor0, tab1 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

skipif mysql # not compatible
query I rowsort label-8848
SELECT 59 / 69 FROM tab2, tab1, tab1 AS cor0, tab1 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * 87 / col1 + col1 * + CAST ( + col0 AS REAL ) FROM tab1
----
1196
1575
88

query I rowsort
SELECT col2 + 43 + - ( + col2 ) FROM tab0
----
43
43
43

query I rowsort
SELECT + 36 * 64 FROM tab0
----
2304
2304
2304

query I rowsort
SELECT DISTINCT - - col2 * - col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + 73 * col0 AS col1 FROM tab0 AS cor0
----
1752
2555
6497

query I rowsort
SELECT + 25 + + col1 FROM tab0
----
111
116
122

query I rowsort
SELECT ALL ( 91 ) + - col1 FROM tab0
----
-6
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 * col2 col1 FROM tab2
----
2002
2079
2926

query I rowsort
SELECT ALL ( + tab2.col1 ) AS col0 FROM tab2
----
17
31
59

query I rowsort
SELECT - 63 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2

query I rowsort
SELECT ALL 15 + cor0.col0 FROM tab1 AS cor0
----
18
79
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-8860
SELECT DISTINCT + cor0.col2 - col0 DIV + 99 col0 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8860
SELECT DISTINCT + cor0.col2 - col0 / + 99 col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + 90 AS col2 FROM tab2 AS cor0
----
90
90
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-8862
SELECT DISTINCT - + 75 * cor0.col1 + - col0 DIV + col1 FROM tab0 cor0
----
-6450
-6825
-7275

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT - + 75 * cor0.col1 + - col0 / + col1 FROM tab0 cor0
----
-6450
-6825
-7275

query I rowsort
SELECT - 20 * col0 AS col2 FROM tab2 AS cor0
----
-140
-1560
-1580

query I rowsort
SELECT ALL + col1 * col1 * + 85 + + col0 FROM tab1 AS cor0
----
14445
57463
8564

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8865
SELECT DISTINCT 20 * + cor0.col1 - - CAST( + 16 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1736
1836
1956

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT 20 * + cor0.col1 - - CAST ( + 16 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1736
1836
1956

query I rowsort
SELECT ALL - 73 * + cor0.col1 + ( - 73 ) AS col2 FROM tab2 AS cor0
----
-1314
-2336
-4380

query I rowsort
SELECT DISTINCT - 56 * col1 AS col1 FROM tab1
----
-1456
-560
-728

query I rowsort
SELECT DISTINCT + - 83 * + cor0.col0 FROM tab1, tab2, tab2 AS cor0
----
-581
-6474
-6557

query I rowsort
SELECT 88 * 59 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to dbf41154d643a0704b3d6339c51b57b7

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab2, tab0 cor0, tab1 cor1
----
-1
-33
-82

query I rowsort
SELECT - cor0.col0 * cor1.col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to c86a7c2445d7410c559267e98ed0c591

query I rowsort
SELECT DISTINCT + 89 * tab1.col2 FROM tab1
----
4806
5073
8544

query I rowsort
SELECT DISTINCT col0 + 2 FROM tab2 AS cor0
----
80
81
9

query I rowsort
SELECT ALL - col2 * + 38 + 48 * col1 FROM tab0 AS cor0
----
1252
2874
4618

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8875
SELECT DISTINCT - col0 - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT - col0 - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + cor0.col2 + 24 * + col0 AS col2 FROM tab0 AS cor0
----
2218
609
841

query I rowsort
SELECT - - col0 * + 3 FROM tab2 AS cor0
----
21
234
237

query I rowsort
SELECT DISTINCT - + col2 * 44 AS col1 FROM tab0 cor0
----
-1452
-3608
-44

query I rowsort
SELECT col2 + - cor0.col2 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL + - col2 + 0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + col0 * - 75 + + col2 FROM tab0 AS cor0
----
-1767
-2624
-6593

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 * + CAST ( - col0 * - col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT - 59 + + col2 FROM tab2
----
-21
-32
-33

query I rowsort
SELECT DISTINCT + col1 * - 88 - - 5 FROM tab0 AS cor0
----
-7563
-8003
-8531

query I rowsort
SELECT + 62 + - col1 + col1 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT - ( col1 ) + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT col0 + cor0.col1 * - cor0.col1 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT ALL 58 + + 98 FROM tab1 AS cor0
----
156
156
156

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8889
SELECT 40 + - 72 * - col0 + CAST( col1 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
10258
7071
761

skipif mysql # not compatible
query I rowsort label-8889
SELECT 40 + - 72 * - col0 + CAST ( col1 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
10258
7071
761

query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL 25 * - col0 FROM tab2
----
-175
-1950
-1975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * + cor0.col0 + - col0 * + col2 col0 FROM tab1 AS cor0
----
-1200
-150
512

query I rowsort
SELECT ALL - - 94 + col0 * cor0.col0 AS col1 FROM tab2 cor0
----
143
6178
6335

query I rowsort
SELECT DISTINCT 0 + - 93 FROM tab2 AS cor0
----
-93

query I rowsort
SELECT DISTINCT - + col2 + - col0 * + col0 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT + - col2 - + col2 * + col1 AS col1 FROM tab1 cor0
----
-1344
-1458
-627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8897
SELECT - + 2 * - col2 + + col1 * CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1586
722
891

skipif mysql # not compatible
query I rowsort label-8897
SELECT - + 2 * - col2 + + col1 * CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1586
722
891

query I rowsort
SELECT - ( col2 ) * cor0.col2 - 83 * col1 AS col2 FROM tab2 AS cor0
----
-2855
-3302
-5573

query I rowsort
SELECT DISTINCT - 10 + ( - col1 ) FROM tab1 AS cor0
----
-20
-23
-36

query I rowsort
SELECT ALL + 5 + 38 * + col2 FROM tab2 AS cor0
----
1031
1449
993

query I rowsort
SELECT DISTINCT 29 + col0 * col1 FROM tab0 AS cor0
----
2093
3424
8128

query I rowsort
SELECT + + 11 * - col2 - - col0 AS col2 FROM tab1 cor0
----
-563
-591
-976

query I rowsort
SELECT ALL 39 + + col1 FROM tab2 cor0
----
56
70
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 * col2 col1 FROM tab1 AS cor0
----
3024
3192
5376

query I rowsort
SELECT DISTINCT - - 33 FROM tab2 AS cor0
----
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-8906
SELECT ALL 18 + - col0 DIV - cor0.col1 AS col2 FROM tab2 AS cor0
----
18
19
22

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL 18 + - col0 / - cor0.col1 AS col2 FROM tab2 AS cor0
----
18
19
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8907
SELECT + CAST( NULL AS SIGNED ) + + col0 * col1 + 28 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8907
SELECT + CAST ( NULL AS INTEGER ) + + col0 * col1 + 28 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 35 * - 3 FROM tab0
----
105
105
105

query I rowsort
SELECT + col2 * ( + tab1.col1 ) FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-8910
SELECT col0 DIV ( 80 ) + + col0 col1 FROM tab1
----
3
64
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8910
SELECT col0 / ( 80 ) + + col0 col1 FROM tab1
----
3
64
81

query I rowsort
SELECT ALL 67 * 0 FROM tab1
----
0
0
0

query I rowsort
SELECT - 52 + - cor0.col1 FROM tab2 AS cor0
----
-111
-69
-83

query I rowsort
SELECT + + 32 + 40 FROM tab1 AS cor0
----
72
72
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8914
SELECT ALL CAST( 50 AS SIGNED ) FROM tab1 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL CAST ( 50 AS INTEGER ) FROM tab1 AS cor0
----
50
50
50

query I rowsort
SELECT - tab0.col1 * tab0.col1 FROM tab0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - col0 * + cor0.col2 col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT + ( col2 ) * + col0 + col2 * col0 * 97 FROM tab2 AS cor0
----
18522
198744
294196

query I rowsort
SELECT + + 92 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
4968
5244
8832

query I rowsort
SELECT + col2 + - 36 AS col2 FROM tab1 AS cor0
----
18
21
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT ALL + col2 * - 92 + - ( col1 ) FROM tab1 AS cor0
----
-4994
-5254
-8845

query I rowsort
SELECT col2 + col2 + 7 AS col1 FROM tab2 AS cor0
----
59
61
83

query I rowsort
SELECT + col2 + - col2 * col0 + + tab1.col1 * 54 FROM tab1
----
-3051
-6882
1296

query I rowsort
SELECT - tab0.col0 * + tab0.col2 + + col1 - col1 * ( + col1 + col2 ) FROM tab0
----
-10940
-22950
-9444

query I rowsort
SELECT col1 * - 95 * - 51 AS col1 FROM tab0
----
416670
440895
469965

query I rowsort
SELECT - col2 * col0 * + col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT - - col2 * col2 + col1 AS col0 FROM tab0 AS cor0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + cor0.col2 + + 46 + cor0.col0 col0 FROM tab2 AS cor0
----
1569
782
800

query I rowsort
SELECT - col2 * + 55 AS col1 FROM tab0 AS cor0
----
-1815
-4510
-55

query I rowsort
SELECT + col2 - + col2 * - ( + col2 ) FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL 71 AS col2 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT + - col2 * + col2 + + col2 * col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT col1 * col2 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab2 cor1, tab0, tab0 AS cor2
----
3645 values hashing to 1713adaf687595322d888d4eeefdbbc8

query I rowsort
SELECT - ( - 87 ) FROM tab0 AS cor0
----
87
87
87

query I rowsort
SELECT DISTINCT + ( col0 ) + - col2 FROM tab2 cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-8937
SELECT col2 DIV + ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8937
SELECT col2 / + ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + col1 + cor0.col1 * + col2 AS col0 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8939
SELECT + col1 - + CAST( - 64 AS SIGNED ) FROM tab2 cor0
----
123
81
95

skipif mysql # not compatible
query I rowsort label-8939
SELECT + col1 - + CAST ( - 64 AS INTEGER ) FROM tab2 cor0
----
123
81
95

query I rowsort
SELECT + ( + 69 ) FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT ALL + 87 * + col0 AS col2 FROM tab0 cor0
----
2088
3045
7743

query I rowsort
SELECT DISTINCT - + ( ( - col1 ) ) * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8943
SELECT ALL CAST( NULL AS SIGNED ) * - col2 + - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 + - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 15 + - col2 * + col1 FROM tab2 cor0
----
-1549
-661
-852

onlyif mysql # use DIV operator for integer division
query I rowsort label-8945
SELECT ALL 84 DIV cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL 84 / cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

query I rowsort
SELECT - 40 * - 8 + + cor2.col0 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 9f1e6f9e2943da8c0ec0d63214788ed0

query I rowsort
SELECT col2 * - ( - col2 ) AS col2 FROM tab1
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( cor0.col2 ) + cor0.col1 col2 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8949
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8949
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
NULL

query I rowsort
SELECT DISTINCT + ( col2 ) + col1 AS col0 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8951
SELECT DISTINCT - + col1 DIV - col0 FROM tab1 AS cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-8951
SELECT DISTINCT - + col1 / - col0 FROM tab1 AS cor0
----
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-8952
SELECT ALL col1 DIV col0 + col1 + col2 FROM tab1 AS cor0
----
109
67
88

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL col1 / col0 + col1 + col2 FROM tab1 AS cor0
----
109
67
88

query I rowsort
SELECT DISTINCT ( col2 ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + + col1 * - col2 + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT col0 * col2 + + col1 AS col1 FROM tab2
----
2087
220
3019

query I rowsort
SELECT 50 + col0 AS col1 FROM tab2
----
128
129
57

query I rowsort
SELECT col1 - + 9 FROM tab2
----
22
50
8

query I rowsort
SELECT ( - col0 ) * col2 + + 51 * col1 FROM tab1
----
-3138
-7017
1164

query I rowsort
SELECT - col2 - col0 * col1 AS col2 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT - col2 + 12 AS col0 FROM tab1
----
-42
-45
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-8961
SELECT DISTINCT - 3 DIV 23 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT - 3 / 23 AS col0 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8962
SELECT DISTINCT - col1 DIV 13 FROM tab0 AS cor0
----
-6
-7

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT - col1 / 13 FROM tab0 AS cor0
----
-6
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-8963
SELECT ALL - + col1 DIV - 97 + col0 AS col1 FROM tab0 AS cor0
----
24
36
89

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL - + col1 / - 97 + col0 AS col1 FROM tab0 AS cor0
----
24
36
89

query I rowsort
SELECT - + col2 + cor0.col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT ALL - col0 * + ( col0 ) + col0 * + col2 AS col2 FROM tab1 AS cor0
----
-448
1280
153

query I rowsort
SELECT ALL + - col0 * - 48 * 81 + - col0 AS col2 FROM tab0 AS cor0
----
136045
345943
93288

query I rowsort
SELECT DISTINCT - col1 * ( col1 ) FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + col1 * 28 AS col2 FROM tab1 AS cor0
----
280
364
728

onlyif mysql # use DIV operator for integer division
query I rowsort label-8969
SELECT - - col2 DIV ( + 56 ) AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8969
SELECT - - col2 / ( + 56 ) AS col1 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + + col0 * 99 AS col2 FROM tab2 AS cor0
----
693
7722
7821

query I rowsort
SELECT ALL ( col2 * 16 ) - col0 AS col1 FROM tab1
----
1456
848
861

query I rowsort
SELECT 50 * col2 FROM tab0
----
1650
4100
50

query I rowsort
SELECT ALL col2 + col2 + 20 FROM tab1
----
128
134
212

onlyif mysql # use DIV operator for integer division
query I rowsort label-8974
SELECT DISTINCT + col0 * tab0.col2 + 93 DIV col1 + + tab0.col1 AS col2 FROM tab0
----
132
7390
879

skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT + col0 * tab0.col2 + 93 / col1 + + tab0.col1 AS col2 FROM tab0
----
132
7390
879

query I rowsort
SELECT tab1.col2 - ( - col1 * + col2 ) FROM tab1
----
1344
1458
627

query I rowsort
SELECT ALL - col2 + - col0 * - col1 AS col1 FROM tab1
----
24
583
944

query I rowsort
SELECT tab0.col0 - + tab0.col2 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 09b61d5303a3c257c2b4280abfc64db7

query I rowsort
SELECT ALL + col1 + ( + col2 ) * col2 AS col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT + col0 + + 84 + - col0 FROM tab0
----
84
84
84

query I rowsort
SELECT DISTINCT col1 * + 89 FROM tab2
----
1513
2759
5251

query I rowsort
SELECT DISTINCT + tab1.col1 + 89 * - col2 AS col0 FROM tab1
----
-4780
-5063
-8531

query I rowsort
SELECT DISTINCT col1 + - col2 * ( - tab0.col1 ) AS col0 FROM tab0
----
194
2924
7553

query I rowsort
SELECT col2 * col0 + + col0 * - tab2.col1 * tab2.col0 AS col1 FROM tab2
----
-103095
-1330
-356928

query I rowsort
SELECT ALL + 33 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT ALL + ( - 6 ) * cor0.col1 + + col2 FROM tab0 cor0
----
-464
-483
-581

query I rowsort
SELECT DISTINCT 9 AS col1 FROM tab1
----
9

query I rowsort
SELECT ALL - 74 * + cor0.col1 - + col1 AS col0 FROM tab0 AS cor0
----
-6450
-6825
-7275

query I rowsort
SELECT DISTINCT - + ( col1 ) + - col1 AS col1 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT + col1 - 34 FROM tab0 cor0
----
52
57
63

query I rowsort
SELECT + col0 * 97 * col1 FROM tab1 AS cor0
----
100880
62080
7566

query I rowsort
SELECT ALL + + 26 + - col0 FROM tab0 AS cor0
----
-63
-9
2

query I rowsort
SELECT - + 27 + - 97 * + col2 FROM tab0 AS cor0
----
-124
-3228
-7981

query I rowsort
SELECT + 1 * 31 FROM tab1 AS cor0
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 24 col0 FROM tab1 AS cor0
----
-24

query I rowsort
SELECT ALL + ( 80 ) * col1 * col0 + col2 FROM tab2 AS cor0
----
107478
17387
368186

query I rowsort
SELECT DISTINCT - col2 + col1 * col0 - + col0 * + col2 FROM tab0 AS cor0
----
1239
3359
719

query I rowsort
SELECT ALL + cor0.col0 + col2 * + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-233408
-483
-614320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 + - col2 col2 FROM tab2 AS cor0
----
47
58
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 - + col1 * cor0.col0 col0 FROM tab2 AS cor0
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT ALL 66 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT 48 + col1 * - 50 AS col0 FROM tab2
----
-1502
-2902
-802

onlyif mysql # use DIV operator for integer division
query I rowsort label-9003
SELECT ALL col1 + col2 DIV ( 26 * col0 ) AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL col1 + col2 / ( 26 * col0 ) AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - + 84 * col2 AS col1 FROM tab2 AS cor0
----
-2184
-2268
-3192

query I rowsort
SELECT DISTINCT - + col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + + ( cor0.col2 ) - - cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL 84 AS col1 FROM tab2 AS cor0
----
84
84
84

query I rowsort
SELECT ALL - col1 * - 33 * cor0.col1 FROM tab2 AS cor0
----
114873
31713
9537

query I rowsort
SELECT - col1 + cor0.col2 * col1 FROM tab2 cor0
----
1475
629
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-9010
SELECT ALL + - col2 - 43 DIV col2 AS col2 FROM tab0 AS cor0
----
-34
-44
-82

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL + - col2 - 43 / col2 AS col2 FROM tab0 AS cor0
----
-34
-44
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - 76 col2 FROM tab0 AS cor0
----
6536
6916
7372

query I rowsort
SELECT ALL - + cor0.col0 * - ( - col1 ) AS col2 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT - + col2 * + col0 + col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL - cor0.col1 * + ( col1 ) - + col2 AS col2 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT ALL 86 * + tab1.col2 - ( + 71 ) FROM tab1
----
4573
4831
8185

onlyif mysql # use DIV operator for integer division
query I rowsort label-9016
SELECT - 49 DIV - 86 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-9016
SELECT - 49 / - 86 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT col0 * col1 * ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
234
40960
83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-9018
SELECT DISTINCT + col2 DIV + 63 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT + col2 / + 63 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT col2 - + ( ( - col0 ) ) FROM tab2 cor0
----
104
117
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9020
SELECT ALL + col1 * - CAST( col2 + - col2 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL + col1 * - CAST ( col2 + - col2 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9021
SELECT + + col2 + - col2 + CAST( ( col1 ) AS SIGNED ) * - col0 * 11 AS col1 FROM tab0 AS cor0
----
-22704
-37345
-89089

skipif mysql # not compatible
query I rowsort label-9021
SELECT + + col2 + - col2 + CAST ( ( col1 ) AS INTEGER ) * - col0 * 11 AS col1 FROM tab0 AS cor0
----
-22704
-37345
-89089

query I rowsort
SELECT - col0 * - col1 + - ( - ( - col0 ) ) * - ( ( col1 ) ) + - ( - 89 ) AS col2 FROM tab1 AS cor0
----
1369
2169
245

query I rowsort
SELECT DISTINCT - + 30 FROM tab0 AS cor0
----
-30

onlyif mysql # use DIV operator for integer division
query I rowsort label-9024
SELECT - cor0.col2 + + col1 DIV - 86 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-9024
SELECT - cor0.col2 + + col1 / - 86 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + col2 * col2 + col1 + + col1 AS col1 FROM tab0 AS cor0
----
1261
195
6906

query I rowsort
SELECT ALL + 58 + col2 AS col0 FROM tab1
----
112
115
154

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9027
SELECT - CAST( col1 AS SIGNED ) + - col1 AS col2 FROM tab1
----
-20
-26
-52

skipif mysql # not compatible
query I rowsort label-9027
SELECT - CAST ( col1 AS INTEGER ) + - col1 AS col2 FROM tab1
----
-20
-26
-52

query I rowsort
SELECT ALL 14 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT col1 * col0 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL + 25 * - col1 FROM tab2
----
-1475
-425
-775

query I rowsort
SELECT + - col0 * - 78 FROM tab1 AS cor0
----
234
4992
6240

query I rowsort
SELECT + - col1 + - cor0.col2 FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT + 20 * - col1 - + col0 FROM tab2 AS cor0
----
-1258
-419
-627

query I rowsort
SELECT col2 * - col1 + col2 FROM tab2 cor0
----
-1508
-608
-810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9035
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab1 AS cor2, tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9035
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab1 AS cor2, tab0
----
NULL

query I rowsort
SELECT tab0.col1 * + col2 + - col2 * col0 AS col2 FROM tab0
----
164
2046
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 24 ) col1 FROM tab1
----
24
24
24

query I rowsort
SELECT + ( col2 ) + - col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT ALL - + 14 + col1 FROM tab2 cor0
----
17
3
45

query I rowsort
SELECT - cor0.col2 * col1 - - col0 * - ( - ( col2 ) ) FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT - 70 + col2 AS col1 FROM tab1 AS cor0
----
-13
-16
26

query I rowsort
SELECT ALL - 11 * - col0 + col2 * ( col0 ) + col0 * 77 AS col1 FROM tab0 AS cor0
----
15130
2904
3115

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col1 ) * col0 + - cor0.col0 col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT ALL cor0.col0 - - cor0.col1 * col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + tab1.col1 + tab1.col2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 71bdffb602517a95c6721e05f7b4b3dd

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9047
SELECT ALL - CAST( NULL AS SIGNED ) * - 53 * + tab0.col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9047
SELECT ALL - CAST ( NULL AS INTEGER ) * - 53 * + tab0.col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 * 6 AS col2 FROM tab1 AS cor0
----
324
342
576

query I rowsort
SELECT - 38 + + col0 * col2 FROM tab2 AS cor0
----
151
1990
2964

query I rowsort
SELECT - ( - col2 ) * + col1 - - col2 * col1 * - 17 AS col2 FROM tab0 AS cor0
----
-119392
-1552
-45408

query I rowsort
SELECT - 47 * col2 FROM tab1
----
-2538
-2679
-4512

query I rowsort
SELECT ALL cor0.col1 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + + ( - col2 ) - col2 col2 FROM tab2 AS cor0
----
1482
570
783

query I rowsort
SELECT ALL + + 63 + - col0 * col2 FROM tab0 cor0
----
-7235
-729
28

query I rowsort
SELECT + col2 * + cor0.col1 - - col0 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-9056
SELECT + - cor0.col2 DIV 52 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9056
SELECT + - cor0.col2 / 52 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) col2 FROM tab2 cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9058
SELECT - - CAST( NULL AS DECIMAL ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9058
SELECT - - CAST ( NULL AS REAL ) + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 * + col2 + col1 AS col2 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL + - col0 + + col1 * col2 FROM tab2 AS cor0
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-9061
SELECT DISTINCT - - 68 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-9061
SELECT DISTINCT - - 68 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-2
-4

query I rowsort
SELECT - col0 * - col1 + col2 * - col1 FROM tab1
----
-1326
-208
70

query I rowsort
SELECT - col1 * - 67 AS col1 FROM tab1
----
1742
670
871

onlyif mysql # use DIV operator for integer division
query I rowsort label-9064
SELECT col0 DIV + col2 + col0 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-9064
SELECT col0 / + col2 + col0 FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT - + col1 * - ( col2 ) FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9066
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9067
SELECT ALL + col0 DIV + ( - col2 ) + + col2 * + col0 AS col2 FROM tab0
----
0
7297
792

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL + col0 / + ( - col2 ) + + col2 * + col0 AS col2 FROM tab0
----
0
7297
792

query I rowsort
SELECT ALL - + col0 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 14 * col1 col2 FROM tab0 AS cor0
----
-1118
-1183
-1261

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9070
SELECT + CAST( 57 AS SIGNED ) FROM tab2
----
57
57
57

skipif mysql # not compatible
query I rowsort label-9070
SELECT + CAST ( 57 AS INTEGER ) FROM tab2
----
57
57
57

query I rowsort
SELECT DISTINCT - 42 FROM tab2, tab0 AS cor0
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 * + col1 * col1 col1 FROM tab0
----
340216
380926
432814

query I rowsort
SELECT ALL 13 - 81 AS col1 FROM tab0, tab0 AS cor0, tab1 cor1, tab1 AS cor2
----
81 values hashing to 3a5c3d9872a8a4148ab98ed0ab0a6c62

query I rowsort
SELECT ALL 91 * 33 + col2 FROM tab0 AS cor0
----
3004
3036
3085

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( col2 AS REAL ) + cor0.col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + - 77 + col1 AS col2 FROM tab2 AS cor0
----
-18
-46
-60

query I rowsort
SELECT ALL + col2 * - col0 + - col2 * 33 FROM tab0 AS cor0
----
-10004
-1881
-68

query I rowsort
SELECT ALL 5 + col2 FROM tab1 AS cor0
----
101
59
62

query I rowsort
SELECT ALL col0 + + col2 + + tab0.col1 FROM tab0
----
133
143
262

query I rowsort
SELECT DISTINCT - col2 * col1 * 13 FROM tab2 AS cor0
----
-10881
-19942
-8398

query I rowsort
SELECT - col0 - - cor0.col2 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT + 16 - - col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1327
-201
-4586

query I rowsort
SELECT ALL + ( - col2 ) * col0 + + col2 * + cor0.col1 FROM tab0 AS cor0
----
164
2046
62

query I rowsort
SELECT + + col2 - + col2 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 91 * col2 AS col1 FROM tab0 AS cor0
----
-3003
-7462
-91

query I rowsort
SELECT - - col1 + ( - col1 ) * - col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + col0 + - col0 * col2 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-9088
SELECT DISTINCT col2 * - ( col0 ) + col2 DIV - col0 FROM tab1 AS cor0
----
-180
-3648
-7681

skipif mysql # not compatible
query I rowsort label-9088
SELECT DISTINCT col2 * - ( col0 ) + col2 / - col0 FROM tab1 AS cor0
----
-180
-3648
-7681

query I rowsort
SELECT ALL - col1 + + 65 FROM tab0 cor0
----
-21
-26
-32

query I rowsort
SELECT - + col2 * + col1 + 7 * + col1 FROM tab2 AS cor0
----
-1121
-527
-620

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9091
SELECT DISTINCT - + cor0.col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT - + cor0.col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 - ( col0 * + col1 + col1 ) FROM tab0 AS cor0
----
-2117
-3491
-8108

query I rowsort
SELECT ALL + - col2 * col1 * - 35 + col2 FROM tab1 AS cor0
----
20007
43776
49194

query I rowsort
SELECT ALL - col1 - 35 AS col2 FROM tab2 cor0
----
-52
-66
-94

query I rowsort
SELECT + + cor0.col1 * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - col2 + - col1 + - col1 FROM tab1 AS cor0
----
-106
-122
-77

query I rowsort
SELECT + cor0.col0 - + ( col0 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9098
SELECT ALL col1 - col0 * - ( col0 + col1 ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9098
SELECT ALL col1 - col0 * - ( col0 + col1 ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + col0 ) * - col0 - 15 FROM tab2
----
34
6069
6226

query I rowsort
SELECT DISTINCT ( + col0 ) * col0 - + col0 FROM tab0
----
1190
552
7832

query I rowsort
SELECT ALL - + cor0.col0 * 14 FROM tab0 AS cor0
----
-1246
-336
-490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + ( col2 ) col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - - col1 * 80 * cor0.col1 + + col2 * cor0.col0 FROM tab0 AS cor0
----
592472
669778
752755

query I rowsort
SELECT ALL + col2 + 40 FROM tab1 AS cor0
----
136
94
97

query I rowsort
SELECT ALL - col2 + + 48 * col2 AS col0 FROM tab2 AS cor0
----
1222
1269
1786

query I rowsort
SELECT - col0 - + 51 AS col2 FROM tab1 AS cor0
----
-115
-131
-54

query I rowsort
SELECT col0 + - col0 * 94 FROM tab0 AS cor0
----
-2232
-3255
-8277

query I rowsort
SELECT - - cor0.col0 * - col0 + col0 + - col0 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9109
SELECT + CAST( NULL AS DECIMAL ) + 87 * - col2 + - col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9109
SELECT + CAST ( NULL AS REAL ) + 87 * - col2 + - col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 82 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT + col2 * - 51 * col0 FROM tab2
----
-103428
-153102
-9639

query I rowsort
SELECT col0 + + col0 + col0 AS col0 FROM tab2
----
21
234
237

query I rowsort
SELECT + col1 * + ( - col1 + tab0.col1 ) FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT + + col2 + - cor0.col0 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT - 78 + col1 AS col1 FROM tab1 cor0
----
-52
-65
-68

query I rowsort
SELECT DISTINCT + 8 AS col2 FROM tab2, tab1, tab0 AS cor0
----
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9118
SELECT col1 * col0 * - tab2.col1 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9118
SELECT col1 * col0 * - tab2.col1 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 65 + + 49 * col2 * ( + col0 + col0 ) AS col1 FROM tab1
----
15941
357569
752705

query I rowsort
SELECT cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - cor0.col0 col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT 23 * + cor0.col0 * - 93 AS col2 FROM tab1 AS cor0
----
-136896
-171120
-6417

onlyif mysql # use DIV operator for integer division
query I rowsort label-9123
SELECT ALL - ( col2 ) DIV - 25 - col0 AS col2 FROM tab1 AS cor0
----
-1
-62
-77

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL - ( col2 ) / - 25 - col0 AS col2 FROM tab1 AS cor0
----
-1
-62
-77

query I rowsort
SELECT DISTINCT + + 33 + col0 FROM tab0 AS cor0
----
122
57
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 * cor0.col1 col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL - cor0.col1 * col2 * ( col2 * - col0 ) FROM tab2 AS cor0
----
158193
1939292
3110952

query I rowsort
SELECT DISTINCT + - 57 + + col2 FROM tab2 AS cor0
----
-19
-30
-31

query I rowsort
SELECT DISTINCT - ( + 65 + - col2 ) AS col1 FROM tab1
----
-11
-8
31

query I rowsort
SELECT - 73 * - col2 FROM tab0
----
2409
5986
73

query I rowsort
SELECT - tab1.col2 * 80 AS col2 FROM tab1
----
-4320
-4560
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-9131
SELECT - ( 38 ) DIV tab1.col0 col0 FROM tab1
----
-12
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9131
SELECT - ( 38 ) / tab1.col0 col0 FROM tab1
----
-12
0
0

query I rowsort
SELECT + + col0 * col1 * col1 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-9133
SELECT col1 + + col1 DIV + cor0.col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-9133
SELECT col1 + + col1 / + cor0.col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9134
SELECT ALL cor0.col1 + CAST( NULL AS DECIMAL ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL cor0.col1 + CAST ( NULL AS REAL ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - 37 - ( col0 ) FROM tab0 AS cor0
----
-126
-61
-72

query I rowsort
SELECT cor0.col1 + - cor0.col1 * - 48 AS col0 FROM tab2 cor0
----
1519
2891
833

onlyif mysql # use DIV operator for integer division
query I rowsort label-9137
SELECT - col1 * col1 DIV col0 + + 21 * col1 FROM tab2 cor0
----
1195
354
514

skipif mysql # not compatible
query I rowsort label-9137
SELECT - col1 * col1 / col0 + + 21 * col1 FROM tab2 cor0
----
1195
354
514

query I rowsort
SELECT DISTINCT col1 * cor0.col2 - col2 AS col2 FROM tab2 AS cor0
----
1508
608
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 + - tab1.col2 col1 FROM tab1
----
-12
27
30

query I rowsort
SELECT 67 * + col1 - + 77 * col1 FROM tab1 AS cor0
----
-100
-130
-260

query I rowsort
SELECT - col0 + - cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT + - cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT ALL + col2 * + 49 AS col2 FROM tab2 AS cor0
----
1274
1323
1862

query I rowsort
SELECT DISTINCT col1 + + 24 AS col0 FROM tab0 AS cor0
----
110
115
121

query I rowsort
SELECT + - col2 * + 19 AS col1 FROM tab2 AS cor0
----
-494
-513
-722

query I rowsort
SELECT ALL tab2.col2 * + cor0.col0 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to bd0f553652e91081616d79ec94aff1a5

onlyif mysql # use DIV operator for integer division
query I rowsort label-9147
SELECT - col1 DIV 18 FROM tab0 cor0
----
-4
-5
-5

skipif mysql # not compatible
query I rowsort label-9147
SELECT - col1 / 18 FROM tab0 cor0
----
-4
-5
-5

query I rowsort
SELECT - ( - col2 ) + - col1 * col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + + cor0.col2 * + 96 AS col2 FROM tab2 cor0
----
2496
2592
3648

query I rowsort
SELECT DISTINCT ( 47 ) * + col1 AS col0 FROM tab2 AS cor0
----
1457
2773
799

query I rowsort
SELECT + 72 + cor0.col1 AS col1 FROM tab0 AS cor0
----
158
163
169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + - col2 col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + - 19 * 84 FROM tab2 cor0
----
-1596
-1596
-1596

onlyif mysql # use DIV operator for integer division
query I rowsort label-9154
SELECT - + 9 DIV - 52 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9154
SELECT - + 9 / - 52 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL cor0.col1 + - cor0.col0 * col2 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9156
SELECT DISTINCT - CAST( col1 AS SIGNED ) * + col1 + col0 * + col2 + col2 AS col1 FROM tab1 AS cor0
----
-460
3605
7607

skipif mysql # not compatible
query I rowsort label-9156
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * + col1 + col0 * + col2 + col2 AS col1 FROM tab1 AS cor0
----
-460
3605
7607

query I rowsort
SELECT ALL + ( col0 ) * - 9 FROM tab0 AS cor0
----
-216
-315
-801

query I rowsort
SELECT - 29 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
81 values hashing to eb8b36589592eb8217153525a5c8d606

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 + - CAST ( - 56 AS REAL ) FROM tab2 AS cor0
----
115
73
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( 2 ) + + col2 col2 FROM tab2 AS cor0
----
-120
-130
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 + - col0 col1 FROM tab1
----
-64
-71
48

query I rowsort
SELECT ALL + 59 * tab1.col2 + + col2 AS col2 FROM tab1
----
3240
3420
5760

query I rowsort
SELECT + col1 + 35 FROM tab2
----
52
66
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9164
SELECT ALL + tab2.col0 + CAST( 66 + + col1 AS SIGNED ) * - tab2.col2 AS col1 FROM tab2
----
-2612
-3075
-3172

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL + tab2.col0 + CAST ( 66 + + col1 AS INTEGER ) * - tab2.col2 AS col1 FROM tab2
----
-2612
-3075
-3172

query I rowsort
SELECT 71 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT DISTINCT - col2 - 96 AS col1 FROM tab1
----
-150
-153
-192

onlyif mysql # use DIV operator for integer division
query I rowsort label-9167
SELECT - col1 - + col2 DIV - ( col2 ) FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-9167
SELECT - col1 - + col2 / - ( col2 ) FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT ALL + + ( cor0.col2 ) FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - col1 + + 1 * col2 + col1 AS col2 FROM tab2
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9170
SELECT CAST( col2 AS SIGNED ) - + col2 * - col1 FROM tab1
----
1344
1458
627

skipif mysql # not compatible
query I rowsort label-9170
SELECT CAST ( col2 AS INTEGER ) - + col2 * - col1 FROM tab1
----
1344
1458
627

query I rowsort
SELECT ALL ( col1 ) * + col0 - + col2 AS col2 FROM tab1
----
24
583
944

query I rowsort
SELECT DISTINCT + 90 AS col1 FROM tab2, tab1 AS cor0
----
90

query I rowsort
SELECT - 61 * tab1.col1 FROM tab1
----
-1586
-610
-793

onlyif mysql # use DIV operator for integer division
query I rowsort label-9174
SELECT DISTINCT + col1 * + col0 + - ( col1 ) DIV col1 AS col0 FROM tab2
----
1342
216
4601

skipif mysql # not compatible
query I rowsort label-9174
SELECT DISTINCT + col1 * + col0 + - ( col1 ) / col1 AS col0 FROM tab2
----
1342
216
4601

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9175
SELECT DISTINCT + - cor0.col1 + - col0 * CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
136
3638
7667

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT + - cor0.col1 + - col0 * CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
136
3638
7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 46 col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
46

query I rowsort
SELECT DISTINCT 12 + + tab2.col2 * + col0 AS col1 FROM tab2
----
201
2040
3014

query I rowsort
SELECT DISTINCT + tab2.col2 * col0 + col1 * col1 + col2 FROM tab2
----
1177
3329
5535

query I rowsort
SELECT ALL - col0 * + col1 - + cor0.col0 * + 3 FROM tab1 AS cor0
----
-1280
-832
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-9180
SELECT DISTINCT - + 79 DIV col1 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-9180
SELECT DISTINCT - + 79 / col1 FROM tab2 AS cor0
----
-1
-2
-4

query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - 61 * col0 + - 88 AS col1 FROM tab2 cor0
----
-4846
-4907
-515

onlyif mysql # use DIV operator for integer division
query I rowsort label-9183
SELECT ALL + - 42 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL + - 42 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 + col1 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT - 56 * + col1 + - 78 AS col2 FROM tab1 AS cor0
----
-1534
-638
-806

query I rowsort
SELECT col2 + 15 * + 22 FROM tab0
----
331
363
412

onlyif mysql # use DIV operator for integer division
query I rowsort label-9187
SELECT tab0.col1 DIV - col1 - col1 FROM tab0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-9187
SELECT tab0.col1 / - col1 - col1 FROM tab0
----
-87
-92
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-9188
SELECT ALL - - col2 DIV - cor0.col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL - - col2 / - cor0.col0 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9189
SELECT - col2 - col2 DIV + col0 FROM tab0
----
-1
-34
-82

skipif mysql # not compatible
query I rowsort label-9189
SELECT - col2 - col2 / + col0 FROM tab0
----
-1
-34
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9190
SELECT col1 * + CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-9190
SELECT col1 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + - col0 * - col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT - col0 * ( - cor0.col2 * + col1 ) FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - 37 * - col0 - col0 AS col1 FROM tab1 cor0
----
108
2304
2880

query I rowsort
SELECT DISTINCT - ( + col2 ) + col1 * ( - col0 ) FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT + - col2 + col1 - - col1 FROM tab0 AS cor0
----
100
139
193

query I rowsort
SELECT - - 73 - 96 FROM tab1 cor0
----
-23
-23
-23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9197
SELECT ALL CAST( NULL AS SIGNED ) + ( - cor0.col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL CAST ( NULL AS INTEGER ) + ( - cor0.col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 * col2 - + col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9199
SELECT ALL - - CAST( NULL AS SIGNED ) + + 73 + cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL - - CAST ( NULL AS INTEGER ) + + 73 + cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 94 FROM tab0 cor0
----
94

query I rowsort
SELECT ALL - 27 - + cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
-316
-3508
-988

query I rowsort
SELECT - ( cor0.col1 ) + col0 AS col0 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + - col0 * col1 + col2 * col1 AS col0 FROM tab0 cor0
----
-3298
-637
774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 * col0 - - col2 col0 FROM tab0 AS cor0
----
2001
2871
7380

query I rowsort
SELECT DISTINCT 44 + col0 AS col0 FROM tab1 AS cor0
----
108
124
47

query I rowsort
SELECT + - 42 + - 98 AS col1 FROM tab2 AS cor0
----
-140
-140
-140

query I rowsort
SELECT ( + col2 + - col1 * - col2 ) AS col0 FROM tab0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-9208
SELECT - 85 DIV + col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-12

skipif mysql # not compatible
query I rowsort label-9208
SELECT - 85 / + col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-12

query I rowsort
SELECT DISTINCT - - cor0.col1 * + col0 AS col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL + cor0.col2 * col1 + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT 9 * 61 AS col0 FROM tab0 cor0
----
549
549
549

query I rowsort
SELECT ALL - + 74 * - ( + col2 ) AS col0 FROM tab2 AS cor0
----
1924
1998
2812

query I rowsort
SELECT + - col2 * - ( col2 ) AS col1 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 * + col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - + col0 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + cor0.col0 col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT 58 + - cor0.col1 FROM tab1 cor0
----
32
45
48

query I rowsort
SELECT cor0.col2 * col2 - + cor0.col2 FROM tab2 cor0
----
1406
650
702

query I rowsort
SELECT ALL - 42 * col1 FROM tab0 AS cor0
----
-3612
-3822
-4074

query I rowsort
SELECT 3 * + cor0.col0 * + 20 + + ( cor0.col0 ) FROM tab2 AS cor0
----
427
4758
4819

query I rowsort
SELECT DISTINCT - 43 * + col0 AS col0 FROM tab0 AS cor0
----
-1032
-1505
-3827

query I rowsort
SELECT DISTINCT - 88 * + col2 * - col0 FROM tab2 AS cor0
----
16632
178464
264176

query I rowsort
SELECT - - 48 + col1 - ( 17 ) * - col2 * col2 AS col2 FROM tab1 AS cor0
----
156733
49646
55291

onlyif mysql # use DIV operator for integer division
query I rowsort label-9224
SELECT col0 DIV col2 + + ( - 60 ) FROM tab0 AS cor0
----
-25
-59
-60

skipif mysql # not compatible
query I rowsort label-9224
SELECT col0 / col2 + + ( - 60 ) FROM tab0 AS cor0
----
-25
-59
-60

query I rowsort
SELECT 8 * tab1.col2 + col2 FROM tab1
----
486
513
864

query I rowsort
SELECT + 92 * + col2 - 26 AS col0 FROM tab0 AS cor0
----
3010
66
7518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 25 + + col0 ) * + 42 * + col1 col2 FROM tab1
----
30576
37380
57330

query I rowsort
SELECT DISTINCT - col1 + + col0 * - cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
-233482
-512
-614413

query I rowsort
SELECT col0 + col0 * 74 FROM tab2 AS cor0
----
525
5850
5925

onlyif mysql # use DIV operator for integer division
query I rowsort label-9230
SELECT ALL col0 DIV - col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL col0 / - col0 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + - col0 + - col1 * col0 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9232
SELECT + col1 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9232
SELECT + col1 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 * 35 FROM tab2 AS cor0
----
1085
2065
595

query I rowsort
SELECT + col2 * - ( + col2 + col0 ) AS col1 FROM tab1 AS cor0
----
-16896
-3078
-6897

onlyif mysql # use DIV operator for integer division
query I rowsort label-9235
SELECT tab2.col1 * cor0.col1 DIV + 27 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 203a6653c6d7b69faf6cc1a97997b274

skipif mysql # not compatible
query I rowsort label-9235
SELECT tab2.col1 * cor0.col1 / + 27 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 203a6653c6d7b69faf6cc1a97997b274

query I rowsort
SELECT DISTINCT col1 + ( + 70 ) FROM tab1 AS cor0
----
80
83
96

query I rowsort
SELECT DISTINCT - col0 + ( + col1 ) FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - col1 * col0 * + 43 AS col1 FROM tab2 cor0
----
-197886
-57749
-9331

onlyif mysql # use DIV operator for integer division
query I rowsort label-9239
SELECT + col1 * - ( - col2 ) + col1 DIV col1 FROM tab1 AS cor0
----
1249
1405
571

skipif mysql # not compatible
query I rowsort label-9239
SELECT + col1 * - ( - col2 ) + col1 / col1 FROM tab1 AS cor0
----
1249
1405
571

query I rowsort
SELECT - col0 + ( + col0 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 99 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * cor0.col2 col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - col1 * 69 FROM tab2 AS cor0
----
-1173
-2139
-4071

query I rowsort
SELECT ALL cor0.col2 + col0 + col0 AS col0 FROM tab2 AS cor0
----
182
196
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9245
SELECT ALL cor0.col0 + + CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 32 AS col0 FROM tab0, tab2 AS cor0, tab2 cor1
----
32

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 DISTINCT + 39 * col0 FROM tab1 AS cor0
----
117
2496
3120

query I rowsort
SELECT col0 * col1 * + 94 AS col1 FROM tab2
----
126242
20398
432588

query I rowsort
SELECT + col0 * cor0.col1 AS col1 FROM tab0 cor0
----
2064
3395
8099

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to 8d4d13f65f86e1b26b6004a6bdc662b3

query I rowsort
SELECT DISTINCT + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-9253
SELECT ALL - 97 DIV - 96 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL - 97 / - 96 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT - 73 + cor0.col0 + + col2 * col0 FROM tab0 AS cor0
----
-3
7314
743

query I rowsort
SELECT col1 * 86 FROM tab2 AS cor0
----
1462
2666
5074

query I rowsort
SELECT ( col1 ) + + col1 + 21 FROM tab1 AS cor0
----
41
47
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - ( + col2 ) ) + ( col2 * col2 ) + + ( 94 ) * - col2 col0 FROM tab0 AS cor0
----
-1066
-2046
-94

query I rowsort
SELECT ALL cor0.col1 * + col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - ( 64 ) AS col0 FROM tab2 AS cor0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT cor0.col0 * 79 + - col2 FROM tab1 AS cor0
----
183
4999
6224

query I rowsort
SELECT ALL + 41 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 0733f496a5445ffeac9d19797afe4831

query I rowsort
SELECT + 70 + - col2 FROM tab0 cor0
----
-12
37
69

query I rowsort
SELECT ALL + 43 FROM tab1, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT + 59 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT 7 * - cor0.col1 AS col2 FROM tab2 cor0
----
-119
-217
-413

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9267
SELECT - col1 * col0 + + CAST( + col1 AS SIGNED ) * col0 col1 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9267
SELECT - col1 * col0 + + CAST ( + col1 AS INTEGER ) * col0 col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + - 20 AS col0 FROM tab0 AS cor0
----
-20
-20
-20

query I rowsort
SELECT ALL + + cor0.col1 * col0 * + col2 + + col1 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT DISTINCT ( col1 ) * cor0.col0 + ( - col1 ) * + col1 AS col0 FROM tab1 AS cor0
----
-598
540
871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + col0 col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + + col0 + - col2 * + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL - - col2 - + 64 AS col0 FROM tab0 AS cor0
----
-31
-63
18

query I rowsort
SELECT - tab2.col1 + + 34 FROM tab2, tab1 cor0
----
9 values hashing to 4bc27bb05e493fa7146dcced94ce1ab1

query I rowsort
SELECT - 21 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab2 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 825c5bff5308aeedb3a0a28713da0683

query I rowsort
SELECT ALL - + ( col1 ) + + cor0.col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT 37 * + 63 + + col2 AS col0 FROM tab2 AS cor0
----
2357
2358
2369

query I rowsort
SELECT - + col0 - - col0 * + col2 AS col0 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT - 23 AS col1 FROM tab2
----
-23
-23
-23

query I rowsort
SELECT 61 * 2 FROM tab0
----
122
122
122

query I rowsort
SELECT - 12 * - col2 FROM tab2
----
312
324
456

query I rowsort
SELECT ( 16 ) * - tab2.col1 AS col0 FROM tab2
----
-272
-496
-944

query I rowsort
SELECT DISTINCT + 72 AS col2 FROM tab1
----
72

query I rowsort
SELECT + col2 * - col0 - + col0 * + col2 AS col1 FROM tab2 AS cor0
----
-378
-4056
-6004

query I rowsort
SELECT + - cor0.col2 * - col2 + col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col1 + - CAST ( col1 + - cor0.col0 AS REAL ) * ( col1 ) AS col1 FROM tab2 AS cor0
----
-713
1071
1180

query I rowsort
SELECT - col2 * + 27 AS col2 FROM tab1 AS cor0
----
-1458
-1539
-2592

query I rowsort
SELECT + col1 + + 40 * col2 FROM tab1 AS cor0
----
2186
2290
3853

query I rowsort
SELECT ALL - col1 + - 28 * - 84 FROM tab1 AS cor0
----
2326
2339
2342

query I rowsort
SELECT DISTINCT cor0.col1 * col0 * - col0 AS col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT 86 * - col0 - 41 AS col1 FROM tab2
----
-643
-6749
-6835

query I rowsort
SELECT + col0 * - 46 FROM tab0 cor0
----
-1104
-1610
-4094

onlyif mysql # use DIV operator for integer division
query I rowsort label-9295
SELECT + - col2 DIV + 96 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9295
SELECT + - col2 / + 96 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col2 * + ( col1 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT col1 * col2 * col2 FROM tab0 AS cor0
----
611884
93654
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col1 col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL 14 + col2 AS col0 FROM tab2 AS cor0
----
40
41
52

query I rowsort
SELECT - - col2 - col2 * col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 44545a6297aa29bb730ffb907c13bc58

onlyif mysql # use DIV operator for integer division
query I rowsort label-9302
SELECT DISTINCT col0 + - col2 DIV - col0 FROM tab2
----
10
78
79

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT col0 + - col2 / - col0 FROM tab2
----
10
78
79

query I rowsort
SELECT ALL + cor0.col2 * - col1 * + col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-9304
SELECT DISTINCT col1 DIV 95 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT col1 / 95 AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL - 1 AS col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9306
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9306
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL 46 * - col2 + col0 FROM tab0 AS cor0
----
-11
-1494
-3683

query I rowsort
SELECT - col1 + 81 FROM tab2
----
22
50
64

query I rowsort
SELECT 60 - - col1 * col0 AS col1 FROM tab2
----
1403
277
4662

query I rowsort
SELECT DISTINCT + tab1.col2 + 14 FROM tab1
----
110
68
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 + 87 col0 FROM tab2
----
165
166
94

query I rowsort
SELECT col0 * col0 + tab0.col1 FROM tab0
----
1322
662
8012

query I rowsort
SELECT DISTINCT - - col2 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9314
SELECT CAST( NULL AS SIGNED ) + 76 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9314
SELECT CAST ( NULL AS INTEGER ) + 76 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + col1 * col1 * - col2 AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT cor0.col2 * - 93 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 6cdd5b24d1c6281a03298fa1c4264604

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9317
SELECT DISTINCT ( col0 ) + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT ( col0 ) + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * - col0 + ( col0 ) AS col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT - col1 + 68 * - col2 FROM tab1 AS cor0
----
-3698
-3886
-6541

query I rowsort
SELECT + + col1 + + 50 FROM tab2 AS cor0
----
109
67
81

query I rowsort
SELECT col2 + + ( + col2 ) FROM tab2 cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( tab0.col0 + - col0 ) col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( 82 ) * - col0 FROM tab1 AS cor0
----
-246
-5248
-6560

query I rowsort
SELECT + + 84 * col2 + + col2 * - 96 FROM tab2 AS cor0
----
-312
-324
-456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( cor0.col0 ) * col1 - - 13 col1 FROM tab0 AS cor0
----
2077
3408
8112

query I rowsort
SELECT DISTINCT - cor0.col1 - + 95 AS col2 FROM tab1 AS cor0
----
-105
-108
-121

onlyif mysql # use DIV operator for integer division
query I rowsort label-9328
SELECT 16 * col2 DIV col0 - - col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
5
5
61

skipif mysql # not compatible
query I rowsort label-9328
SELECT 16 * col2 / col0 - - col2 / - col1 AS col2 FROM tab2 AS cor0
----
5
5
61

query I rowsort
SELECT - - ( - cor0.col1 ) + + col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 col0 FROM tab0 AS cor0
----
-59

query I rowsort
SELECT - - ( - col0 ) * - col0 + col1 + + col2 FROM tab1 AS cor0
----
4163
6509
89

query I rowsort
SELECT ALL col2 * col2 * col2 AS col2 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT 57 + col0 FROM tab1 cor0
----
121
137
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-9334
SELECT DISTINCT - col1 + col2 DIV 32 FROM tab1 AS cor0
----
-10
-25
-9

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT - col1 + col2 / 32 FROM tab1 AS cor0
----
-10
-25
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 - 36 col2 FROM tab2 AS cor0
----
-1480
-712
-765

query I rowsort
SELECT + - ( - col2 ) + col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL tab2.col2 * 4 + + tab2.col1 AS col0 FROM tab2
----
139
163
169

query I rowsort
SELECT ALL - 37 * - ( + col0 ) + + col1 * + 0 FROM tab1
----
111
2368
2960

query I rowsort
SELECT 2 * col1 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL 18 + tab1.col2 * - col1 AS col2 FROM tab1
----
-1230
-1386
-552

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9341
SELECT - + CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9341
SELECT - + CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor1.col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 + 27 col2 FROM tab0 cor0
----
91
91
91

query I rowsort
SELECT DISTINCT 29 * - col1 FROM tab1 AS cor0
----
-290
-377
-754

query I rowsort
SELECT DISTINCT 18 AS col0 FROM tab2, tab0 cor0
----
18

query I rowsort
SELECT ALL 73 * - col1 AS col1 FROM tab0 AS cor0
----
-6278
-6643
-7081

query I rowsort
SELECT ALL + 59 * col1 FROM tab1
----
1534
590
767

query I rowsort
SELECT ALL + col0 + col2 * - tab0.col0 AS col2 FROM tab0
----
-7209
-768
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 + col0 col1 FROM tab0
----
135
70
81

query I rowsort
SELECT + + col1 + 4 * 49 AS col1 FROM tab1 AS cor0
----
206
209
222

query I rowsort
SELECT col0 * ( + 46 ) + - col2 AS col2 FROM tab0 AS cor0
----
1071
1609
4012

query I rowsort
SELECT - - 4 - - cor0.col0 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 157aa4306ce4661ee1f3b57c6ca5469a

onlyif mysql # use DIV operator for integer division
query I rowsort label-9353
SELECT 21 DIV - col0 FROM tab1
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-9353
SELECT 21 / - col0 FROM tab1
----
-7
0
0

query I rowsort
SELECT cor0.col1 * - col0 - col1 * col2 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT cor0.col1 + col1 + 50 FROM tab2 AS cor0
----
112
168
84

query I rowsort
SELECT - col2 + - cor0.col2 AS col1 FROM tab0 cor0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 * + CAST ( col2 AS REAL ) - - col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT ALL col1 * ( tab1.col0 ) - + col1 FROM tab1
----
1027
52
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT cor0.col0 * col2 - + col2 FROM tab2 AS cor0
----
162
2002
2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-9361
SELECT ALL - col2 + - 9 DIV - 72 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL - col2 + - 9 / - 72 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + col0 + - 69 FROM tab1
----
-5
-66
11

query I rowsort
SELECT ALL + col1 + - ( col0 + col0 * col2 ) AS col2 FROM tab1
----
-139
-3702
-7747

query I rowsort
SELECT + col0 * col1 * col0 + col2 FROM tab1 AS cor0
----
288
41017
83296

query I rowsort
SELECT DISTINCT - - col1 + + col2 * + col0 AS col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL - - ( ( col1 ) ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + - col2 + + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT + 2 + + col1 AS col0 FROM tab2 AS cor0
----
19
33
61

query I rowsort
SELECT DISTINCT + col2 * col0 * - col0 AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-9370
SELECT ALL col2 DIV - 67 - col0 FROM tab0 cor0
----
-24
-35
-90

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL col2 / - 67 - col0 FROM tab0 cor0
----
-24
-35
-90

query I rowsort
SELECT ALL - - 83 + col0 FROM tab2 AS cor0
----
161
162
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL col2 + col0 * col0 AS col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT DISTINCT - cor0.col0 + col2 + - cor0.col1 * - ( cor0.col1 * col1 ) AS col0 FROM tab2 AS cor0
----
205327
29811
4872

query I rowsort
SELECT ALL - - ( - 37 ) AS col0 FROM tab1 AS cor0
----
-37
-37
-37

query I rowsort
SELECT DISTINCT 95 * col1 * - col2 + 56 AS col0 FROM tab2 AS cor0
----
-145674
-61314
-79459

query I rowsort
SELECT cor0.col2 + + col2 * col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL col2 * + col2 * - col2 FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT ALL - col1 * - 65 AS col0 FROM tab0 AS cor0
----
5590
5915
6305

onlyif mysql # use DIV operator for integer division
query I rowsort label-9380
SELECT ALL col2 DIV + 98 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL col2 / + 98 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 68 * + cor0.col2 col0 FROM tab0 AS cor0
----
-2244
-5576
-68

query I rowsort
SELECT col1 + col2 * - col0 AS col1 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT + cor0.col1 * col2 * col0 AS col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT + col1 + 79 * + col0 - col1 FROM tab1 AS cor0
----
237
5056
6320

query I rowsort
SELECT - + col1 + - col2 AS col1 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT + cor0.col0 * - ( col2 + col1 ) FROM tab1 AS cor0
----
-240
-4288
-8720

query I rowsort
SELECT - + col2 * 26 FROM tab1 AS cor0
----
-1404
-1482
-2496

onlyif mysql # use DIV operator for integer division
query I rowsort label-9388
SELECT DISTINCT + - col0 DIV - col2 AS col2 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9388
SELECT DISTINCT + - col0 / - col2 AS col2 FROM tab1 cor0
----
0
1

query I rowsort
SELECT col2 - - ( col0 ) * cor0.col1 AS col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - - col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND - col1 + col2 * tab1.col1
----

query I rowsort
SELECT DISTINCT - col1 * + col2 + cor0.col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT - col1 + - col0 * col2 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL + cor0.col0 * col0 + col1 + col2 AS col1 FROM tab1 AS cor0
----
4163
6509
89

query I rowsort
SELECT DISTINCT - + col1 + - col0 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + col2 * + col1 * + col0 + col1 * col2 FROM tab2 AS cor0
----
121186
51680
6696

onlyif mysql # use DIV operator for integer division
query I rowsort label-9397
SELECT ALL col0 DIV + col0 col1 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL col0 / + col0 col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT col2 + col1 * col2 * - col2 FROM tab1 cor0
----
-119712
-32433
-75762

query I rowsort
SELECT - + col0 * cor0.col0 FROM tab1 cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9400
SELECT DISTINCT - - cor0.col2 DIV cor0.col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT - - cor0.col2 / cor0.col0 FROM tab0 AS cor0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9401
SELECT - col2 * + cor0.col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-9401
SELECT - col2 * + cor0.col2 / col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 + col1 AS col2 FROM tab2 cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT + col0 - + col0 * - col1 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL col0 * + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - col0 col2 FROM tab1 AS cor0
----
1040
640
78

query IIIIII rowsort
SELECT * FROM tab1, tab1 cor0 WHERE NULL = NULL
----

query I rowsort
SELECT + col1 + tab2.col1 * col2 FROM tab2
----
1593
663
868

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 ALL cor0.col0 * cor0.col0 + + cor0.col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT + col2 + col1 + - col0 * + col1 AS col0 FROM tab2 AS cor0
----
-1288
-159
-4517

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + col2 col1 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-9412
SELECT ALL - cor0.col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9412
SELECT ALL - cor0.col2 / - col2 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9413
SELECT - col2 - - col1 DIV + col1 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-9413
SELECT - col2 - - col1 / + col1 FROM tab1
----
-53
-56
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-9414
SELECT DISTINCT - tab1.col2 * col2 + + col2 DIV tab1.col1 FROM tab1
----
-2914
-3244
-9209

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT - tab1.col2 * col2 + + col2 / tab1.col1 FROM tab1
----
-2914
-3244
-9209

query I rowsort
SELECT DISTINCT - col2 + col2 * cor0.col2 FROM tab0 AS cor0
----
0
1056
6642

onlyif mysql # use DIV operator for integer division
query I rowsort label-9416
SELECT DISTINCT + - col0 * + col0 + - col1 DIV + cor0.col2 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-9416
SELECT DISTINCT + - col0 * + col0 + - col1 / + cor0.col2 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + cor0.col0 + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col0 + - col1 + tab1.col0 AS col1 FROM tab1
----
-20
118
147

query I rowsort
SELECT + col0 * - col2 + col2 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT col2 * col0 + - col2 * col0 * col1 FROM tab2
----
-117624
-48032
-5670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 * col2 col1 FROM tab0
----
26136
35
598436

query I rowsort
SELECT ALL - 60 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1

query I rowsort
SELECT ALL tab2.col1 + + col0 * tab2.col2 * + col1 FROM tab2
----
119711
51051
5890

query I rowsort
SELECT - tab1.col2 - + col0 AS col0 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT col2 * - tab2.col2 * - col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT - col0 * - col2 + - col1 * col0 FROM tab1
----
3008
6640
84

query I rowsort
SELECT + ( col0 ) * + col0 AS col2 FROM tab0
----
1225
576
7921

query I rowsort
SELECT 99 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT col2 + - col1 * col0 * + 92 FROM tab0
----
-189855
-312339
-745026

query I rowsort
SELECT ALL 49 * + cor0.col0 FROM tab0 AS cor0
----
1176
1715
4361

query I rowsort
SELECT DISTINCT - col1 + + col1 AS col0 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL 31 * tab1.col1 FROM tab1
----
310
403
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-9434
SELECT + col1 DIV + col1 AS col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9434
SELECT + col1 / + col1 AS col1 FROM tab1 cor0
----
1
1
1

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - col0 * - tab1.col2 )
----

query I rowsort
SELECT + col0 * - col0 * + tab1.col2 AS col2 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT ALL tab0.col1 * + tab0.col2 AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT tab1.col2 FROM tab1 WHERE ( NULL ) IN ( col1 + tab1.col0 + col0 )
----

query I rowsort
SELECT + col2 / - col2 AS col1 FROM tab2 WHERE NULL IN ( col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9440
SELECT + col0 DIV + col1 + col2 AS col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-9440
SELECT + col0 / + col1 + col2 AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL + col0 * - col2 + col2 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT ALL col0 + col2 + - col0 AS col2 FROM tab1 cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9443
SELECT - col1 * + col0 + col0 DIV - col1 FROM tab1
----
-1046
-646
-78

skipif mysql # not compatible
query I rowsort label-9443
SELECT - col1 * + col0 + col0 / - col1 FROM tab1
----
-1046
-646
-78

query I rowsort
SELECT col2 + + col1 + col0 FROM tab0 WHERE NOT NULL IN ( + col1 * col2 )
----

query I rowsort
SELECT DISTINCT col0 * - col2 + + col2 AS col0 FROM tab0
----
-34
-7216
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-9446
SELECT - col2 DIV col0 + col0 * col0 AS col0 FROM tab2
----
46
6084
6241

skipif mysql # not compatible
query I rowsort label-9446
SELECT - col2 / col0 + col0 * col0 AS col0 FROM tab2
----
46
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-9447
SELECT ALL + col2 DIV tab2.col1 + + col2 AS col2 FROM tab2
----
26
27
40

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL + col2 / tab2.col1 + + col2 AS col2 FROM tab2
----
26
27
40

query I rowsort
SELECT col2 * - col1 + + col0 FROM tab1
----
-1168
-1401
-506

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 - - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 + + col2 - + col1 FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-9451
SELECT ALL - tab1.col2 DIV col2 col1 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL - tab1.col2 / col2 col1 FROM tab1
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9452
SELECT DISTINCT + tab1.col1 DIV - col0 AS col0 FROM tab1
----
-8
0

skipif mysql # not compatible
query I rowsort label-9452
SELECT DISTINCT + tab1.col1 / - col0 AS col0 FROM tab1
----
-8
0

query I rowsort
SELECT DISTINCT - col1 + 42 AS col1 FROM tab2 AS cor0
----
-17
11
25

query I rowsort
SELECT ALL - cor0.col0 * col2 * ( - cor0.col0 ) + - cor0.col2 - - col0 AS col1 FROM tab0 AS cor0
----
1259
18999
649529

query I rowsort
SELECT DISTINCT col0 * - cor0.col0 + ( - cor0.col1 ) * col0 * col2 AS col1 FROM tab1 AS cor0
----
-106240
-40576
-4221

query I rowsort
SELECT ALL cor0.col0 + cor0.col1 FROM tab1 cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9457
SELECT + col2 + CAST( col2 AS SIGNED ) * col1 FROM tab0 AS cor0
----
2871
7544
98

skipif mysql # not compatible
query I rowsort label-9457
SELECT + col2 + CAST ( col2 AS INTEGER ) * col1 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT + col2 * 70 AS col2 FROM tab1 AS cor0
----
3780
3990
6720

query I rowsort
SELECT + tab1.col0 * - col1 * + col2 AS col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT 58 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

query I rowsort
SELECT ALL cor0.col0 * 21 + - 40 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to f97fedb84efcbb8af3f9f2806b18be48

query I rowsort
SELECT - col2 * col2 + + col1 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT + col2 + col2 * col0 AS col2 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9464
SELECT - CAST( NULL AS SIGNED ) * cor0.col0 / cor0.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-9464
SELECT - CAST ( NULL AS INTEGER ) * cor0.col0 / cor0.col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + col2 * tab0.col1 AS col1 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT - cor0.col2 * - cor0.col2 - - col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT ALL - 68 + cor0.col2 FROM tab0 AS cor0
----
-35
-67
14

query I rowsort
SELECT - - 3 * - col1 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-184
-234
-256

query I rowsort
SELECT + 55 - col2 FROM tab0 cor0
----
-27
22
54

query I rowsort
SELECT + 5 + col0 AS col2 FROM tab2 AS cor0
----
12
83
84

query I rowsort
SELECT ALL + - 68 - col1 AS col2 FROM tab0 AS cor0
----
-154
-159
-165

query I rowsort
SELECT ( col1 ) - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - 7 * col1 + - col0 AS col0 FROM tab2 AS cor0
----
-198
-224
-491

query I rowsort
SELECT + - col2 * - col2 + col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT - col0 * + cor0.col1 + col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT 9 * col2 * - tab2.col2 + + col2 AS col0 FROM tab2
----
-12958
-6058
-6534

query I rowsort
SELECT + tab2.col0 + 47 FROM tab2
----
125
126
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9478
SELECT DISTINCT + CAST( tab0.col1 * col2 AS SIGNED ) AS col1 FROM tab0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-9478
SELECT DISTINCT + CAST ( tab0.col1 * col2 AS INTEGER ) AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + 58 - + col2 * - col0 FROM tab1
----
220
3706
7738

query I rowsort
SELECT ALL 69 + + col2 + col1 AS col0 FROM tab0
----
167
188
242

query I rowsort
SELECT DISTINCT ( + col2 ) + - col1 + col0 AS col1 FROM tab1
----
111
163
31

query I rowsort
SELECT + tab1.col1 + col1 + + col0 FROM tab1
----
106
55
84

query I rowsort
SELECT - col1 + col2 * col0 + col0 AS col1 FROM tab0
----
-27
7296
730

query I rowsort
SELECT + col1 * col1 * + col0 - col0 FROM tab1
----
13440
2025
6336

query I rowsort
SELECT DISTINCT + - cor0.col0 + - col1 * col2 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT + cor0.col0 * - cor0.col1 + + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - + 49 + col0 * + col2 FROM tab1 AS cor0
----
113
3599
7631

query I rowsort
SELECT - ( - col2 ) * col1 * + col1 + + cor0.col0 + - cor0.col0 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT - 53 * - 41 FROM tab1, tab1 cor0
----
2173

query I rowsort
SELECT - - col1 + + col1 * + ( col1 ) * - col0 AS col1 FROM tab2 cor0
----
-22814
-271459
-6696

query I rowsort
SELECT + col0 + 43 * col1 FROM tab1 AS cor0
----
1121
494
639

query I rowsort
SELECT ( col1 ) * - tab0.col0 * col2 + col1 FROM tab0
----
-3298
-664027
-68026

query I rowsort
SELECT - 34 + - col1 * + cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
-177538
-329349
-737043

query I rowsort
SELECT DISTINCT + 43 * + ( col0 * + col0 ) - - col1 FROM tab0 AS cor0
----
24854
340694
52772

query I rowsort
SELECT ALL ( - col2 ) + - col0 AS col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - 27 - col2 * - col2 FROM tab1 cor0
----
2889
3222
9189

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9498
SELECT 93 DIV cor0.col2 FROM tab1, tab0 cor0
----
9 values hashing to 6ab86c1cc3abf78ae13b76aa525f83b9

skipif mysql # not compatible
query I rowsort label-9498
SELECT 93 / cor0.col2 FROM tab1, tab0 cor0
----
9 values hashing to 6ab86c1cc3abf78ae13b76aa525f83b9

query I rowsort
SELECT ALL tab1.col2 * 96 FROM tab1, tab1 AS cor0
----
9 values hashing to 19c7ed22afd5c2bc0716e97bd608270e

onlyif mysql # use DIV operator for integer division
query I rowsort label-9500
SELECT tab2.col2 DIV col1 + + col1 FROM tab2
----
19
31
59

skipif mysql # not compatible
query I rowsort label-9500
SELECT tab2.col2 / col1 + + col1 FROM tab2
----
19
31
59

query I rowsort
SELECT DISTINCT - col0 * - col1 + + col0 FROM tab1
----
1120
704
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9502
SELECT ALL CAST( - 11 AS SIGNED ) AS col2 FROM tab0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL CAST ( - 11 AS INTEGER ) AS col2 FROM tab0
----
-11
-11
-11

query I rowsort
SELECT - ( col2 ) * + col0 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT - 74 AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
81 values hashing to 83dc6c0e38784f5f5c6b91de33ab4ff1

query I rowsort
SELECT ALL + col0 * col2 * + col0 FROM tab0 AS cor0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-9506
SELECT DISTINCT - + 76 DIV + 71 AS col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT - + 76 / + 71 AS col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - col2 AS REAL ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + cor0.col1 * - 99 + col1 FROM tab1 AS cor0
----
-1274
-2548
-980

query I rowsort
SELECT + + 86 + + col1 AS col0 FROM tab1 cor0
----
112
96
99

query I rowsort
SELECT DISTINCT col1 * col0 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT + + 71 * - cor0.col0 FROM tab0 AS cor0
----
-1704
-2485
-6319

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 + - cor0.col2 * - cor0.col1 col0 FROM tab1 AS cor0
----
1251
1407
573

query I rowsort
SELECT DISTINCT - + cor0.col1 * - 66 AS col0 FROM tab0 AS cor0
----
5676
6006
6402

query I rowsort
SELECT ALL - - col2 * - col1 + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-9515
SELECT + + cor0.col2 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9515
SELECT + + cor0.col2 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 21 * col1 FROM tab0
----
1806
1911
2037

query I rowsort
SELECT DISTINCT - col1 + - col2 * col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT ALL + cor0.col2 - + col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT + 40 + col1 FROM tab1 AS cor0
----
50
53
66

query I rowsort
SELECT ALL 25 + col1 FROM tab1 cor0
----
35
38
51

query I rowsort
SELECT DISTINCT + - cor0.col2 + + col0 * ( cor0.col2 ) FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL - col2 + col0 - + ( 65 ) * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1638
-1775
-2429

query I rowsort
SELECT DISTINCT + col1 + - col2 AS col0 FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT - col1 * + col1 + ( ( - col2 ) ) FROM tab2 AS cor0
----
-327
-3507
-988

query I rowsort
SELECT ALL - col2 + 69 AS col1 FROM tab2 AS cor0
----
31
42
43

query I rowsort
SELECT ALL col1 + + ( - col0 ) FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - - col1 * - 53 - col1 * col1 FROM tab0 AS cor0
----
-11954
-13104
-14550

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9528
SELECT ALL col1 + CAST( + 20 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
30
33
46

skipif mysql # not compatible
query I rowsort label-9528
SELECT ALL col1 + CAST ( + 20 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
30
33
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-9529
SELECT DISTINCT + col1 + + cor0.col1 DIV col1 FROM tab2 AS cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-9529
SELECT DISTINCT + col1 + + cor0.col1 / col1 FROM tab2 AS cor0
----
18
32
60

query I rowsort
SELECT 94 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT DISTINCT + col1 - col1 FROM tab0 cor0
----
0

query I rowsort
SELECT col2 * 2 * + col0 + + col1 AS col1 FROM tab2 AS cor0
----
409
4115
6021

query I rowsort
SELECT DISTINCT - col2 - 66 FROM tab2 AS cor0
----
-104
-92
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9534
SELECT DISTINCT + cor0.col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT + cor0.col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col1 + col0 * 28 FROM tab2 AS cor0
----
2229
2243
227

query I rowsort
SELECT ALL - 76 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + ( + col1 ) * - cor0.col2 col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT ALL + 59 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT col0 * ( col2 + col1 ) AS col1 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT + col0 * - col2 + cor0.col1 FROM tab1 AS cor0
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col0 * col0 col1 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT + + col0 - + 69 AS col0 FROM tab0 AS cor0
----
-34
-45
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9543
SELECT + col1 + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-9543
SELECT + col1 + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT - col0 - + col0 * 77 AS col1 FROM tab0 AS cor0
----
-1872
-2730
-6942

query I rowsort
SELECT - 27 * + cor0.col2 * + col1 AS col2 FROM tab2 AS cor0
----
-17442
-22599
-41418

query I rowsort
SELECT + - cor0.col1 * + 88 FROM tab0, tab2 cor0
----
9 values hashing to f9a0144c5d5067925309551e258fd248

query I rowsort
SELECT col0 + 23 * cor0.col0 FROM tab2 AS cor0
----
168
1872
1896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col0 FROM tab1 AS cor0
----
44
44
44

query I rowsort
SELECT ALL col2 + + col0 AS col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - col2 * - col2 + col1 + + 2 * cor0.col1 FROM tab1 AS cor0
----
2994
3279
9255

query I rowsort
SELECT + 8 FROM tab0, tab0 cor0, tab2 cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

onlyif mysql # use DIV operator for integer division
query I rowsort label-9552
SELECT ALL + col0 DIV + tab0.col1 col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL + col0 / + tab0.col1 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT cor0.col1 + - col2 * + 35 FROM tab0 AS cor0
----
-1069
-2779
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-9555
SELECT DISTINCT col2 * col2 DIV 71 col0 FROM tab1
----
129
41
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT col2 * col2 / 71 col0 FROM tab1
----
129
41
45

query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
1
33
82

query I rowsort
SELECT DISTINCT + 29 * tab2.col1 * - tab2.col0 FROM tab2, tab1 AS cor0
----
-133458
-38947
-6293

query I rowsort
SELECT ALL + col0 + - col1 * 12 AS col0 FROM tab1
----
-309
-56
-76

query I rowsort
SELECT DISTINCT 4 AS col0 FROM tab1, tab0, tab2 AS cor0
----
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-9560
SELECT ALL + col2 * tab0.col2 + - 54 DIV col0 FROM tab0
----
0
1087
6724

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL + col2 * tab0.col2 + - 54 / col0 FROM tab0
----
0
1087
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-9561
SELECT ALL col1 + - col1 * 72 DIV col2 FROM tab0 cor0
----
-101
-6887
12

skipif mysql # not compatible
query I rowsort label-9561
SELECT ALL col1 + - col1 * 72 / col2 FROM tab0 cor0
----
-101
-6887
12

query I rowsort
SELECT DISTINCT col0 + col1 * + col0 + - col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col1 * col2 - col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT 28 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-58
-63
-69

query I rowsort
SELECT + col2 * + cor0.col1 + + ( - 77 ) - + col1 AS col1 FROM tab0 AS cor0
----
-77
2675
7294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 * ( - 29 ) col2 FROM tab1
----
-290
-377
-754

query I rowsort
SELECT col2 * col0 * col2 AS col0 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT - 53 * - col2 FROM tab2 AS cor0
----
1378
1431
2014

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9569
SELECT - CAST( col1 AS SIGNED ) * col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-9569
SELECT - CAST ( col1 AS INTEGER ) * col2 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9570
SELECT + CAST( col0 AS SIGNED ) * + col1 * col0 AS col1 FROM tab2 AS cor0
----
106097
1519
358956

skipif mysql # not compatible
query I rowsort label-9570
SELECT + CAST ( col0 AS INTEGER ) * + col1 * col0 AS col1 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT - ( 33 ) + - col0 * col0 FROM tab0 AS cor0
----
-1258
-609
-7954

query I rowsort
SELECT + 92 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT + + ( + col1 ) + - col0 FROM tab0 cor0
----
2
62

query I rowsort
SELECT ALL + 78 + + col1 FROM tab1 AS cor0
----
104
88
91

query I rowsort
SELECT ( 18 ) * col1 FROM tab2 AS cor0
----
1062
306
558

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9576
SELECT ALL + CAST( NULL AS SIGNED ) + + col0 * col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9576
SELECT ALL + CAST ( NULL AS INTEGER ) + + col0 * col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9577
SELECT ALL 84 + - col1 DIV + col0 FROM tab2 AS cor0
----
80
84
84

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL 84 + - col1 / + col0 FROM tab2 AS cor0
----
80
84
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9578
SELECT - - CAST( NULL AS SIGNED ) * - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9578
SELECT - - CAST ( NULL AS INTEGER ) * - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9579
SELECT + + ( col1 ) DIV col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9579
SELECT + + ( col1 ) / col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT - col1 * - 30 FROM tab0 AS cor0
----
2580
2730
2910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9581
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col2 + - 81 col2 FROM tab2, tab1 AS cor0, tab0 cor1
----
-48
-80
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9583
SELECT DISTINCT - CAST( col2 AS SIGNED ) DIV - col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT - CAST ( col2 AS INTEGER ) / - col1 FROM tab1 AS cor0
----
2
5
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9584
SELECT - CAST( 3 AS SIGNED ) * col2 FROM tab0 AS cor0
----
-246
-3
-99

skipif mysql # not compatible
query I rowsort label-9584
SELECT - CAST ( 3 AS INTEGER ) * col2 FROM tab0 AS cor0
----
-246
-3
-99

query I rowsort
SELECT ALL + + ( + 79 ) + col0 FROM tab2 AS cor0
----
157
158
86

query I rowsort
SELECT ALL col1 * 12 AS col2 FROM tab2
----
204
372
708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 99 * col0 col0 FROM tab2 cor0
----
693
7722
7821

query I rowsort
SELECT DISTINCT + 1 * - col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT - col2 + col2 * + 40 AS col0 FROM tab2 AS cor0
----
1014
1053
1482

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9590
SELECT CAST( NULL AS SIGNED ) * + col0 + + col0 * + 24 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9590
SELECT CAST ( NULL AS INTEGER ) * + col0 + + col0 * + 24 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + ( col1 ) ) + col1 FROM tab1
----
20
26
52

query I rowsort
SELECT ALL - 8 FROM tab1, tab1 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # use DIV operator for integer division
query I rowsort label-9593
SELECT - col1 DIV col1 - col0 FROM tab2
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-9593
SELECT - col1 / col1 - col0 FROM tab2
----
-79
-8
-80

query I rowsort
SELECT + tab1.col2 * + tab1.col0 - col0 AS col0 FROM tab1
----
159
3584
7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9595
SELECT - col2 / + 80 + - col2 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9595
SELECT - col2 / + 80 + - col2 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 col0 FROM tab0
----
48

query I rowsort
SELECT ALL + cor0.col2 * col1 + col2 + col0 AS col1 FROM tab1 AS cor0
----
1424
1461
691

query I rowsort
SELECT - cor0.col2 * + cor0.col0 * - 68 + col1 FROM tab2 AS cor0
----
12883
137963
204153

query I rowsort
SELECT ALL - - col2 + 99 FROM tab0 AS cor0
----
100
132
181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9600
SELECT - cor0.col2 * CAST( NULL AS SIGNED ) + - col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT - cor0.col2 * CAST ( NULL AS INTEGER ) + - col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9601
SELECT + col1 DIV ( - col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9601
SELECT + col1 / ( - col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - col1 * ( - col0 ) + - col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT + + col2 + 86 FROM tab1 AS cor0
----
140
143
182

query I rowsort
SELECT - cor0.col0 * cor0.col0 * col1 + col1 * - 9 FROM tab0 AS cor0
----
-119698
-50310
-721630

query I rowsort
SELECT ALL + cor0.col2 + + col0 * - 62 AS col0 FROM tab0 AS cor0
----
-1455
-2169
-5436

query I rowsort
SELECT DISTINCT - 47 - col0 AS col1 FROM tab2
----
-125
-126
-54

query I rowsort
SELECT ALL + col1 - col2 AS col0 FROM tab0
----
53
9
96

query I rowsort
SELECT - tab2.col2 * - tab2.col1 * + col2 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT + tab0.col1 * - col2 AS col1 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - col2 * - 85 + col2 FROM tab1
----
4644
4902
8256

query I rowsort
SELECT col2 * - ( - 16 ) + + col1 FROM tab1
----
1549
890
922

query I rowsort
SELECT col2 * col1 + col2 AS col2 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + + col0 + col2 + + col2 AS col2 FROM tab0 cor0
----
253
37
90

query I rowsort
SELECT + col1 * + col1 - + cor0.col2 AS col2 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT ALL + ( col0 ) + + col2 * col2 FROM tab1 AS cor0
----
2919
3313
9296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * col0 + + 37 col1 FROM tab0 AS cor0
----
72
7335
829

query I rowsort
SELECT DISTINCT + 63 * - col1 AS col0 FROM tab2 AS cor0
----
-1071
-1953
-3717

onlyif mysql # use DIV operator for integer division
query I rowsort label-9618
SELECT DISTINCT - 91 * col0 + + ( + col0 ) DIV - col0 FROM tab0 cor0
----
-2185
-3186
-8100

skipif mysql # not compatible
query I rowsort label-9618
SELECT DISTINCT - 91 * col0 + + ( + col0 ) / - col0 FROM tab0 cor0
----
-2185
-3186
-8100

query I rowsort
SELECT ALL - col0 * - col0 + col0 + + cor0.col2 AS col1 FROM tab0 cor0
----
1261
633
8092

query I rowsort
SELECT col2 + 26 * col0 * ( - col0 + col0 ) AS col1 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 + col2 col1 FROM tab1
----
29
3
77

query I rowsort
SELECT col2 + + 88 AS col1 FROM tab1
----
142
145
184

query I rowsort
SELECT col1 + + col0 + ( col0 ) AS col0 FROM tab0
----
134
167
269

query I rowsort
SELECT - 19 * col1 + col1 + 83 FROM tab1 AS cor0
----
-151
-385
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 * col1 col0 FROM tab2 cor0
----
153
279
531

query I rowsort
SELECT DISTINCT + col2 * col0 + - col2 + + col1 AS col0 FROM tab0 cor0
----
131
7307
845

onlyif mysql # use DIV operator for integer division
query I rowsort label-9627
SELECT DISTINCT - + 1 + + cor0.col0 DIV ( - 43 ) + col2 * cor0.col0 FROM tab1 cor0
----
161
3646
7678

skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT - + 1 + + cor0.col0 / ( - 43 ) + col2 * cor0.col0 FROM tab1 cor0
----
161
3646
7678

query I rowsort
SELECT DISTINCT tab0.col0 + - 26 AS col2 FROM tab0, tab2 AS cor0
----
-2
63
9

query I rowsort
SELECT + - 85 * - col1 FROM tab2 AS cor0
----
1445
2635
5015

query I rowsort
SELECT DISTINCT - + cor0.col2 - col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT + + col0 + 97 FROM tab0 AS cor0
----
121
132
186

query I rowsort
SELECT ALL - col1 - + 9 AS col0 FROM tab1 AS cor0
----
-19
-22
-35

query I rowsort
SELECT cor1.col1 * cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4079a7bf86eef7fda5333d4a7bc8c08e

query I rowsort
SELECT col1 * ( + col1 ) + tab1.col1 FROM tab1
----
110
182
702

query I rowsort
SELECT ALL - 58 * + col2 + + col1 FROM tab2 AS cor0
----
-1449
-1535
-2187

query I rowsort
SELECT col2 + - col0 + col1 FROM tab0 AS cor0
----
63
84
95

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1, tab2 cor2
----
3645 values hashing to e3f81e329d34d83e4528a9ef7b933946

query I rowsort
SELECT DISTINCT + - cor0.col0 * col2 * col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT 16 * tab2.col1 + col2 AS col1 FROM tab2
----
310
523
970

query I rowsort
SELECT ALL + col0 + col2 * - col2 FROM tab0
----
-1065
-6635
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-9641
SELECT ALL + 99 + col2 DIV + col2 FROM tab0
----
100
100
100

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL + 99 + col2 / + col2 FROM tab0
----
100
100
100

query I rowsort
SELECT DISTINCT + cor0.col2 * 24 + - col2 FROM tab2 AS cor0
----
598
621
874

query I rowsort
SELECT DISTINCT - - 88 * ( col0 ) AS col1 FROM tab1 AS cor0
----
264
5632
7040

query I rowsort
SELECT + 3 + + col0 * - col0 FROM tab2 AS cor0
----
-46
-6081
-6238

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9645
SELECT ALL CAST( col1 AS SIGNED ) + col2 * col1 * - col0 FROM tab0 cor0
----
-3298
-664027
-68026

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL CAST ( col1 AS INTEGER ) + col2 * col1 * - col0 FROM tab0 cor0
----
-3298
-664027
-68026

query I rowsort
SELECT DISTINCT - ( 76 ) + cor0.col1 FROM tab2 AS cor0
----
-17
-45
-59

query I rowsort
SELECT - + col0 * + 91 AS col2 FROM tab2 AS cor0
----
-637
-7098
-7189

query I rowsort
SELECT ALL col1 + ( col0 ) AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + col2 * + 12 + col2 AS col0 FROM tab2 cor0
----
338
351
494

query I rowsort
SELECT - ( + col1 ) + col0 * - 69 * 16 FROM tab0
----
-26582
-38737
-98347

query I rowsort
SELECT DISTINCT + ( 98 ) FROM tab0
----
98

query I rowsort
SELECT ALL 74 * col2 - + col1 FROM tab1 cor0
----
3970
4208
7091

query I rowsort
SELECT DISTINCT + 1 * 61 FROM tab2 AS cor0
----
61

query I rowsort
SELECT ALL + 0 + col0 AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + ( - ( col2 ) ) * cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - + col0 * - col2 + col2 * col2 FROM tab2 AS cor0
----
2704
4446
918

query I rowsort
SELECT 67 - col2 * - col1 AS col1 FROM tab1 AS cor0
----
1315
1471
637

query I rowsort
SELECT tab2.col1 * - tab2.col1 AS col2 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - col2 * col0 + + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT + 0 * col2 + 65 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT - col0 * col1 - - 8 AS col2 FROM tab1 AS cor0
----
-1032
-632
-70

query I rowsort
SELECT ALL col1 * ( col1 ) AS col0 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + col2 * - 64 AS col1 FROM tab2 AS cor0
----
-1664
-1728
-2432

onlyif mysql # use DIV operator for integer division
query I rowsort label-9664
SELECT ALL col2 DIV - col0 + + 35 FROM tab0 AS cor0
----
34
35
35

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL col2 / - col0 + + 35 FROM tab0 AS cor0
----
34
35
35

query I rowsort
SELECT - col1 * ( 32 + - col0 ) FROM tab2
----
-775
2714
799

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col0 * col1 + ( 75 ) + - col1 col2 FROM tab2
----
1401
261
4618

onlyif mysql # use DIV operator for integer division
query I rowsort label-9667
SELECT col2 DIV + CAST( col2 AS SIGNED ) + + col0 AS col2 FROM tab1 AS cor0
----
4
65
81

skipif mysql # not compatible
query I rowsort label-9667
SELECT col2 / + CAST ( col2 AS INTEGER ) + + col0 AS col2 FROM tab1 AS cor0
----
4
65
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-9668
SELECT ALL - col0 + col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
-64
-79
15

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL - col0 + col2 / + col0 AS col1 FROM tab1 AS cor0
----
-64
-79
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-9669
SELECT - cor0.col0 + col0 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-9669
SELECT - cor0.col0 + col0 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
-7
-75
-77

query I rowsort
SELECT + + ( - cor0.col2 ) * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - col1 + + 15 FROM tab1
----
-11
2
5

query I rowsort
SELECT col0 * ( + 91 ) AS col1 FROM tab0 AS cor0
----
2184
3185
8099

query I rowsort
SELECT DISTINCT + col1 - - col0 * col0 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT ( - 85 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9675
SELECT - col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9675
SELECT - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9676
SELECT col2 DIV - 56 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9676
SELECT col2 / - 56 AS col0 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT 61 * - 0 FROM tab0, tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 * 3 AS col2 FROM tab2
----
-21
-234
-237

onlyif mysql # use DIV operator for integer division
query I rowsort label-9679
SELECT col0 + col2 DIV col0 col1 FROM tab0 AS cor0
----
25
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9679
SELECT col0 + col2 / col0 col1 FROM tab0 AS cor0
----
25
35
89

query I rowsort
SELECT ALL tab0.col1 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + cor0.col1 ) AND ( NULL )
----

query I rowsort
SELECT + col0 * + col1 + col0 FROM tab2 cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col1 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - 25 * - cor0.col1 + - col1 * col2 FROM tab2 AS cor0
----
-221
-59
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-9685
SELECT ( + col2 ) - + col1 DIV + ( + col0 ) FROM tab2
----
23
26
38

skipif mysql # not compatible
query I rowsort label-9685
SELECT ( + col2 ) - + col1 / + ( + col0 ) FROM tab2
----
23
26
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - col2 col1 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - col2 AS REAL ) AS col0 FROM tab2
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9688
SELECT CAST( col1 AS SIGNED ) * col2 * CAST( - 90 * col2 AS SIGNED ) + col1 FROM tab0
----
-55069469
-8428774
-8633

skipif mysql # not compatible
query I rowsort label-9688
SELECT CAST ( col1 AS INTEGER ) * col2 * CAST ( - 90 * col2 AS INTEGER ) + col1 FROM tab0
----
-55069469
-8428774
-8633

query I rowsort
SELECT DISTINCT 27 + col2 FROM tab0
----
109
28
60

query I rowsort
SELECT ALL - tab2.col0 + col1 * col2 + + col2 FROM tab2
----
1482
605
857

onlyif mysql # use DIV operator for integer division
query I rowsort label-9691
SELECT + col0 + + col2 DIV - ( col2 * - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9691
SELECT + col0 + + col2 / - ( col2 * - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT 80 * + cor0.col0 - col2 AS col1 FROM tab1 cor0
----
186
5063
6304

query I rowsort
SELECT ALL + col0 + 3 * cor0.col2 FROM tab2 AS cor0
----
156
193
88

query I rowsort
SELECT ALL col0 + + col0 * - col1 * col2 FROM tab1 AS cor0
----
-36416
-4209
-99760

query I rowsort
SELECT DISTINCT - + col1 * 55 FROM tab1 cor0
----
-1430
-550
-715

query I rowsort
SELECT ALL + + col0 + - ( col1 ) * col0 + cor0.col0 * col0 * col0 FROM tab2 AS cor0
----
133
470028
491775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - col2 col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL - - col2 * + col0 - + col0 * + col2 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * col0 + + cor0.col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL - + col0 + cor0.col0 * - col2 FROM tab0 cor0
----
-70
-7387
-816

query I rowsort
SELECT - - col2 + - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col0 + + ( + col1 ) AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT 80 * - col2 AS col1 FROM tab1 cor0
----
-4320
-4560
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9704
SELECT - CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9704
SELECT - CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * col0 * + col2 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT ALL - 45 + col0 FROM tab1 AS cor0
----
-42
19
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-9707
SELECT col0 + + 82 DIV cor0.col0 + - ( + col2 + col1 ) AS col2 FROM tab0 AS cor0
----
-61
-84
-92

skipif mysql # not compatible
query I rowsort label-9707
SELECT col0 + + 82 / cor0.col0 + - ( + col2 + col1 ) AS col2 FROM tab0 AS cor0
----
-61
-84
-92

query I rowsort
SELECT - 38 * col1 AS col0 FROM tab1 AS cor0
----
-380
-494
-988

query I rowsort
SELECT + 69 + - col2 + - col0 * - 4 FROM tab1 cor0
----
268
27
293

query I rowsort
SELECT + - col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT cor0.col2 + + 81 + + col0 AS col0 FROM tab1 AS cor0
----
138
202
257

query I rowsort
SELECT DISTINCT 16 + col2 * col2 AS col0 FROM tab2 AS cor0
----
1460
692
745

onlyif mysql # use DIV operator for integer division
query I rowsort label-9713
SELECT DISTINCT + col1 DIV col2 AS col0 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT + col1 / col2 AS col0 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT + 75 * - col2 FROM tab1 AS cor0
----
-4050
-4275
-7200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9715
SELECT col2 * + col2 * col2 - - CAST( + ( col1 ) * - 17 AS SIGNED ) FROM tab0 AS cor0
----
-1648
34475
549821

skipif mysql # not compatible
query I rowsort label-9715
SELECT col2 * + col2 * col2 - - CAST ( + ( col1 ) * - 17 AS INTEGER ) FROM tab0 AS cor0
----
-1648
34475
549821

query I rowsort
SELECT - - col1 * col2 - + cor0.col1 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT + 37 * - col0 FROM tab1
----
-111
-2368
-2960

query I rowsort
SELECT DISTINCT + col0 * - col1 + tab0.col2 AS col0 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT + cor1.col0 + - 16 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e6e19461e55fcde677121174fb8f4f8e

query I rowsort
SELECT + col0 * col1 * col0 FROM tab1
----
234
40960
83200

query I rowsort
SELECT col0 + col1 * col2 * + col0 FROM tab2 AS cor0
----
119730
51113
5866

query I rowsort
SELECT ALL + col1 - - col2 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + col0 * - col1 * col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-177480
-329280
-736920

query I rowsort
SELECT ALL + col2 * col0 + col2 + col0 * - col0 FROM tab2 AS cor0
----
-3201
-4030
167

query I rowsort
SELECT + + col1 - col2 * + col1 AS col1 FROM tab0 cor0
----
-2752
-7371
0

query I rowsort
SELECT col2 * - col1 + - col1 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT DISTINCT cor0.col2 * - col2 AS col1 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT + - col1 - - col0 * - col2 * - col2 AS col2 FROM tab1 AS cor0
----
207926
737267
8722

query I rowsort
SELECT ALL - + col1 * cor0.col2 + - col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
4558
819
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-9730
SELECT DISTINCT - - col1 DIV col1 + - col1 * + col2 * col2 - cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
-1321
-619804
-94229

skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT - - col1 / col1 + - col1 * + col2 * col2 - cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
-1321
-619804
-94229

query I rowsort
SELECT col1 * col0 + col0 * col1 FROM tab0
----
16198
4128
6790

query I rowsort
SELECT col2 + col2 + + col1 * col2 * - col0 AS col1 FROM tab2
----
-119600
-50958
-5805

onlyif mysql # use DIV operator for integer division
query I rowsort label-9733
SELECT - col1 DIV col1 + - col1 DIV - tab1.col2 - - tab1.col0 * + col1 FROM tab1
----
1039
639
77

skipif mysql # not compatible
query I rowsort label-9733
SELECT - col1 / col1 + - col1 / - tab1.col2 - - tab1.col0 * + col1 FROM tab1
----
1039
639
77

query I rowsort
SELECT ALL + 64 + - cor0.col2 FROM tab1 AS cor0
----
-32
10
7

query I rowsort
SELECT ALL 5 * - col1 FROM tab1 AS cor0
----
-130
-50
-65

query I rowsort
SELECT DISTINCT + - col1 + + cor0.col1 * - col2 FROM tab0 AS cor0
----
-194
-2924
-7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-9737
SELECT + 90 DIV col1 AS col1 FROM tab1 AS cor0
----
3
6
9

skipif mysql # not compatible
query I rowsort label-9737
SELECT + 90 / col1 AS col1 FROM tab1 AS cor0
----
3
6
9

query I rowsort
SELECT ALL + 68 * cor0.col1 FROM tab2 AS cor0
----
1156
2108
4012

onlyif mysql # use DIV operator for integer division
query I rowsort label-9739
SELECT ALL - col0 + col0 * col2 DIV col0 AS col2 FROM tab2 cor0
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL - col0 + col0 * col2 / col0 AS col2 FROM tab2 cor0
----
-41
-52
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 94 col2 FROM tab2 AS cor0
----
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9741
SELECT ALL - CAST( NULL AS SIGNED ) + - ( + col1 ) / + col0 + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9741
SELECT ALL - CAST ( NULL AS INTEGER ) + - ( + col1 ) / + col0 + + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( tab1.col0 ) + col0 * + col1 * + col1 AS col2 FROM tab1
----
13440
2025
6336

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9743
SELECT ALL CAST( NULL AS DECIMAL ) * + col2 + - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL CAST ( NULL AS REAL ) * + col2 + - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * + ( col2 ) + + col0 * col1 AS col2 FROM tab0
----
1272
3360
801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - tab2.col2 ) col1 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT - col1 - col0 * + col1 FROM tab0
----
-2150
-3492
-8190

query I rowsort
SELECT - tab0.col2 - + col2 AS col2 FROM tab0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-9748
SELECT + col1 + col2 DIV - col1 FROM tab2
----
15
31
59

skipif mysql # not compatible
query I rowsort label-9748
SELECT + col1 + col2 / - col1 FROM tab2
----
15
31
59

query I rowsort
SELECT DISTINCT col1 + col2 * + col1 * col0 FROM tab0
----
3492
664209
68198

query I rowsort
SELECT DISTINCT - col0 * col1 * col2 + + col1 AS col1 FROM tab1
----
-36470
-4186
-99827

query I rowsort
SELECT DISTINCT col2 * + col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + col0 * col2 AND ( - col2 )
----

query I rowsort
SELECT DISTINCT - tab0.col0 - + col1 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT col1 + col0 * col1 AS col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT col1 + - col0 * tab0.col2 * col2 AS col2 FROM tab0
----
-26050
-598345
62

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT col1 + + tab0.col1 * + col0 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ALL - col2 + col2 + cor0.col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL col2 * - col1 + + col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - tab0.col2 * tab0.col2 AS col2 FROM tab0
----
-1
-1089
-6724

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND ( col0 )
----

query I rowsort
SELECT ALL cor0.col0 * col1 FROM tab2 AS cor0 WHERE ( + col0 + - col0 + cor0.col0 ) IN ( + col1 )
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( + col1 ) <= + col2 - col1 * col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 + + col2 ) IN ( cor0.col2 )
----

query I rowsort
SELECT + 91 + + cor0.col2 FROM tab1 AS cor0
----
145
148
187

query I rowsort
SELECT DISTINCT + 2 + - col2 * + col2 - cor0.col0 * + col2 FROM tab1 cor0
----
-16894
-3076
-6895

query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) AS col2 FROM tab2 cor0
----
7
78
79

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 DISTINCT - col2 * cor0.col1 * + cor0.col1 + 43 AS col2 FROM tab0 AS cor0
----
-244025
-678999
-9366

onlyif mysql # use DIV operator for integer division
query I rowsort label-9769
SELECT tab0.col2 * 2 DIV col0 - - col0 AS col2 FROM tab0
----
26
35
90

skipif mysql # not compatible
query I rowsort label-9769
SELECT tab0.col2 * 2 / col0 - - col0 AS col2 FROM tab0
----
26
35
90

query I rowsort
SELECT + col0 * - col1 - - col1 AS col2 FROM tab2
----
-1326
-186
-4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9771
SELECT CAST( + col0 + + col2 AS SIGNED ) FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-9771
SELECT CAST ( + col0 + + col2 AS INTEGER ) FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT - + cor0.col2 * + col1 + 78 * col2 AS col2 FROM tab0 AS cor0
----
-1066
-19
-264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * - 39 + - col1 col2 FROM tab2 AS cor0
----
-1233
-2282
-601

query I rowsort
SELECT 32 * - col0 FROM tab1
----
-2048
-2560
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9775
SELECT col1 * CAST( col1 AS SIGNED ) * col1 AS col0 FROM tab0
----
636056
753571
912673

skipif mysql # not compatible
query I rowsort label-9775
SELECT col1 * CAST ( col1 AS INTEGER ) * col1 AS col0 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT ALL + cor1.col2 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT + col1 * + col0 * - col1 AS col1 FROM tab1
----
-13520
-2028
-6400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9778
SELECT DISTINCT - col2 + CAST( NULL AS DECIMAL ) + - tab0.col1 * - col0 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9778
SELECT DISTINCT - col2 + CAST ( NULL AS REAL ) + - tab0.col1 * - col0 AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 * tab2.col0 col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - col0 * + 64 AS col1 FROM tab2
----
-448
-4992
-5056

query I rowsort
SELECT 11 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 col0 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT - + cor0.col2 - col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT - col2 + - ( + col0 ) * col0 AS col0 FROM tab2
----
-6110
-6279
-76

query I rowsort
SELECT ALL tab2.col1 * 26 + + col2 AS col2 FROM tab2
----
1560
480
833

onlyif mysql # use DIV operator for integer division
query I rowsort label-9786
SELECT ALL col0 * CAST( col2 AS SIGNED ) * + tab1.col2 - - col2 DIV + col1 FROM tab1
----
207941
737287
8750

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL col0 * CAST ( col2 AS INTEGER ) * + tab1.col2 - - col2 / + col1 FROM tab1
----
207941
737287
8750

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9787
SELECT ALL - CAST( NULL AS SIGNED ) + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9787
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + col0 + + 67 + col1 * col2 AS col0 FROM tab2
----
6954
7685
953

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9789
SELECT - col2 * + CAST( col1 AS SIGNED ) FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-9789
SELECT - col2 * + CAST ( col1 AS INTEGER ) FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT col1 + 94 AS col1 FROM tab1
----
104
107
120

query I rowsort
SELECT ALL col1 + + 37 + + 17 FROM tab1
----
64
67
80

query I rowsort
SELECT tab1.col2 + col2 * + col1 AS col1 FROM tab1
----
1344
1458
627

query I rowsort
SELECT col2 * 42 AS col2 FROM tab1
----
2268
2394
4032

query I rowsort
SELECT + + col1 * col0 + cor0.col0 * col0 AS col0 FROM tab1 AS cor0
----
4736
7440
87

query I rowsort
SELECT ALL 45 + + 79 + col2 AS col0 FROM tab1
----
178
181
220

query I rowsort
SELECT DISTINCT - col1 + 79 * - tab2.col2 * - col1 + + col1 FROM tab2
----
121186
51034
66123

query I rowsort
SELECT DISTINCT 80 * 11 FROM tab1 AS cor0
----
880

query I rowsort
SELECT ALL - - col0 * 24 FROM tab1 AS cor0
----
1536
1920
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-9799
SELECT - cor0.col1 DIV col1 col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9799
SELECT - cor0.col1 / col1 col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - + ( col1 ) + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL col2 * + col1 + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT - ( col0 ) + col0 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ( - col1 ) + + col1 * - tab0.col2 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT ( col2 ) - col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col0 * + col1 + + ( - col1 + col1 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - col1 * + col1 - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506

query I rowsort
SELECT DISTINCT col2 + cor0.col0 * col2 AS col2 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT - + col2 + + 33 * - ( + cor0.col2 + col2 * - cor0.col0 ) AS col1 FROM tab1 cor0
----
118446
250176
3510

query I rowsort
SELECT ALL - - col0 * 37 + col0 AS col0 FROM tab1 AS cor0
----
114
2432
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9810
SELECT - cor0.col1 * - CAST( NULL AS DECIMAL ) + - 29 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9810
SELECT - cor0.col1 * - CAST ( NULL AS REAL ) + - 29 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9811
SELECT ALL cor0.col2 * CAST( NULL AS SIGNED ) - + cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL cor0.col2 * CAST ( NULL AS INTEGER ) - + cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * col0 + + 24 FROM tab0 AS cor0
----
-1201
-552
-7897

query I rowsort
SELECT cor0.col1 * - col1 - - col2 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT + col2 + 6 AS col2 FROM tab0 AS cor0
----
39
7
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - ( 69 ) col2 FROM tab2 cor0
----
-62
10
9

query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col2 AS col2 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9817
SELECT ALL col1 * - CAST( + col1 AS SIGNED ) + col2 + + col1 AS col0 FROM tab1 AS cor0
----
-33
-596
-60

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL col1 * - CAST ( + col1 AS INTEGER ) + col2 + + col1 AS col0 FROM tab1 AS cor0
----
-33
-596
-60

query I rowsort
SELECT - col1 * 50 + - 35 - + cor0.col2 AS col0 FROM tab0 AS cor0
----
-4368
-4667
-4886

query I rowsort
SELECT ALL + + cor0.col1 + + ( + 78 ) + col1 FROM tab1 AS cor0
----
104
130
98

query I rowsort
SELECT DISTINCT col1 * 77 * col2 AS col2 FROM tab0 cor0
----
218526
574574
7469

onlyif mysql # use DIV operator for integer division
query I rowsort label-9821
SELECT cor0.col1 DIV 75 + - ( + col2 * - col0 ) + - col2 FROM tab0 AS cor0
----
35
7217
760

skipif mysql # not compatible
query I rowsort label-9821
SELECT cor0.col1 / 75 + - ( + col2 * - col0 ) + - col2 FROM tab0 AS cor0
----
35
7217
760

query I rowsort
SELECT ALL cor0.col2 + + 65 * + 5 FROM tab0 cor0
----
326
358
407

query I rowsort
SELECT DISTINCT ( col1 + 63 ) * tab2.col2 * col2 FROM tab2
----
115520
68526
82472

query I rowsort
SELECT + 66 + + col1 * - ( col2 * col2 ) FROM tab1
----
-119742
-32424
-75750

onlyif mysql # use DIV operator for integer division
query I rowsort label-9825
SELECT + ( - col1 * + col0 ) + col0 DIV + col1 FROM tab2
----
-1339
-217
-4601

skipif mysql # not compatible
query I rowsort label-9825
SELECT + ( - col1 * + col0 ) + col0 / + col1 FROM tab2
----
-1339
-217
-4601

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9826
SELECT tab2.col0 + + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT tab2.col0 + + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + cor0.col2 + col1 * col1 AS col2 FROM tab2 AS cor0
----
327
3507
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-9828
SELECT DISTINCT col0 DIV - col2 + col2 FROM tab0 cor0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-9828
SELECT DISTINCT col0 / - col2 + col2 FROM tab0 cor0
----
-34
33
81

query I rowsort
SELECT + col1 * - ( + col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT col1 * 0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - - col1 - - cor0.col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + - col0 * col0 * 21 + col2 FROM tab1 AS cor0
----
-134304
-135
-85959

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + cor0.col2 col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - col2 + + ( col0 * col1 ) FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + 42 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT DISTINCT + - col2 * + col0 + 54 FROM tab0 cor0
----
-7244
-738
19

query I rowsort
SELECT ALL + col1 - - ( + col1 * - col2 + + col0 ) AS col1 FROM tab0 AS cor0
----
-2728
-7282
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + cor0.col1 col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + col1 + - 16 AS col1 FROM tab0 AS cor0
----
70
75
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) * - col1 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ( + col1 ) * col2 + + 52 * - 57 FROM tab1 AS cor0
----
-1560
-1716
-2394

skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( 38 AS REAL ) AS col1 FROM tab2 cor0
----
-38
-38
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9843
SELECT DISTINCT CAST( cor0.col0 AS SIGNED ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT CAST ( cor0.col0 AS INTEGER ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + ( col2 ) * + col0 AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT - ( - col1 ) + col2 AS col0 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT 17 * 71 * + col1 AS col2 FROM tab2 AS cor0
----
20519
37417
71213

onlyif mysql # use DIV operator for integer division
query I rowsort label-9848
SELECT + col1 DIV col2 + - col0 DIV + ( col1 ) + col1 * - 82 FROM tab0 AS cor0
----
-7050
-7461
-7857

skipif mysql # not compatible
query I rowsort label-9848
SELECT + col1 / col2 + - col0 / + ( col1 ) + col1 * - 82 FROM tab0 AS cor0
----
-7050
-7461
-7857

query I rowsort
SELECT - cor0.col0 * col1 - - col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT - - cor0.col2 * col1 + + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - 53 - + col2 * col0 AS col1 FROM tab0 AS cor0
----
-7351
-845
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-9852
SELECT ALL + + col0 DIV ( cor0.col1 ) - col1 DIV - col0 AS col1 FROM tab2 AS cor0
----
1
4
4

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL + + col0 / ( cor0.col1 ) - col1 / - col0 AS col1 FROM tab2 AS cor0
----
1
4
4

query I rowsort
SELECT - + col1 * - 24 - col2 FROM tab2 AS cor0
----
1390
370
717

query I rowsort
SELECT ALL - 78 * - ( - col1 ) * ( 65 ) + cor0.col1 + + col0 FROM tab2 AS cor0
----
-157132
-298993
-86094

query I rowsort
SELECT DISTINCT 85 AS col1 FROM tab1 AS cor0
----
85

query I rowsort
SELECT 81 - col2 FROM tab2
----
43
54
55

query I rowsort
SELECT + 52 + + col2 AS col1 FROM tab2 AS cor0
----
78
79
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-9858
SELECT ALL col1 DIV 29 + col0 AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9858
SELECT ALL col1 / 29 + col0 AS col1 FROM tab1
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9859
SELECT ALL - 80 + - col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9859
SELECT ALL - 80 + - col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col2 + col1 + + 18 * - col1 FROM tab1 AS cor0
----
-3818
-604
-7901

query I rowsort
SELECT + col0 + col2 + - 31 FROM tab1 AS cor0
----
145
26
90

query I rowsort
SELECT ALL + col2 * + col0 + col1 + col0 FROM tab2
----
2165
227
3098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 col1 FROM tab1 AS cor0
----
-34
-34
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-9864
SELECT ALL - 65 DIV - col1 AS col0 FROM tab1
----
2
5
6

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL - 65 / - col1 AS col0 FROM tab1
----
2
5
6

query I rowsort
SELECT + 53 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT + col1 + cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
144
72
89

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to d47b3f87370e79c6978209440a41fac4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 73 col1 FROM tab1
----
3942
4161
7008

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9869
SELECT - CAST( NULL AS SIGNED ) * - col0 col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9869
SELECT - CAST ( NULL AS INTEGER ) * - col0 col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 1 * - tab1.col2 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-9871
SELECT + tab1.col2 DIV - 63 col0 FROM tab1
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9871
SELECT + tab1.col2 / - 63 col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT - ( - 25 * + col2 ) FROM tab2
----
650
675
950

query I rowsort
SELECT - 91 * col0 FROM tab0
----
-2184
-3185
-8099

query I rowsort
SELECT - 50 * + 54 AS col1 FROM tab1
----
-2700
-2700
-2700

query I rowsort
SELECT ( - 78 ) * + col2 AS col0 FROM tab1 AS cor0
----
-4212
-4446
-7488

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT + + 99 * + 19 - + col2 AS col1 FROM tab2 AS cor0
----
1843
1854
1855

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 91 ) * - col1 - col0 * - 18 col2 FROM tab1 cor0
----
-2312
242
257

query I rowsort
SELECT ALL - col0 * - 92 AS col1 FROM tab1 AS cor0
----
276
5888
7360

query I rowsort
SELECT ALL - + 39 FROM tab2 AS cor0
----
-39
-39
-39

query I rowsort
SELECT cor0.col2 * - cor0.col1 - - col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1292
-1674
-3068

query I rowsort
SELECT ALL + + cor0.col0 * - ( col1 ) FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 91 ) col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT + - 86 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col2 * cor0.col1 col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1
----
-10982
-25947
-90506

query I rowsort
SELECT 61 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

onlyif mysql # use DIV operator for integer division
query I rowsort label-9887
SELECT col0 * ( + col2 ) DIV col1 + + 77 * + col0 FROM tab0 AS cor0
----
1857
2695
6933

skipif mysql # not compatible
query I rowsort label-9887
SELECT col0 * ( + col2 ) / col1 + + 77 * + col0 FROM tab0 AS cor0
----
1857
2695
6933

query I rowsort
SELECT + col0 * - 40 + - col1 AS col2 FROM tab2 AS cor0
----
-311
-3177
-3179

onlyif mysql # use DIV operator for integer division
query I rowsort label-9889
SELECT + col0 * 73 + col1 DIV + col0 FROM tab0 AS cor0
----
1755
2557
6498

skipif mysql # not compatible
query I rowsort label-9889
SELECT + col0 * 73 + col1 / + col0 FROM tab0 AS cor0
----
1755
2557
6498

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9890
SELECT col0 + - CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9890
SELECT col0 + - CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * + 28 - - col2 FROM tab2 cor0
----
2210
223
2250

query I rowsort
SELECT DISTINCT col1 * col2 + - col2 * + 38 FROM tab0 AS cor0
----
1584
4346
59

query I rowsort
SELECT col1 + + 63 AS col1 FROM tab0 AS cor0
----
149
154
160

query I rowsort
SELECT - 54 + col0 * col0 AS col2 FROM tab2 AS cor0
----
-5
6030
6187

query I rowsort
SELECT DISTINCT + tab1.col1 * 61 FROM tab1, tab1 AS cor0
----
1586
610
793

query I rowsort
SELECT ALL - 26 * + cor0.col2 + - col1 AS col0 FROM tab1 AS cor0
----
-1430
-1492
-2509

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9897
SELECT ALL - + CAST( + col1 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL - + CAST ( + col1 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - 32 FROM tab2, tab2 cor0, tab1 cor1, tab0 AS cor2
----
-32

query I rowsort
SELECT DISTINCT 50 - - col0 AS col1 FROM tab0
----
139
74
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-9900
SELECT DISTINCT - col2 - tab0.col2 DIV - ( col2 ) AS col1 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT - col2 - tab0.col2 / - ( col2 ) AS col1 FROM tab0
----
-32
-81
0

query I rowsort
SELECT ALL col2 + col0 - col1 AS col1 FROM tab1
----
111
163
31

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * + tab2.col0 * col0 IN ( + tab2.col1 + + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT - col0 - 46 FROM tab0 AS cor0
----
-135
-70
-81

query I rowsort
SELECT + col0 * col0 + 29 AS col1 FROM tab0 cor0
----
1254
605
7950

query I rowsort
SELECT DISTINCT col0 + - col1 * - col2 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT - col1 * + 87 * + col0 FROM tab0 AS cor0
----
-179568
-295365
-704613

query I rowsort
SELECT DISTINCT ( + col2 + ( - 80 ) ) FROM tab1
----
-23
-26
16

query I rowsort
SELECT + 31 FROM tab0, tab1, tab2 cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9909
SELECT + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9909
SELECT + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9910
SELECT DISTINCT col1 DIV - 60 + col2 AS col1 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-9910
SELECT DISTINCT col1 / - 60 + col2 AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - cor0.col2 * 23 FROM tab1 AS cor0
----
-1242
-1311
-2208

query I rowsort
SELECT DISTINCT - - col2 * - col1 AS col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + + col1 + - ( col0 + - col1 ) * + 11 AS col0 FROM tab1 AS cor0
----
-584
-724
279

query I rowsort
SELECT ALL - col0 + ( + col2 ) AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT - 49 + - col1 * + 85 * col2 FROM tab2
----
-130439
-54959
-71194

query I rowsort
SELECT ALL + + col2 * + col0 AS col1 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-9917
SELECT ALL + col0 + col2 DIV 66 + col2 FROM tab1
----
121
177
57

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL + col0 + col2 / 66 + col2 FROM tab1
----
121
177
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9918
SELECT - col0 DIV + col1 + col2 FROM tab2
----
25
27
34

skipif mysql # not compatible
query I rowsort label-9918
SELECT - col0 / + col1 + col2 FROM tab2
----
25
27
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-9919
SELECT DISTINCT - col2 - 3 DIV + ( col0 ) FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-9919
SELECT DISTINCT - col2 - 3 / + ( col0 ) FROM tab0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9920
SELECT col1 * CAST( + col2 AS SIGNED ) * - col1 AS col1 FROM tab0
----
-244068
-679042
-9409

skipif mysql # not compatible
query I rowsort label-9920
SELECT col1 * CAST ( + col2 AS INTEGER ) * - col1 AS col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT - col1 + tab1.col2 * col2 + col2 AS col1 FROM tab1
----
2944
3296
9299

query I rowsort
SELECT ALL - col2 * + ( 95 ) + col2 * + col1 + col2 AS col2 FROM tab2
----
-1701
-2926
-910

query I rowsort
SELECT + col2 + ( + 34 ) FROM tab1 AS cor0
----
130
88
91

query I rowsort
SELECT ALL col2 * tab1.col1 + + col0 AS col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT ALL + col2 + + 47 * col1 FROM tab1
----
1276
527
707

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT ALL + col2 + + col1 + + ( - col2 + - col1 * 48 ) FROM tab2 AS cor0
----
-1457
-2773
-799

query I rowsort
SELECT DISTINCT col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL + col1 + col1 + 74 AS col1 FROM tab0 AS cor0
----
246
256
268

onlyif mysql # use DIV operator for integer division
query I rowsort label-9930
SELECT 40 DIV + col1 + + col2 FROM tab2
----
26
28
40

skipif mysql # not compatible
query I rowsort label-9930
SELECT 40 / + col1 + + col2 FROM tab2
----
26
28
40

query I rowsort
SELECT ALL - 48 + col0 + - col0 * 65 FROM tab0
----
-1584
-2288
-5744

onlyif mysql # use DIV operator for integer division
query I rowsort label-9932
SELECT DISTINCT + 24 * cor0.col1 * - col1 + col0 + + col2 DIV col1 FROM tab0 AS cor0
----
-177480
-198655
-225781

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT + 24 * cor0.col1 * - col1 + col0 + + col2 / col1 FROM tab0 AS cor0
----
-177480
-198655
-225781

onlyif mysql # use DIV operator for integer division
query I rowsort label-9933
SELECT + 34 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9933
SELECT + 34 / + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 21 AS col2 FROM tab0 cor0
----
-21

query I rowsort
SELECT - 83 + + col2 * - col0 AS col2 FROM tab2 AS cor0
----
-2111
-272
-3085

onlyif mysql # use DIV operator for integer division
query I rowsort label-9936
SELECT ALL - - col2 * - col1 + - ( col0 ) DIV - col2 AS col2 FROM tab0 AS cor0
----
-2838
-62
-7461

skipif mysql # not compatible
query I rowsort label-9936
SELECT ALL - - col2 * - col1 + - ( col0 ) / - col2 AS col2 FROM tab0 AS cor0
----
-2838
-62
-7461

query I rowsort
SELECT DISTINCT + - 98 FROM tab0 AS cor0
----
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9938
SELECT + + cor0.col0 * col2 * CAST( + col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9938
SELECT + + cor0.col0 * col2 * CAST ( + col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT - 84 + - col2 AS col2 FROM tab0 AS cor0
----
-117
-166
-85

query I rowsort
SELECT DISTINCT + tab1.col0 + cor0.col2 FROM tab1, tab2 AS cor0, tab0, tab1 AS cor1
----
9 values hashing to 17e6537ffee10dccd14f4a1f12215238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( col2 ) col1 FROM tab2
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 * + col0 col2 FROM tab1
----
273
5824
7280

query I rowsort
SELECT ( col0 ) + - col2 AS col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT ALL 33 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT - ( 50 ) FROM tab2
----
-50
-50
-50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9946
SELECT CAST( - 38 AS SIGNED ) FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3

skipif mysql # not compatible
query I rowsort label-9946
SELECT CAST ( - 38 AS INTEGER ) FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3

query I rowsort
SELECT - ( + tab0.col2 ) * - col1 + col0 FROM tab0
----
132
2862
7551

query I rowsort
SELECT DISTINCT - ( + ( - col0 ) ) * col1 AS col1 FROM tab1
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9949
SELECT DISTINCT CAST( 11 AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
18
89
90

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT CAST ( 11 AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
18
89
90

query I rowsort
SELECT DISTINCT - 2 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-9951
SELECT DISTINCT - - 26 + + cor0.col2 DIV - col1 col2 FROM tab2 AS cor0
----
24
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9951
SELECT DISTINCT - - 26 + + cor0.col2 / - col1 col2 FROM tab2 AS cor0
----
24
26

query I rowsort
SELECT + col0 * - col2 * col2 AS col2 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT ALL + - col0 + 27 * + col0 AS col0 FROM tab2 cor0
----
182
2028
2054

query I rowsort
SELECT + tab2.col1 + - col1 * - 76 FROM tab2
----
1309
2387
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-9955
SELECT - col2 - col0 DIV col2 AS col1 FROM tab1 cor0
----
-54
-58
-96

skipif mysql # not compatible
query I rowsort label-9955
SELECT - col2 - col0 / col2 AS col1 FROM tab1 cor0
----
-54
-58
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9956
SELECT - - col1 * 44 + - 82 DIV - col0 + col1 AS col1 FROM tab1 AS cor0
----
1197
451
586

skipif mysql # not compatible
query I rowsort label-9956
SELECT - - col1 * 44 + - 82 / - col0 + col1 AS col1 FROM tab1 AS cor0
----
1197
451
586

query I rowsort
SELECT DISTINCT 15 + col0 * - col2 AS col1 FROM tab0
----
-20
-7283
-777

onlyif mysql # use DIV operator for integer division
query I rowsort label-9958
SELECT ALL 69 + cor0.col0 DIV - col0 FROM tab1 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-9958
SELECT ALL 69 + cor0.col0 / - col0 FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT ALL tab2.col0 * col0 + tab2.col2 FROM tab2
----
6110
6279
76

query I rowsort
SELECT ALL - 57 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505

query I rowsort
SELECT DISTINCT 92 * cor1.col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
2392
2484
3496

query I rowsort
SELECT ALL - col1 * ( col1 ) + col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9963
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9963
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 * cor0.col0 + 65 + col2 * + col2 * + col0 AS col0 FROM tab2 AS cor0
----
120382
5217
58877

query I rowsort
SELECT ALL cor0.col1 * col1 + - col1 + + col0 AS col2 FROM tab0 AS cor0
----
7334
8279
9347

onlyif mysql # use DIV operator for integer division
query I rowsort label-9966
SELECT - col0 DIV - ( 67 ) AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9966
SELECT - col0 / - ( 67 ) AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT col1 * - 56 AS col2 FROM tab2 AS cor0
----
-1736
-3304
-952

query I rowsort
SELECT col1 - + 95 AS col1 FROM tab2 AS cor0
----
-36
-64
-78

query I rowsort
SELECT + col2 * cor0.col0 - 44 FROM tab2 AS cor0
----
145
1984
2958

query I rowsort
SELECT + - cor0.col2 * + 31 + col1 FROM tab1 AS cor0
----
-1648
-1757
-2963

query I rowsort
SELECT DISTINCT col0 * 74 FROM tab2
----
518
5772
5846

query I rowsort
SELECT DISTINCT + 4 FROM tab2, tab2 AS cor0
----
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-9973
SELECT + col1 DIV 81 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9973
SELECT + col1 / 81 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 + col0 + + 69 FROM tab0
----
179
201
249

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9975
SELECT + + col0 * + CAST( NULL AS SIGNED ) + - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9975
SELECT + + col0 * + CAST ( NULL AS INTEGER ) + - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + 83 + col2 FROM tab1 AS cor0
----
4536
4788
8064

query I rowsort
SELECT + + ( + 57 ) * col1 + + col1 FROM tab1 AS cor0
----
1508
580
754

query I rowsort
SELECT 81 AS col2 FROM tab0 cor0
----
81
81
81

query I rowsort
SELECT - 57 + col1 FROM tab0 AS cor0
----
29
34
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 + + col1 col0 FROM tab1 AS cor0
----
-29
-42
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 + col2 col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT + ( 97 ) * + col1 + col0 * col0 FROM tab1 AS cor0
----
2531
5066
7661

query I rowsort
SELECT - - col1 * 33 + - col0 * ( 47 * col0 ) FROM tab1 AS cor0
----
-192182
-300371
435

query I rowsort
SELECT - - col1 * 42 FROM tab0 AS cor0
----
3612
3822
4074

query I rowsort
SELECT - - 22 * col2 FROM tab1 AS cor0
----
1188
1254
2112

query I rowsort
SELECT ALL 64 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT + col2 + col1 * - col1 AS col0 FROM tab0 cor0
----
-7363
-8199
-9408

query I rowsort
SELECT - col1 + col2 * ( - col0 ) FROM tab2 AS cor0
----
-2087
-220
-3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9989
SELECT DISTINCT cor0.col2 * col0 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT cor0.col2 * col0 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * col1 + + cor0.col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + 12 + - col1 + + 87 AS col1 FROM tab0 cor0
----
13
2
8

query I rowsort
SELECT ALL - col0 + col0 * ( col0 ) FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT - 22 + + col2 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
13
7276
770

query I rowsort
SELECT cor0.col1 + cor0.col0 + 3 AS col2 FROM tab0 cor0
----
113
135
183

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9995
SELECT DISTINCT col2 + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT col2 + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 - 70 AS col0 FROM tab1
----
-13
-16
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-9997
SELECT + col1 + tab0.col1 DIV + tab0.col0 AS col2 FROM tab0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-9997
SELECT + col1 + tab0.col1 / + tab0.col0 AS col2 FROM tab0
----
89
92
99

query I rowsort
SELECT ALL 78 - - tab2.col1 AS col2 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 7b2409733fab6af3b8db4db12ff1defb