sqllogictest
Artifact Content
Not logged in

Artifact c12d50f08ca1919341de2965801b4186c4f1f3ec:


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 - col0 * cor0.col1 + - cor0.col2 * col1 FROM tab2 AS cor0
----
-1054
-1989
-6136

query I rowsort
SELECT ALL - - col2 + 33 FROM tab2 AS cor0
----
59
60
71

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

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

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

skipif mysql # not compatible
query I rowsort label-4
SELECT + - col1 / + col2 + + col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT - col0 * + col0 - ( + col2 ) FROM tab1 AS cor0
----
-4153
-63
-6496

query I rowsort
SELECT col1 * 95 + col0 AS col0 FROM tab2 AS cor0
----
1694
2952
5683

query I rowsort
SELECT DISTINCT - - col1 * - col2 + + ( + col1 + - 78 ) FROM tab1 AS cor0
----
-1313
-1456
-638

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

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

query I rowsort
SELECT ALL 49 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

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

query I rowsort
SELECT ALL + ( - 14 ) + - col2 - + 67 AS col0 FROM tab2 AS cor0
----
-107
-108
-119

query I rowsort
SELECT - col2 + - 43 * + col2 AS col1 FROM tab0 AS cor0
----
-1452
-3608
-44

query I rowsort
SELECT DISTINCT + col1 + 48 * col0 FROM tab1 AS cor0
----
170
3082
3853

query I rowsort
SELECT + - col1 + 89 AS col1 FROM tab2 AS cor0
----
30
58
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - 65 ) + col2 col2 FROM tab0 AS cor0
----
-32
-64
17

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

query I rowsort
SELECT ALL - - col2 * col2 AS col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT + - 69 + + col0 AS col2 FROM tab2 AS cor0
----
-62
10
9

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

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

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

skipif mysql # not compatible
query I rowsort label-20
SELECT DISTINCT - cor0.col2 * cor0.col0 + col2 * - CAST ( cor0.col2 + col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
-1647
-3380
-5890

query I rowsort
SELECT cor0.col0 * - cor0.col1 + col2 + + col0 FROM tab1 cor0
----
-21
-519
-864

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

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

query I rowsort
SELECT - 90 * + col2 AS col1 FROM tab1 AS cor0
----
-4860
-5130
-8640

query I rowsort
SELECT ALL + 20 AS col2 FROM tab0 AS cor0
----
20
20
20

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-27
SELECT DISTINCT + + 73 DIV - col2 + col1 FROM tab1 AS cor0
----
13
25
9

skipif mysql # not compatible
query I rowsort label-27
SELECT DISTINCT + + 73 / - col2 + col1 FROM tab1 AS cor0
----
13
25
9

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

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

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

query I rowsort
SELECT DISTINCT + + col2 * + col2 + - cor0.col1 * 86 AS col1 FROM tab1 AS cor0
----
2389
680
8098

query I rowsort
SELECT DISTINCT 56 FROM tab0 AS cor0
----
56

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

query I rowsort
SELECT ALL + + col1 + 72 FROM tab1 AS cor0
----
82
85
98

query I rowsort
SELECT + cor0.col0 + ( - col2 ) * cor0.col2 * + col0 AS col0 FROM tab1 AS cor0
----
-207872
-737200
-8745

query I rowsort
SELECT DISTINCT - - col1 + - col2 - + 42 AS col0 FROM tab2 AS cor0
----
-38
-63
-9

query I rowsort
SELECT - 94 AS col1 FROM tab2
----
-94
-94
-94

onlyif mysql # use DIV operator for integer division
query I rowsort label-37
SELECT 96 DIV col2 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-37
SELECT 96 / col2 AS col2 FROM tab1
----
1
1
1

query I rowsort
SELECT - col1 + col2 * - col0 * + 70 - - col2 FROM tab1
----
-11312
-255313
-537517

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

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL + - cor0.col1 + cor0.col0 / + col0 AS col0 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT DISTINCT col1 - - col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT + col0 - - 30 FROM tab1 AS cor0
----
110
33
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 - col0 col1 FROM tab2
----
1365
598
722

query I rowsort
SELECT ALL 94 - - tab1.col0 FROM tab1
----
158
174
97

query I rowsort
SELECT 58 + col2 AS col0 FROM tab1
----
112
115
154

onlyif mysql # use DIV operator for integer division
query I rowsort label-45
SELECT ALL ( + col1 ) - - ( col2 + - col1 ) DIV - col1 AS col2 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL ( + col1 ) - - ( col2 + - col1 ) / - col1 AS col2 FROM tab0
----
86
91
97

query I rowsort
SELECT - col0 * + col0 * + 44 + col0 FROM tab1 AS cor0
----
-180160
-281520
-393

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

query I rowsort
SELECT ( - tab0.col0 ) * - col0 FROM tab0
----
1225
576
7921

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

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

query I rowsort
SELECT DISTINCT - cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
-24
-35
-89

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

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL col1 / col1 FROM tab0 AS cor0
----
1
1
1

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

query I rowsort
SELECT + col0 + 75 * col1 * - col2 AS col2 FROM tab0
----
-212826
-559561
-7240

query I rowsort
SELECT col0 * - col1 + 16 AS col0 FROM tab2
----
-1327
-201
-4586

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

skipif mysql # not compatible
query I rowsort label-56
SELECT + col2 + - 97 / 96 AS col0 FROM tab2
----
25
26
37

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

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

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

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

query I rowsort
SELECT ALL - col1 + + 33 FROM tab0 AS cor0
----
-53
-58
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) + col0 col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL - 76 * - col2 + col0 * - ( cor0.col0 * - col1 ) AS col0 FROM tab2 AS cor0
----
108985
3571
360932

query I rowsort
SELECT DISTINCT 49 * + 41 AS col1 FROM tab0 cor0
----
2009

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

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

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

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

query I rowsort
SELECT + 54 + col0 FROM tab2 AS cor0
----
132
133
61

query I rowsort
SELECT ALL ( 61 ) AS col2 FROM tab2 AS cor0
----
61
61
61

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-72
SELECT + ( + 42 ) * col1 DIV col0 FROM tab0 AS cor0
----
116
150
42

skipif mysql # not compatible
query I rowsort label-72
SELECT + ( + 42 ) * col1 / col0 FROM tab0 AS cor0
----
116
150
42

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-76
SELECT + CAST( col1 AS SIGNED ) * - col2 + 81 AS col2 FROM tab2 AS cor0
----
-1453
-565
-756

skipif mysql # not compatible
query I rowsort label-76
SELECT + CAST ( col1 AS INTEGER ) * - col2 + 81 AS col2 FROM tab2 AS cor0
----
-1453
-565
-756

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

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

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

query I rowsort
SELECT tab2.col0 - col0 * - col2 AS col2 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ( 6 ) * col0 FROM tab2 cor0
----
42
468
474

query I rowsort
SELECT ( 53 + col1 ) * col2 FROM tab2
----
2268
2660
2912

query I rowsort
SELECT ALL - 31 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT 95 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

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

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

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

query I rowsort
SELECT ALL 41 FROM tab1, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-88
SELECT + col2 DIV col1 + col2 * 82 FROM tab0 AS cor0
----
2706
6724
82

skipif mysql # not compatible
query I rowsort label-88
SELECT + col2 / col1 + col2 * 82 FROM tab0 AS cor0
----
2706
6724
82

query I rowsort
SELECT ( - col2 ) * ( 54 * col2 ) - - col1 FROM tab0 AS cor0
----
-363005
-58720
43

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

skipif mysql # not compatible
query I rowsort label-90
SELECT ( tab1.col0 ) / col2 FROM tab1
----
0
0
1

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

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

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

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

query I rowsort
SELECT col1 * - 16 FROM tab0 AS cor0
----
-1376
-1456
-1552

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-96
SELECT DISTINCT + col2 + ( col1 ) * col2 DIV col2 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-96
SELECT DISTINCT + col2 + ( col1 ) * col2 / col2 FROM tab0 AS cor0
----
119
173
98

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

query I rowsort
SELECT DISTINCT 94 * 56 * + cor1.col0 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
126336
184240
468496

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

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

query I rowsort
SELECT cor0.col2 * - col1 + 18 AS col2 FROM tab2 AS cor0
----
-1516
-628
-819

query I rowsort
SELECT DISTINCT col1 + + col1 FROM tab0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 * + col1 + ( - tab1.col1 ) col1 FROM tab1
----
1040
400
520

query I rowsort
SELECT ALL + 50 + col1 AS col2 FROM tab2
----
109
67
81

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col0 col2 FROM tab0, tab2, tab0 AS cor0
----
-24
-35
-89

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-110
SELECT DISTINCT - col2 + + col2 DIV + 38 FROM tab0 cor0
----
-1
-33
-80

skipif mysql # not compatible
query I rowsort label-110
SELECT DISTINCT - col2 + + col2 / + 38 FROM tab0 cor0
----
-1
-33
-80

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * cor0.col1 + + col1 * col0 col2 FROM tab0 AS cor0
----
12804
16380
9460

query I rowsort
SELECT col2 + - cor0.col2 * 10 FROM tab2 AS cor0
----
-234
-243
-342

query I rowsort
SELECT DISTINCT + cor0.col0 * ( 55 * col0 ) + 31 * - 58 AS col2 FROM tab0 AS cor0
----
29882
433857
65577

query I rowsort
SELECT ALL - - col1 * 19 FROM tab2 AS cor0
----
1121
323
589

query I rowsort
SELECT + + col2 * - cor0.col0 + 22 * col1 * ( - cor0.col2 * + col1 ) AS col0 FROM tab0 AS cor0
----
-14946222
-207033
-5370288

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + 44 * - col1 FROM tab2 AS cor0
----
-1553
-3750
-4624

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

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

skipif mysql # not compatible
query I rowsort label-123
SELECT ALL col1 / col0 + 41 / - col2 AS col1 FROM tab0 cor0
----
-39
1
2

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

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

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

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

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

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

query I rowsort
SELECT ALL - col2 + + cor0.col1 - col1 FROM tab0 AS cor0
----
-1
-33
-82

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

query I rowsort
SELECT 43 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

query I rowsort
SELECT + 19 - - 47 FROM tab0 AS cor0
----
66
66
66

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

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

query I rowsort
SELECT DISTINCT 97 FROM tab2 AS cor0
----
97

query I rowsort
SELECT + + col2 + + 20 + - col0 AS col1 FROM tab0 AS cor0
----
-14
13
29

query I rowsort
SELECT + 58 * - col0 - - col1 AS col1 FROM tab0 AS cor0
----
-1306
-1933
-5071

query I rowsort
SELECT DISTINCT - + 91 * 48 FROM tab2 cor0
----
-4368

query I rowsort
SELECT + col0 + - col1 * + col1 FROM tab1 cor0
----
-36
-673
-89

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

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

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

query I rowsort
SELECT ALL + 26 * col0 + + ( 99 ) FROM tab2 AS cor0
----
2127
2153
281

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

query I rowsort
SELECT - - col0 AS col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT + - 17 + col0 FROM tab1 AS cor0
----
-14
47
63

query I rowsort
SELECT col2 + col1 - col0 * + col1 * col2 AS col2 FROM tab1 cor0
----
-36413
-4132
-99731

query I rowsort
SELECT + col2 + col1 * + col2 - col0 FROM tab0 AS cor0
----
2847
63
7455

query I rowsort
SELECT DISTINCT tab1.col0 * ( + col2 ) + - ( + col1 ) - col1 AS col0 FROM tab1
----
110
3628
7654

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

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

query I rowsort
SELECT + + 6 + - col2 AS col1 FROM tab1 AS cor0
----
-48
-51
-90

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

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL - 57 / col0 FROM tab2 AS cor0
----
-8
0
0

query I rowsort
SELECT DISTINCT - 57 * col1 FROM tab0 cor0
----
-4902
-5187
-5529

query I rowsort
SELECT + 47 * col2 FROM tab1 AS cor0
----
2538
2679
4512

query I rowsort
SELECT ALL 98 - 47 AS col0 FROM tab2
----
51
51
51

query I rowsort
SELECT DISTINCT 41 + - col0 FROM tab2
----
-37
-38
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 * + col2 ) - col1 col2 FROM tab2
----
1427
617
698

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

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

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

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

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

query I rowsort
SELECT - - ( - col1 ) * 18 + 53 FROM tab1 AS cor0
----
-127
-181
-415

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

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

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

query I rowsort
SELECT - 5 + + cor0.col1 * - 30 FROM tab2 cor0
----
-1775
-515
-935

query I rowsort
SELECT DISTINCT + 70 AS col0 FROM tab2 AS cor0
----
70

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

query I rowsort
SELECT - col1 + col2 * - 10 AS col0 FROM tab1 AS cor0
----
-566
-580
-973

query I rowsort
SELECT 4 + col1 AS col0 FROM tab1
----
14
17
30

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

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

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

query I rowsort
SELECT ALL col1 + ( ( col0 ) ) * 70 AS col0 FROM tab2 AS cor0
----
521
5519
5547

query I rowsort
SELECT ALL - col1 * - 50 FROM tab0
----
4300
4550
4850

query I rowsort
SELECT + cor2.col0 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

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

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

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + 10 AS REAL ) * + col0 FROM tab1
----
30
640
800

query I rowsort
SELECT - 68 FROM tab1, tab1 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
7
78
79

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

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

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

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

query I rowsort
SELECT 77 FROM tab1 cor0
----
77
77
77

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

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

query I rowsort
SELECT DISTINCT + col0 * 54 AS col1 FROM tab0 cor0
----
1296
1890
4806

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

query I rowsort
SELECT DISTINCT + + col0 + - 56 AS col2 FROM tab1 AS cor0
----
-53
24
8

query I rowsort
SELECT + - col0 + + 75 AS col0 FROM tab2 AS cor0
----
-3
-4
68

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-194
SELECT + col1 * - CAST( 20 AS SIGNED ) FROM tab2 AS cor0
----
-1180
-340
-620

skipif mysql # not compatible
query I rowsort label-194
SELECT + col1 * - CAST ( 20 AS INTEGER ) FROM tab2 AS cor0
----
-1180
-340
-620

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

query I rowsort
SELECT ALL - col2 + + col2 * col0 * col0 AS col1 FROM tab2 AS cor0
----
1296
158158
237120

query I rowsort
SELECT col1 - 71 FROM tab0 AS cor0
----
15
20
26

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

query I rowsort
SELECT + - col0 + 95 * col2 AS col0 FROM tab2 cor0
----
2392
2558
3531

query I rowsort
SELECT DISTINCT + tab1.col2 + 67 * 78 FROM tab1
----
5280
5283
5322

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

query I rowsort
SELECT + cor0.col1 * 67 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 02de1a2a941f433a47ca39202cef916f

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

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

query I rowsort
SELECT + - 76 FROM tab1 AS cor0
----
-76
-76
-76

query I rowsort
SELECT ALL 0 * col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + 67 FROM tab2
----
67
67
67

query I rowsort
SELECT ALL - - 63 + - col0 - + col0 AS col0 FROM tab1 AS cor0
----
-65
-97
57

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-211
SELECT DISTINCT - col0 * + col2 * col1 - + col2 DIV col0 FROM tab2 AS cor0
----
-119652
-51034
-5862

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT - col0 * + col2 * col1 - + col2 / col0 FROM tab2 AS cor0
----
-119652
-51034
-5862

query I rowsort
SELECT - cor0.col0 * col2 * col0 AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-213
SELECT ALL - - col1 * ( - 78 ) DIV + col2 AS col2 FROM tab1 AS cor0
----
-10
-13
-37

skipif mysql # not compatible
query I rowsort label-213
SELECT ALL - - col1 * ( - 78 ) / + col2 AS col2 FROM tab1 AS cor0
----
-10
-13
-37

query I rowsort
SELECT DISTINCT - 78 AS col2 FROM tab1, tab1 cor0, tab1 cor1
----
-78

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

query I rowsort
SELECT - col1 * 14 - - col1 FROM tab1
----
-130
-169
-338

query I rowsort
SELECT 0 FROM tab2, tab2 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

query I rowsort
SELECT ALL ( + 66 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

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

query I rowsort
SELECT + col0 - + 5 FROM tab1
----
-2
59
75

query I rowsort
SELECT + col1 * - col2 + + col2 * + col2 FROM tab0
----
-1749
-738
-96

query I rowsort
SELECT - - col2 * + 10 AS col2 FROM tab2 AS cor0
----
260
270
380

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

query I rowsort
SELECT 47 * + col0 FROM tab0
----
1128
1645
4183

query I rowsort
SELECT - 42 * + col0 FROM tab0
----
-1008
-1470
-3738

query I rowsort
SELECT 96 * col2 * + col1 FROM tab0
----
272448
716352
9312

query I rowsort
SELECT DISTINCT + 13 FROM tab2
----
13

query I rowsort
SELECT 24 + 18 * - cor0.col1 * + ( col0 ) AS col1 FROM tab2 cor0
----
-24150
-3882
-82812

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-231
SELECT - col0 DIV - col2 + col0 + + cor0.col2 FROM tab0 AS cor0
----
172
57
71

skipif mysql # not compatible
query I rowsort label-231
SELECT - col0 / - col2 + col0 + + cor0.col2 FROM tab0 AS cor0
----
172
57
71

query I rowsort
SELECT col0 * col2 + + 95 + + 46 FROM tab1 AS cor0
----
303
3789
7821

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-233
SELECT + col1 * col0 + CAST( col2 * + col0 AS SIGNED ) + 93 FROM tab1 AS cor0
----
333
4381
8813

skipif mysql # not compatible
query I rowsort label-233
SELECT + col1 * col0 + CAST ( col2 * + col0 AS INTEGER ) + 93 FROM tab1 AS cor0
----
333
4381
8813

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-236
SELECT DISTINCT - tab1.col2 - - CAST( - col2 AS SIGNED ) * col2 * ( - col1 * col2 ) FROM tab1
----
11501472
1851873
4094010

skipif mysql # not compatible
query I rowsort label-236
SELECT DISTINCT - tab1.col2 - - CAST ( - col2 AS INTEGER ) * col2 * ( - col1 * col2 ) FROM tab1
----
11501472
1851873
4094010

query I rowsort
SELECT + col0 + - col1 + - col2 * + col2 AS col0 FROM tab0
----
-1151
-63
-6726

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

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

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

query I rowsort
SELECT - tab2.col0 + col2 * col2 + col2 FROM tab2
----
1403
624
749

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-241
SELECT DISTINCT - - CAST( - col0 AS SIGNED ) * col1 + col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

skipif mysql # not compatible
query I rowsort label-241
SELECT DISTINCT - - CAST ( - col0 AS INTEGER ) * col1 + col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

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

query I rowsort
SELECT DISTINCT col2 * ( cor0.col2 + + cor0.col2 ) FROM tab0 cor0
----
13448
2
2178

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

query I rowsort
SELECT - col2 + - 82 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-7085
-7544
-7955

query I rowsort
SELECT - ( - 29 ) * + col0 FROM tab0 AS cor0
----
1015
2581
696

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

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

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

query I rowsort
SELECT DISTINCT - col2 * - 10 * - col0 FROM tab2
----
-1890
-20280
-30020

query I rowsort
SELECT ALL + + col2 * + 44 + cor0.col0 FROM tab2 AS cor0
----
1195
1222
1751

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

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

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

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

query I rowsort
SELECT ALL - + 19 * + col1 + - col0 AS col2 FROM tab0 cor0
----
-1658
-1818
-1878

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

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

query I rowsort
SELECT + + 56 + + col1 AS col0 FROM tab2 AS cor0
----
115
73
87

query I rowsort
SELECT + - 60 * - cor0.col1 FROM tab1 AS cor0
----
1560
600
780

query I rowsort
SELECT ALL 42 + - col2 AS col1 FROM tab1 cor0
----
-12
-15
-54

query I rowsort
SELECT DISTINCT - - 80 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-11
-17
-6

query I rowsort
SELECT DISTINCT - ( col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + + 93 * col1 + + col2 FROM tab2 AS cor0
----
1619
2910
5513

query I rowsort
SELECT ALL - ( + col1 ) + 58 AS col1 FROM tab2 AS cor0
----
-1
27
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-264
SELECT DISTINCT - 99 + col1 DIV col0 - col0 FROM tab0 cor0
----
-120
-132
-187

skipif mysql # not compatible
query I rowsort label-264
SELECT DISTINCT - 99 + col1 / col0 - col0 FROM tab0 cor0
----
-120
-132
-187

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

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT col0 * cor0.col1 * - CAST ( + col1 AS INTEGER ) + + col1 + - col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL + 25 FROM tab1 AS cor0
----
25
25
25

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

query I rowsort
SELECT ALL + ( col0 ) + 28 FROM tab1 cor0
----
108
31
92

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

query I rowsort
SELECT - - 65 + - col1 FROM tab0 AS cor0
----
-21
-26
-32

query I rowsort
SELECT DISTINCT + - 32 AS col2 FROM tab2 AS cor0
----
-32

query I rowsort
SELECT ALL - + col1 * - col1 + 59 FROM tab2 AS cor0
----
1020
348
3540

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * col0 + col2 * col0 * ( + col2 + - col1 ) FROM tab0 AS cor0
----
-44040
-6755
-73781

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

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

query I rowsort
SELECT ALL + cor0.col0 * + 95 FROM tab2 AS cor0
----
665
7410
7505

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab0 cor0
----
-1
-33
-82

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

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

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

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

query I rowsort
SELECT ALL + cor0.col0 + + ( col1 ) * - col1 * - col1 FROM tab0 AS cor0
----
636080
753660
912708

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

query I rowsort
SELECT - - col2 * 40 AS col1 FROM tab0 cor0
----
1320
3280
40

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

query I rowsort
SELECT ALL 79 * - col0 FROM tab1
----
-237
-5056
-6320

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

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

query I rowsort
SELECT DISTINCT + 33 * - cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-1089
-2706
-33

query I rowsort
SELECT ALL col0 * + col2 + + 21 * col0 FROM tab1 AS cor0
----
225
4992
9360

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

query I rowsort
SELECT + 96 FROM tab1, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT ALL - 93 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba

query I rowsort
SELECT - tab0.col1 + - ( tab0.col1 + - col2 * - col0 ) FROM tab0
----
-229
-7480
-964

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-300
SELECT + ( col2 ) + - col1 * + CAST( col1 * tab1.col1 AS SIGNED ) FROM tab1
----
-17522
-2101
-943

skipif mysql # not compatible
query I rowsort label-300
SELECT + ( col2 ) + - col1 * + CAST ( col1 * tab1.col1 AS INTEGER ) FROM tab1
----
-17522
-2101
-943

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

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

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

query I rowsort
SELECT tab1.col1 + + 4 FROM tab1
----
14
17
30

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab2, tab2 cor1
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

query I rowsort
SELECT DISTINCT - col0 + - col0 AS col0 FROM tab1
----
-128
-160
-6

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

skipif mysql # not compatible
query I rowsort label-306
SELECT - CAST ( NULL AS INTEGER ) * 48 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 25 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT + 71 + - col2 FROM tab1
----
-25
14
17

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 col1 FROM tab1
----
-16
-51
7

query I rowsort
SELECT 96 + + col1 * col2 AS col0 FROM tab0 AS cor0
----
193
2934
7558

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

skipif mysql # not compatible
query I rowsort label-312
SELECT DISTINCT col2 / + col0 AS col2 FROM tab2 AS cor0
----
0
3

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

query I rowsort
SELECT + 55 + col0 AS col2 FROM tab1 AS cor0
----
119
135
58

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

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

query I rowsort
SELECT ALL 24 + - col1 * + col0 FROM tab2 AS cor0
----
-1319
-193
-4578

query I rowsort
SELECT ALL - col0 * - col0 + - 4 FROM tab1 AS cor0
----
4092
5
6396

query I rowsort
SELECT - 71 + tab1.col1 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 97d1cfd9c7ad17018991511efb7ee903

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

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

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

skipif mysql # not compatible
query I rowsort label-321
SELECT + - CAST ( 87 AS INTEGER ) FROM tab2 AS cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT - - 69 * - col2 + cor0.col0 AS col2 FROM tab0 cor0
----
-2253
-34
-5569

query I rowsort
SELECT DISTINCT col1 - - col0 * + col1 * + col2 FROM tab1 AS cor0
----
36490
4238
99853

query I rowsort
SELECT + ( - 60 ) + + col0 * + 2 FROM tab0 AS cor0
----
-12
10
118

query I rowsort
SELECT ALL - + col1 + 84 FROM tab2 AS cor0
----
25
53
67

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

query I rowsort
SELECT DISTINCT - col0 + - col1 + + col2 FROM tab2 AS cor0
----
-11
-111
-58

query I rowsort
SELECT ALL - 90 AS col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to c0d96679aba507520916e8654e5a6618

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

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

skipif mysql # not compatible
query I rowsort label-330
SELECT DISTINCT col1 / col1 FROM tab1
----
1

query I rowsort
SELECT DISTINCT - col0 * 93 * col2 AS col2 FROM tab1 AS cor0
----
-15066
-339264
-714240

onlyif mysql # use DIV operator for integer division
query I rowsort label-332
SELECT - col0 + col0 DIV + cor0.col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-332
SELECT - col0 + col0 / + cor0.col0 FROM tab2 AS cor0
----
-6
-77
-78

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

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

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

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

query I rowsort
SELECT DISTINCT + cor0.col0 + 49 + - cor0.col1 * cor0.col2 FROM tab2 AS cor0
----
-1407
-518
-781

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 + col0 col2 FROM tab2
----
102
103
31

query I rowsort
SELECT - col0 * - cor0.col2 * + 82 + col0 FROM tab1 AS cor0
----
13287
299200
629840

query I rowsort
SELECT col1 + 68 * cor0.col1 AS col0 FROM tab0 AS cor0
----
5934
6279
6693

query I rowsort
SELECT + col1 * - ( + cor0.col2 ) + + col0 * + col1 AS col2 FROM tab1 AS cor0
----
-1326
-208
70

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

query I rowsort
SELECT col1 * col2 + 23 * + col2 FROM tab2 AS cor0
----
1458
1520
2132

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

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

query I rowsort
SELECT + 33 AS col0 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT - col1 + - 95 * - col0 FROM tab1
----
259
6070
7587

query I rowsort
SELECT - col1 * col1 + + 99 AS col2 FROM tab2
----
-190
-3382
-862

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

query I rowsort
SELECT 70 * - col0 FROM tab2 AS cor0
----
-490
-5460
-5530

query I rowsort
SELECT ALL 76 * - col0 + col0 FROM tab1 AS cor0
----
-225
-4800
-6000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-351
SELECT 68 * + 35 * col1 + - CAST( col2 AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
203591
209856
230859

skipif mysql # not compatible
query I rowsort label-351
SELECT 68 * + 35 * col1 + - CAST ( col2 AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
203591
209856
230859

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

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

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

query I rowsort
SELECT DISTINCT - col0 * 58 FROM tab2 AS cor0
----
-406
-4524
-4582

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 * ( col0 ) + ( + col0 ) * + col2 col0 FROM tab1
----
1792
5360
75

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

query I rowsort
SELECT DISTINCT + ( tab2.col0 ) * col0 * + 98 + + tab2.col2 * col1 FROM tab2
----
5639
597766
612264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 + + 4 col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT + col2 * cor0.col0 - col2 FROM tab1 AS cor0
----
108
3591
7584

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

query I rowsort
SELECT ALL - 59 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f

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

skipif mysql # not compatible
query I rowsort label-366
SELECT - col2 / col0 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-367
SELECT 57 DIV - col1 FROM tab2
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-367
SELECT 57 / - col1 FROM tab2
----
-1
-3
0

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

query I rowsort
SELECT + col0 * 9 FROM tab0 AS cor0
----
216
315
801

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

query I rowsort
SELECT ALL - cor0.col2 * cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f7e57a354e4e5925116b9650d1011609

onlyif mysql # use DIV operator for integer division
query I rowsort label-372
SELECT + col2 DIV + 9 - 70 FROM tab0 AS cor0
----
-61
-67
-70

skipif mysql # not compatible
query I rowsort label-372
SELECT + col2 / + 9 - 70 FROM tab0 AS cor0
----
-61
-67
-70

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

query I rowsort
SELECT + - cor0.col2 * - col1 + 56 FROM tab0 AS cor0
----
153
2894
7518

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

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

query I rowsort
SELECT + col2 * + col1 + col0 * - col2 FROM tab1 AS cor0
----
-3078
-6432
1242

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 col0 * col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

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

query I rowsort
SELECT DISTINCT 57 * col0 FROM tab2
----
399
4446
4503

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

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

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

query I rowsort
SELECT - col1 * tab2.col2 + + 32 + col1 AS col0 FROM tab2
----
-1443
-597
-774

query I rowsort
SELECT col1 * + tab0.col1 * col1 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT col2 + col2 + ( col2 * 76 ) FROM tab2
----
2028
2106
2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * + 45 + - cor0.col0 col2 FROM tab0 AS cor0
----
-1509
-3779
-80

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

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

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

query I rowsort
SELECT ALL col2 + 86 AS col2 FROM tab1 AS cor0
----
140
143
182

query I rowsort
SELECT ALL + col1 + 80 FROM tab1
----
106
90
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-393
SELECT ALL col2 * col2 + tab1.col1 + + col1 DIV + col1 AS col2 FROM tab1
----
2943
3260
9230

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL col2 * col2 + tab1.col1 + + col1 / + col1 AS col2 FROM tab1
----
2943
3260
9230

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

skipif mysql # not compatible
query I rowsort label-394
SELECT col0 * + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-395
SELECT ALL ( - 97 ) DIV + col0 FROM tab2
----
-1
-1
-13

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL ( - 97 ) / + col0 FROM tab2
----
-1
-1
-13

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

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( 98 AS REAL ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT ALL + 56 + col1 AS col1 FROM tab1 AS cor0
----
66
69
82

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

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

query I rowsort
SELECT DISTINCT 29 * col2 AS col1 FROM tab1 AS cor0
----
1566
1653
2784

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-406
SELECT + 21 + - col2 DIV - 76 FROM tab1 cor0
----
21
21
22

skipif mysql # not compatible
query I rowsort label-406
SELECT + 21 + - col2 / - 76 FROM tab1 cor0
----
21
21
22

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

skipif mysql # not compatible
query I rowsort label-407
SELECT ALL + + col1 * + col1 + + CAST ( col2 AS INTEGER ) * - col2 + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-4157
43
777

query I rowsort
SELECT DISTINCT + 54 * + col1 AS col0 FROM tab2 AS cor0
----
1674
3186
918

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

query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-411
SELECT DISTINCT + 68 DIV col1 AS col1 FROM tab1
----
2
5
6

skipif mysql # not compatible
query I rowsort label-411
SELECT DISTINCT + 68 / col1 AS col1 FROM tab1
----
2
5
6

query I rowsort
SELECT 34 + col1 * - col0 FROM tab0
----
-2030
-3361
-8065

query I rowsort
SELECT ALL + col0 * - col2 - 11 * + 16 * col1 AS col1 FROM tab2 AS cor0
----
-12412
-5645
-5994

query I rowsort
SELECT - cor0.col0 * cor0.col1 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f

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

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

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

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

query I rowsort
SELECT ALL ( - tab2.col2 ) FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-420
SELECT ALL ( col0 ) * 86 DIV 53 + cor0.col1 AS col1 FROM tab0 AS cor0
----
124
153
235

skipif mysql # not compatible
query I rowsort label-420
SELECT ALL ( col0 ) * 86 / 53 + cor0.col1 AS col1 FROM tab0 AS cor0
----
124
153
235

query I rowsort
SELECT + col2 + + col2 * - 34 AS col2 FROM tab0 AS cor0
----
-1089
-2706
-33

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

query I rowsort
SELECT col2 + - 79 AS col2 FROM tab2 AS cor0
----
-41
-52
-53

query I rowsort
SELECT + - col0 * + 66 AS col2 FROM tab1 cor0
----
-198
-4224
-5280

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

query I rowsort
SELECT DISTINCT - + col1 * + 89 FROM tab2 cor0
----
-1513
-2759
-5251

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - 70 col2 FROM tab0 AS cor0
----
-37
-69
12

query I rowsort
SELECT DISTINCT + 83 * col0 FROM tab2
----
581
6474
6557

query I rowsort
SELECT DISTINCT col2 * + col2 AS col1 FROM tab1
----
2916
3249
9216

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 - cor0.col2 * - col2 AS col0 FROM tab2 AS cor0
----
1461
735
760

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

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

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

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

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

query I rowsort
SELECT DISTINCT + cor0.col1 + col2 * col2 * col0 FROM tab1 AS cor0
----
207946
737293
8774

query I rowsort
SELECT 88 + - col1 AS col1 FROM tab0 AS cor0
----
-3
-9
2

query I rowsort
SELECT ALL + + 38 * + col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
2078
2176
3661

query I rowsort
SELECT DISTINCT - 89 FROM tab2 AS cor0
----
-89

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

query I rowsort
SELECT DISTINCT + col2 * - ( + col1 * + 93 ) + - cor0.col1 - + col1 FROM tab0 AS cor0
----
-264106
-694148
-9215

query I rowsort
SELECT ALL - 78 + col0 AS col0 FROM tab0 cor0
----
-43
-54
11

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-449
SELECT - col1 DIV + 54 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-449
SELECT - col1 / + 54 AS col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT + col2 + col1 - col1 AS col1 FROM tab0
----
1
33
82

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + 82 * col2 * - cor0.col0 col1 FROM tab2 AS cor0
----
-15529
-166355
-246181

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

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

query I rowsort
SELECT ALL + - col1 * 88 AS col0 FROM tab2 AS cor0
----
-1496
-2728
-5192

query I rowsort
SELECT DISTINCT + 93 * 16 AS col2 FROM tab1 AS cor0
----
1488

query I rowsort
SELECT ALL + 97 * cor0.col0 FROM tab0 AS cor0
----
2328
3395
8633

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

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

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab1, tab2 AS cor1
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14

query I rowsort
SELECT + 39 + - cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 28c5fefdf864b5f7d50fb003217904e5

query I rowsort
SELECT + col1 * + cor0.col0 * col2 + 68 * 53 FROM tab1 AS cor0
----
103444
40084
7816

query I rowsort
SELECT + col2 + 5 AS col0 FROM tab2 AS cor0
----
31
32
43

query I rowsort
SELECT + - 59 * - col0 + + col2 * 99 + - 52 AS col2 FROM tab2 AS cor0
----
3034
7124
8371

onlyif mysql # use DIV operator for integer division
query I rowsort label-464
SELECT DISTINCT + col0 DIV 59 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-464
SELECT DISTINCT + col0 / 59 FROM tab1
----
0
1

query I rowsort
SELECT ( 20 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT tab2.col0 * - ( 55 ) * col2 FROM tab2
----
-10395
-111540
-165110

query I rowsort
SELECT ALL ( 51 ) FROM tab2, tab0 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

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

query I rowsort
SELECT + - 13 * - col2 AS col1 FROM tab0 cor0
----
1066
13
429

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

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

skipif mysql # not compatible
query I rowsort label-471
SELECT - - col1 + col1 / col0 AS col0 FROM tab2 AS cor0
----
17
35
59

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

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

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

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

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

query I rowsort
SELECT DISTINCT 72 + cor0.col0 FROM tab1 AS cor0
----
136
152
75

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col2 + col2 col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL + 27 * cor0.col1 FROM tab1 cor0
----
270
351
702

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

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

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

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

query I rowsort
SELECT + - col1 + 47 + - cor0.col0 FROM tab1 AS cor0
----
-27
-46
18

query I rowsort
SELECT - col1 * - 2 * col1 FROM tab2 AS cor0
----
1922
578
6962

onlyif mysql # use DIV operator for integer division
query I rowsort label-487
SELECT + col0 DIV - col2 + + col2 FROM tab0 AS cor0
----
-34
33
81

skipif mysql # not compatible
query I rowsort label-487
SELECT + col0 / - col2 + + col2 FROM tab0 AS cor0
----
-34
33
81

query I rowsort
SELECT - col0 + - 81 * col1 * + col2 FROM tab2 AS cor0
----
-124332
-52405
-67804

query I rowsort
SELECT col2 + + col2 + + ( 7 * - col0 ) AS col2 FROM tab1
----
-334
-368
87

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

query I rowsort
SELECT + col1 + ( col1 ) AS col0 FROM tab2
----
118
34
62

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

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

query I rowsort
SELECT ALL col1 - col0 * 14 FROM tab0
----
-1155
-250
-393

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163

query I rowsort
SELECT - col2 + + 10 FROM tab1 AS cor0
----
-44
-47
-86

query I rowsort
SELECT DISTINCT - + col2 * col2 + - cor0.col0 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT DISTINCT + cor0.col2 * ( - 83 ) FROM tab2 AS cor0
----
-2158
-2241
-3154

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

query I rowsort
SELECT ALL + + col1 * + 21 AS col2 FROM tab1 AS cor0
----
210
273
546

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

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

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

query I rowsort
SELECT ALL - 9 + + 66 AS col2 FROM tab2 AS cor0
----
57
57
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-504
SELECT + - 43 DIV - col1 + + col0 * - ( + col0 * cor0.col2 ) FROM tab1 AS cor0
----
-233468
-485
-614397

skipif mysql # not compatible
query I rowsort label-504
SELECT + - 43 / - col1 + + col0 * - ( + col0 * cor0.col2 ) FROM tab1 AS cor0
----
-233468
-485
-614397

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 82 col0 FROM tab0 AS cor0
----
168
173
179

query I rowsort
SELECT ALL + cor0.col0 * 90 + col2 + - col1 AS col1 FROM tab1 AS cor0
----
298
5807
7283

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

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

query I rowsort
SELECT - + ( col0 ) + - col2 + - col0 AS col2 FROM tab1 AS cor0
----
-185
-256
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 + cor0.col0 col0 FROM tab0 AS cor0
----
105
267
72

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

query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + col2 * 10 + - col1 AS col0 FROM tab1 AS cor0
----
514
560
947

onlyif mysql # use DIV operator for integer division
query I rowsort label-514
SELECT - + 21 + - col2 DIV - col1 + col1 AS col1 FROM tab0 AS cor0
----
65
70
76

skipif mysql # not compatible
query I rowsort label-514
SELECT - + 21 + - col2 / - col1 + col1 AS col1 FROM tab0 AS cor0
----
65
70
76

query I rowsort
SELECT ALL + cor1.col0 * 73 FROM tab2 cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to b6cd3c5394a43917371ddebc3e7e6673

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

query I rowsort
SELECT - cor0.col1 + 23 + 91 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 9d7bc2cd6365716a0a177adbed58eea7

query I rowsort
SELECT ALL - 73 FROM tab2 AS cor0
----
-73
-73
-73

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

query I rowsort
SELECT ALL - 55 + col0 * + col1 * + col1 FROM tab0 AS cor0
----
177449
329260
736954

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

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

query I rowsort
SELECT DISTINCT + + col2 + + cor0.col1 * - ( + col1 * - col0 + - col1 ) FROM tab0 cor0
----
184933
338725
745372

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-525
SELECT DISTINCT - col0 DIV 24 + - col2 FROM tab2 AS cor0
----
-27
-29
-41

skipif mysql # not compatible
query I rowsort label-525
SELECT DISTINCT - col0 / 24 + - col2 FROM tab2 AS cor0
----
-27
-29
-41

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

query I rowsort
SELECT ALL + 17 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-528
SELECT ALL CAST( col2 AS SIGNED ) - col1 FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL CAST ( col2 AS INTEGER ) - col1 FROM tab2 AS cor0
----
-33
-4
21

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-531
SELECT DISTINCT - CAST( + 94 AS SIGNED ) + col0 col1 FROM tab0 AS cor0
----
-5
-59
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-531
SELECT DISTINCT - CAST ( + 94 AS INTEGER ) + col0 col1 FROM tab0 AS cor0
----
-5
-59
-70

query I rowsort
SELECT DISTINCT + cor1.col1 FROM tab2, tab0 cor0, tab1 AS cor1
----
10
13
26

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

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

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

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

query I rowsort
SELECT DISTINCT - 33 FROM tab0
----
-33

query I rowsort
SELECT - 13 FROM tab1
----
-13
-13
-13

onlyif mysql # use DIV operator for integer division
query I rowsort label-539
SELECT + col1 * + col1 * col0 + 63 DIV - tab2.col0 FROM tab2
----
22831
271518
6718

skipif mysql # not compatible
query I rowsort label-539
SELECT + col1 * + col1 * col0 + 63 / - tab2.col0 FROM tab2
----
22831
271518
6718

query I rowsort
SELECT DISTINCT - + col2 * cor0.col2 + - 71 FROM tab2 AS cor0
----
-1515
-747
-800

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

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

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

query I rowsort
SELECT ALL + + col1 * col2 - col2 * + ( + col0 ) AS col2 FROM tab1 AS cor0
----
-3078
-6432
1242

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 + + 68 * col1 col1 FROM tab2 AS cor0
----
-187
-590
1891

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

query I rowsort
SELECT tab1.col0 + col1 * - col1 FROM tab1
----
-36
-673
-89

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

query I rowsort
SELECT DISTINCT + 86 * col0 * + col0 FROM tab0
----
105350
49536
681206

query I rowsort
SELECT - + col1 * cor0.col0 * 63 AS col1 FROM tab1 cor0
----
-40320
-4914
-65520

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

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

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

query I rowsort
SELECT ALL col1 * + col1 FROM tab1
----
100
169
676

query I rowsort
SELECT + + col1 + + 62 * 87 * col2 FROM tab0 AS cor0
----
178088
442399
5491

query I rowsort
SELECT col2 + 94 FROM tab1 cor0
----
148
151
190

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-556
SELECT DISTINCT - col1 DIV - 7 FROM tab1 AS cor0
----
1
3

skipif mysql # not compatible
query I rowsort label-556
SELECT DISTINCT - col1 / - 7 FROM tab1 AS cor0
----
1
3

query I rowsort
SELECT + 78 - - col0 AS col0 FROM tab1
----
142
158
81

query I rowsort
SELECT DISTINCT tab0.col0 - + col0 * ( col0 ) * col2 AS col0 FROM tab0
----
-1190
-18984
-649433

query I rowsort
SELECT DISTINCT - col0 - col1 * 57 AS col0 FROM tab0
----
-4926
-5276
-5564

query I rowsort
SELECT DISTINCT 44 * + 49 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
2156

query I rowsort
SELECT DISTINCT ( 25 + cor0.col0 ) FROM tab2, tab2 cor0
----
103
104
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-562
SELECT col2 DIV ( col1 * col0 ) - - col2 * + col2 FROM tab2
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-562
SELECT col2 / ( col1 * col0 ) - - col2 * + col2 FROM tab2
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col2 + col2 * col1 col2 FROM tab0
----
14924
194
5676

query I rowsort
SELECT ALL + col0 + + 46 + col1 FROM tab2 AS cor0
----
142
183
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + 22 col1 FROM tab1 AS cor0
----
1408
1760
66

query I rowsort
SELECT + col2 * 63 + - col0 AS col1 FROM tab2 AS cor0
----
1560
1694
2315

query I rowsort
SELECT + + col1 + cor0.col2 * - ( col1 ) FROM tab1 cor0
----
-1235
-1378
-560

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

onlyif mysql # use DIV operator for integer division
query I rowsort label-570
SELECT + - 31 DIV - col0 + col1 * col0 + col1 FROM tab1 cor0
----
1053
114
650

skipif mysql # not compatible
query I rowsort label-570
SELECT + - 31 / - col0 + col1 * col0 + col1 FROM tab1 cor0
----
1053
114
650

query I rowsort
SELECT + col2 + 33 FROM tab2
----
59
60
71

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

query I rowsort
SELECT + - ( + col1 ) * col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - + ( 43 ) AS col1 FROM tab1 AS cor0
----
-43
-43
-43

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

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0

query I rowsort
SELECT ALL - + 39 FROM tab1 AS cor0
----
-39
-39
-39

onlyif mysql # use DIV operator for integer division
query I rowsort label-578
SELECT 56 + col1 DIV col0 col1 FROM tab0 AS cor0
----
57
58
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-578
SELECT 56 + col1 / col0 col1 FROM tab0 AS cor0
----
57
58
59

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

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

query I rowsort
SELECT DISTINCT - - ( + 16 ) + - col0 AS col2 FROM tab1 AS cor0
----
-48
-64
13

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

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

query I rowsort
SELECT ALL - 61 * + cor0.col1 FROM tab2 cor0
----
-1037
-1891
-3599

query I rowsort
SELECT - 60 AS col2 FROM tab1 cor0
----
-60
-60
-60

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

query I rowsort
SELECT col1 * 55 + + col0 AS col1 FROM tab2 AS cor0
----
1014
1712
3323

query I rowsort
SELECT DISTINCT cor0.col0 + + 10 FROM tab1 AS cor0
----
13
74
90

query I rowsort
SELECT ALL + - cor0.col1 * - col0 + 37 AS col0 FROM tab0 cor0
----
2101
3432
8136

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

query I rowsort
SELECT ALL - + col1 * + col1 + ( 93 ) FROM tab0 AS cor0
----
-7303
-8188
-9316

query I rowsort
SELECT DISTINCT ( cor0.col2 ) FROM tab2 cor0
----
26
27
38

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-593
SELECT ALL - col2 DIV + col2 + + 78 col0 FROM tab0 AS cor0
----
77
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-593
SELECT ALL - col2 / + col2 + + 78 col0 FROM tab0 AS cor0
----
77
77
77

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

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

skipif mysql # not compatible
query I rowsort label-595
SELECT ALL col0 / + col2 + - col2 AS col1 FROM tab0 AS cor0
----
-33
-81
34

query I rowsort
SELECT + + 67 * col0 AS col2 FROM tab0 AS cor0
----
1608
2345
5963

query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 - col0 FROM tab2 AS cor0
----
-1612
-725
-844

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

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

query I rowsort
SELECT ALL + 22 + cor0.col0 FROM tab0 AS cor0
----
111
46
57

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

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

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

query I rowsort
SELECT - col0 + + col1 * + col1 AS col1 FROM tab1 AS cor0
----
36
673
89

skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 + + CAST ( - col1 AS REAL ) * + col0 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81

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

query I rowsort
SELECT cor0.col1 + - cor0.col1 + - 83 FROM tab0 AS cor0
----
-83
-83
-83

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

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

query I rowsort
SELECT ALL col1 + col0 * - 61 * + cor0.col0 AS col1 FROM tab0 cor0
----
-35050
-483090
-74628

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-612
SELECT - col2 * col2 + CAST( + 78 * col1 AS SIGNED ) FROM tab2 AS cor0
----
-118
1689
3926

skipif mysql # not compatible
query I rowsort label-612
SELECT - col2 * col2 + CAST ( + 78 * col1 AS INTEGER ) FROM tab2 AS cor0
----
-118
1689
3926

onlyif mysql # use DIV operator for integer division
query I rowsort label-613
SELECT + - col1 DIV + col2 + + ( col2 ) FROM tab0 cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-613
SELECT + - col1 / + col2 + + ( col2 ) FROM tab0 cor0
----
-96
31
81

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

query I rowsort
SELECT 69 * - cor0.col2 FROM tab1 cor0
----
-3726
-3933
-6624

query I rowsort
SELECT cor0.col0 * - col0 * - 48 - + col1 * + col1 AS col1 FROM tab2 AS cor0
----
1391
288551
299279

query I rowsort
SELECT ALL - tab2.col2 * - 98 FROM tab2
----
2548
2646
3724

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

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

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

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

query I rowsort
SELECT - - col0 * + cor0.col1 + ( 80 ) * - col0 FROM tab2 AS cor0
----
-1638
-343
-4977

query I rowsort
SELECT DISTINCT + cor0.col2 * col0 + 65 * + 24 FROM tab1 AS cor0
----
1722
5208
9240

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

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

query I rowsort
SELECT 86 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL + 79 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-628
SELECT col1 * + col0 DIV col0 AS col0 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-628
SELECT col1 * + col0 / col0 AS col0 FROM tab1
----
10
13
26

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

query I rowsort
SELECT + col1 + 8 FROM tab1 AS cor0
----
18
21
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-631
SELECT CAST( + col2 AS SIGNED ) * - col1 + - 77 FROM tab2 AS cor0
----
-1611
-723
-914

skipif mysql # not compatible
query I rowsort label-631
SELECT CAST ( + col2 AS INTEGER ) * - col1 + - 77 FROM tab2 AS cor0
----
-1611
-723
-914

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

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

query I rowsort
SELECT + 39 + - col0 AS col2 FROM tab1 AS cor0
----
-25
-41
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-635
SELECT ALL + ( + 19 + - col0 ) DIV col2 FROM tab0
----
-16
0
0

skipif mysql # not compatible
query I rowsort label-635
SELECT ALL + ( + 19 + - col0 ) / col2 FROM tab0
----
-16
0
0

query I rowsort
SELECT ALL 21 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT + ( 25 ) FROM tab1
----
25
25
25

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

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

query I rowsort
SELECT + 26 + col1 * - cor0.col2 FROM tab2 AS cor0
----
-1508
-620
-811

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

query I rowsort
SELECT ALL 9 + col2 AS col1 FROM tab0
----
10
42
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-642
SELECT - 92 * col1 DIV col2 FROM tab1 cor0
----
-12
-16
-44

skipif mysql # not compatible
query I rowsort label-642
SELECT - 92 * col1 / col2 FROM tab1 cor0
----
-12
-16
-44

query I rowsort
SELECT ALL + 53 + - col2 FROM tab0 AS cor0
----
-29
20
52

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

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

query I rowsort
SELECT DISTINCT - col2 * + col1 + ( - 66 ) AS col1 FROM tab0 AS cor0
----
-163
-2904
-7528

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

query I rowsort
SELECT - + 73 * cor0.col2 + col1 * col0 AS col0 FROM tab2 AS cor0
----
-1431
-1754
2704

query I rowsort
SELECT - col1 * + col1 + 7 AS col0 FROM tab2 AS cor0
----
-282
-3474
-954

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

query I rowsort
SELECT - 6 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8be8910507908e6353d02a545b748252

query I rowsort
SELECT - - col0 * - ( + 56 ) + + col2 AS col1 FROM tab0 cor0
----
-1311
-1959
-4902

query I rowsort
SELECT 93 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-655
SELECT DISTINCT - - ( col2 ) * col1 + + 83 DIV col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-655
SELECT DISTINCT - - ( col2 ) * col1 + + 83 / col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

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

query I rowsort
SELECT ALL + cor0.col0 * 90 + col1 FROM tab1 AS cor0
----
296
5770
7213

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

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

query I rowsort
SELECT DISTINCT + col1 + cor0.col1 + + col1 * - ( + col1 * + col0 + - col1 ) AS col1 FROM tab0 AS cor0
----
-169936
-319712
-728546

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

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

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

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

query I rowsort
SELECT + col1 * col0 * col0 + col2 FROM tab2
----
106135
1546
358982

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - col2 * + 93 FROM tab0 cor0
----
-3069
-7626
-93

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2, tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-675
SELECT ALL - col1 + col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL - col1 + col0 / - col0 AS col2 FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT col1 + + ( 83 + col0 ) AS col2 FROM tab0 cor0
----
193
215
263

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

query I rowsort
SELECT - col2 + ( 88 ) * - cor0.col2 + - col2 * - col1 AS col2 FROM tab2 AS cor0
----
-1566
-2736
-780

query I rowsort
SELECT DISTINCT - + col2 * 20 AS col2 FROM tab0 AS cor0
----
-1640
-20
-660

query I rowsort
SELECT DISTINCT - col0 * col2 * 5 + col1 + 47 AS col1 FROM tab2 AS cor0
----
-10034
-14946
-867

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-682
SELECT + cor0.col0 DIV - ( - cor0.col0 ) + col0 AS col0 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-682
SELECT + cor0.col0 / - ( - cor0.col0 ) + col0 AS col0 FROM tab2 AS cor0
----
79
8
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-683
SELECT - col2 DIV - col2 + col2 * col2 AS col1 FROM tab0 AS cor0
----
1090
2
6725

skipif mysql # not compatible
query I rowsort label-683
SELECT - col2 / - col2 + col2 * col2 AS col1 FROM tab0 AS cor0
----
1090
2
6725

query I rowsort
SELECT DISTINCT 88 * + col2 AS col1 FROM tab0 AS cor0
----
2904
7216
88

query I rowsort
SELECT + + 25 + - 48 AS col2 FROM tab0 AS cor0
----
-23
-23
-23

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

query I rowsort
SELECT ALL + col1 + tab1.col2 + col2 AS col0 FROM tab1
----
124
134
205

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-689
SELECT ALL cor0.col1 + + col1 DIV col2 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-689
SELECT ALL cor0.col1 + + col1 / col2 FROM tab1 cor0
----
10
13
26

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

query I rowsort
SELECT DISTINCT + 78 + + col0 AS col1 FROM tab2 AS cor0
----
156
157
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-692
SELECT ALL - + 81 + ( - col0 + - cor0.col2 ) DIV 1 FROM tab1 AS cor0
----
-138
-202
-257

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL - + 81 + ( - col0 + - cor0.col2 ) / 1 FROM tab1 AS cor0
----
-138
-202
-257

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-696
SELECT DISTINCT - + ( - col1 ) * col1 + col2 DIV col0 FROM tab1 AS cor0
----
100
170
694

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT - + ( - col1 ) * col1 + col2 / col0 FROM tab1 AS cor0
----
100
170
694

query I rowsort
SELECT - cor0.col2 * + col2 + 15 AS col2 FROM tab0 AS cor0
----
-1074
-6709
14

query I rowsort
SELECT - ( + ( col1 ) * col1 ) FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
10
13
26

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

query I rowsort
SELECT 25 + col0 + + col0 * - col2 FROM tab2
----
-157
-1925
-2898

query I rowsort
SELECT DISTINCT - 75 + col2 FROM tab2 cor0
----
-37
-48
-49

query I rowsort
SELECT - 63 + + cor0.col1 FROM tab1 AS cor0
----
-37
-50
-53

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

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

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

query I rowsort
SELECT + col2 + col0 + - col2 * col1 FROM tab1 AS cor0
----
-1072
-1347
-449

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

query I rowsort
SELECT DISTINCT - col1 + 53 FROM tab0
----
-33
-38
-44

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

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

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

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

query I rowsort
SELECT + 61 * + col2 * + col0 AS col2 FROM tab0
----
2135
445178
48312

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

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

query I rowsort
SELECT + 52 + cor0.col1 FROM tab1 AS cor0
----
62
65
78

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

query I rowsort
SELECT ALL 74 + + col2 FROM tab0
----
107
156
75

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

query I rowsort
SELECT - - col1 - ( col2 + - col1 ) * col0 AS col0 FROM tab0 AS cor0
----
1358
3457
892

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

query I rowsort
SELECT ALL 44 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT DISTINCT 87 * col0 AS col0 FROM tab1
----
261
5568
6960

onlyif mysql # use DIV operator for integer division
query I rowsort label-724
SELECT - col0 DIV - col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-724
SELECT - col0 / - col0 FROM tab0
----
1
1
1

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

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

query I rowsort
SELECT ALL - col1 * 18 AS col2 FROM tab2
----
-1062
-306
-558

query I rowsort
SELECT - col2 * - ( col0 ) + + col1 * col0 AS col1 FROM tab2
----
406
4345
6630

query I rowsort
SELECT + 38 * - 61 FROM tab0 cor0
----
-2318
-2318
-2318

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

skipif mysql # not compatible
query I rowsort label-730
SELECT + - CAST ( 38 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-38
-38
-38

query I rowsort
SELECT DISTINCT + col1 * 70 AS col0 FROM tab0
----
6020
6370
6790

query I rowsort
SELECT + col0 + + col2 * col2 FROM tab2
----
1523
736
754

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

query I rowsort
SELECT col0 + ( + col0 ) * col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT DISTINCT 34 FROM tab2 AS cor0
----
34

query I rowsort
SELECT ALL col2 * col0 - - col0 * - 42 FROM tab0 AS cor0
----
-1435
-216
3560

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

query I rowsort
SELECT DISTINCT + - 50 + cor0.col2 FROM tab2 AS cor0
----
-12
-23
-24

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

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

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

query I rowsort
SELECT DISTINCT + - 60 * - col0 AS col1 FROM tab2 AS cor0
----
420
4680
4740

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

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

query I rowsort
SELECT col1 * 81 AS col2 FROM tab1 AS cor0
----
1053
2106
810

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-747
SELECT + 23 + + 25 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
23
23
24

skipif mysql # not compatible
query I rowsort label-747
SELECT + 23 + + 25 / cor0.col1 AS col0 FROM tab2 AS cor0
----
23
23
24

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

query I rowsort
SELECT - col1 * col2 + + col2 + 34 FROM tab2 AS cor0
----
-1474
-574
-776

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT + col2 * + 33 FROM tab1
----
1782
1881
3168

query I rowsort
SELECT ALL 86 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

query I rowsort
SELECT + ( col1 ) * col1 - + ( + 28 ) AS col2 FROM tab2 cor0
----
261
3453
933

onlyif mysql # use DIV operator for integer division
query I rowsort label-755
SELECT - cor0.col0 * 36 DIV col1 AS col2 FROM tab2 AS cor0
----
-167
-47
-8

skipif mysql # not compatible
query I rowsort label-755
SELECT - cor0.col0 * 36 / col1 AS col2 FROM tab2 AS cor0
----
-167
-47
-8

query I rowsort
SELECT ALL + - 40 + + col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
149
1988
2962

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

query I rowsort
SELECT DISTINCT - col0 * - 17 + + col1 FROM tab2 AS cor0
----
1360
1385
150

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

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

query I rowsort
SELECT - col0 * col0 + + col1 AS col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT - col2 * col1 + ( col0 ) * - col0 AS col1 FROM tab1 AS cor0
----
-1413
-4666
-7648

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-767
SELECT DISTINCT + col2 DIV ( - 68 ) + + col2 FROM tab0 AS cor0
----
1
33
81

skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT + col2 / ( - 68 ) + + col2 FROM tab0 AS cor0
----
1
33
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 25 - + col1 col0 FROM tab0 AS cor0
----
-2236
-2366
-2522

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

query I rowsort
SELECT ALL col1 * col0 + - col0 * col0 - col0 FROM tab1 AS cor0
----
-3520
-5440
66

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

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

query I rowsort
SELECT - + cor0.col1 + - col1 FROM tab2 AS cor0
----
-118
-34
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 * + cor0.col0 + col1 col0 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT DISTINCT + col0 + - 44 - - col1 FROM tab0 AS cor0
----
136
66
88

query I rowsort
SELECT DISTINCT + col1 * col1 + col2 AS col2 FROM tab1 AS cor0
----
157
265
730

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

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

query I rowsort
SELECT DISTINCT col0 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT 30 AS col1 FROM tab0
----
30
30
30

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - tab0.col0 ) * + ( + col2 + col1 * ( - ( - col0 ) ) ) col0 FROM tab0
----
118860
50328
728109

query I rowsort
SELECT DISTINCT + 20 FROM tab1
----
20

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

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

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

skipif mysql # not compatible
query I rowsort label-787
SELECT - col2 * - col1 + CAST ( + col0 AS INTEGER ) * col0 FROM tab2 AS cor0
----
6887
7618
886

query I rowsort
SELECT + 23 * col2 + col0 FROM tab2 cor0
----
628
676
953

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

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

query I rowsort
SELECT ALL ( col1 ) * col0 + - ( - col0 * + col0 ) FROM tab0
----
16020
2640
4620

query I rowsort
SELECT DISTINCT + 61 FROM tab0 AS cor0
----
61

query I rowsort
SELECT + 40 + + col1 * - ( col1 ) AS col2 FROM tab2 cor0
----
-249
-3441
-921

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

query I rowsort
SELECT DISTINCT + 69 + 87 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
156

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-797
SELECT DISTINCT 32 DIV + cor1.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
0
32

skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT 32 / + cor1.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
0
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-798
SELECT + ( + col1 ) DIV col2 + + 30 * + cor0.col1 + 9 AS col0 FROM tab0 AS cor0
----
2591
2740
3016

skipif mysql # not compatible
query I rowsort label-798
SELECT + ( + col1 ) / col2 + + 30 * + cor0.col1 + 9 AS col0 FROM tab0 AS cor0
----
2591
2740
3016

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

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT + tab0.col0 / col2 AS col0 FROM tab0
----
0
1
35

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-803
SELECT ALL + col2 * + col1 + - col1 DIV col0 + - col0 AS col1 FROM tab0
----
2811
60
7372

skipif mysql # not compatible
query I rowsort label-803
SELECT ALL + col2 * + col1 + - col1 / col0 + - col0 AS col1 FROM tab0
----
2811
60
7372

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

query I rowsort
SELECT + col0 + col0 + col1 FROM tab1
----
138
173
32

query I rowsort
SELECT - 75 * + col1 + - col2 AS col1 FROM tab2 AS cor0
----
-1313
-2352
-4451

query I rowsort
SELECT + tab0.col2 * + col2 FROM tab0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-808
SELECT DISTINCT col2 + + col0 * - col1 DIV - col1 + col1 * tab0.col1 * - col1 AS col0 FROM tab0
----
-635999
-753400
-912637

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT col2 + + col0 * - col1 / - col1 + col1 * tab0.col1 * - col1 AS col0 FROM tab0
----
-635999
-753400
-912637

query I rowsort
SELECT + col2 * - col0 + + col0 AS col1 FROM tab0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-810
SELECT ALL col1 DIV - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-810
SELECT ALL col1 / - col2 AS col0 FROM tab1
----
0
0
0

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

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

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

query I rowsort
SELECT DISTINCT col2 * + col0 + col2 + col0 FROM tab1
----
219
3769
7856

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

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

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

skipif mysql # not compatible
query I rowsort label-817
SELECT DISTINCT + col0 / col1 AS col0 FROM tab1
----
0
6

query I rowsort
SELECT DISTINCT - col0 + col0 * col0 + col2 * - tab0.col2 AS col2 FROM tab0
----
-537
1108
1189

query I rowsort
SELECT ALL tab2.col0 + + col0 + - col2 FROM tab2
----
-13
120
130

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

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

query I rowsort
SELECT ( col0 ) + + col2 * col2 * col0 FROM tab1
----
208000
737360
8751

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

query I rowsort
SELECT 79 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT ALL - 39 + - tab0.col0 AS col2 FROM tab0
----
-128
-63
-74

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

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

query I rowsort
SELECT DISTINCT - col0 - + col0 FROM tab0 AS cor0
----
-178
-48
-70

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-832
SELECT ALL + col0 + cor0.col2 DIV cor0.col0 FROM tab2 cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-832
SELECT ALL + col0 + cor0.col2 / cor0.col0 FROM tab2 cor0
----
10
78
79

query I rowsort
SELECT DISTINCT col1 * col2 + ( + col0 ) AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT + cor0.col2 * - col2 + cor0.col0 * + 22 FROM tab2 AS cor0
----
-575
1040
294

query I rowsort
SELECT - - 6 + + col1 FROM tab1 AS cor0
----
16
19
32

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

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

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT IN ( col2 * + col1 )
----
24
86
33
89
91
82

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= NULL
----

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

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

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

query I rowsort
SELECT + col2 + col1 + + col2 FROM tab2 AS cor0 WHERE NOT col2 IN ( col1 * - col2 )
----
111
85
93

query I rowsort
SELECT ALL + col1 + - cor0.col0 * + col0 FROM tab1 AS cor0
----
-4086
-6387
17

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

query I rowsort
SELECT ALL - cor0.col1 FROM tab0, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE + col0 * col0 >= ( NULL )
----

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

query I rowsort
SELECT ALL - col0 * col2 * tab1.col0 - - tab1.col0 * + col0 FROM tab1
----
-229376
-477
-608000

query I rowsort
SELECT col0 + col2 * col0 AS col2 FROM tab2
----
196
2106
3081

query I rowsort
SELECT + col2 * - col1 AS col1 FROM tab0 WHERE + col0 / col0 NOT IN ( col2 + - tab0.col2 * tab0.col0 )
----
-2838
-7462
-97

query III rowsort
SELECT * FROM tab2 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT col1 + col1 AS col1 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL col2 * col0 + + tab2.col0 AS col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT DISTINCT col0 - col1 * col1 FROM tab0
----
-7372
-8192
-9374

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

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 NOT BETWEEN NULL AND ( NULL )
----

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

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

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-864
SELECT DISTINCT CAST( col1 AS SIGNED ) + cor0.col1 FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-864
SELECT DISTINCT CAST ( col1 AS INTEGER ) + cor0.col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ( ( - tab1.col2 ) ) AS col0 FROM tab1
----
-54
-57
-96

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

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

query I rowsort
SELECT - - 30 * + 16 FROM tab2 AS cor0
----
480
480
480

query I rowsort
SELECT ALL + 80 + + 28 AS col2 FROM tab0 AS cor0
----
108
108
108

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

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

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

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 82e15d5967b272804e574774895a0222

query I rowsort
SELECT - 60 AS col2 FROM tab0 cor0
----
-60
-60
-60

query I rowsort
SELECT + col0 + - col1 * + col1 * + col1 AS col1 FROM tab0
----
-636032
-753482
-912638

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

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

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

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

query I rowsort
SELECT + 13 + col2 AS col0 FROM tab0 AS cor0
----
14
46
95

query I rowsort
SELECT + col0 * - col1 * col1 + 49 FROM tab2
----
-22782
-271469
-6678

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

query I rowsort
SELECT DISTINCT + 24 AS col2 FROM tab1
----
24

query I rowsort
SELECT DISTINCT ( - 83 + - col0 ) FROM tab2
----
-161
-162
-90

query I rowsort
SELECT - 26 FROM tab1
----
-26
-26
-26

query I rowsort
SELECT - col0 + - col1 * 33 FROM tab1 AS cor0
----
-394
-509
-861

onlyif mysql # use DIV operator for integer division
query I rowsort label-884
SELECT ALL - col2 DIV col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL - col2 / col2 FROM tab0 AS cor0
----
-1
-1
-1

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

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

query I rowsort
SELECT - cor0.col2 + - ( 47 ) FROM tab2 AS cor0
----
-73
-74
-85

query I rowsort
SELECT DISTINCT - - cor0.col2 * ( 80 ) + col2 AS col1 FROM tab0 AS cor0
----
2673
6642
81

query I rowsort
SELECT ALL + - col0 * cor0.col0 - + 56 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-12513
-1281
-2424

query I rowsort
SELECT DISTINCT + col1 * - col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-272
-3422
-930

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

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

query I rowsort
SELECT ALL + 61 + + col1 FROM tab2
----
120
78
92

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

query I rowsort
SELECT ALL 52 FROM tab0, tab2 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT - - col0 * - 82 * + col2 FROM tab0 AS cor0
----
-2870
-598436
-64944

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

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

query I rowsort
SELECT DISTINCT + col2 * - 33 - col2 * + col1 * col2 AS col0 FROM tab0 AS cor0
----
-130
-614590
-94743

query I rowsort
SELECT ALL col2 * - 2 * col0 AS col2 FROM tab1
----
-15360
-324
-7296

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

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

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

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

query I rowsort
SELECT 18 AS col2 FROM tab2
----
18
18
18

query I rowsort
SELECT DISTINCT - ( - 77 ) * - col1 * col2 FROM tab0
----
-218526
-574574
-7469

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

query I rowsort
SELECT DISTINCT tab1.col2 * - 56 FROM tab1
----
-3024
-3192
-5376

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

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

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

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

query I rowsort
SELECT - 18 * + col1 + - col0 FROM tab1 AS cor0
----
-244
-314
-471

onlyif mysql # use DIV operator for integer division
query I rowsort label-911
SELECT DISTINCT - col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT - col0 / + col0 AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + 75 * col0 AS col0 FROM tab1 AS cor0
----
225
4800
6000

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

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

query I rowsort
SELECT + 8 * cor0.col0 * col1 FROM tab1 AS cor0
----
5120
624
8320

query I rowsort
SELECT + col2 + - 22 FROM tab1 AS cor0
----
32
35
74

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-918
SELECT ALL col2 * col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-918
SELECT ALL col2 * col0 / - col2 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL + cor0.col0 * col1 + - col1 * - col0 FROM tab1 cor0
----
1280
156
2080

query I rowsort
SELECT + col2 * ( 82 ) + + col0 AS col1 FROM tab0 cor0
----
117
2730
6813

query I rowsort
SELECT - + col1 + 12 FROM tab2 AS cor0
----
-19
-47
-5

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

query I rowsort
SELECT - + 3 * - col0 + col2 AS col0 FROM tab1 AS cor0
----
249
336
63

query I rowsort
SELECT + ( - 90 ) + col0 + - col0 * col2 * + col0 FROM tab2 AS cor0
----
-1406
-158196
-237169

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

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

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

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

skipif mysql # not compatible
query I rowsort label-927
SELECT + col2 + col1 / - col2 AS col0 FROM tab0 AS cor0
----
-96
31
81

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col2 * col0 * col0 col2 FROM tab2
----
1350
158210
237196

query I rowsort
SELECT ALL - col2 * + col2 AS col2 FROM tab1 cor0
----
-2916
-3249
-9216

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT tab2.col2 + - col1 FROM tab2
----
-33
-4
21

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

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

query I rowsort
SELECT DISTINCT col1 * - col0 * col1 + - col0 AS col1 FROM tab2
----
-22910
-271596
-6734

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * col2 * + tab0.col2 col0 FROM tab0
----
26169
36
598518

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

query I rowsort
SELECT + cor0.col2 + - cor0.col0 - - col0 * col2 AS col1 FROM tab0 cor0
----
1
7291
801

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

query I rowsort
SELECT - + col2 + col0 * - col0 FROM tab1 cor0
----
-4153
-63
-6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-946
SELECT DISTINCT col0 DIV col0 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-946
SELECT DISTINCT col0 / col0 AS col1 FROM tab1
----
1

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

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

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

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

query I rowsort
SELECT DISTINCT col2 - col2 AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL col2 - col1 * col2 AS col1 FROM tab2
----
-1508
-608
-810

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

query I rowsort
SELECT ALL - col0 * col2 * col1 - - col1 AS col1 FROM tab2
----
-119593
-51017
-5828

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

query I rowsort
SELECT col2 * 58 AS col1 FROM tab1 AS cor0
----
3132
3306
5568

query I rowsort
SELECT DISTINCT col2 * - 31 + + col1 AS col1 FROM tab0 AS cor0
----
-2451
-937
66

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

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

query I rowsort
SELECT ALL col1 + 60 AS col0 FROM tab2 AS cor0
----
119
77
91

query I rowsort
SELECT DISTINCT - col0 * - ( 28 ) FROM tab2 AS cor0
----
196
2184
2212

query I rowsort
SELECT DISTINCT - col2 * ( 86 ) + col0 FROM tab0 AS cor0
----
-2814
-51
-6963

query I rowsort
SELECT DISTINCT - - col2 * 85 + col2 FROM tab0 AS cor0
----
2838
7052
86

query I rowsort
SELECT - cor0.col0 + 32 AS col2 FROM tab1 AS cor0
----
-32
-48
29

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

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

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

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

query I rowsort
SELECT ALL + + col2 + cor0.col2 - - col2 AS col2 FROM tab1 cor0
----
162
171
288

onlyif mysql # use DIV operator for integer division
query I rowsort label-968
SELECT DISTINCT col1 * 18 DIV col0 AS col0 FROM tab1 AS cor0
----
156
2

skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT col1 * 18 / col0 AS col0 FROM tab1 AS cor0
----
156
2

query I rowsort
SELECT col0 - 27 FROM tab2 AS cor0
----
-20
51
52

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NULL NOT IN ( + cor0.col2 )
----

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

query I rowsort
SELECT DISTINCT - col1 * 81 + 26 AS col1 FROM tab2 AS cor0
----
-1351
-2485
-4753

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 97 * + 78 col0 FROM tab1 AS cor0
----
7540
7553
7556

query I rowsort
SELECT + 97 * cor0.col0 + tab1.col1 + + 93 AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0, tab0 AS cor1
----
243 values hashing to 6bf71aea20109d31f61a887aef9fbaf0

query I rowsort
SELECT + 23 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

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

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL - ( + col1 ) / 30 FROM tab1 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT ALL 4 * col2 FROM tab1 AS cor0
----
216
228
384

query I rowsort
SELECT ALL + + 51 FROM tab2, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to c9771396949659773ab2fa2a1ac228de

query I rowsort
SELECT DISTINCT + col2 * - col2 + - col0 * ( ( col2 ) * + col0 ) FROM tab2
----
-158860
-2052
-238602

query I rowsort
SELECT + 35 + col2 FROM tab0
----
117
36
68

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

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

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

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

query I rowsort
SELECT 46 * + col2 AS col1 FROM tab0 AS cor0
----
1518
3772
46

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

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

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

query I rowsort
SELECT cor0.col0 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

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

query I rowsort
SELECT ALL - 93 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

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

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

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

query I rowsort
SELECT - - col2 + + col2 * + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab2 AS cor0
----
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-996
SELECT DISTINCT - col2 + + col0 DIV + 17 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1478
-698
-756

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT - col2 + + col0 / + 17 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1478
-698
-756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 * col1 col0 FROM tab0
----
-3612
-3822
-4074

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

query I rowsort
SELECT + - col1 + + col0 * col1 * col2 FROM tab0 cor0
----
3298
664027
68026

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

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

query I rowsort
SELECT 13 * col2 * col2 + cor0.col0 * cor0.col2 FROM tab2 cor0
----
10816
21774
9666

query I rowsort
SELECT ALL + + 83 * col2 * col2 AS col0 FROM tab2 AS cor0
----
119852
56108
60507

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

query I rowsort
SELECT + 46 * cor0.col1 + - col2 AS col2 FROM tab1 AS cor0
----
1142
403
502

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

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

query I rowsort
SELECT ALL - 68 * ( - col2 ) * - 97 FROM tab1 cor0
----
-356184
-375972
-633216

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1013
SELECT - cor0.col2 * - cor0.col0 + col0 * col0 + cor0.col0 DIV - col1 FROM tab1 AS cor0
----
14074
171
7738

skipif mysql # not compatible
query I rowsort label-1013
SELECT - cor0.col2 * - cor0.col0 + col0 * col0 + cor0.col0 / - col1 FROM tab1 AS cor0
----
14074
171
7738

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

query I rowsort
SELECT - + col1 + - col1 + ( + col2 ) FROM tab1 AS cor0
----
2
37
70

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

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

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

query I rowsort
SELECT ALL + ( 39 ) + + col1 * 83 AS col2 FROM tab2
----
1450
2612
4936

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

query I rowsort
SELECT - ( + 21 ) AS col1 FROM tab1 AS cor0
----
-21
-21
-21

query I rowsort
SELECT DISTINCT - col0 - 36 FROM tab2 AS cor0
----
-114
-115
-43

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

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

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab0 AS cor2, tab2
----
13122 values hashing to bf7c353f06d2c0884914ec513d3de636

query I rowsort
SELECT cor0.col0 * 50 FROM tab0, tab0 cor0
----
9 values hashing to a8abd36861657db7f885523c01bc34a0

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

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

query I rowsort
SELECT - 45 FROM tab1, tab2 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

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

query I rowsort
SELECT DISTINCT + 83 FROM tab1, tab1 AS cor0
----
83

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

query I rowsort
SELECT col0 * + col1 - - col2 * col1 FROM tab0
----
15561
3492
4902

onlyif mysql # use DIV operator for integer division
query I rowsort label-1032
SELECT ALL + 98 + - col1 DIV col1 FROM tab1
----
97
97
97

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL + 98 + - col1 / col1 FROM tab1
----
97
97
97

query I rowsort
SELECT - cor1.col2 * + 17 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c83aafc8d012535586c708e2aad71f92

query I rowsort
SELECT - ( 52 ) FROM tab1 AS cor0
----
-52
-52
-52

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

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

query I rowsort
SELECT DISTINCT - 11 * - col2 * col1 + tab2.col2 FROM tab2
----
16900
7144
9234

query I rowsort
SELECT ALL - ( col1 ) + ( col2 ) * col2 AS col0 FROM tab2
----
1427
617
698

onlyif mysql # use DIV operator for integer division
query I rowsort label-1039
SELECT DISTINCT + + col1 + 97 DIV cor0.col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-1039
SELECT DISTINCT + + col1 + 97 / cor0.col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT DISTINCT + col2 * 23 + cor0.col1 AS col0 FROM tab0 AS cor0
----
120
1977
845

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1042
SELECT col2 * - col2 DIV col2 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-1042
SELECT col2 * - col2 / col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - col0 * + tab1.col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT + 5 * col2 FROM tab0
----
165
410
5

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

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

query I rowsort
SELECT - col0 * 90 + col1 FROM tab0 AS cor0
----
-2074
-3053
-7919

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

skipif mysql # not compatible
query I rowsort label-1048
SELECT - cor0.col1 / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + ( col1 ) FROM tab1 cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * ( 58 ) + col1 * col2 col0 FROM tab2
----
1243
5228
6058

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

query I rowsort
SELECT col0 + tab1.col0 AS col2 FROM tab1
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1053
SELECT DISTINCT + col0 + 16 + - col2 DIV col0 FROM tab1
----
1
80
95

skipif mysql # not compatible
query I rowsort label-1053
SELECT DISTINCT + col0 + 16 + - col2 / col0 FROM tab1
----
1
80
95

query I rowsort
SELECT + col1 * col2 + 80 - - col0 AS col2 FROM tab2
----
1692
805
924

query I rowsort
SELECT DISTINCT - col0 * col0 - ( tab2.col2 ) * col2 * col2 FROM tab2
----
-19732
-23660
-61113

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

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

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

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

query I rowsort
SELECT + - 17 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

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

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

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

query I rowsort
SELECT - - col2 + 66 FROM tab2 AS cor0
----
104
92
93

query I rowsort
SELECT + - 47 + col0 * col0 FROM tab2 AS cor0
----
2
6037
6194

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

query I rowsort
SELECT - 72 + 31 + - cor0.col2 AS col2 FROM tab0 cor0
----
-123
-42
-74

query I rowsort
SELECT ALL + 18 * - col1 FROM tab2 AS cor0
----
-1062
-306
-558

onlyif mysql # use DIV operator for integer division
query I rowsort label-1068
SELECT DISTINCT + 22 DIV 30 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1068
SELECT DISTINCT + 22 / 30 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1069
SELECT ALL - col0 DIV cor0.col0 + col2 * col1 col0 FROM tab0 cor0
----
2837
7461
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1069
SELECT ALL - col0 / cor0.col0 + col2 * col1 col0 FROM tab0 cor0
----
2837
7461
96

query I rowsort
SELECT - 70 + col1 AS col1 FROM tab2 AS cor0
----
-11
-39
-53

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

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

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

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

query I rowsort
SELECT DISTINCT - ( 30 ) * - col0 FROM tab1 AS cor0
----
1920
2400
90

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

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

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

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

query I rowsort
SELECT DISTINCT - 78 + col1 AS col2 FROM tab2 AS cor0
----
-19
-47
-61

query I rowsort
SELECT ALL - 89 * col1 + - ( cor0.col0 ) * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-2948
-4515
-7279

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

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

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

query I rowsort
SELECT DISTINCT - - 94 * - col1 + - col1 + - 28 FROM tab2 AS cor0
----
-1643
-2973
-5633

query I rowsort
SELECT ALL - 82 AS col2 FROM tab1 AS cor0
----
-82
-82
-82

query I rowsort
SELECT ALL - 47 FROM tab0 cor0
----
-47
-47
-47

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

skipif mysql # not compatible
query I rowsort label-1086
SELECT col2 / 89 + - col2 AS col1 FROM tab1 AS cor0
----
-54
-57
-95

query I rowsort
SELECT ALL + col1 * 78 * - 73 + cor0.col1 * col0 FROM tab1 cor0
----
-147966
-56300
-72982

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

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

query I rowsort
SELECT ( - cor0.col0 ) FROM tab1, tab1 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT + 24 + col1 AS col2 FROM tab1 AS cor0
----
34
37
50

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1093
SELECT ALL + + ( - 57 ) * - col0 * + CAST( - 70 + col1 AS SIGNED ) FROM tab2 AS cor0
----
-15561
-238659
-48906

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL + + ( - 57 ) * - col0 * + CAST ( - 70 + col1 AS INTEGER ) FROM tab2 AS cor0
----
-15561
-238659
-48906

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1095
SELECT ALL + + 59 DIV + col0 FROM tab1 AS cor0
----
0
0
19

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL + + 59 / + col0 FROM tab1 AS cor0
----
0
0
19

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

query I rowsort
SELECT ALL cor0.col0 + 45 * col0 AS col0 FROM tab1 AS cor0
----
138
2944
3680

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

query I rowsort
SELECT DISTINCT - + 1 AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1100
SELECT ALL - ( 75 ) * col2 DIV + col1 - - 52 * col2 FROM tab2 AS cor0
----
1319
1339
1809

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL - ( 75 ) * col2 / + col1 - - 52 * col2 FROM tab2 AS cor0
----
1319
1339
1809

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - + ( 20 ) + col0 * col1 FROM tab0 AS cor0
----
2044
3375
8079

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

skipif mysql # not compatible
query I rowsort label-1106
SELECT + - ( + col2 ) / + col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + + 78 * - col2 + col0 * col2 FROM tab1 AS cor0
----
-4050
-798
192

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

query I rowsort
SELECT ALL ( - col2 ) * + col0 * 46 FROM tab1 AS cor0
----
-167808
-353280
-7452

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

query I rowsort
SELECT ALL - + 69 - col0 FROM tab1 AS cor0
----
-133
-149
-72

query I rowsort
SELECT ALL - 85 * - cor0.col0 * + col2 FROM tab2 AS cor0
----
16065
172380
255170

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1114
SELECT ALL + - CAST( col2 AS SIGNED ) + col1 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
-32
-81
0

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

query I rowsort
SELECT 94 * cor0.col0 FROM tab2 AS cor0
----
658
7332
7426

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

query I rowsort
SELECT - 1 + ( + tab0.col0 ) FROM tab0
----
23
34
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - ( + cor0.col0 ) col2 FROM tab1 AS cor0
----
-7
16
51

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

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

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

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

query I rowsort
SELECT ALL - col2 + ( 61 ) AS col1 FROM tab1 AS cor0
----
-35
4
7

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

query I rowsort
SELECT + col1 * - 98 + - col0 FROM tab1 AS cor0
----
-1044
-1354
-2551

onlyif mysql # use DIV operator for integer division
query I rowsort label-1125
SELECT DISTINCT - col2 * - col0 + - ( + col1 ) * ( + col2 ) DIV - col2 FROM tab0 AS cor0
----
132
7389
878

skipif mysql # not compatible
query I rowsort label-1125
SELECT DISTINCT - col2 * - col0 + - ( + col1 ) * ( + col2 ) / - col2 FROM tab0 AS cor0
----
132
7389
878

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

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

query I rowsort
SELECT ALL col2 + - 23 FROM tab1 cor0
----
31
34
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - tab0.col1 col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT + col1 * + 54 * - 77 + cor0.col0 - + col0 FROM tab2 AS cor0
----
-128898
-245322
-70686

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

query I rowsort
SELECT ALL col0 + - 42 * - col1 FROM tab1
----
1095
484
626

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

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

query I rowsort
SELECT ALL col2 + - ( - 20 ) FROM tab1 AS cor0
----
116
74
77

query I rowsort
SELECT DISTINCT col1 + ( - 14 ) FROM tab1 AS cor0
----
-1
-4
12

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1138
SELECT DISTINCT + col0 * ( - col0 ) DIV col0 + ( 25 ) FROM tab2
----
-53
-54
18

skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT + col0 * ( - col0 ) / col0 + ( 25 ) FROM tab2
----
-53
-54
18

query I rowsort
SELECT ALL 49 FROM tab0, tab0 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

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

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

query I rowsort
SELECT DISTINCT 8 * - tab0.col2 AS col2 FROM tab0
----
-264
-656
-8

query I rowsort
SELECT DISTINCT - 85 AS col1 FROM tab1
----
-85

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

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

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

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 10 AS REAL ) FROM tab0
----
10
10
10

query I rowsort
SELECT + ( - col0 ) * col0 + - 81 FROM tab0
----
-1306
-657
-8002

query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab1
----
23

query I rowsort
SELECT - ( 51 ) FROM tab1
----
-51
-51
-51

query I rowsort
SELECT ALL 48 AS col2 FROM tab0 AS cor0
----
48
48
48

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

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

query I rowsort
SELECT DISTINCT + 10 * col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
12250
5760
79210

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

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

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

query I rowsort
SELECT 75 + + tab0.col0 AS col0 FROM tab0
----
110
164
99

query I rowsort
SELECT DISTINCT col2 * col0 + - 72 * ( col0 ) FROM tab1
----
-54
-960
1920

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 * col2 col0 FROM tab2 AS cor0
----
-364
-378
-532

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

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

query I rowsort
SELECT ALL 33 AS col0 FROM tab0
----
33
33
33

query I rowsort
SELECT ALL - col2 * - ( col2 * col2 ) FROM tab2 cor0
----
17576
19683
54872

query I rowsort
SELECT ALL - - col0 + - col1 * - col2 FROM tab2 AS cor0
----
1612
725
844

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

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

query I rowsort
SELECT cor0.col0 * + col2 * - 57 AS col0 FROM tab2 AS cor0
----
-10773
-115596
-171114

query I rowsort
SELECT - + col0 - 16 AS col1 FROM tab2 AS cor0
----
-23
-94
-95

query I rowsort
SELECT - col0 * 85 + col1 * - col1 FROM tab0 AS cor0
----
-12384
-15846
-9436

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1173
SELECT + - col2 DIV + col2 + + 70 FROM tab1 AS cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-1173
SELECT + - col2 / + col2 + + 70 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT - col1 + col2 + col2 AS col2 FROM tab2
----
-7
23
59

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

query I rowsort
SELECT 19 * + col0 + 8 FROM tab1
----
1224
1528
65

query I rowsort
SELECT ALL - + 16 * + col1 + 37 AS col1 FROM tab2 AS cor0
----
-235
-459
-907

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

query I rowsort
SELECT - - col2 * - col1 + - 67 FROM tab1 AS cor0
----
-1315
-1471
-637

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1181
SELECT col1 + 96 + col0 DIV col1 AS col1 FROM tab2 AS cor0
----
117
127
156

skipif mysql # not compatible
query I rowsort label-1181
SELECT col1 + 96 + col0 / col1 AS col1 FROM tab2 AS cor0
----
117
127
156

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

query I rowsort
SELECT DISTINCT - col0 * - 94 + + cor0.col1 + + col1 AS col2 FROM tab0 AS cor0
----
2428
3484
8548

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

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab2 AS cor0, tab1 cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643

query I rowsort
SELECT - 9 AS col0 FROM tab0
----
-9
-9
-9

query I rowsort
SELECT + 60 FROM tab0 cor0
----
60
60
60

query I rowsort
SELECT 56 * ( col2 ) FROM tab0 cor0
----
1848
4592
56

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1189
SELECT - - CAST ( - col0 AS INTEGER ) col1 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT - 15 AS col2 FROM tab1 AS cor0
----
-15
-15
-15

query I rowsort
SELECT col1 + + ( col0 * + col0 ) AS col2 FROM tab1
----
35
4106
6413

query I rowsort
SELECT DISTINCT - col0 * + 94 AS col1 FROM tab1
----
-282
-6016
-7520

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

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

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

query I rowsort
SELECT ALL 22 - + col2 AS col0 FROM tab0 AS cor0
----
-11
-60
21

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

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

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

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

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

query I rowsort
SELECT ( - 34 ) + + col2 * - ( - col0 + col2 ) FROM tab2
----
-574
1318
1524

onlyif mysql # use DIV operator for integer division
query I rowsort label-1201
SELECT + col2 DIV col1 + - col2 * + CAST( + 25 + col1 * - col2 AS SIGNED ) FROM tab2
----
21924
23600
39234

skipif mysql # not compatible
query I rowsort label-1201
SELECT + col2 / col1 + - col2 * + CAST ( + 25 + col1 * - col2 AS INTEGER ) FROM tab2
----
21924
23600
39234

query I rowsort
SELECT + 73 FROM tab2
----
73
73
73

query I rowsort
SELECT + 97 * - col1 + - col0 FROM tab0
----
-8366
-8916
-9444

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

query I rowsort
SELECT + ( - col2 ) * ( 86 ) - col0 FROM tab0 AS cor0
----
-121
-2862
-7141

query I rowsort
SELECT col0 * col0 + + 97 * - col2 - + col1 * 64 FROM tab1 AS cor0
----
-2073
-3744
-6893

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

query I rowsort
SELECT - + cor0.col2 + - col0 * + ( col1 + - col2 ) FROM tab2 AS cor0
----
-2600
-55
1621

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

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

query I rowsort
SELECT + col1 - 86 AS col2 FROM tab0
----
0
11
5

query I rowsort
SELECT + + 13 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab1 AS cor2, tab0 AS cor3
----
13122 values hashing to ea42def85ffa7a44138bd8b5c4e673dd

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

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

query I rowsort
SELECT + col2 + + col0 * 6 FROM tab2
----
494
512
69

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1217
SELECT CAST ( - col1 AS INTEGER ) * + col2 col1 FROM tab1 AS cor0
----
-1248
-1404
-570

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

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

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

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

query I rowsort
SELECT + 47 * 48 FROM tab2 AS cor0
----
2256
2256
2256

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1223
SELECT DISTINCT + 12 / - cor0.col1 col1 FROM tab2 AS cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT + 14 / - col1 FROM tab0 AS cor0
----
0

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

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

query I rowsort
SELECT col1 * col1 + col1 * col0 AS col2 FROM tab0
----
12804
16380
9460

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

query I rowsort
SELECT - col2 * col0 FROM tab1 WHERE + col1 * col2 + - col1 / + col0 NOT IN ( tab1.col1 )
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1229
SELECT DISTINCT col1 + tab1.col1 DIV - tab1.col2 AS col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT col1 + tab1.col1 / - tab1.col2 AS col1 FROM tab1
----
10
13
26

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

query I rowsort
SELECT DISTINCT col1 - col1 AS col1 FROM tab1
----
0

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

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

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 < NULL
----

query I rowsort
SELECT DISTINCT - col1 * + col0 * - col2 + + col0 * - col1 AS col1 FROM tab2
----
115050
49691
5642

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) IN ( - col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1242
SELECT ALL + col2 DIV - col1 + col1 FROM tab1
----
24
5
6

skipif mysql # not compatible
query I rowsort label-1242
SELECT ALL + col2 / - col1 + col1 FROM tab1
----
24
5
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * tab2.col1 + col0 col1 FROM tab2
----
1612
725
844

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1249
SELECT DISTINCT tab1.col0 DIV col2 + + col2 * - col1 * + col1 + col1 FROM tab1
----
-16211
-36478
-5689

skipif mysql # not compatible
query I rowsort label-1249
SELECT DISTINCT tab1.col0 / col2 + + col2 * - col1 * + col1 + col1 FROM tab1
----
-16211
-36478
-5689

query I rowsort
SELECT DISTINCT - col1 + col2 + tab0.col2 AS col1 FROM tab0
----
-20
-95
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-1251
SELECT - col0 DIV col0 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1251
SELECT - col0 / col0 AS col1 FROM tab2
----
-1
-1
-1

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 * col2 * col2 col0 FROM tab2
----
-17517
-19652
-54855

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

query I rowsort
SELECT ALL tab0.col0 - + col0 AS col2 FROM tab0 WHERE NOT NULL >= col1 + col1 * - col1
----

query I rowsort
SELECT col1 + - col1 * col0 * + cor0.col0 - - col2 AS col0 FROM tab0 AS cor0
----
-118727
-49417
-720638

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1261
SELECT + tab2.col0 + col0 + - col2 DIV - col0 FROM tab2
----
156
158
17

skipif mysql # not compatible
query I rowsort label-1261
SELECT + tab2.col0 + col0 + - col2 / - col0 FROM tab2
----
156
158
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + tab0.col2 + col0 col2 FROM tab0
----
1113
36
6813

query I rowsort
SELECT ALL col1 + col0 + col1 AS col1 FROM tab2 AS cor0
----
113
196
69

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1265
SELECT ALL - + col1 * col2 + col1 DIV col1 AS col2 FROM tab0 cor0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL - + col1 * col2 + col1 / col1 AS col2 FROM tab0 cor0
----
-2837
-7461
-96

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

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

query I rowsort
SELECT DISTINCT - col2 + col2 * col2 + + col0 AS col2 FROM tab0 AS cor0
----
1080
35
6731

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1271
SELECT ALL - col1 DIV - col0 + cor0.col0 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL - col1 / - col0 + cor0.col0 FROM tab2 AS cor0
----
11
78
79

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

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

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

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

query I rowsort
SELECT ALL - col2 * col1 + col1 * - col2 - col1 AS col1 FROM tab1
----
-1150
-2509
-2834

query I rowsort
SELECT DISTINCT col0 + col0 - - col2 FROM tab0
----
260
71
81

query I rowsort
SELECT + col1 + col0 * + 96 + cor0.col0 AS col0 FROM tab2 AS cor0
----
710
7625
7680

query I rowsort
SELECT - + col0 * + 14 + + col0 FROM tab0 AS cor0
----
-1157
-312
-455

query I rowsort
SELECT + col1 + + 61 FROM tab1 AS cor0
----
71
74
87

query I rowsort
SELECT ALL + - col0 * + ( + col0 ) + + col1 * col2 AS col2 FROM tab2 AS cor0
----
-4550
-5595
788

query I rowsort
SELECT - col1 * 39 + + ( col0 ) * 98 * col1 FROM tab0 AS cor0
----
198918
328927
790153

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1288
SELECT - 20 DIV + 52 + col2 + col2 col2 FROM tab0 AS cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1288
SELECT - 20 / + 52 + col2 + col2 col2 FROM tab0 AS cor0
----
164
2
66

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

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

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

query I rowsort
SELECT + + 37 FROM tab1 AS cor0
----
37
37
37

query I rowsort
SELECT - - 74 + cor0.col1 AS col0 FROM tab2 cor0
----
105
133
91

query I rowsort
SELECT DISTINCT + 31 FROM tab2, tab2 AS cor0
----
31

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

query I rowsort
SELECT ALL + col1 + col0 * col0 AS col0 FROM tab1
----
35
4106
6413

query I rowsort
SELECT DISTINCT col2 * + tab2.col2 * col2 + tab2.col1 * - col2 FROM tab2
----
16042
18846
54226

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

query I rowsort
SELECT ALL 16 FROM tab1
----
16
16
16

query I rowsort
SELECT + ( - col0 ) + 29 FROM tab2
----
-49
-50
22

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

query I rowsort
SELECT DISTINCT + 1 FROM tab0
----
1

query I rowsort
SELECT 46 + col2 FROM tab1
----
100
103
142

query I rowsort
SELECT DISTINCT 60 - col1 AS col2 FROM tab0 AS cor0
----
-26
-31
-37

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

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

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

query I rowsort
SELECT cor1.col2 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL 91 FROM tab0, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

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

query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

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

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

query I rowsort
SELECT DISTINCT - ( 1 ) + col0 FROM tab0
----
23
34
88

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

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

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

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

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

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

query I rowsort
SELECT ALL - cor0.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * - col0 + + cor0.col1 col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT - - 72 * col2 + - col2 AS col0 FROM tab1 AS cor0
----
3834
4047
6816

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT - CAST ( 69 AS INTEGER ) col0 FROM tab1 AS cor0
----
-69

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

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

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

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

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

query I rowsort
SELECT DISTINCT - cor0.col1 * + ( + col1 ) FROM tab0 cor0
----
-7396
-8281
-9409

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1333
SELECT ALL - + col0 + ( + 30 ) DIV col0 FROM tab1 AS cor0
----
-64
-80
7

skipif mysql # not compatible
query I rowsort label-1333
SELECT ALL - + col0 + ( + 30 ) / col0 FROM tab1 AS cor0
----
-64
-80
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 7 col2 FROM tab1 AS cor0
----
21
448
560

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1336
SELECT ALL cor0.col0 * col2 DIV cor0.col1 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-24

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL cor0.col0 * col2 / cor0.col1 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-24

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

query I rowsort
SELECT ALL col1 + + col2 + col2 FROM tab2 AS cor0
----
111
85
93

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1340
SELECT DISTINCT col1 * col0 DIV col2 FROM tab0
----
3395
62
98

skipif mysql # not compatible
query I rowsort label-1340
SELECT DISTINCT col1 * col0 / col2 FROM tab0
----
3395
62
98

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

query I rowsort
SELECT col1 + + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-1343
SELECT DISTINCT col2 * col0 * + col0 + col2 DIV col0 + + col0 FROM tab0 AS cor0
----
1260
19033
649611

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT col2 * col0 * + col0 + col2 / col0 + + col0 FROM tab0 AS cor0
----
1260
19033
649611

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

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

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + cor0.col1 * + col1 + col0 col0 FROM tab2 AS cor0
----
22910
271596
6734

query I rowsort
SELECT DISTINCT - 55 AS col0 FROM tab1 AS cor0
----
-55

query I rowsort
SELECT DISTINCT 40 - col2 FROM tab0
----
-42
39
7

query I rowsort
SELECT - 42 + - col1 FROM tab0
----
-128
-133
-139

query I rowsort
SELECT + tab2.col2 - 8 AS col1 FROM tab2
----
18
19
30

query I rowsort
SELECT ( col1 ) + - col0 * col1 - + col1 * col2 AS col1 FROM tab1
----
-1200
-1456
-2275

query I rowsort
SELECT - ( col2 ) * col1 * - col0 FROM tab2
----
119652
51034
5859

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

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

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

query I rowsort
SELECT DISTINCT col0 + + col1 * + col0 * + tab0.col1 FROM tab0
----
177528
329350
737098

query I rowsort
SELECT - 5 * col0 - tab1.col2 AS col2 FROM tab1
----
-377
-496
-69

query I rowsort
SELECT DISTINCT 13 * col1 + + col2 AS col1 FROM tab1
----
187
265
392

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

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

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

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

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

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

query I rowsort
SELECT ALL 20 * col1 FROM tab1 AS cor0
----
200
260
520

query I rowsort
SELECT DISTINCT ( col2 ) + - col2 * - col0 * - col1 AS col2 FROM tab1 AS cor0
----
-36423
-4158
-99744

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

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

query I rowsort
SELECT - 61 - col2 * col0 AS col1 FROM tab0 AS cor0
----
-7359
-853
-96

query I rowsort
SELECT DISTINCT + 42 AS col0 FROM tab1 AS cor0
----
42

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

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

query I rowsort
SELECT ( col0 ) * 99 - 31 AS col2 FROM tab1 AS cor0
----
266
6305
7889

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1383
SELECT tab1.col1 DIV + 73 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1383
SELECT tab1.col1 / + 73 AS col0 FROM tab1
----
0
0
0

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

query I rowsort
SELECT DISTINCT ( + col0 * - col1 ) + - col0 * tab0.col2 + + col1 AS col2 FROM tab0
----
-15306
-2770
-3333

query I rowsort
SELECT - - 30 + - cor0.col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 02eb51acbed4e97186d24973c8e1199e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 + col1 + col1 col2 FROM tab0
----
77
87
99

query I rowsort
SELECT col2 * + tab1.col2 FROM tab1
----
2916
3249
9216

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1392
SELECT DISTINCT + col0 * - col2 * CAST ( + col2 AS INTEGER ) - col1 * col1 FROM tab0 AS cor0
----
-33532
-606717
-9444

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

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

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

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

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

query I rowsort
SELECT + + col2 - col1 * ( 45 + + col1 ) AS col1 FROM tab1 AS cor0
----
-1792
-493
-658

query I rowsort
SELECT ALL + - 46 AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT ALL + col1 + cor0.col0 - 93 * col1 AS col1 FROM tab1 AS cor0
----
-1116
-2389
-856

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

query I rowsort
SELECT DISTINCT + + 79 FROM tab2 AS cor0
----
79

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

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

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

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

query I rowsort
SELECT ALL - col2 * + 21 AS col0 FROM tab0 AS cor0
----
-1722
-21
-693

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

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

query I rowsort
SELECT DISTINCT - + col2 + - 51 * - col0 AS col1 FROM tab0 AS cor0
----
1191
1784
4457

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * 47 AS col1 FROM tab0 cor0
----
4042
4277
4559

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

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

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

query I rowsort
SELECT 88 FROM tab2, tab0 cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT + 28 * col0 * col2 AS col1 FROM tab1 AS cor0
----
102144
215040
4536

query I rowsort
SELECT ALL + 19 * + col0 AS col2 FROM tab1 AS cor0
----
1216
1520
57

query I rowsort
SELECT col2 * + 65 FROM tab0 AS cor0
----
2145
5330
65

query I rowsort
SELECT col1 + 73 AS col0 FROM tab1 AS cor0
----
83
86
99

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

query I rowsort
SELECT DISTINCT - 24 * 83 + cor0.col0 * - col1 FROM tab1 AS cor0
----
-2070
-2632
-3032

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1426
SELECT - - 34 DIV 45 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1426
SELECT - - 34 / 45 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * col0 col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT ALL + 88 * - 30 FROM tab2 AS cor0
----
-2640
-2640
-2640

query I rowsort
SELECT DISTINCT cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

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

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

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

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

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

query I rowsort
SELECT 65 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT + col1 + - cor0.col1 * 76 FROM tab0 AS cor0
----
-6450
-6825
-7275

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

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

query I rowsort
SELECT ALL - col1 * + ( 13 ) + cor0.col0 AS col1 FROM tab1 AS cor0
----
-335
-66
-89

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

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

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1445
SELECT ALL + - col0 + - CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-14
-156
-158

skipif mysql # not compatible
query I rowsort label-1445
SELECT ALL + - col0 + - CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-14
-156
-158

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

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

query I rowsort
SELECT ALL - cor0.col2 + 49 FROM tab2, tab2 AS cor0
----
9 values hashing to cfd0937a2d6d645641ff8e0c9b737544

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

query I rowsort
SELECT + col2 * - 43 * col1 - + col0 AS col1 FROM tab1
----
-24574
-53744
-60375

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1451
SELECT tab1.col1 + CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-1451
SELECT tab1.col1 + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT col1 * col0 * 85 + tab0.col1 FROM tab0
----
175526
288672
688506

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

query I rowsort
SELECT - - cor0.col0 + + 34 AS col1 FROM tab2 AS cor0
----
112
113
41

query I rowsort
SELECT - col0 * 35 AS col2 FROM tab0 AS cor0
----
-1225
-3115
-840

query I rowsort
SELECT + cor0.col1 * 37 FROM tab1 AS cor0
----
370
481
962

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

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

query I rowsort
SELECT ( 74 * col1 + col0 * + col2 ) FROM tab0
----
14032
7156
7213

query I rowsort
SELECT col2 * + col1 + - col1 + - ( col0 ) AS col2 FROM tab2 cor0
----
1397
550
799

query I rowsort
SELECT + - 58 * 24 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1416
-1427
-1481

query I rowsort
SELECT ALL ( - col1 ) + col0 * col0 + col0 AS col2 FROM tab2
----
25
6103
6303

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

query I rowsort
SELECT DISTINCT - 8 * cor0.col1 FROM tab0 cor0
----
-688
-728
-776

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

query I rowsort
SELECT ALL - 8 + col0 FROM tab0 AS cor0
----
16
27
81

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

query I rowsort
SELECT - + 37 + col2 + + col2 FROM tab0 AS cor0
----
-35
127
29

query I rowsort
SELECT + - cor0.col1 * col1 + + 24 * - 58 FROM tab0 AS cor0
----
-10801
-8788
-9673

query I rowsort
SELECT ALL + 2 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1473
SELECT ALL - 73 DIV - col1 + + col0 FROM tab2
----
79
83
9

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL - 73 / - col1 + + col0 FROM tab2
----
79
83
9

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

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

query I rowsort
SELECT - col2 * col2 * col1 + + col0 FROM tab2 AS cor0
----
-22592
-24469
-39806

onlyif mysql # use DIV operator for integer division
query I rowsort label-1476
SELECT DISTINCT - + col0 * + col1 + col2 * col2 + col2 DIV + 95 FROM tab0 cor0
----
-1375
-3394
-975

skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT - + col0 * + col1 + col2 * col2 + col2 / + 95 FROM tab0 cor0
----
-1375
-3394
-975

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

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

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

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

query I rowsort
SELECT ALL + 77 + + col1 AS col2 FROM tab1 AS cor0
----
103
87
90

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

query I rowsort
SELECT DISTINCT cor0.col0 * + col0 + - col1 FROM tab0 AS cor0
----
1128
490
7830

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

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

query I rowsort
SELECT ALL - cor0.col0 * + 74 FROM tab2 AS cor0
----
-518
-5772
-5846

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

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL + col0 * ( col2 ) / col2 AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + col2 * + 88 FROM tab0 AS cor0
----
2904
7216
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-1489
SELECT cor0.col1 DIV + col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-1489
SELECT cor0.col1 / + col2 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT ALL - col2 * col0 + - cor0.col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT + + col1 * ( - col0 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-1492
SELECT DISTINCT - + col2 * + ( + col0 ) DIV col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT - + col2 * + ( + col0 ) / col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + col0 + + col1 * - col1 FROM tab2 cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT + col1 + col1 AS col1 FROM tab2
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 77 col0 FROM tab2 AS cor0
----
39
50
51

query I rowsort
SELECT - 9 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5

query I rowsort
SELECT tab2.col1 * + col1 * 0 - - col0 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL - 3 + - col2 + + tab0.col2 FROM tab0
----
-3
-3
-3

query I rowsort
SELECT - col2 * + col2 - - col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT - 32 + - col0 FROM tab1 AS cor0
----
-112
-35
-96

query I rowsort
SELECT DISTINCT - col2 + col1 * col0 * - 61 FROM tab1 AS cor0
----
-39097
-4812
-63536

query I rowsort
SELECT 43 + col0 * col0 FROM tab0 AS cor0
----
1268
619
7964

query I rowsort
SELECT DISTINCT 48 + ( col0 * - col1 ) AS col1 FROM tab2 AS cor0
----
-1295
-169
-4554

query I rowsort
SELECT ALL + col1 - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 58 * + col1 + col0 AS col2 FROM tab1 AS cor0
----
-1505
-516
-674

query I rowsort
SELECT + ( 15 ) + + col1 AS col2 FROM tab0 AS cor0
----
101
106
112

query I rowsort
SELECT DISTINCT - - col1 * col1 * - col2 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT cor0.col0 + col1 * + col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1510
SELECT ( col1 ) DIV cor0.col0 - col0 AS col0 FROM tab2 AS cor0
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-1510
SELECT ( col1 ) / cor0.col0 - col0 AS col0 FROM tab2 AS cor0
----
-3
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1511
SELECT ALL - CAST( 30 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL - CAST ( 30 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-30
-30
-30

query I rowsort
SELECT ( + 59 ) + + cor0.col2 AS col1 FROM tab0 AS cor0
----
141
60
92

query I rowsort
SELECT col2 * 14 FROM tab1 AS cor0
----
1344
756
798

query I rowsort
SELECT DISTINCT + 22 FROM tab2 AS cor0
----
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1515
SELECT DISTINCT + - CAST( col0 AS SIGNED ) * - col2 + col1 FROM tab2 AS cor0
----
2087
220
3019

skipif mysql # not compatible
query I rowsort label-1515
SELECT DISTINCT + - CAST ( col0 AS INTEGER ) * - col2 + col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT - + 28 FROM tab2 AS cor0
----
-28
-28
-28

query I rowsort
SELECT DISTINCT + ( 48 ) - col0 AS col0 FROM tab1 AS cor0
----
-16
-32
45

query I rowsort
SELECT ( 60 ) * + col0 - - ( + col1 * col0 + + col1 ) AS col1 FROM tab2 AS cor0
----
6100
668
9341

query I rowsort
SELECT ALL + 63 - col2 * col0 FROM tab1
----
-3585
-7617
-99

query I rowsort
SELECT DISTINCT - + col2 * col1 + - 31 FROM tab0 AS cor0
----
-128
-2869
-7493

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1521
SELECT - 23 + + col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1521
SELECT - 23 + + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1522
SELECT ALL col1 DIV - tab0.col0 AS col2 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL col1 / - tab0.col0 AS col2 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT + col2 * - 20 + cor0.col2 AS col2 FROM tab1 cor0
----
-1026
-1083
-1824

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1524
SELECT - cor0.col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1524
SELECT - cor0.col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * - ( + col1 ) AS col0 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL 97 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT + 53 * 68 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to 5ca23a40400d9fccb816951ade86b675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab2
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-1529
SELECT + + col2 + + col1 - cor0.col0 DIV + 55 AS col1 FROM tab0 AS cor0
----
119
172
98

skipif mysql # not compatible
query I rowsort label-1529
SELECT + + col2 + + col1 - cor0.col0 / + 55 AS col1 FROM tab0 AS cor0
----
119
172
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1530
SELECT - col1 DIV + 28 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1530
SELECT - col1 / + 28 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1531
SELECT 87 * - ( - col0 ) DIV col0 + col0 FROM tab0 AS cor0
----
111
122
176

skipif mysql # not compatible
query I rowsort label-1531
SELECT 87 * - ( - col0 ) / col0 + col0 FROM tab0 AS cor0
----
111
122
176

query I rowsort
SELECT 99 * 55 * - cor0.col2 FROM tab0 AS cor0
----
-179685
-446490
-5445

query I rowsort
SELECT DISTINCT - col1 * col1 * col0 AS col0 FROM tab2
----
-22831
-271518
-6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-1534
SELECT ALL + col2 DIV - 15 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL + col2 / - 15 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT - 43 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2021
3352
8056

query I rowsort
SELECT + - 49 AS col2 FROM tab0 AS cor0
----
-49
-49
-49

onlyif mysql # use DIV operator for integer division
query I rowsort label-1537
SELECT DISTINCT - col1 * col1 + + col0 DIV - 7 AS col2 FROM tab2 AS cor0
----
-300
-3492
-962

skipif mysql # not compatible
query I rowsort label-1537
SELECT DISTINCT - col1 * col1 + + col0 / - 7 AS col2 FROM tab2 AS cor0
----
-300
-3492
-962

query I rowsort
SELECT 24 + + col2 * col2 FROM tab0 AS cor0
----
1113
25
6748

query I rowsort
SELECT ALL col2 * + col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT 35 + col1 AS col0 FROM tab1 AS cor0
----
45
48
61

query I rowsort
SELECT DISTINCT - 51 + col2 AS col1 FROM tab0 AS cor0
----
-18
-50
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1542
SELECT DISTINCT + 2 + + col0 * CAST( col1 AS SIGNED ) col2 FROM tab0 AS cor0
----
2066
3397
8101

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1542
SELECT DISTINCT + 2 + + col0 * CAST ( col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
2066
3397
8101

query I rowsort
SELECT - - 2 + + col2 FROM tab2 AS cor0
----
28
29
40

query I rowsort
SELECT ALL + col1 + + col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT DISTINCT + col2 * - col1 - 70 * + col0 AS col2 FROM tab2 AS cor0
----
-1327
-6176
-6994

query I rowsort
SELECT ALL ( cor0.col0 ) AS col1 FROM tab2 cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-1547
SELECT + col1 DIV - col1 + ( - col0 * col0 ) FROM tab0 AS cor0
----
-1226
-577
-7922

skipif mysql # not compatible
query I rowsort label-1547
SELECT + col1 / - col1 + ( - col0 * col0 ) FROM tab0 AS cor0
----
-1226
-577
-7922

query I rowsort
SELECT 47 + - 29 - - col0 FROM tab0
----
107
42
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - cor0.col0 ) col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - col0 + col0 * 87 AS col2 FROM tab2 AS cor0
----
602
6708
6794

query I rowsort
SELECT ALL - 53 AS col0 FROM tab0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT tab2.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT DISTINCT ( col2 ) * - ( - cor0.col1 ) FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + col1 + cor0.col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT ALL + - 17 * col1 + 17 AS col1 FROM tab1 AS cor0
----
-153
-204
-425

query I rowsort
SELECT 58 * col2 AS col0 FROM tab0 AS cor0
----
1914
4756
58

query I rowsort
SELECT + + cor0.col1 + + col0 * + ( 90 * cor0.col1 ) AS col1 FROM tab2 AS cor0
----
120887
19561
414239

query I rowsort
SELECT 82 * tab2.col0 AS col0 FROM tab2
----
574
6396
6478

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + ( + cor0.col0 ) * - col1 col2 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT + col2 + 16 * 2 AS col0 FROM tab1 AS cor0
----
128
86
89

query I rowsort
SELECT - col1 * + col1 AS col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT + 63 AS col0 FROM tab2
----
63
63
63

query I rowsort
SELECT ALL + col0 * - col1 AS col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + 14 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT ALL - col2 * col1 * tab2.col2 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT col2 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9

query I rowsort
SELECT ( 84 ) AS col0 FROM tab2
----
84
84
84

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2, tab0 cor3
----
13122 values hashing to 004a117a59684285ccb5f2d2a7fef687

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1571
SELECT ALL - + CAST( NULL AS SIGNED ) * cor0.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-1571
SELECT ALL - + CAST ( NULL AS INTEGER ) * cor0.col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col0 ) AS col1 FROM tab1
----
3
64
80

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab1 AS cor1
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a

onlyif mysql # use DIV operator for integer division
query I rowsort label-1574
SELECT col0 + col0 DIV col2 FROM tab1 cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-1574
SELECT col0 + col0 / col2 FROM tab1 cor0
----
3
65
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1575
SELECT + - col2 * - cor0.col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1575
SELECT + - col2 * - cor0.col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( col0 ) * - col1 AS col0 FROM tab0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1577
SELECT CAST( NULL AS SIGNED ) / 13 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1577
SELECT CAST ( NULL AS INTEGER ) / 13 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * cor0.col0 + + 89 * - col1 FROM tab0 AS cor0
----
-178
-7078
-7408

query I rowsort
SELECT + col2 + col1 AS col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT ALL - - ( + col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + 69 AS col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
81 values hashing to dfada1ee7a4e3e5c74a063a1282769f9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1582
SELECT - + col0 DIV 3 + - col2 AS col0 FROM tab1 cor0
----
-122
-55
-78

skipif mysql # not compatible
query I rowsort label-1582
SELECT - + col0 / 3 + - col2 AS col0 FROM tab1 cor0
----
-122
-55
-78

query I rowsort
SELECT + - col2 + + col1 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT DISTINCT 32 * col1 AS col0 FROM tab2 cor0
----
1888
544
992

query I rowsort
SELECT - - 92 + col2 AS col2 FROM tab0 AS cor0
----
125
174
93

query I rowsort
SELECT col0 * col0 * tab0.col1 AS col1 FROM tab0
----
118825
49536
720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 + col0 col2 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT 33 AS col1 FROM tab0 AS cor0
----
33

query I rowsort
SELECT ALL 91 + - col0 AS col2 FROM tab0 AS cor0
----
2
56
67

query I rowsort
SELECT ALL + 97 + col1 + + col2 AS col0 FROM tab1 AS cor0
----
164
177
206

query I rowsort
SELECT DISTINCT - - col1 * - 72 AS col2 FROM tab2 cor0
----
-1224
-2232
-4248

query I rowsort
SELECT ALL 22 + + ( col2 ) * + col1 FROM tab0 AS cor0
----
119
2860
7484

query I rowsort
SELECT DISTINCT 31 * col2 FROM tab2
----
1178
806
837

query I rowsort
SELECT ALL - + cor0.col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT + col2 + 9 AS col0 FROM tab0
----
10
42
91

query I rowsort
SELECT DISTINCT - col0 * + col1 + + col2 + col1 * col2 FROM tab2 AS cor0
----
-3042
-659
647

query I rowsort
SELECT DISTINCT - col2 * 7 + + col1 AS col0 FROM tab1 AS cor0
----
-352
-389
-659

onlyif mysql # use DIV operator for integer division
query I rowsort label-1598
SELECT + + col1 - - 22 DIV - col1 AS col2 FROM tab2 AS cor0
----
16
31
59

skipif mysql # not compatible
query I rowsort label-1598
SELECT + + col1 - - 22 / - col1 AS col2 FROM tab2 AS cor0
----
16
31
59

query I rowsort
SELECT - cor0.col1 + 4 AS col0 FROM tab0 AS cor0
----
-82
-87
-93

query I rowsort
SELECT + col0 + 64 FROM tab0
----
153
88
99

query I rowsort
SELECT col2 * - ( col2 ) * + col1 AS col2 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT + - col0 + - ( col2 ) FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT - col2 + ( col0 ) * - col0 AS col2 FROM tab0 cor0
----
-1226
-609
-8003

query I rowsort
SELECT DISTINCT + ( 53 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab2 AS cor2, tab2
----
53

query I rowsort
SELECT - + 68 + - col2 - + col2 FROM tab2 AS cor0
----
-120
-122
-144

query I rowsort
SELECT ALL col0 * cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT + ( col2 ) * col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - col0 * col0 + - col1 AS col1 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT ALL - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

query I rowsort
SELECT DISTINCT cor1.col2 AS col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
26
27
38

query I rowsort
SELECT ALL col2 + - col0 AS col1 FROM tab1
----
-7
16
51

query I rowsort
SELECT DISTINCT 14 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
14

query I rowsort
SELECT DISTINCT col1 + - col2 FROM tab0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1614
SELECT ALL - col1 DIV col0 + + col2 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-1614
SELECT ALL - col1 / col0 + + col2 FROM tab2 AS cor0
----
23
26
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1615
SELECT ALL - CAST( NULL AS SIGNED ) + 77 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL - CAST ( NULL AS INTEGER ) + 77 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * - col0 + + col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT - + ( - col2 ) * col2 + col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT + col1 * ( col0 ) + - cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
-3456
-5360
69

query I rowsort
SELECT DISTINCT - + col2 + col2 * col2 FROM tab2 cor0
----
1406
650
702

query I rowsort
SELECT DISTINCT + - col0 - 95 FROM tab2 AS cor0
----
-102
-173
-174

query I rowsort
SELECT ( - cor0.col2 ) FROM tab1 cor0
----
-54
-57
-96

query I rowsort
SELECT + col2 * col2 + - col0 * + ( + cor0.col1 ) FROM tab0 cor0
----
-1375
-3394
-975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * 58 + + col0 col1 FROM tab1 AS cor0
----
-1505
-516
-674

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 * - col2 * 23 - col1 * - col2 col0 FROM tab1 AS cor0
----
-210640
-65661
-74093

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col1 + + col0 FROM tab0 AS cor0
----
110
132
180

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab0 cor1, tab0, tab1 AS cor2
----
3645 values hashing to e5255b2277726ba4514ff55622dec830

query I rowsort
SELECT DISTINCT 35 + + col2 AS col0 FROM tab1 AS cor0
----
131
89
92

query I rowsort
SELECT ALL + + 71 * col0 * cor0.col2 FROM tab2 AS cor0
----
13419
143988
213142

query I rowsort
SELECT 14 * col0 * col1 FROM tab1 AS cor0
----
1092
14560
8960

query I rowsort
SELECT DISTINCT col1 + ( + ( + cor0.col1 ) ) - 35 * - 39 AS col2 FROM tab2 AS cor0
----
1399
1427
1483

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1632
SELECT - + col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1632
SELECT - + col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 + + ( - col1 + col2 ) col1 FROM tab2 AS cor0
----
-193
-2061
-2981

query I rowsort
SELECT ALL cor0.col2 + - ( 71 ) FROM tab1 AS cor0
----
-14
-17
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 * 96 col1 FROM tab0 AS cor0
----
104544
645504
96

query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 * ( col1 ) AS col2 FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT col1 + col2 - col2 AS col0 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1638
SELECT + - col2 * CAST( NULL AS SIGNED ) * cor0.col1 + - col2 / + ( 23 ) + - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1638
SELECT + - col2 * CAST ( NULL AS INTEGER ) * cor0.col1 + - col2 / + ( 23 ) + - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1639
SELECT + + col0 DIV + 99 + + col0 - + cor0.col2 FROM tab2 AS cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-1639
SELECT + + col0 / + 99 + + col0 - + cor0.col2 FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 col2 FROM tab1
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT col0 * - 33 FROM tab1 AS cor0
----
-2112
-2640
-99

query I rowsort
SELECT DISTINCT + col1 + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT DISTINCT + + col0 * - ( 90 ) FROM tab1 AS cor0
----
-270
-5760
-7200

onlyif mysql # use DIV operator for integer division
query I rowsort label-1645
SELECT DISTINCT - + col1 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-1645
SELECT DISTINCT - + col1 / cor0.col0 AS col1 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT - - col1 * + ( col2 * cor0.col0 ) FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT tab0.col1 * ( - tab0.col1 ) AS col2 FROM tab0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col0 FROM tab1, tab0 AS cor0
----
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-1649
SELECT + 94 * col1 + col1 DIV - 58 FROM tab0
----
8083
8553
9117

skipif mysql # not compatible
query I rowsort label-1649
SELECT + 94 * col1 + col1 / - 58 FROM tab0
----
8083
8553
9117

query I rowsort
SELECT ( 33 ) FROM tab0
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 - 32 col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 2d31819567e613ec7d2b4618d54b7e55

query I rowsort
SELECT DISTINCT 66 AS col1 FROM tab2
----
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-1653
SELECT DISTINCT - col2 * - 13 + + col2 DIV col1 + ( - col1 + 61 ) FROM tab1 AS cor0
----
1303
739
797

skipif mysql # not compatible
query I rowsort label-1653
SELECT DISTINCT - col2 * - 13 + + col2 / col1 + ( - col1 + 61 ) FROM tab1 AS cor0
----
1303
739
797

query I rowsort
SELECT DISTINCT - + col1 * 45 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
-3078
-4330
3203

query I rowsort
SELECT + 82 * + 62 + + col0 FROM tab2 AS cor0
----
5091
5162
5163

query I rowsort
SELECT DISTINCT - + col0 * 70 + col2 AS col1 FROM tab0 AS cor0
----
-1647
-2449
-6148

query I rowsort
SELECT - - 38 + - 41 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT ALL + ( + 20 ) * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-200
-260
-520

query I rowsort
SELECT ALL - 8 AS col2 FROM tab1 AS cor0
----
-8
-8
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1660
SELECT - 45 * + cor0.col1 DIV - col1 col0 FROM tab0 AS cor0
----
45
45
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1660
SELECT - 45 * + cor0.col1 / - col1 col0 FROM tab0 AS cor0
----
45
45
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + 39 * col1 FROM tab1 AS cor0
----
1014
390
507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) * cor0.col0 * col2 col0 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - 43 * + col1 FROM tab0 AS cor0
----
-3698
-3913
-4171

query I rowsort
SELECT ALL col0 + col2 AS col1 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1666
SELECT - cor0.col0 DIV + cor0.col1 AS col0 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-1666
SELECT - cor0.col0 / + cor0.col1 AS col0 FROM tab1 AS cor0
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT 65 AS col2 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT - col0 - - col1 FROM tab0 cor0
----
2
62

query I rowsort
SELECT + + 1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + - 44 * + col1 AS col2 FROM tab1 AS cor0
----
-1144
-440
-572

query I rowsort
SELECT ALL col1 * 1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col0 AS REAL ) * - tab1.col2 FROM tab1
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-1674
SELECT DISTINCT - col2 DIV + col0 AS col2 FROM tab2
----
-3
0

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT - col2 / + col0 AS col2 FROM tab2
----
-3
0

query I rowsort
SELECT - 70 + + col2 AS col2 FROM tab1 cor0
----
-13
-16
26

query I rowsort
SELECT - - col0 * + col2 + col1 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT col1 * ( + ( - cor0.col1 ) ) FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT col1 + + col2 * + ( col0 ) FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL - col2 + 67 FROM tab0 AS cor0
----
-15
34
66

query I rowsort
SELECT - col2 - + 45 AS col1 FROM tab0 AS cor0
----
-127
-46
-78

query I rowsort
SELECT - col1 - - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col1 + - 32 * cor0.col1 + col1 AS col2 FROM tab0 AS cor0
----
-2752
-2912
-3104

query I rowsort
SELECT - - col1 + col1 AS col0 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - + col1 * col0 + + col0 * + col0 AS col0 FROM tab2 AS cor0
----
-168
1482
4898

onlyif mysql # use DIV operator for integer division
query I rowsort label-1685
SELECT DISTINCT - ( cor0.col0 ) + col1 DIV cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
-177
-46
27

skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT - ( cor0.col0 ) + col1 / cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
-177
-46
27

query I rowsort
SELECT - col2 * - 17 FROM tab0 AS cor0
----
1394
17
561

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1687
SELECT CAST( NULL AS DECIMAL ) / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1687
SELECT CAST ( NULL AS REAL ) / + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + 15 FROM tab0
----
16
48
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1689
SELECT + + col0 + + ( col1 + - CAST( 8 AS SIGNED ) ) * col0 AS col0 FROM tab2 cor0
----
168
4056
790

skipif mysql # not compatible
query I rowsort label-1689
SELECT + + col0 + + ( col1 + - CAST ( 8 AS INTEGER ) ) * col0 AS col0 FROM tab2 cor0
----
168
4056
790

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1690
SELECT - CAST( NULL AS SIGNED ) + - 40 / - col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1690
SELECT - CAST ( NULL AS INTEGER ) + - 40 / - col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col0 ) AS col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT - ( 19 ) + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-16
45
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1693
SELECT ALL tab2.col0 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL tab2.col0 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * col2 * col0 FROM tab0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 col2 FROM tab0
----
1
33
82

query I rowsort
SELECT + cor0.col1 + - 50 FROM tab1 AS cor0
----
-24
-37
-40

query I rowsort
SELECT - - ( ( col1 ) ) FROM tab2 AS cor0
----
17
31
59

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 - col2 * - col1 * col2 - col2 FROM tab1 AS cor0
----
119712
32433
75762

query I rowsort
SELECT + 88 + col0 FROM tab2 AS cor0
----
166
167
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 66 ) * col1 col1 FROM tab2
----
1122
2046
3894

query I rowsort
SELECT - 51 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT + 54 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # use DIV operator for integer division
query I rowsort label-1704
SELECT ALL 13 DIV - cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to bd97949d1c9b20875eb8b658f35759f3

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL 13 / - cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to bd97949d1c9b20875eb8b658f35759f3

query I rowsort
SELECT - 49 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT col1 + 78 * - 17 - + col2 AS col0 FROM tab1 AS cor0
----
-1354
-1373
-1409

query I rowsort
SELECT - - col2 * - col1 + + 40 + - col1 FROM tab2 AS cor0
----
-1553
-623
-828

onlyif mysql # use DIV operator for integer division
query I rowsort label-1708
SELECT + col1 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1708
SELECT + col1 / - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col1 * - ( 65 ) AS col1 FROM tab2 AS cor0
----
-1105
-2015
-3835

query I rowsort
SELECT DISTINCT cor0.col1 * col2 + + 65 FROM tab2 AS cor0
----
1599
711
902

onlyif mysql # use DIV operator for integer division
query I rowsort label-1711
SELECT col1 + col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1711
SELECT col1 + col1 / + col2 AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + 95 FROM tab2, tab0, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a

query I rowsort
SELECT DISTINCT + tab2.col1 * ( col2 ) FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL tab2.col1 * - col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - 69 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-69

query I rowsort
SELECT + col1 + col2 AS col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT col2 * 58 + + cor0.col1 FROM tab1 AS cor0
----
3158
3316
5581

query I rowsort
SELECT + col0 + + col0 * + 48 FROM tab2 AS cor0
----
343
3822
3871

query I rowsort
SELECT ALL col0 + col0 * + ( + col0 ) FROM tab1
----
12
4160
6480

query I rowsort
SELECT + ( + col2 ) + 30 AS col1 FROM tab0
----
112
31
63

query I rowsort
SELECT 90 * - col1 FROM tab0 AS cor0
----
-7740
-8190
-8730

query I rowsort
SELECT - - col2 + cor0.col0 * - ( cor0.col1 ) FROM tab0 AS cor0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-1723
SELECT DISTINCT + - 58 DIV + col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT + - 58 / + col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col2 + - cor0.col0 * ( - col2 ) * col0 FROM tab1 AS cor0
----
233415
432
614304

query I rowsort
SELECT ALL - ( col0 ) * + col2 * + col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT ALL 2 * + col0 + + ( + 97 ) FROM tab1 AS cor0
----
103
225
257

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 + - 57 col1 FROM tab0 AS cor0
----
-22
7241
735

query I rowsort
SELECT + - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + col1 col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + col2 * col0 - 30 AS col2 FROM tab2 cor0
----
159
1998
2972

query I rowsort
SELECT DISTINCT + col2 * - 60 AS col1 FROM tab1 AS cor0
----
-3240
-3420
-5760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + 89 col0 FROM tab1 AS cor0
----
-267
-5696
-7120

query I rowsort
SELECT + col0 * cor0.col0 + - col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT ALL + - cor0.col1 * + 46 AS col1 FROM tab2 AS cor0
----
-1426
-2714
-782

query I rowsort
SELECT + + col2 + - col2 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - - col0 + 40 FROM tab1 AS cor0
----
104
120
43

query I rowsort
SELECT DISTINCT - col2 + 4 AS col2 FROM tab1 AS cor0
----
-50
-53
-92

query I rowsort
SELECT 76 FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT - cor1.col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT + - 14 + col0 FROM tab1 cor0
----
-11
50
66

query I rowsort
SELECT ALL cor1.col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + 56 FROM tab0, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT ALL + 39 AS col2 FROM tab0 AS cor0
----
39
39
39

query I rowsort
SELECT DISTINCT + 36 + col0 * col0 AS col0 FROM tab2 cor0
----
6120
6277
85

query I rowsort
SELECT - + col0 * - col0 + col1 AS col2 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL - - 68 + - cor0.col1 FROM tab0 AS cor0
----
-18
-23
-29

query I rowsort
SELECT DISTINCT + + 29 * + col2 AS col2 FROM tab0 AS cor0
----
2378
29
957

query I rowsort
SELECT cor0.col0 + - col0 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-1751
SELECT ALL - 50 * - col1 + 65 DIV + ( + col0 + col2 * - col1 ) AS col1 FROM tab1 AS cor0
----
1300
500
650

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL - 50 * - col1 + 65 / + ( + col0 + col2 * - col1 ) AS col1 FROM tab1 AS cor0
----
1300
500
650

query I rowsort
SELECT ALL + + 79 * col0 + col1 * col1 AS col1 FROM tab0 AS cor0
----
12174
15312
9292

query I rowsort
SELECT 35 AS col1 FROM tab2
----
35
35
35

query I rowsort
SELECT 17 - - col1 FROM tab2
----
34
48
76

query I rowsort
SELECT ALL ( 54 ) FROM tab1
----
54
54
54

query I rowsort
SELECT ALL + 78 - + col1 * - col2 FROM tab0
----
175
2916
7540

query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 + ( + col2 ) * col1 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT + cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - - col1 + cor0.col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - 10 AS col0 FROM tab1 AS cor0
----
-10

query I rowsort
SELECT ALL 8 + col0 FROM tab2 AS cor0
----
15
86
87

query I rowsort
SELECT - - 98 * + col0 AS col1 FROM tab1 AS cor0
----
294
6272
7840

query I rowsort
SELECT DISTINCT - 4 + - col1 FROM tab1 AS cor0
----
-14
-17
-30

query I rowsort
SELECT DISTINCT - col1 * 79 * col0 AS col1 FROM tab0
----
-163056
-268205
-639821

query I rowsort
SELECT DISTINCT + ( col2 ) + - 3 FROM tab0
----
-2
30
79

query I rowsort
SELECT 88 AS col2 FROM tab2
----
88
88
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1767
SELECT - 23 * col0 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1767
SELECT - 23 * col0 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - col1 + tab0.col0 FROM tab0
----
-29
-61
80

query I rowsort
SELECT DISTINCT tab2.col2 - col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT + ( + col1 ) * col1 - col1 AS col0 FROM tab0
----
7310
8190
9312

query I rowsort
SELECT + 11 + - col0 * 46 + + col1 AS col2 FROM tab0
----
-1007
-1502
-3992

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1772
SELECT DISTINCT 69 + col2 + + ( col0 + col0 * + CAST( col1 AS SIGNED ) ) AS col2 FROM tab1
----
1285
204
830

skipif mysql # not compatible
query I rowsort label-1772
SELECT DISTINCT 69 + col2 + + ( col0 + col0 * + CAST ( col1 AS INTEGER ) ) AS col2 FROM tab1
----
1285
204
830

query I rowsort
SELECT ALL col0 * + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + - col0 col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT ( - cor0.col2 ) * col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + 27 + - tab1.col2 * - col0 AS col0 FROM tab1
----
189
3675
7707

query I rowsort
SELECT ( col2 ) * - tab2.col1 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-1778
SELECT tab2.col0 DIV + cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 07a824b9146f634898cd2a068c4d6146

skipif mysql # not compatible
query I rowsort label-1778
SELECT tab2.col0 / + cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 07a824b9146f634898cd2a068c4d6146

query I rowsort
SELECT tab2.col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + cor0.col1 FROM tab2, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ALL - col2 * col0 + - 79 FROM tab0
----
-114
-7377
-871

query I rowsort
SELECT DISTINCT + ( col1 ) * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ( + cor0.col1 ) * + col2 + ( col1 ) FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-1784
SELECT ALL - - col0 DIV col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL - - col0 / col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL col1 + - col0 AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT col1 + col2 * col0 + - col2 FROM tab2
----
193
2061
2981

query I rowsort
SELECT ALL + col0 + col2 * ( col0 ) + + col1 * col2 * + col0 AS col2 FROM tab1
----
107600
40192
4377

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 + - 4 col0 FROM tab0 AS cor0
----
-2
160
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 * col0 col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT ALL + tab1.col2 + ( + tab1.col1 ) AS col2 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1791
SELECT DISTINCT col0 DIV + col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT col0 / + col0 FROM tab2 cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1792
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1793
SELECT DISTINCT + + col2 DIV ( col1 ) FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT + + col2 / ( col1 ) FROM tab2 AS cor0
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT + 2 * + col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ALL - - col2 * 63 AS col1 FROM tab2 cor0
----
1638
1701
2394

query I rowsort
SELECT 22 * 43 FROM tab0 AS cor0
----
946
946
946

query I rowsort
SELECT ALL + 93 AS col0 FROM tab0 cor0
----
93
93
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1799
SELECT DISTINCT - CAST( col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT - CAST ( col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT ALL col2 + 29 * col1 FROM tab2 AS cor0
----
1737
531
926

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1801
SELECT CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-1801
SELECT CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - - col0 + - ( cor0.col2 ) FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL + + col0 * + col2 * - col0 + col1 * 50 AS col1 FROM tab1 AS cor0
----
-232972
-613750
814

query I rowsort
SELECT col1 * 83 AS col2 FROM tab2 AS cor0
----
1411
2573
4897

onlyif mysql # use DIV operator for integer division
query I rowsort label-1805
SELECT ALL - col0 * ( col0 ) + - 88 - 21 DIV + cor0.col0 AS col1 FROM tab1 AS cor0
----
-104
-4184
-6488

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL - col0 * ( col0 ) + - 88 - 21 / + cor0.col0 AS col1 FROM tab1 AS cor0
----
-104
-4184
-6488

query I rowsort
SELECT - 72 * - 28 FROM tab0 AS cor0
----
2016
2016
2016

query I rowsort
SELECT ALL cor0.col1 * col2 + cor0.col0 * + 54 FROM tab0 AS cor0
----
12268
1987
4134

query I rowsort
SELECT ( cor0.col1 ) * cor0.col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + 68 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT - 7 * + col2 FROM tab2 AS cor0
----
-182
-189
-266

query I rowsort
SELECT col2 + 68 AS col2 FROM tab0 AS cor0
----
101
150
69

query I rowsort
SELECT - - col2 + - col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to 577401eb866f52e8954d694a867c38d2

query I rowsort
SELECT DISTINCT - col0 + ( col0 ) * tab1.col2 FROM tab1
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-1815
SELECT DISTINCT - tab2.col1 DIV ( 74 * - tab2.col1 ) + + 17 * ( tab2.col0 ) AS col2 FROM tab2
----
119
1326
1343

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT - tab2.col1 / ( 74 * - tab2.col1 ) + + 17 * ( tab2.col0 ) AS col2 FROM tab2
----
119
1326
1343

query I rowsort
SELECT ALL - 11 AS col1 FROM tab1
----
-11
-11
-11

query I rowsort
SELECT + ( - col1 ) AS col0 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT + 16 FROM tab0
----
16
16
16

query I rowsort
SELECT ALL 61 + - 93 FROM tab2 AS cor0
----
-32
-32
-32

query I rowsort
SELECT ( tab0.col2 + - col0 ) * - ( col0 * col0 ) FROM tab0
----
-5184
41650
55447

query I rowsort
SELECT DISTINCT col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
164
2
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1822
SELECT CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-1822
SELECT CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
10
13
26

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab1 AS cor0, tab2 AS cor1
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

query I rowsort
SELECT ALL + 64 * tab1.col0 AS col1 FROM tab1
----
192
4096
5120

query I rowsort
SELECT col2 * - tab0.col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL + col2 + - col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL + - ( + col0 ) * ( + col2 * col2 ) AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1829
SELECT ALL - + col1 * CAST( - ( + col1 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL - + col1 * CAST ( - ( + col1 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL col2 + + 28 FROM tab1 AS cor0
----
124
82
85

query I rowsort
SELECT DISTINCT + col2 + - ( + 13 + col1 ) * col2 * + col1 AS col1 FROM tab2 cor0
----
-110422
-19342
-36801

onlyif mysql # use DIV operator for integer division
query I rowsort label-1832
SELECT DISTINCT - col0 DIV + col0 + col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT - col0 / + col0 + col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT col0 - 97 AS col0 FROM tab1 AS cor0
----
-17
-33
-94

query I rowsort
SELECT ALL col1 * - col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-1835
SELECT + + col0 DIV cor0.col2 + - ( - col0 ) * col1 AS col1 FROM tab0 AS cor0
----
2064
3430
8100

skipif mysql # not compatible
query I rowsort label-1835
SELECT + + col0 / cor0.col2 + - ( - col0 ) * col1 AS col1 FROM tab0 AS cor0
----
2064
3430
8100

query I rowsort
SELECT col1 + + ( col0 ) * + col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + col1 + - col0 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - col0 + - col2 * ( cor0.col2 ) AS col1 FROM tab1 cor0
----
-2919
-3313
-9296

query I rowsort
SELECT + tab0.col1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT + col0 + - 1 * col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + 38 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb

query I rowsort
SELECT 68 + cor0.col0 * - cor0.col2 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to b70b729f754a61016d63489020ec28f1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1843
SELECT + col1 + + CAST( - 58 AS SIGNED ) * cor0.col0 FROM tab1 AS cor0
----
-148
-3702
-4627

skipif mysql # not compatible
query I rowsort label-1843
SELECT + col1 + + CAST ( - 58 AS INTEGER ) * cor0.col0 FROM tab1 AS cor0
----
-148
-3702
-4627

query I rowsort
SELECT - + col2 + 64 * - col2 AS col2 FROM tab2 AS cor0
----
-1690
-1755
-2470

query I rowsort
SELECT col2 + + col2 * - col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT col1 * col0 * col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - - 44 + - col0 * - col0 - ( col2 ) FROM tab2 AS cor0
----
6102
6247
66

query I rowsort
SELECT - - 4 - + 52 FROM tab1 AS cor0
----
-48
-48
-48

query I rowsort
SELECT + ( col2 ) * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - + 74 * col1 * col1 FROM tab2 cor0
----
-21386
-257594
-71114

onlyif mysql # use DIV operator for integer division
query I rowsort label-1851
SELECT - col2 DIV - col2 - col2 * - col1 * col1 FROM tab1 AS cor0
----
16225
36505
5701

skipif mysql # not compatible
query I rowsort label-1851
SELECT - col2 / - col2 - col2 * - col1 * col1 FROM tab1 AS cor0
----
16225
36505
5701

query I rowsort
SELECT ALL + 55 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT + col0 - col0 * col1 * 52 FROM tab2 AS cor0
----
-11277
-239226
-69757

onlyif mysql # use DIV operator for integer division
query I rowsort label-1854
SELECT + ( col2 ) + + col0 DIV - 48 AS col0 FROM tab2 cor0
----
25
27
37

skipif mysql # not compatible
query I rowsort label-1854
SELECT + ( col2 ) + + col0 / - 48 AS col0 FROM tab2 cor0
----
25
27
37

query I rowsort
SELECT - 45 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + - col0 + ( cor0.col2 ) FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - col2 - ( col0 ) * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-6110
-6279
-76

query I rowsort
SELECT DISTINCT + 60 FROM tab1 AS cor0
----
60

query I rowsort
SELECT ALL - - 56 AS col2 FROM tab2 AS cor0
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 col2 FROM tab2 AS cor0
----
62

query I rowsort
SELECT + + cor0.col1 * cor0.col1 + - col0 FROM tab1 AS cor0
----
36
673
89

query I rowsort
SELECT col2 * tab0.col2 AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT cor0.col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + 56 * + col1 FROM tab1 AS cor0
----
1456
560
728

query I rowsort
SELECT 62 AS col2 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT ALL 48 FROM tab0
----
48
48
48

query I rowsort
SELECT 21 AS col1 FROM tab0
----
21
21
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-1870
SELECT - - cor0.col1 DIV + col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-1870
SELECT - - cor0.col1 / + col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT - 37 + col1 FROM tab0 AS cor0
----
49
54
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col2 FROM tab0 cor0
----
19
19
19

query I rowsort
SELECT - col0 * - ( ( col1 ) ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT 44 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT ALL + - ( cor0.col0 ) * - col0 - - col0 AS col2 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT ALL - 90 FROM tab2 AS cor0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT - 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 col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT 61 - - col0 AS col1 FROM tab2 AS cor0
----
139
140
68

query I rowsort
SELECT ALL - 65 FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT ALL - 53 FROM tab0
----
-53
-53
-53

query I rowsort
SELECT ALL ( col1 ) * col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT ALL 47 FROM tab1
----
47
47
47

query I rowsort
SELECT ( 23 + + col0 ) AS col1 FROM tab0
----
112
47
58

query I rowsort
SELECT + 2 * col2 - - col2 FROM tab2
----
114
78
81

query I rowsort
SELECT DISTINCT + - 7 * + col0 - + cor0.col2 AS col2 FROM tab0 AS cor0
----
-201
-246
-705

query I rowsort
SELECT cor0.col1 - - col1 FROM tab2 AS cor0
----
118
34
62

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 col1 * col1 + - col2 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT - col1 - col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL - 5 + - col0 * 6 FROM tab2 AS cor0
----
-47
-473
-479

query I rowsort
SELECT 86 AS col1 FROM tab0 AS cor0
----
86
86
86

query I rowsort
SELECT ALL 60 AS col2 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT + col0 - - cor0.col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - 8 + + col2 * - cor0.col0 FROM tab0 AS cor0
----
-43
-7306
-800

query I rowsort
SELECT - - col1 * - col1 + + ( cor0.col2 ) AS col0 FROM tab0 cor0
----
-7363
-8199
-9408

query I rowsort
SELECT col0 * + col1 + - col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT ALL + col2 + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + 7 * + col0 - + col1 FROM tab2 AS cor0
----
18
487
536

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT + col0 * - ( + col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + - col0 + col2 * col0 FROM tab0 AS cor0
----
0
7209
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + cor0.col2 + cor0.col2 col1 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1905
SELECT + col1 DIV col1 + - col2 * cor0.col1 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2751
-7370
1

skipif mysql # not compatible
query I rowsort label-1905
SELECT + col1 / col1 + - col2 * cor0.col1 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2751
-7370
1

query I rowsort
SELECT + col2 + + ( + ( - col1 ) ) + + cor0.col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - ( 59 ) * cor0.col2 * col0 FROM tab2 AS cor0
----
-11151
-119652
-177118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + - col2 * col2 * + cor0.col1 col2 FROM tab0 AS cor0
----
-194
-611975
-93740

query I rowsort
SELECT ALL + 58 + + col1 FROM tab1 AS cor0
----
68
71
84

query I rowsort
SELECT DISTINCT + + ( col0 ) + - col2 * col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT col1 * - 95 AS col2 FROM tab1 AS cor0
----
-1235
-2470
-950

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 col1 FROM tab0, tab1 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT - 77 + - tab1.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 1208a65377f6d2df853a92b873fe0b99

query I rowsort
SELECT DISTINCT col2 * - col2 + + col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT ALL - 45 FROM tab0 AS cor0
----
-45
-45
-45

query I rowsort
SELECT - + ( + col2 ) * col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + 42 * ( + cor0.col1 ) FROM tab1 AS cor0
----
1092
420
546

query I rowsort
SELECT ALL + col1 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * - 0 col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL 1 * - col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT tab2.col2 + col0 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL - 14 FROM tab0 AS cor0
----
-14
-14
-14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1923
SELECT + - CAST( col0 AS SIGNED ) + col1 + 42 FROM tab0 cor0
----
104
104
44

skipif mysql # not compatible
query I rowsort label-1923
SELECT + - CAST ( col0 AS INTEGER ) + col1 + 42 FROM tab0 cor0
----
104
104
44

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1924
SELECT DISTINCT + ( - col0 ) * + col1 + CAST( NULL AS DECIMAL ) * col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1924
SELECT DISTINCT + ( - col0 ) * + col1 + CAST ( NULL AS REAL ) * col0 FROM tab1 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1925
SELECT DISTINCT + 45 DIV - col1 FROM tab1 AS cor0
----
-1
-3
-4

skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT + 45 / - col1 FROM tab1 AS cor0
----
-1
-3
-4

query I rowsort
SELECT DISTINCT + col1 + col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT ALL 24 AS col0 FROM tab0 AS cor0
----
24
24
24

query I rowsort
SELECT + + ( + 67 ) AS col0 FROM tab1 AS cor0
----
67
67
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-1929
SELECT DISTINCT + col0 DIV 63 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-1929
SELECT DISTINCT + col0 / 63 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT 9 FROM tab1 AS cor0
----
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1931
SELECT + 89 + 11 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
89
89
90

skipif mysql # not compatible
query I rowsort label-1931
SELECT + 89 + 11 / cor0.col0 AS col0 FROM tab2 AS cor0
----
89
89
90

query I rowsort
SELECT ALL - col0 * col2 + + col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT ALL + + ( col2 ) FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - - 85 * - col1 FROM tab2 AS cor0
----
-1445
-2635
-5015

onlyif mysql # use DIV operator for integer division
query I rowsort label-1935
SELECT - - 39 DIV col1 AS col0 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1935
SELECT - - 39 / col1 AS col0 FROM tab2 AS cor0
----
0
1
2

query I rowsort
SELECT + + 29 * col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
18560
2262
30160

query I rowsort
SELECT ALL - + 48 AS col0 FROM tab2 AS cor0
----
-48
-48
-48

query I rowsort
SELECT ALL + 60 FROM tab1 AS cor0
----
60
60
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-1939
SELECT ALL col2 DIV - 11 FROM tab1
----
-4
-5
-8

skipif mysql # not compatible
query I rowsort label-1939
SELECT ALL col2 / - 11 FROM tab1
----
-4
-5
-8

query I rowsort
SELECT cor0.col2 + + cor0.col1 * 36 FROM tab2 AS cor0
----
1143
2150
650

query I rowsort
SELECT DISTINCT + - cor1.col0 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - col2 * + col0 AS col1 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL - col0 * - ( + 2 ) + + cor0.col2 * 56 * + 79 FROM tab1 AS cor0
----
238902
252296
424864

query I rowsort
SELECT ALL - col2 * - ( col1 * - col2 ) + + col2 - + col1 * col1 AS col0 FROM tab1 AS cor0
----
-119881
-32533
-76438

query I rowsort
SELECT + - col2 + col1 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
131
77
98

query I rowsort
SELECT col2 + - ( - 17 ) AS col1 FROM tab1 AS cor0
----
113
71
74

query I rowsort
SELECT - cor0.col2 * - col2 + + 25 FROM tab0 AS cor0
----
1114
26
6749

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1948
SELECT ALL + col1 + CAST( ( + col2 ) AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL + col1 + CAST ( ( + col2 ) AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 32 ) col2 FROM tab2, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT ALL tab2.col1 - - col1 AS col1 FROM tab2
----
118
34
62

query I rowsort
SELECT ALL - col0 + col1 * 58 + - col1 * 64 AS col0 FROM tab1
----
-124
-158
-159

query I rowsort
SELECT - tab0.col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col1 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + 22 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

query I rowsort
SELECT tab1.col1 + + ( col0 ) FROM tab1
----
29
74
93

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1 cor1, tab1, tab2 AS cor2
----
3645 values hashing to 85e6cb74738e0d8388af8fb625b2bd38

query I rowsort
SELECT + col2 * - col2 + - 18 AS col1 FROM tab1 AS cor0
----
-2934
-3267
-9234

query I rowsort
SELECT ALL + col1 * - ( + col1 ) + + col2 AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT - + col2 * + cor0.col2 + - col0 AS col0 FROM tab0 AS cor0
----
-1113
-36
-6813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1960
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1960
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 + 63 * 81 AS col1 FROM tab1 AS cor0
----
5106
5167
5183

onlyif mysql # use DIV operator for integer division
query I rowsort label-1962
SELECT + + col1 DIV - col2 + - col2 DIV col0 FROM tab0 AS cor0
----
-1
-3
-97

skipif mysql # not compatible
query I rowsort label-1962
SELECT + + col1 / - col2 + - col2 / col0 FROM tab0 AS cor0
----
-1
-3
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1963
SELECT col2 DIV col1 + + col2 + + col2 AS col2 FROM tab1 AS cor0
----
110
119
199

skipif mysql # not compatible
query I rowsort label-1963
SELECT col2 / col1 + + col2 + + col2 AS col2 FROM tab1 AS cor0
----
110
119
199

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1964
SELECT + col1 * - col1 + CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1964
SELECT + col1 * - col1 + CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 45 + col1 FROM tab0 cor0
----
131
136
142

query I rowsort
SELECT DISTINCT + - col1 + col1 * + cor0.col2 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT + - col2 * + col2 + - cor0.col2 * 76 AS col1 FROM tab2 AS cor0
----
-2652
-2781
-4332

query I rowsort
SELECT ALL - 56 + + cor0.col1 FROM tab1 AS cor0
----
-30
-43
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col0 * - cor0.col1 col2 FROM tab1, tab1 cor0, tab0, tab2 AS cor1
----
81 values hashing to 844a3644851af967df99084c38f3e6a7

query I rowsort
SELECT DISTINCT + ( col1 ) + col1 AS col2 FROM tab2
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 + + 8 col2 FROM tab0
----
-7388
-8273
-9401

query I rowsort
SELECT - col1 * 58 AS col2 FROM tab0 AS cor0
----
-4988
-5278
-5626

query I rowsort
SELECT col0 + col0 * ( col0 ) AS col1 FROM tab1
----
12
4160
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT DISTINCT + - 13 + col0 * col1 FROM tab0 AS cor0
----
2051
3382
8086

onlyif mysql # use DIV operator for integer division
query I rowsort label-1976
SELECT col2 DIV + col0 + col2 * 9 * + col2 AS col2 FROM tab2 AS cor0
----
12996
6084
6564

skipif mysql # not compatible
query I rowsort label-1976
SELECT col2 / + col0 + col2 * 9 * + col2 AS col2 FROM tab2 AS cor0
----
12996
6084
6564

query I rowsort
SELECT DISTINCT - 32 FROM tab1
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT + tab1.col0 + 32 * + col0 FROM tab1
----
2112
2640
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1980
SELECT - CAST( - col2 AS SIGNED ) + col2 FROM tab2 AS cor0
----
52
54
76

skipif mysql # not compatible
query I rowsort label-1980
SELECT - CAST ( - col2 AS INTEGER ) + col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT col2 * 68 AS col2 FROM tab0 AS cor0
----
2244
5576
68

query I rowsort
SELECT - cor0.col1 + - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT DISTINCT tab0.col1 * ( col2 * + tab0.col1 ) FROM tab0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1984
SELECT col1 + col0 * - ( col0 ) DIV + col0 AS col2 FROM tab2
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-1984
SELECT col1 + col0 * - ( col0 ) / + col0 AS col2 FROM tab2
----
-19
-62
24

query I rowsort
SELECT col0 * col0 + + ( col1 + tab1.col1 ) * + ( col2 ) AS col1 FROM tab1
----
2817
5236
8896

query I rowsort
SELECT - 79 FROM tab0, tab2 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT - tab0.col1 + + col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 80 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT + - ( + col1 ) + col2 FROM tab2 cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-1990
SELECT DISTINCT + col1 * + 51 + + cor0.col1 DIV col0 FROM tab2 AS cor0
----
1585
3009
867

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT + col1 * + 51 + + cor0.col1 / col0 FROM tab2 AS cor0
----
1585
3009
867

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1991
SELECT - CAST( NULL AS SIGNED ) * - col0 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1991
SELECT - CAST ( NULL AS INTEGER ) * - col0 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1992
SELECT DISTINCT - - col2 * col1 - - col1 DIV + col0 AS col0 FROM tab0 AS cor0
----
2841
7463
99

skipif mysql # not compatible
query I rowsort label-1992
SELECT DISTINCT - - col2 * col1 - - col1 / + col0 AS col0 FROM tab0 AS cor0
----
2841
7463
99

query I rowsort
SELECT ALL + col0 * 83 FROM tab0 AS cor0
----
1992
2905
7387

query I rowsort
SELECT DISTINCT col2 * - cor0.col0 + cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT DISTINCT - - 19 FROM tab0 AS cor0
----
19

query I rowsort
SELECT DISTINCT ( - col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + 6 * col0 AS col1 FROM tab2 AS cor0
----
42
468
474

query I rowsort
SELECT ALL - 7 + col1 FROM tab2 cor0
----
10
24
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1999
SELECT ALL - - CAST( ( - col0 ) AS SIGNED ) * + 2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-120
-130
13

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL - - CAST ( ( - col0 ) AS INTEGER ) * + 2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-120
-130
13

query I rowsort
SELECT ALL - col2 * - cor0.col0 + - col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT + col0 + col2 - cor0.col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2002
SELECT ALL 79 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL 79 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 64 FROM tab2
----
64
64
64

query I rowsort
SELECT - 41 FROM tab2
----
-41
-41
-41

query I rowsort
SELECT + col1 * + col1 + - col0 AS col2 FROM tab2
----
210
3403
954

onlyif mysql # use DIV operator for integer division
query I rowsort label-2006
SELECT DISTINCT ( col2 + + col0 ) DIV + ( 15 ) FROM tab2
----
2
6
7

skipif mysql # not compatible
query I rowsort label-2006
SELECT DISTINCT ( col2 + + col0 ) / + ( 15 ) FROM tab2
----
2
6
7

query I rowsort
SELECT ALL 26 * 84 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to d0c7ebac197afe4cd06e8e21b78b8da4

query I rowsort
SELECT - - ( 8 ) FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT - + 77 AS col0 FROM tab1 AS cor0
----
-77
-77
-77

query I rowsort
SELECT + + 94 FROM tab2 AS cor0
----
94
94
94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2011
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2011
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + + 88 FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT ALL - + 58 FROM tab2 cor0
----
-58
-58
-58

query I rowsort
SELECT ( cor0.col1 ) * ( col0 + + col2 ) AS col1 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT - - 9 AS col1 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT + 13 FROM tab2 AS cor0
----
13
13
13

query I rowsort
SELECT - - cor0.col0 * 44 AS col0 FROM tab1 AS cor0
----
132
2816
3520

query I rowsort
SELECT ALL col0 * + col0 AS col0 FROM tab1
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col2 + 41 col1 FROM tab1 AS cor0
----
-10
25
48

query I rowsort
SELECT col0 * + 58 + col2 FROM tab2 AS cor0
----
433
4550
4620

query I rowsort
SELECT col2 * + col2 * - col2 + + col1 FROM tab1 AS cor0
----
-157438
-185183
-884723

query I rowsort
SELECT cor0.col0 * ( + col1 ) + - col1 + + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2023
SELECT CAST( NULL AS SIGNED ) + col1 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2023
SELECT CAST ( NULL AS INTEGER ) + col1 * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col1 * 95 ) col2 FROM tab1, tab2 cor0
----
9 values hashing to 55f04e0ce0dee30d2f57216e372567a9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2025
SELECT - ( - col1 ) DIV col1 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2025
SELECT - ( - col1 ) / col1 AS col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2026
SELECT DISTINCT - col1 DIV + col0 - 66 AS col1 FROM tab0 AS cor0
----
-67
-68
-69

skipif mysql # not compatible
query I rowsort label-2026
SELECT DISTINCT - col1 / + col0 - 66 AS col1 FROM tab0 AS cor0
----
-67
-68
-69

query I rowsort
SELECT ALL + + cor0.col0 + 9 * - cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
-18552
-30520
-72802

query I rowsort
SELECT DISTINCT - - cor0.col1 * col1 + + col2 AS col1 FROM tab2 cor0
----
327
3507
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-2029
SELECT ALL col0 + - 23 DIV - col1 FROM tab1 AS cor0
----
3
66
81

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL col0 + - 23 / - col1 FROM tab1 AS cor0
----
3
66
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * ( - col1 ) col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + col1 * + 42 FROM tab1 AS cor0
----
1092
420
546

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2032
SELECT ALL col2 * CAST( + col0 AS SIGNED ) + col1 * ( + col1 * + col1 ) + 0 FROM tab0 cor0
----
636848
760869
912708

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL col2 * CAST ( + col0 AS INTEGER ) + col1 * ( + col1 * + col1 ) + 0 FROM tab0 cor0
----
636848
760869
912708

query I rowsort
SELECT ALL - col2 * col0 + - 86 FROM tab0 AS cor0
----
-121
-7384
-878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2034
SELECT col2 + + CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-2034
SELECT col2 + + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - - col0 + col1 - - col0 FROM tab0 AS cor0
----
134
167
269

query I rowsort
SELECT ALL + + col2 + 95 FROM tab2 AS cor0
----
121
122
133

query I rowsort
SELECT - cor0.col2 * + cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL cor0.col0 * - 58 + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-12460
-2065
-2184

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2039
SELECT DISTINCT tab0.col2 + - CAST( NULL AS DECIMAL ) col2 FROM tab0, tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2039
SELECT DISTINCT tab0.col2 + - CAST ( NULL AS REAL ) col2 FROM tab0, tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 * - tab1.col2 - - col0 * - 18 col0 FROM tab1
----
2097
2862
7776

query I rowsort
SELECT DISTINCT + + cor0.col2 AS col1 FROM tab0, tab2, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + tab2.col2 FROM tab0, tab1, tab0 cor0, tab2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2043
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 + - col1 * col0 FROM tab0 cor0
----
-2150
-3492
-8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-2045
SELECT ALL cor0.col1 DIV col0 + + col0 AS col1 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL cor0.col1 / col0 + + col0 AS col1 FROM tab2 AS cor0
----
11
78
79

query I rowsort
SELECT 61 FROM tab2
----
61
61
61

query I rowsort
SELECT DISTINCT tab2.col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab1 cor1
----
17
31
59

query I rowsort
SELECT + cor0.col1 * - col1 + + 34 AS col1 FROM tab0 cor0
----
-7362
-8247
-9375

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2049
SELECT ALL CAST( NULL AS SIGNED ) + tab1.col1 * tab1.col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL CAST ( NULL AS INTEGER ) + tab1.col1 * tab1.col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 * cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-2051
SELECT + tab1.col1 - + 78 DIV tab1.col1 FROM tab1
----
23
3
7

skipif mysql # not compatible
query I rowsort label-2051
SELECT + tab1.col1 - + 78 / tab1.col1 FROM tab1
----
23
3
7

query I rowsort
SELECT + col1 * - col2 + 61 AS col0 FROM tab2 AS cor0
----
-1473
-585
-776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + col1 col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - 2 * col1 - 39 * - col2 FROM tab2 AS cor0
----
1448
896
991

query I rowsort
SELECT ALL + + 16 * col2 FROM tab2 AS cor0
----
416
432
608

query I rowsort
SELECT 43 FROM tab2
----
43
43
43

query I rowsort
SELECT ALL + tab0.col0 + col1 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT tab1.col0 + + col2 * col2 AS col2 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT ALL + cor0.col1 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT + - ( col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - col1 * + col1 + ( - 96 ) + col2 FROM tab1 AS cor0
----
-139
-169
-718

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2062
SELECT DISTINCT 61 * - col1 * CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-34770
-76128
-85644

skipif mysql # not compatible
query I rowsort label-2062
SELECT DISTINCT 61 * - col1 * CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-34770
-76128
-85644

query I rowsort
SELECT ALL + - col2 * - col0 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col1 col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - 61 * + col1 * - ( 93 ) + + col1 AS col2 FROM tab2
----
175894
334766
96458

query I rowsort
SELECT DISTINCT col2 * col2 * 54 AS col2 FROM tab0
----
363096
54
58806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 * col1 col1 FROM tab0 AS cor0
----
5676
6006
6402

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 2 * col1 col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL - 62 AS col1 FROM tab1 AS cor0
----
-62
-62
-62

query I rowsort
SELECT - - col0 * col1 + col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL col2 + col1 * col1 AS col0 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ALL + col1 * col2 - + col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL col0 * 71 FROM tab2 cor0
----
497
5538
5609

query I rowsort
SELECT ALL - + col0 - 60 * + col2 AS col1 FROM tab0 AS cor0
----
-2004
-5009
-95

query I rowsort
SELECT ALL col0 * - ( - ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2076
SELECT DISTINCT col1 * CAST( - col2 AS SIGNED ) DIV - cor0.col1 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2076
SELECT DISTINCT col1 * CAST ( - col2 AS INTEGER ) / - cor0.col1 AS col1 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT 96 AS col1 FROM tab1, tab0 AS cor0
----
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2079
SELECT - col1 + 13 + col0 DIV + cor0.col2 FROM tab1 AS cor0
----
-13
0
4

skipif mysql # not compatible
query I rowsort label-2079
SELECT - col1 + 13 + col0 / + cor0.col2 FROM tab1 AS cor0
----
-13
0
4

query I rowsort
SELECT ( col0 ) * col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - col1 + col2 + + tab2.col0 AS col0 FROM tab2
----
100
3
45

query I rowsort
SELECT ( + col1 ) * + col2 + + ( + 2 * col0 + col1 ) FROM tab1
----
1421
1436
708

query I rowsort
SELECT cor0.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT col0 * - col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - - 97 + 61 AS col1 FROM tab0 AS cor0
----
158

query I rowsort
SELECT - 48 + + 74 FROM tab2 AS cor0
----
26
26
26

query I rowsort
SELECT DISTINCT - - 33 FROM tab1 AS cor0
----
33

query I rowsort
SELECT - 19 * + col2 AS col1 FROM tab1 AS cor0
----
-1026
-1083
-1824

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2089
SELECT DISTINCT CAST( 21 AS SIGNED ) * + col2 * + col2 + - 78 FROM tab0 AS cor0
----
-57
141126
22791

skipif mysql # not compatible
query I rowsort label-2089
SELECT DISTINCT CAST ( 21 AS INTEGER ) * + col2 * + col2 + - 78 FROM tab0 AS cor0
----
-57
141126
22791

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 col0 FROM tab1, tab0 AS cor0
----
80

query I rowsort
SELECT col2 + - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-2092
SELECT ALL + - 23 * 3 DIV col0 AS col2 FROM tab1 AS cor0
----
-1
-23
0

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL + - 23 * 3 / col0 AS col2 FROM tab1 AS cor0
----
-1
-23
0

query I rowsort
SELECT ALL - + 93 FROM tab0 AS cor0
----
-93
-93
-93

query I rowsort
SELECT DISTINCT - + 93 + col2 * 44 AS col2 FROM tab1 cor0
----
2283
2415
4131

query I rowsort
SELECT ALL + col1 * + col0 * + 26 AS col1 FROM tab1 AS cor0
----
16640
2028
27040

query I rowsort
SELECT + 78 * - col2 FROM tab2 AS cor0
----
-2028
-2106
-2964

query I rowsort
SELECT - col0 + col2 + + 84 FROM tab0 AS cor0
----
50
77
93

query I rowsort
SELECT - cor0.col0 * - col0 * col1 AS col2 FROM tab0 cor0
----
118825
49536
720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - col0 * 31 col0 FROM tab1 AS cor0
----
-1927
-2384
-39

skipif mysql # not compatible
query I rowsort
SELECT 44 * - col1 * - col2 + col2 + - col2 * CAST ( + ( col2 ) AS REAL ) AS col2 FROM tab2 AS cor0
----
27018
36126
66846

query I rowsort
SELECT - col2 * - col2 * + col2 AS col2 FROM tab1 AS cor0
----
157464
185193
884736

query I rowsort
SELECT ALL + 87 + + col2 * - col0 * - col1 AS col2 FROM tab1 AS cor0
----
36567
4299
99927

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 77 col0 FROM tab0 AS cor0
----
77
77
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-2104
SELECT - 52 * col0 DIV + tab1.col2 + - 1 - 38 FROM tab1
----
-41
-82
-97

skipif mysql # not compatible
query I rowsort label-2104
SELECT - 52 * col0 / + tab1.col2 + - 1 - 38 FROM tab1
----
-41
-82
-97

query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab0, tab2, tab2 AS cor0
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2106
SELECT ALL 25 - + tab2.col1 * col0 DIV - 80 FROM tab2
----
27
41
82

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL 25 - + tab2.col1 * col0 / - 80 FROM tab2
----
27
41
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-2107
SELECT DISTINCT col2 + - col0 DIV col0 AS col0 FROM tab0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT col2 + - col0 / col0 AS col0 FROM tab0
----
0
32
81

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0 AS cor2
----
972 values hashing to deaaa983f771be544ffdc26f04a18657

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f

query I rowsort
SELECT DISTINCT - col0 * - ( col0 ) AS col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT cor0.col1 * - cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2112
SELECT - cor0.col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2112
SELECT - cor0.col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 + - col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2114
SELECT + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2114
SELECT + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab2, tab2 cor0
----
26
27
38

query I rowsort
SELECT ALL 52 FROM tab2, tab0 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT ALL + + cor0.col1 + col1 * + col0 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
3492
664209
68198

query I rowsort
SELECT + - 20 AS col0 FROM tab0 AS cor0
----
-20
-20
-20

query I rowsort
SELECT ALL + col1 * + cor0.col0 + + col1 * - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * col2 * col1 + col0 FROM tab0 cor0
----
-3360
-664029
-68088

query I rowsort
SELECT DISTINCT col0 * - cor0.col0 + col1 AS col2 FROM tab0 cor0
----
-1128
-490
-7830

query I rowsort
SELECT ALL cor0.col0 + - col2 * + col0 + - col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2124
SELECT + - col1 * + col0 + CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2124
SELECT + - col1 * + col0 + CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2125
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 42 * col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2125
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 42 * col0 FROM tab0
----
NULL

query I rowsort
SELECT + col1 + + col1 * col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + col2 + - 7 * col0 FROM tab2 AS cor0
----
-22
-515
-520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 col2 FROM tab2
----
64
64
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 12 col2 FROM tab0
----
12

query I rowsort
SELECT + 50 FROM tab1
----
50
50
50

query I rowsort
SELECT col0 * tab2.col2 + - tab2.col1 * col1 FROM tab2
----
-1453
-772
2713

query I rowsort
SELECT ALL + - col1 * 80 - - 3 * - col2 FROM tab0 cor0
----
-6979
-7526
-7763

onlyif mysql # use DIV operator for integer division
query I rowsort label-2133
SELECT ALL col1 + + ( col1 ) DIV + col0 FROM tab0 AS cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL col1 + + ( col1 ) / + col0 FROM tab0 AS cor0
----
89
92
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to dd771e0c15d524f62127686e9bd43f9a

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 2566f3fa788816c8bfc482e730aaed74

query I rowsort
SELECT ALL cor0.col2 + col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT ALL 75 * cor0.col2 FROM tab2 AS cor0
----
1950
2025
2850

query I rowsort
SELECT DISTINCT + + col1 + cor0.col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + col0 * + 6 * tab1.col0 AS col0 FROM tab1
----
24576
38400
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 * - cor0.col0 col0 FROM tab0 AS cor0
----
-2160
-3150
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-2142
SELECT DISTINCT + + col1 + - cor0.col1 * cor0.col1 DIV - col2 FROM tab0 AS cor0
----
191
310
9506

skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT + + col1 + - cor0.col1 * cor0.col1 / - col2 FROM tab0 AS cor0
----
191
310
9506

query I rowsort
SELECT DISTINCT col2 * col2 - - col0 FROM tab0 cor0
----
1113
36
6813

query I rowsort
SELECT + col0 + col0 * - col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT - 22 * cor0.col2 AS col0 FROM tab0, tab2, tab2 AS cor0, tab1
----
-572
-594
-836

query I rowsort
SELECT ALL - 96 AS col0 FROM tab0 AS cor0
----
-96
-96
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2147
SELECT - col0 DIV col0 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2147
SELECT - col0 / col0 AS col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT tab2.col1 * - col0 AS col0 FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2149
SELECT - 70 DIV ( tab2.col0 ) FROM tab2
----
-10
0
0

skipif mysql # not compatible
query I rowsort label-2149
SELECT - 70 / ( tab2.col0 ) FROM tab2
----
-10
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2150
SELECT - col2 * + col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT - col2 * + col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 28 * + col0 AS col1 FROM tab0 cor0
----
2492
672
980

query I rowsort
SELECT + + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + 6 - col1 FROM tab1 AS cor0
----
-20
-4
-7

query I rowsort
SELECT + cor0.col1 * col1 + - col1 * 88 FROM tab0 AS cor0
----
-172
273
873

query I rowsort
SELECT - 75 + col2 FROM tab1 AS cor0
----
-18
-21
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-2156
SELECT ALL col1 DIV col0 AS col0 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL col1 / col0 AS col0 FROM tab2
----
0
0
4

query I rowsort
SELECT ALL + ( + col0 ) * + col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT - ( - col0 ) + col0 * ( + col0 ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
6221
6337
87

query I rowsort
SELECT DISTINCT 66 * 64 FROM tab0 cor0
----
4224

query I rowsort
SELECT DISTINCT - col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + 29 * cor0.col1 + - col2 AS col1 FROM tab1 AS cor0
----
233
281
700

query I rowsort
SELECT ALL + - 26 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT ALL 85 FROM tab1, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT + 93 * + col2 + col0 FROM tab2 cor0
----
2496
2518
3613

query I rowsort
SELECT ALL - - 95 FROM tab1 cor0
----
95
95
95

query I rowsort
SELECT DISTINCT ( - col1 ) * col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-2167
SELECT + + 29 DIV col2 FROM tab0 AS cor0
----
0
0
29

skipif mysql # not compatible
query I rowsort label-2167
SELECT + + 29 / col2 FROM tab0 AS cor0
----
0
0
29

query I rowsort
SELECT ALL - 79 * col1 AS col0 FROM tab2 AS cor0
----
-1343
-2449
-4661

query I rowsort
SELECT ALL + + cor0.col2 - cor0.col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - + ( col1 ) + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( col0 ) + - 54 AS col2 FROM tab0 AS cor0
----
-143
-78
-89

query I rowsort
SELECT ALL - + 73 * col0 FROM tab0 cor0
----
-1752
-2555
-6497

onlyif mysql # use DIV operator for integer division
query I rowsort label-2173
SELECT ALL + 76 DIV col2 FROM tab0 AS cor0
----
0
2
76

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL + 76 / col2 FROM tab0 AS cor0
----
0
2
76

query I rowsort
SELECT DISTINCT 47 AS col0 FROM tab1, tab0 AS cor0
----
47

query I rowsort
SELECT ALL - 39 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93

query I rowsort
SELECT ALL col2 + - col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ALL - col0 * tab2.col0 + col0 FROM tab2
----
-42
-6006
-6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-2178
SELECT ALL + - col1 DIV + col2 + cor0.col1 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL + - col1 / + col2 + cor0.col1 / + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 45 * col1 FROM tab2 cor0
----
1395
2655
765

query I rowsort
SELECT DISTINCT + + col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - col2 + 3 AS col2 FROM tab2
----
-23
-24
-35

query I rowsort
SELECT 18 - col2 FROM tab0
----
-15
-64
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-2183
SELECT ALL CAST( - tab2.col2 AS SIGNED ) * col1 + col2 DIV - col1 FROM tab2
----
-1534
-648
-837

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL CAST ( - tab2.col2 AS INTEGER ) * col1 + col2 / - col1 FROM tab2
----
-1534
-648
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2184
SELECT - CAST( NULL AS SIGNED ) + + col0 * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2184
SELECT - CAST ( NULL AS INTEGER ) + + col0 * - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * ( - col0 ) * + col2 + - ( + col2 ) FROM tab1 AS cor0
----
-36537
-4266
-99936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2186
SELECT DISTINCT - - col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT - - col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT cor0.col1 * + 37 - ( col0 * col2 ) FROM tab2 AS cor0
----
-2373
155
958

query I rowsort
SELECT DISTINCT + - col1 * - col0 + col2 * col2 FROM tab2 AS cor0
----
2787
5278
946

query I rowsort
SELECT ALL col0 * 40 FROM tab2 AS cor0
----
280
3120
3160

onlyif mysql # use DIV operator for integer division
query I rowsort label-2190
SELECT - + col0 DIV col0 - col0 * - col2 FROM tab2 AS cor0
----
188
2027
3001

skipif mysql # not compatible
query I rowsort label-2190
SELECT - + col0 / col0 - col0 * - col2 FROM tab2 AS cor0
----
188
2027
3001

query I rowsort
SELECT DISTINCT + col2 * - ( - col0 ) + + col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-2192
SELECT col1 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2192
SELECT col1 / + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2193
SELECT + - col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2193
SELECT + - col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * col0 + col0 + - col1 FROM tab2 AS cor0
----
-6065
-6179
-73

query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT - col1 * col0 - + col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT - - col2 * col0 + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col2 col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT 52 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT ALL col0 + + col0 * col0 FROM tab1
----
12
4160
6480

query I rowsort
SELECT col2 * 43 FROM tab2 cor0
----
1118
1161
1634

onlyif mysql # use DIV operator for integer division
query I rowsort label-2202
SELECT ALL + ( - col0 ) + + col2 DIV + cor0.col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL + ( - col0 ) + + col2 / + cor0.col1 AS col1 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2203
SELECT col2 + col1 DIV + 98 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2203
SELECT col2 + col1 / + 98 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - + col1 - - col1 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 39 + col2 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
2877
3210
9177

query I rowsort
SELECT DISTINCT + - 60 + + ( + col2 ) * col2 + ( col2 * + col2 + 47 ) FROM tab1 AS cor0
----
18419
5819
6485

query I rowsort
SELECT DISTINCT tab2.col1 + 10 FROM tab2
----
27
41
69

query I rowsort
SELECT 10 AS col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT + col0 * + 6 FROM tab1
----
18
384
480

query I rowsort
SELECT - col2 + 44 AS col2 FROM tab1
----
-10
-13
-52

query I rowsort
SELECT + 60 FROM tab2, tab2 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query I rowsort
SELECT ALL + 57 FROM tab2, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT - col2 - + 82 * + col1 AS col2 FROM tab1
----
-1162
-2186
-877

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 + + col1 * - col2 col0 FROM tab1
----
-1139
-1324
-503

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 * 11 col2 FROM tab1
----
1152
648
684

onlyif mysql # use DIV operator for integer division
query I rowsort label-2216
SELECT 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-2216
SELECT col2 / + ( col0 ) col1 FROM tab1
----
0
1
18

query I rowsort
SELECT ALL - 80 * ( + col1 ) + - col2 + 33 FROM tab0 AS cor0
----
-6880
-7329
-7728

query I rowsort
SELECT DISTINCT 93 * col2 FROM tab1 AS cor0
----
5022
5301
8928

query I rowsort
SELECT col0 * cor0.col2 + + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL + 36 FROM tab1 cor0
----
36
36
36

query I rowsort
SELECT DISTINCT col1 * - col1 + col2 * + col0 * col1 FROM tab1 AS cor0
----
3536
36380
99671

query I rowsort
SELECT + col0 * col1 + + col0 * 15 FROM tab1 AS cor0
----
123
1600
2240

query I rowsort
SELECT ALL - ( 51 ) AS col2 FROM tab2 AS cor0
----
-51
-51
-51

query I rowsort
SELECT + - 34 * col0 * cor0.col0 - + col1 AS col2 FROM tab1 AS cor0
----
-139274
-217613
-332

onlyif mysql # use DIV operator for integer division
query I rowsort label-2225
SELECT + - col1 * - col0 DIV cor0.col0 - ( ( col0 ) ) FROM tab2 cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-2225
SELECT + - col1 * - col0 / cor0.col0 - ( ( col0 ) ) FROM tab2 cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 col0 FROM tab1
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2227
SELECT ALL + + 11 / + col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL + + 11 / + col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + col2 * + ( - col1 ) FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-2229
SELECT ALL + ( - cor0.col1 ) DIV - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL + ( - cor0.col1 ) / - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT ALL 33 * + tab0.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to b567f18c778d34bb77b3d3960c50d88e

query I rowsort
SELECT DISTINCT + col2 + col1 * 5 AS col2 FROM tab0 AS cor0
----
463
486
537

query I rowsort
SELECT - col2 * col0 * - ( + col0 ) AS col0 FROM tab0 AS cor0
----
1225
19008
649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-2233
SELECT DISTINCT + col2 DIV 78 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT + col2 / 78 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 + + ( - col2 ) FROM tab0
----
-171
-36
-57

query I rowsort
SELECT ALL col0 * + ( + col1 ) + + col0 * col0 FROM tab1
----
4736
7440
87

query I rowsort
SELECT tab2.col1 * ( 3 ) + - col1 * - col0 + - tab2.col0 AS col0 FROM tab2
----
1315
303
4701

onlyif mysql # use DIV operator for integer division
query I rowsort label-2237
SELECT DISTINCT + col2 + 43 DIV + col1 FROM tab1 AS cor0
----
55
61
99

skipif mysql # not compatible
query I rowsort label-2237
SELECT DISTINCT + col2 + 43 / + col1 FROM tab1 AS cor0
----
55
61
99

query I rowsort
SELECT ALL - ( + cor0.col1 ) + 67 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 87b1d33ba707dbbc1c214871763103e5

query I rowsort
SELECT DISTINCT - col0 * - 20 * cor0.col2 AS col1 FROM tab2 AS cor0
----
3780
40560
60040

query I rowsort
SELECT ALL + col1 + 2 AS col1 FROM tab0 AS cor0
----
88
93
99

query I rowsort
SELECT DISTINCT + col1 * + col2 + - col0 FROM tab0 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT col1 * - col2 AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT col0 * col2 + - tab0.col1 * col0 AS col0 FROM tab0
----
-1272
-3360
-801

onlyif mysql # use DIV operator for integer division
query I rowsort label-2246
SELECT ALL + - col0 DIV + col1 FROM tab1 cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL + - col0 / + col1 FROM tab1 cor0
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 * col0 + col2 * col0 col0 FROM tab2 AS cor0
----
211
8086
9205

query I rowsort
SELECT DISTINCT + cor0.col2 * col0 * - col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL col1 * + col2 * - col2 AS col2 FROM tab2
----
-22599
-24548
-39884

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 * + col1 - col2 ) < NULL
----

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NULL BETWEEN - col2 * + col0 AND NULL
----

query I rowsort
SELECT ALL + tab2.col2 - col1 AS col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT col0 * - col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-2254
SELECT DISTINCT cor0.col2 DIV col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2254
SELECT DISTINCT cor0.col2 / col1 FROM tab0 cor0
----
0

query I rowsort
SELECT + col1 - + col1 FROM tab1
----
0
0
0

query I rowsort
SELECT tab0.col1 + - col2 * col2 * + tab0.col1 AS col1 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - tab0.col1 + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 + tab1.col0 AS col0 FROM tab1
----
29
74
93

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IN ( col1 + + cor0.col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + - col2 <= - col1 * + col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 * + col2 col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT ALL - col0 + - col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT + col0 * col2 AS col0 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2264
SELECT ALL tab2.col1 DIV col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL tab2.col1 / col1 FROM tab2
----
1
1
1

query I rowsort
SELECT + col0 * - col0 + + cor0.col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT + col1 + + col2 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + col2 * col0 + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - + col1 * col1 + col2 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT col0 * cor0.col0 + + col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT - + cor0.col2 * + col0 + col2 * cor0.col1 FROM tab0 AS cor0
----
164
2046
62

query I rowsort
SELECT DISTINCT - - cor0.col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT tab1.col2 + col0 + + col2 FROM tab1
----
111
178
272

query I rowsort
SELECT col2 * + col2 * col0 AS col0 FROM tab0
----
26136
35
598436

query I rowsort
SELECT DISTINCT col0 * - col1 * col2 + - col1 AS col0 FROM tab2
----
-119711
-51051
-5890

query I rowsort
SELECT ALL col0 + tab0.col1 * tab0.col0 + col2 AS col2 FROM tab0
----
2121
3431
8270

query I rowsort
SELECT + col0 * - col0 + col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT + col0 * tab1.col2 * + col0 + col2 + col0 FROM tab1
----
233593
543
614576

query I rowsort
SELECT - 91 * cor0.col0 FROM tab2 AS cor0
----
-637
-7098
-7189

query I rowsort
SELECT DISTINCT - 8 AS col1 FROM tab1 cor0
----
-8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2280
SELECT col0 + + col1 DIV ( - col0 ) + col2 * ( - 75 * + col2 + ( - col0 ) ) FROM tab0 AS cor0
----
-511510
-77
-82446

skipif mysql # not compatible
query I rowsort label-2280
SELECT col0 + + col1 / ( - col0 ) + col2 * ( - 75 * + col2 + ( - col0 ) ) FROM tab0 AS cor0
----
-511510
-77
-82446

query I rowsort
SELECT DISTINCT col1 * col0 * - col1 + - cor0.col1 FROM tab2 AS cor0
----
-22848
-271577
-6758

query I rowsort
SELECT + col1 + + col1 AS col2 FROM tab0
----
172
182
194

query I rowsort
SELECT col2 + col1 * ( cor0.col2 ) * - col1 FROM tab1 AS cor0
----
-16128
-36450
-5643

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) NOT IN ( col2 * - col2 * col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT 77 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125

onlyif mysql # use DIV operator for integer division
query I rowsort label-2286
SELECT - 21 DIV + col0 - 31 AS col1 FROM tab1 AS cor0
----
-31
-31
-38

skipif mysql # not compatible
query I rowsort label-2286
SELECT - 21 / + col0 - 31 AS col1 FROM tab1 AS cor0
----
-31
-31
-38

query I rowsort
SELECT - - col2 + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + col0 * + ( col1 ) + + col2 + 3 AS col2 FROM tab2 AS cor0
----
1384
247
4631

query I rowsort
SELECT DISTINCT + + col2 * col1 * col1 + - col0 * + cor0.col1 + - col1 * + col0 FROM tab0 AS cor0
----
239940
2619
662844

query I rowsort
SELECT DISTINCT + - col0 * - cor0.col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT cor0.col2 + cor0.col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL + col0 + col2 + - col1 * col1 FROM tab1 cor0
----
-619
21
7

query I rowsort
SELECT - cor0.col0 + 32 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to 8eaf3cb379f3f099fd473b317b6453e2

query I rowsort
SELECT + col1 * + col2 * col1 AS col2 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT ALL 61 + + col2 + + 3 FROM tab1
----
118
121
160

query I rowsort
SELECT DISTINCT 50 FROM tab2, tab2 cor0, tab0 AS cor1
----
50

query I rowsort
SELECT DISTINCT 36 * + tab0.col2 AS col0 FROM tab0
----
1188
2952
36

query I rowsort
SELECT DISTINCT col1 * col0 * 75 AS col0 FROM tab0
----
154800
254625
607425

query I rowsort
SELECT + tab1.col2 * col1 AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT 32 AS col1 FROM tab1
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col1 col1 FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-2303
SELECT ALL + tab1.col2 - - col1 DIV col0 AS col1 FROM tab1
----
57
62
96

skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL + tab1.col2 - - col1 / col0 AS col1 FROM tab1
----
57
62
96

query I rowsort
SELECT DISTINCT - col1 + - tab0.col0 AS col0 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT tab1.col2 * - col2 AS col0 FROM tab1
----
-2916
-3249
-9216

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN col2 + + col0 - col2 AND col1 + col0
----

query I rowsort
SELECT DISTINCT + col0 + - col2 * col1 FROM tab0
----
-2814
-62
-7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 col0 FROM tab2
----
49
6084
6241

query I rowsort
SELECT - col0 - col0 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT DISTINCT col1 * - col0 + + col0 * tab2.col1 AS col0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT - col0 - tab0.col2 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT tab2.col2 * col1 + - col0 FROM tab2
----
1456
567
830

query I rowsort
SELECT - col1 + tab1.col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL col2 * + col0 + tab2.col0 FROM tab2
----
196
2106
3081

query I rowsort
SELECT tab2.col0 * col2 * - col2 + col0 AS col1 FROM tab2 WHERE ( - col1 ) IN ( + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 ) <> NULL
----

query I rowsort
SELECT ALL + tab0.col0 + col0 AS col2 FROM tab0
----
178
48
70

query I rowsort
SELECT DISTINCT + col1 + col1 FROM tab2 WHERE + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - tab2.col2 + col1 AS col0 FROM tab2
----
-21
33
4

query III rowsort
SELECT * FROM tab1 WHERE + col0 IN ( tab1.col2 )
----

query I rowsort
SELECT ALL - col0 * + col1 + + col2 * - col0 FROM tab2
----
-406
-4345
-6630

query I rowsort
SELECT ALL - col2 + + tab0.col2 + col0 FROM tab0 WHERE NOT ( + col1 ) IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col1 col2 FROM tab0
----
-86
-91
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) < - col2 * col2 * + col0
----

query I rowsort
SELECT DISTINCT - tab1.col0 FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT + col0 * col1 + - col1 FROM tab2
----
1326
186
4543

query I rowsort
SELECT ALL col1 + col1 + col2 FROM tab2
----
144
72
89

query I rowsort
SELECT ALL - col0 * - col0 FROM tab0 WHERE NOT col2 * + col2 - col2 NOT IN ( col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2331
SELECT ALL col2 DIV col1 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL col2 / col1 FROM tab1
----
2
5
7

query I rowsort
SELECT ALL col2 + - col1 * col1 + - col1 FROM tab2
----
-268
-3514
-965

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2334
SELECT - col1 DIV col0 + col0 FROM tab0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-2334
SELECT - col1 / col0 + col0 FROM tab0
----
21
33
88

query I rowsort
SELECT + col1 + col0 AS col0 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2336
SELECT ALL col0 DIV + col2 col2 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL col0 / + col2 col2 FROM tab1
----
0
0
1

query I rowsort
SELECT col2 * col0 * + tab1.col0 + - tab1.col2 AS col2 FROM tab1
----
233415
432
614304

query I rowsort
SELECT + col0 + col1 * - col0 + + col1 FROM tab2
----
-1247
-179
-4465

query I rowsort
SELECT 35 * + col0 + + 27 * ( + col2 ) + col1 FROM tab1
----
1589
3789
5405

query I rowsort
SELECT + col1 * - tab2.col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ( col1 ) + 31 AS col1 FROM tab0
----
117
122
128

query I rowsort
SELECT DISTINCT col2 * - tab0.col2 - - col2 * 2 FROM tab0
----
-1023
-6560
1

query I rowsort
SELECT DISTINCT tab1.col1 + - col2 AS col2 FROM tab1
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) + col1 * ( col1 ) col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT ALL col0 * col1 + 24 AS col1 FROM tab2
----
1367
241
4626

onlyif mysql # use DIV operator for integer division
query I rowsort label-2346
SELECT - tab0.col2 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2346
SELECT - tab0.col2 / col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab0 cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2348
SELECT DISTINCT - col1 DIV - col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2348
SELECT DISTINCT - col1 / - col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 + - col0 AS col1 FROM tab2 AS cor0
----
1365
598
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-2350
SELECT col1 DIV ( + col1 ) FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2350
SELECT col1 / ( + col1 ) FROM tab0 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2351
SELECT DISTINCT + + col2 * CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT + + col2 * CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL col0 * + 70 FROM tab2 AS cor0
----
490
5460
5530

query I rowsort
SELECT - col1 + - 33 * col0 FROM tab2 AS cor0
----
-262
-2624
-2633

query I rowsort
SELECT ALL + col0 + + col2 - + col2 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2355
SELECT + col2 + 9 DIV + 57 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2355
SELECT + col2 + 9 / + 57 AS col0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2356
SELECT DISTINCT - col1 + CAST( 0 AS SIGNED ) FROM tab2 cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-2356
SELECT DISTINCT - col1 + CAST ( 0 AS INTEGER ) FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - col1 * - col0 + col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT - col2 * - 30 + - cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
1070
1542
1840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col0 + col0 * col1 col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + ( + ( - col1 ) ) * + col0 col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-2361
SELECT DISTINCT + col2 DIV + col1 + + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT + col2 / + col1 + + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + col0 * 45 - + col2 AS col2 FROM tab0 AS cor0
----
1047
1574
3923

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

query I rowsort
SELECT ALL + col0 * col0 * cor0.col0 AS col2 FROM tab1 cor0
----
262144
27
512000

query I rowsort
SELECT ( + 61 ) * col0 FROM tab0 AS cor0
----
1464
2135
5429

query I rowsort
SELECT DISTINCT 84 + - cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
-2832
-3165
-9132

onlyif mysql # use DIV operator for integer division
query I rowsort label-2367
SELECT ALL - col1 + col1 DIV - cor0.col0 FROM tab2 AS cor0
----
-17
-35
-59

skipif mysql # not compatible
query I rowsort label-2367
SELECT ALL - col1 + col1 / - cor0.col0 FROM tab2 AS cor0
----
-17
-35
-59

query I rowsort
SELECT + - cor0.col2 * 2 FROM tab1 AS cor0
----
-108
-114
-192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2369
SELECT ALL cor0.col0 * - cor0.col0 * col2 + + CAST( NULL AS DECIMAL ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL cor0.col0 * - cor0.col0 * col2 + + CAST ( NULL AS REAL ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( + 24 ) * col1 * 41 FROM tab2 AS cor0
----
-16728
-30504
-58056

query I rowsort
SELECT DISTINCT - + 77 + - col0 FROM tab1 AS cor0
----
-141
-157
-80

query I rowsort
SELECT ALL - - 25 FROM tab1 cor0
----
25
25
25

query I rowsort
SELECT + 88 * - col2 FROM tab0 AS cor0
----
-2904
-7216
-88

query I rowsort
SELECT DISTINCT + 25 * cor0.col0 FROM tab1 AS cor0
----
1600
2000
75

query I rowsort
SELECT ALL - 25 * + ( + col2 ) FROM tab1 cor0
----
-1350
-1425
-2400

query I rowsort
SELECT - 19 * + col0 AS col2 FROM tab0 AS cor0
----
-1691
-456
-665

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2377
SELECT + CAST( NULL AS SIGNED ) * 17 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2377
SELECT + CAST ( NULL AS INTEGER ) * 17 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2378
SELECT DISTINCT - CAST( 57 AS SIGNED ) FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2378
SELECT DISTINCT - CAST ( 57 AS INTEGER ) FROM tab2 AS cor0
----
-57

query I rowsort
SELECT col1 * + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT ALL - - col2 + - 93 * col1 AS col1 FROM tab0 AS cor0
----
-7965
-8381
-9020

query I rowsort
SELECT col1 + col0 * + col1 * - col0 + + col0 AS col0 FROM tab0 AS cor0
----
-118693
-49426
-720631

query I rowsort
SELECT ALL - cor0.col0 + + col2 * - col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT DISTINCT col1 + col0 - 17 AS col2 FROM tab2 AS cor0
----
120
21
79

query I rowsort
SELECT cor0.col0 * col1 - - col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT - col2 * - col1 AS col0 FROM tab1 cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 95 * + tab1.col2 col2 FROM tab1
----
118560
133380
54150

query I rowsort
SELECT ALL 88 FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to 663c36cf4bc51cf4ea19f7275ac6d30e

query I rowsort
SELECT DISTINCT col1 * col1 * - col2 AS col0 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT col2 * + col2 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + + 97 * cor0.col0 + col1 FROM tab1 cor0
----
317
6218
7773

query I rowsort
SELECT ALL + col2 + col1 FROM tab1 cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2392
SELECT col1 DIV col1 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2392
SELECT col1 / col1 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col0 * + col2 * col2 col1 FROM tab1 AS cor0
----
208000
737360
8751

onlyif mysql # use DIV operator for integer division
query I rowsort label-2394
SELECT DISTINCT + + cor0.col1 DIV col1 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT + + cor0.col1 / col1 AS col0 FROM tab1 AS cor0
----
1

query I rowsort
SELECT + col2 + + col2 * col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL - - col0 * cor0.col2 + col1 FROM tab2 AS cor0
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - col2 col0 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL - + cor0.col0 + + col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT ALL col2 * + col0 + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT - col2 + cor0.col1 + + col1 AS col2 FROM tab0 AS cor0
----
100
139
193

query I rowsort
SELECT ALL + ( - col1 + col2 ) AS col2 FROM tab1
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2403
SELECT CAST( NULL AS SIGNED ) - tab0.col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2403
SELECT CAST ( NULL AS INTEGER ) - tab0.col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2404
SELECT - col2 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-2404
SELECT - col2 / - col0 AS col2 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT + - 63 * - col1 FROM tab1 AS cor0
----
1638
630
819

onlyif mysql # use DIV operator for integer division
query I rowsort label-2406
SELECT - col1 DIV + col0 AS col2 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2406
SELECT - col1 / + col0 AS col2 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT ALL col0 - col1 * - col0 AS col1 FROM tab1
----
1120
704
81

query I rowsort
SELECT + + col2 - + col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * + col1 + col1 FROM tab2
----
1360
248
4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-2410
SELECT ALL col2 * - col1 + tab1.col1 DIV - col2 AS col1 FROM tab1
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL col2 * - col1 + tab1.col1 / - col2 AS col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT + + col2 * + col0 + - col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT - - col2 * + col0 - - col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT ALL + 15 + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1429
-661
-714

query I rowsort
SELECT + ( - 5 ) AS col0 FROM tab1 AS cor0
----
-5
-5
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-2415
SELECT + col1 DIV 88 + - col0 * col1 FROM tab0
----
-2064
-3394
-8098

skipif mysql # not compatible
query I rowsort label-2415
SELECT + col1 / 88 + - col0 * col1 FROM tab0
----
-2064
-3394
-8098

query I rowsort
SELECT DISTINCT + col1 * - 80 + + col1 AS col1 FROM tab2
----
-1343
-2449
-4661

query I rowsort
SELECT + 2 + + ( tab0.col2 ) AS col2 FROM tab0
----
3
35
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2418
SELECT DISTINCT CAST( - col2 AS SIGNED ) * - col1 FROM tab0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-2418
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * - col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT col1 + + 81 AS col1 FROM tab1
----
107
91
94

query I rowsort
SELECT DISTINCT - col1 * - col0 + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT 5 AS col1 FROM tab0 cor0
----
5
5
5

query I rowsort
SELECT 28 * col0 + - tab1.col2 * - tab1.col0 FROM tab1
----
246
5440
9920

query I rowsort
SELECT 62 + + col1 AS col0 FROM tab0
----
148
153
159

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2424
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - col0 ) col1 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + cor0.col1 col2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL + cor0.col0 + + col1 AS col0 FROM tab1 cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2428
SELECT CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2428
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 + + ( col2 ) col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT cor0.col1 + + col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + + ( col2 ) * + col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - col2 * - col2 * + col2 + col2 + col1 AS col1 FROM tab2 AS cor0
----
17661
19741
54927

query I rowsort
SELECT - - col0 * - col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2434
SELECT ALL col2 DIV - col2 + ( - col0 ) + - 74 FROM tab1
----
-139
-155
-78

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL col2 / - col2 + ( - col0 ) + - 74 FROM tab1
----
-139
-155
-78

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab1, tab2, tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL 81 FROM tab1, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT - + col0 * + 18 FROM tab1 AS cor0
----
-1152
-1440
-54

query I rowsort
SELECT DISTINCT col0 + 20 * col1 FROM tab0
----
1744
1909
1975

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 73 AS REAL ) AS col0 FROM tab2
----
73

query I rowsort
SELECT DISTINCT + ( 26 ) * + tab1.col1 FROM tab1
----
260
338
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-2441
SELECT col1 DIV col0 + + col1 + - ( col0 ) FROM tab0 AS cor0
----
3
64
65

skipif mysql # not compatible
query I rowsort label-2441
SELECT col1 / col0 + + col1 + - ( col0 ) FROM tab0 AS cor0
----
3
64
65

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab1 cor3
----
13122 values hashing to 1bdc73d080d2c975e0f41edc38139d15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2443
SELECT ALL CAST( + col0 AS SIGNED ) * col0 FROM tab2
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL CAST ( + col0 AS INTEGER ) * col0 FROM tab2
----
49
6084
6241

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab2 AS cor2
----
13122 values hashing to e1316acfe11992c6a002752fac502b42

query I rowsort
SELECT DISTINCT 83 FROM tab1, tab1 AS cor0
----
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2446
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2446
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col0 * ( col1 ) + col0 * - 51 AS col0 FROM tab1 cor0
----
-231
-3904
-5120

query I rowsort
SELECT + - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT + col0 * + cor0.col2 + - 66 AS col1 FROM tab0 AS cor0
----
-31
7232
726

query I rowsort
SELECT + col2 * col2 + + col2 * + col0 * - col2 + + 82 FROM tab1 AS cor0
----
-204605
-5750
-727982

query I rowsort
SELECT col2 + cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
6110
6279
76

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 773bb916e463ebc075d701108532badb

query I rowsort
SELECT DISTINCT 48 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
48

query I rowsort
SELECT - col0 + 37 AS col2 FROM tab2 AS cor0
----
-41
-42
30

query I rowsort
SELECT 82 * col1 AS col0 FROM tab0 AS cor0
----
7052
7462
7954

query I rowsort
SELECT + ( - ( - cor0.col0 ) ) * + 15 + - col0 AS col2 FROM tab1 AS cor0
----
1120
42
896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 col2 FROM tab0
----
-2
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2458
SELECT + 10 + ( col0 ) * tab1.col1 + + col0 DIV col0 AS col0 FROM tab1
----
1051
651
89

skipif mysql # not compatible
query I rowsort label-2458
SELECT + 10 + ( col0 ) * tab1.col1 + + col0 / col0 AS col0 FROM tab1
----
1051
651
89

query I rowsort
SELECT + ( + col0 ) + col2 AS col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2460
SELECT ALL cor0.col0 + - 32 * col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2460
SELECT ALL cor0.col0 + - 32 * col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * col1 - col2 AS col0 FROM tab1 cor0
----
24
583
944

query I rowsort
SELECT 48 + col0 FROM tab0 AS cor0
----
137
72
83

query I rowsort
SELECT DISTINCT - + 26 * - 30 * - col2 + + 72 * - col0 FROM tab1 AS cor0
----
-42336
-49068
-80640

query I rowsort
SELECT DISTINCT col1 + col0 * col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL - col2 * - 32 + col1 + + col0 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
1832
2474
4125

query I rowsort
SELECT ALL tab1.col2 * - col2 AS col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT - 45 * col0 FROM tab2 AS cor0
----
-315
-3510
-3555

query I rowsort
SELECT - 63 FROM tab0
----
-63
-63
-63

query I rowsort
SELECT - 41 + tab0.col1 AS col0 FROM tab0
----
45
50
56

query I rowsort
SELECT + - col2 * cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - - 21 * col0 * - 0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - + ( col1 ) * - 92 + col0 AS col1 FROM tab2 AS cor0
----
1643
2859
5506

query I rowsort
SELECT - 91 * + col0 AS col0 FROM tab2 AS cor0
----
-637
-7098
-7189

query I rowsort
SELECT ALL - - cor0.col2 AS col1 FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 * - col1 col2 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT - col1 + col1 * cor0.col2 FROM tab1 cor0
----
1235
1378
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 7 col1 FROM tab0 AS cor0
----
231
574
7

query I rowsort
SELECT ALL - col2 * - col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT - col2 * ( 0 * col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 - + col0 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2481
SELECT ALL col2 DIV + col1 + + 67 AS col1 FROM tab2 AS cor0
----
67
67
69

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL col2 / + col1 + + 67 AS col1 FROM tab2 AS cor0
----
67
67
69

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 5621675b1bd32b061d284d0444c76601

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2483
SELECT DISTINCT + col1 * - col0 + CAST( + col2 + + col2 AS SIGNED ) FROM tab1 AS cor0
----
-526
-848
30

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT + col1 * - col0 + CAST ( + col2 + + col2 AS INTEGER ) FROM tab1 AS cor0
----
-526
-848
30

query I rowsort
SELECT ALL - 16 + cor0.col1 AS col0 FROM tab2 AS cor0
----
1
15
43

query I rowsort
SELECT ALL + - ( col1 ) * - col0 + + col2 * col2 AS col0 FROM tab2 AS cor0
----
2787
5278
946

query I rowsort
SELECT - col0 * col2 + 60 * + col1 FROM tab1 AS cor0
----
-3048
-6900
1398

onlyif mysql # use DIV operator for integer division
query I rowsort label-2487
SELECT DISTINCT col2 + + col1 DIV col0 AS col1 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT col2 + + col1 / col0 AS col1 FROM tab2 AS cor0
----
26
31
38

query I rowsort
SELECT ALL - cor0.col1 FROM tab1, tab0 cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f

query I rowsort
SELECT DISTINCT col0 * col0 + col0 AS col2 FROM tab0
----
1260
600
8010

query I rowsort
SELECT DISTINCT 42 + - col1 FROM tab1
----
16
29
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-2491
SELECT col0 DIV col1 AS col2 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-2491
SELECT col0 / col1 AS col2 FROM tab2
----
0
1
4

query I rowsort
SELECT DISTINCT col0 + col2 + 5 FROM tab0
----
176
41
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2493
SELECT ALL 54 DIV + col0 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2493
SELECT ALL 54 / + col0 FROM tab0 cor0
----
0
1
2

query I rowsort
SELECT ALL + - cor0.col2 + - col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT + ( - cor0.col0 ) + - col2 FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # use DIV operator for integer division
query I rowsort label-2496
SELECT col2 * + col2 + ( - col2 ) + col0 DIV 86 FROM tab0
----
0
1056
6643

skipif mysql # not compatible
query I rowsort label-2496
SELECT col2 * + col2 + ( - col2 ) + col0 / 86 FROM tab0
----
0
1056
6643

query I rowsort
SELECT + - cor0.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT DISTINCT + tab1.col0 + tab1.col1 + col1 * - 97 FROM tab1
----
-1168
-2493
-896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col2 FROM tab2
----
70
70
70

query I rowsort
SELECT ALL tab0.col1 + col0 * 37 AS col0 FROM tab0
----
1392
3384
974

query I rowsort
SELECT + ( 44 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col0 * 88 col2 FROM tab0
----
2198
3177
7923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 32 * col0 + col1 col1 FROM tab2 AS cor0
----
-193
-2437
-2511

query I rowsort
SELECT + - 63 FROM tab1 AS cor0
----
-63
-63
-63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2505
SELECT ALL CAST( NULL AS SIGNED ) * - 33 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL CAST ( NULL AS INTEGER ) * - 33 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col1 * col1 * - col0 + + col1 * - 53 FROM tab1
----
-14209
-3406
-6930

query I rowsort
SELECT - col0 + 33 * - col0 AS col1 FROM tab0 AS cor0
----
-1190
-3026
-816

query I rowsort
SELECT ALL + col0 * - 43 * col1 FROM tab1
----
-27520
-3354
-44720

query I rowsort
SELECT col1 * + col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + + col1 - col0 AS col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT ALL - + 5 FROM tab1 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT col1 + 64 AS col1 FROM tab1 AS cor0
----
74
77
90

query I rowsort
SELECT DISTINCT - + ( - col0 ) * + cor0.col2 + - cor0.col2 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT ALL - 54 AS col0 FROM tab0 cor0
----
-54
-54
-54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2515
SELECT - CAST( NULL AS SIGNED ) * + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT - CAST ( NULL AS INTEGER ) * + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 66 + ( col1 ) AS col1 FROM tab2 AS cor0
----
125
83
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 17 + col1 * + col0 col1 FROM tab1 AS cor0
----
1023
61
623

query I rowsort
SELECT DISTINCT + 69 * - col0 AS col2 FROM tab1 AS cor0
----
-207
-4416
-5520

query I rowsort
SELECT ALL - 60 * - col0 + col2 + + col0 AS col1 FROM tab1 AS cor0
----
237
3961
4976

query I rowsort
SELECT ALL 42 * + 89 AS col1 FROM tab1 AS cor0
----
3738
3738
3738

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 50 col0 FROM tab1 AS cor0
----
-4
-46
-7

query I rowsort
SELECT DISTINCT + col1 * col0 + col0 + 77 * 58 AS col0 FROM tab2 AS cor0
----
4690
5888
9146

query I rowsort
SELECT DISTINCT - + ( - col0 ) * col0 + - col0 AS col2 FROM tab1 AS cor0
----
4032
6
6320

query I rowsort
SELECT DISTINCT 58 AS col2 FROM tab0
----
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2525
SELECT + CAST( col1 + col0 AS SIGNED ) FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-2525
SELECT + CAST ( col1 + col0 AS INTEGER ) FROM tab0
----
110
132
180

query I rowsort
SELECT + ( - tab0.col1 ) + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col1 + - 60 FROM tab2
----
-1
-29
-43

query I rowsort
SELECT - tab2.col1 AS col0 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2529
SELECT + cor0.col2 + col2 DIV col0 AS col0 FROM tab1 AS cor0
----
57
72
97

skipif mysql # not compatible
query I rowsort label-2529
SELECT + cor0.col2 + col2 / col0 AS col0 FROM tab1 AS cor0
----
57
72
97

query I rowsort
SELECT DISTINCT - - 75 + - cor0.col0 FROM tab1 AS cor0
----
-5
11
72

query I rowsort
SELECT - 23 * + 7 AS col1 FROM tab1 AS cor0
----
-161
-161
-161

query I rowsort
SELECT - + ( col0 ) * + col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL cor0.col1 * 17 + + col2 * ( + col2 ) FROM tab0 AS cor0
----
1650
2551
8271

query I rowsort
SELECT + 13 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2535
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 * 13 FROM tab0 AS cor0
----
1066
13
429

query I rowsort
SELECT ALL + - col1 + col2 AS col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL - + col1 * col2 * col2 AS col0 FROM tab0 cor0
----
-611884
-93654
-97

query I rowsort
SELECT ALL - col2 * col0 + cor0.col1 - - col0 FROM tab1 AS cor0
----
-133
-3574
-7587

query I rowsort
SELECT col0 + - cor0.col2 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2541
SELECT DISTINCT - + 63 + col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT - + 63 + col1 / + col2 AS col2 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT DISTINCT + col0 + - col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT + + col0 * col0 + + col2 AS col1 FROM tab2 cor0
----
6110
6279
76

query I rowsort
SELECT ALL cor0.col1 - col2 * ( + col0 ) FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL + ( 94 ) FROM tab1
----
94
94
94

query I rowsort
SELECT ( 16 ) AS col0 FROM tab0
----
16
16
16

query I rowsort
SELECT - 13 + - col2 * col1 AS col0 FROM tab0 AS cor0
----
-110
-2851
-7475

query I rowsort
SELECT + - col0 * + 13 + col2 FROM tab2 AS cor0
----
-64
-988
-989

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2550
SELECT DISTINCT - + col0 + CAST( col0 AS SIGNED ) * col1 FROM tab2 AS cor0
----
1264
210
4524

skipif mysql # not compatible
query I rowsort label-2550
SELECT DISTINCT - + col0 + CAST ( col0 AS INTEGER ) * col1 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT DISTINCT col0 * ( + cor0.col1 ) + + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - col2 + 53 AS col1 FROM tab2 AS cor0
----
15
26
27

query I rowsort
SELECT ALL col0 * ( + 2 ) FROM tab0 AS cor0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + 1 * col1 col1 FROM tab2 cor0
----
-21
33
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2555
SELECT - col0 + - CAST( col2 AS SIGNED ) * col1 FROM tab1 cor0
----
-1328
-1407
-634

skipif mysql # not compatible
query I rowsort label-2555
SELECT - col0 + - CAST ( col2 AS INTEGER ) * col1 FROM tab1 cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT + col0 + 80 AS col1 FROM tab0 AS cor0
----
104
115
169

query I rowsort
SELECT - cor0.col0 * - col2 + 91 FROM tab0 AS cor0
----
126
7389
883

onlyif mysql # use DIV operator for integer division
query I rowsort label-2559
SELECT col0 + col2 DIV - CAST( + 65 AS SIGNED ) + col2 FROM tab2
----
104
117
34

skipif mysql # not compatible
query I rowsort label-2559
SELECT col0 + col2 / - CAST ( + 65 AS INTEGER ) + col2 FROM tab2
----
104
117
34

query I rowsort
SELECT + col1 * - col1 + + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT + - cor0.col2 + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + tab1.col1 FROM tab1, tab1 AS cor0, tab0, tab2 AS cor1
----
10
13
26

query I rowsort
SELECT col1 * + 78 * col2 FROM tab0
----
221364
582036
7566

query I rowsort
SELECT DISTINCT 95 AS col2 FROM tab1, tab1 AS cor0
----
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-2565
SELECT + 53 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
7

skipif mysql # not compatible
query I rowsort label-2565
SELECT + 53 / col0 AS col2 FROM tab2 AS cor0
----
0
0
7

query I rowsort
SELECT + col2 * - col0 + - col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT + - col1 - + cor0.col0 * 75 FROM tab0 AS cor0
----
-1886
-2722
-6766

query I rowsort
SELECT DISTINCT - + 96 + col0 FROM tab2 AS cor0
----
-17
-18
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 28 col1 FROM tab2 cor0
----
28
28
28

query I rowsort
SELECT 91 AS col1 FROM tab2
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 - 49 col1 FROM tab1 AS cor0
----
-211
-3697
-7729

query I rowsort
SELECT ALL + ( - col2 ) AS col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT + cor2.col1 + + 14 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 16c92fed7f2822dcbf933fb1d7888b15

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2574
SELECT + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2574
SELECT + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab0.col1 * + ( 19 ) * - cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 20e328d07c4c3c0222bc4241804e5754

query I rowsort
SELECT ( - cor1.col2 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT - - 74 FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT - 65 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT - 15 FROM tab0, tab0 cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT DISTINCT 43 * + 26 AS col0 FROM tab2, tab1 AS cor0
----
1118

query I rowsort
SELECT DISTINCT 44 * - tab0.col2 FROM tab0, tab0 AS cor0
----
-1452
-3608
-44

query I rowsort
SELECT DISTINCT - tab1.col2 * col2 AS col1 FROM tab1
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-2583
SELECT + 88 DIV + tab0.col2 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to d415da29d0954942cb88dd68785b278a

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2583
SELECT + 88 / + tab0.col2 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to d415da29d0954942cb88dd68785b278a

query I rowsort
SELECT ( - 92 * + col1 ) FROM tab2
----
-1564
-2852
-5428

query I rowsort
SELECT - 72 AS col1 FROM tab1
----
-72
-72
-72

query I rowsort
SELECT ( - col2 ) AS col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT 28 + 50 FROM tab2
----
78
78
78

query I rowsort
SELECT ALL + - col1 + - 90 FROM tab2 AS cor0
----
-107
-121
-149

query I rowsort
SELECT + - 12 AS col2 FROM tab2 AS cor0
----
-12
-12
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col1 FROM tab1 AS cor0
----
83
83
83

query I rowsort
SELECT DISTINCT - tab0.col0 * - 11 FROM tab0
----
264
385
979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 col0 FROM tab0, tab0 AS cor0
----
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2593
SELECT ALL col2 * cor0.col2 + + CAST( col1 AS SIGNED ) * col2 FROM tab0 cor0
----
14186
3927
98

skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL col2 * cor0.col2 + + CAST ( col1 AS INTEGER ) * col2 FROM tab0 cor0
----
14186
3927
98

query I rowsort
SELECT ALL + - 28 * + col1 FROM tab1 AS cor0
----
-280
-364
-728

query I rowsort
SELECT DISTINCT + + col1 * - col0 + col1 FROM tab1 AS cor0
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + cor0.col0 * + col0 col0 FROM tab0 cor0
----
1322
662
8012

query I rowsort
SELECT 56 FROM tab2 cor0
----
56
56
56

query I rowsort
SELECT ALL - col2 * - cor0.col2 + - 51 * col0 * + cor0.col1 FROM tab1 AS cor0
----
-1062
-29391
-43824

query I rowsort
SELECT ALL 13 - col1 FROM tab2
----
-18
-4
-46

query I rowsort
SELECT col2 + tab0.col2 AS col0 FROM tab0
----
164
2
66

query I rowsort
SELECT DISTINCT + 97 FROM tab0 AS cor0
----
97

query I rowsort
SELECT - + 0 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - col1 + - cor0.col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + + 36 * col0 AS col2 FROM tab0 cor0
----
1260
3204
864

query I rowsort
SELECT - 26 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT ALL tab0.col0 * + col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT DISTINCT col1 * - ( + col2 ) AS col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT + cor0.col0 + + col0 * col2 AS col0 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2609
SELECT - + col0 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2609
SELECT - + col0 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - col2 + - 41 - + col1 * - col2 AS col1 FROM tab0
----
14719
3589
91

query I rowsort
SELECT - ( + cor0.col1 ) + cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 17 + col1 * col0 FROM tab1 cor0
----
1023
61
623

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 * col0 col0 FROM tab1 AS cor0
----
201
4288
5360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 32 col2 FROM tab0 AS cor0
----
54
59
65

query I rowsort
SELECT ALL 38 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
1254
3116
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col2 ) col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT - 58 + cor0.col2 FROM tab0 AS cor0
----
-25
-57
24

query I rowsort
SELECT + - 10 + 98 AS col0 FROM tab0 AS cor0
----
88
88
88

query I rowsort
SELECT ALL col0 + - cor0.col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2620
SELECT + + col1 * CAST( cor0.col2 AS SIGNED ) col0 FROM tab1 cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2620
SELECT + + col1 * CAST ( cor0.col2 AS INTEGER ) col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - col1 * col1 + - 81 * col2 FROM tab2 AS cor0
----
-3148
-3367
-5587

onlyif mysql # use DIV operator for integer division
query I rowsort label-2622
SELECT DISTINCT col0 DIV ( + ( - col1 ) ) AS col2 FROM tab1
----
-6
0

skipif mysql # not compatible
query I rowsort label-2622
SELECT DISTINCT col0 / ( + ( - col1 ) ) AS col2 FROM tab1
----
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col1 col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - col0 + + 97 FROM tab2 AS cor0
----
18
19
90

query I rowsort
SELECT col1 + col0 * cor0.col2 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT 41 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT ALL + - cor0.col0 FROM tab1 cor0
----
-3
-64
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + col1 * - 70 col0 FROM tab2 AS cor0
----
-1111
-2163
-4052

query I rowsort
SELECT 21 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2630
SELECT ALL - col0 DIV + 5 FROM tab0
----
-17
-4
-7

skipif mysql # not compatible
query I rowsort label-2630
SELECT ALL - col0 / + 5 FROM tab0
----
-17
-4
-7

query I rowsort
SELECT DISTINCT + ( + 44 ) FROM tab1 AS cor0
----
44

query I rowsort
SELECT 20 * col1 FROM tab0 AS cor0
----
1720
1820
1940

query I rowsort
SELECT ALL - 66 * - col2 * col2 FROM tab2 AS cor0
----
44616
48114
95304

query I rowsort
SELECT ALL + ( - col1 ) + + col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL + ( 17 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT DISTINCT - col1 * - col0 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - tab1.col1 FROM tab1, tab2, tab1 cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL col2 * cor0.col1 AS col0 FROM tab0 cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + col2 + - cor0.col0 - 52 AS col0 FROM tab1 AS cor0
----
-1
-36
-59

query I rowsort
SELECT DISTINCT + cor0.col2 + col0 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col1 * - ( + 21 ) - - col2 * + 94 col0 FROM tab2 AS cor0
----
3216
3709
3967

query I rowsort
SELECT col2 * - col1 + + col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT ALL 77 AS col0 FROM tab0 cor0
----
77
77
77

query I rowsort
SELECT col1 + + col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - 87 AS col0 FROM tab0 AS cor0
----
-87
-87
-87

query I rowsort
SELECT - 78 AS col2 FROM tab2 AS cor0
----
-78
-78
-78

query I rowsort
SELECT - 9 + col0 FROM tab0 AS cor0
----
15
26
80

query I rowsort
SELECT + col0 + ( col0 ) AS col1 FROM tab1
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-2650
SELECT ( col0 ) DIV - col1 + - tab1.col2 + ( col1 ) FROM tab1
----
-28
-53
-89

skipif mysql # not compatible
query I rowsort label-2650
SELECT ( col0 ) / - col1 + - tab1.col2 + ( col1 ) FROM tab1
----
-28
-53
-89

query I rowsort
SELECT col1 * + tab1.col2 AS col2 FROM tab1
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2652
SELECT CAST( NULL AS SIGNED ) + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2652
SELECT CAST ( NULL AS INTEGER ) + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2653
SELECT + cor1.col1 DIV ( cor1.col1 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-2653
SELECT + cor1.col1 / ( cor1.col1 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT DISTINCT + + 86 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
86

query I rowsort
SELECT DISTINCT 61 FROM tab1 AS cor0
----
61

query I rowsort
SELECT ALL - 75 * + cor0.col0 + - 33 * - 77 * col2 FROM tab0 cor0
----
-84
201687
82053

query I rowsort
SELECT DISTINCT - ( col0 ) * - 61 + cor0.col2 + + col1 FROM tab1 AS cor0
----
263
3971
4989

query I rowsort
SELECT ALL + col0 + col0 AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT - cor0.col2 + - cor0.col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT 8 + - col0 * col2 FROM tab1 AS cor0
----
-154
-3640
-7672

query I rowsort
SELECT DISTINCT + tab0.col1 * col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + 57 + + col2 AS col2 FROM tab2 AS cor0
----
83
84
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-2663
SELECT - col1 * col1 DIV - ( col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-2663
SELECT - col1 * col1 / - ( col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT col2 + - tab1.col0 * 89 FROM tab1
----
-213
-5639
-7024

onlyif mysql # use DIV operator for integer division
query I rowsort label-2665
SELECT DISTINCT col0 * - col0 DIV - col0 + tab0.col0 FROM tab0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT col0 * - col0 / - col0 + tab0.col0 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL col1 * + col0 + 40 FROM tab1
----
1080
118
680

query I rowsort
SELECT DISTINCT 85 * - col0 + - col1 FROM tab1 AS cor0
----
-281
-5450
-6813

query I rowsort
SELECT DISTINCT 71 * col1 AS col2 FROM tab2
----
1207
2201
4189

query I rowsort
SELECT ALL - col2 * col2 - col0 AS col1 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT ALL tab2.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + ( col1 ) col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT + - col0 * - col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL - + cor0.col2 + col2 * col1 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2674
SELECT DISTINCT - + cor0.col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT - + cor0.col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT 78 AS col2 FROM tab1, tab2 AS cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - col1 col2 FROM tab0 AS cor0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * col0 + - col1 * + col0 * col0 col1 FROM tab0 AS cor0
----
-117600
-48960
-712890

onlyif mysql # use DIV operator for integer division
query I rowsort label-2678
SELECT col0 + col0 DIV col2 AS col1 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-2678
SELECT col0 + col0 / col2 AS col1 FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT DISTINCT - + col0 * + cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2680
SELECT ALL CAST( NULL AS SIGNED ) + col1 / + tab0.col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL CAST ( NULL AS INTEGER ) + col1 / + tab0.col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - col1 ) + col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab2, tab0 cor0
----
38

query I rowsort
SELECT ALL - tab0.col0 + - col2 AS col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT + 31 + 86 * cor0.col2 * 64 FROM tab0 cor0
----
181663
451359
5535

query I rowsort
SELECT ALL + - 87 + col2 * col2 AS col0 FROM tab2 AS cor0
----
1357
589
642

query I rowsort
SELECT + + 45 FROM tab0 AS cor0
----
45
45
45

query I rowsort
SELECT ALL 82 AS col1 FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT - 49 FROM tab0 cor0
----
-49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2690
SELECT + CAST( + 10 AS SIGNED ) + + col0 FROM tab2 cor0
----
17
88
89

skipif mysql # not compatible
query I rowsort label-2690
SELECT + CAST ( + 10 AS INTEGER ) + + col0 FROM tab2 cor0
----
17
88
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 95 + - cor0.col2 * col1 col1 FROM tab0 AS cor0
----
-192
-2933
-7557

query I rowsort
SELECT DISTINCT col0 * - col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col2 + + col2 * + col2 * - col2 - + cor0.col2 FROM tab2 AS cor0
----
-17576
-19683
-54872

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2694
SELECT + CAST( cor0.col2 AS SIGNED ) * col2 + 29 col2 FROM tab0 cor0
----
1118
30
6753

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2694
SELECT + CAST ( cor0.col2 AS INTEGER ) * col2 + 29 col2 FROM tab0 cor0
----
1118
30
6753

query I rowsort
SELECT ALL 46 + - 19 AS col1 FROM tab2 AS cor0
----
27
27
27

query I rowsort
SELECT ALL + 28 - - col1 AS col0 FROM tab0 AS cor0
----
114
119
125

query I rowsort
SELECT ( ( cor0.col2 ) ) * cor0.col2 + - 19 * col2 FROM tab2 cor0
----
182
216
722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2698
SELECT ALL CAST( + ( col0 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL CAST ( + ( col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - - ( - col1 ) * col1 + col1 AS col2 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT + ( + col1 ) - - col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - 30 * cor0.col2 FROM tab2 AS cor0
----
-1140
-780
-810

query I rowsort
SELECT + + col2 + col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + col1 + cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 col1 FROM tab2 AS cor0
----
61

query I rowsort
SELECT + 57 + col0 FROM tab1 AS cor0
----
121
137
60

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9

query I rowsort
SELECT ( cor0.col0 ) * col2 + + col2 * - col0 * cor0.col2 FROM tab1 AS cor0
----
-204288
-729600
-8586

query I rowsort
SELECT ALL + - 51 + col2 FROM tab0 cor0
----
-18
-50
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2709
SELECT - col1 * + col2 + - ( - ( col0 ) + - CAST( col1 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-1155
-1375
-496

skipif mysql # not compatible
query I rowsort label-2709
SELECT - col1 * + col2 + - ( - ( col0 ) + - CAST ( col1 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-1155
-1375
-496

query I rowsort
SELECT DISTINCT - cor0.col1 * + col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - - col1 * + cor0.col1 + - col2 AS col0 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT - + cor0.col1 - col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col2 * col0 col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL + col2 * col0 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + col1 * cor0.col0 - + col0 * col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 - col2 AS col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT - col2 + + col2 * + col0 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND + col2 OR NOT ( col0 ) <> ( col2 )
----

query I rowsort
SELECT ALL col0 * + col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + col1 * col2 AS col0 FROM tab1 cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 81 * + col0 + col0 + col0 col1 FROM tab1 AS cor0
----
249
5312
6640

query I rowsort
SELECT ALL - ( col0 ) * tab1.col2 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT col1 + col0 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT col2 * col2 + + col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT + - col2 * col0 + col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT + col0 * + col1 + col1 * + col0 + col0 AS col1 FROM tab1 AS cor0
----
1344
159
2160

query I rowsort
SELECT - 79 * col1 + + col1 FROM tab1 AS cor0
----
-1014
-2028
-780

query I rowsort
SELECT - - col2 * + col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + cor0.col2 * + cor0.col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b

query I rowsort
SELECT + + col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - col0 - col1 * tab1.col1 FROM tab1
----
-164
-249
-679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 * col1 col1 FROM tab0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 col1 FROM tab0
----
-9
34
7

query I rowsort
SELECT + tab1.col2 * - col2 AS col1 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT col0 + - col1 * col0 AS col1 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT col0 >= ( NULL )
----

query I rowsort
SELECT ALL + tab1.col0 + + col0 AS col1 FROM tab1
----
128
160
6

query I rowsort
SELECT ALL col1 + col1 AS col0 FROM tab0
----
172
182
194

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col0 - + col0 * col1 AS col2 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT - col1 + + col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT col2 + - col1 * col2 AS col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT + col1 + col0 AS col1 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL col0 + cor0.col1 * + col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-2745
SELECT DISTINCT 50 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
50

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT 50 / col2 AS col1 FROM tab0 AS cor0
----
0
1
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-2746
SELECT - col1 DIV + col1 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2746
SELECT - col1 / + col1 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col2 + + col1 AS col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL + col0 + col1 AS col0 FROM tab0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 col2 FROM tab0
----
2064
3395
8099

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 > ( NULL )
----

query I rowsort
SELECT - col0 + + col2 * col2 FROM tab2
----
1365
598
722

onlyif mysql # use DIV operator for integer division
query I rowsort label-2752
SELECT ALL - col1 + col1 DIV tab0.col1 AS col1 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL - col1 + col1 / tab0.col1 AS col1 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT ALL + col0 * + cor0.col1 + + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + col0 - + col1 FROM tab0 cor0
----
-2
-62
-62

query III rowsort
SELECT * FROM tab2 WHERE col1 NOT IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT col2 + + col1 AS col1 FROM tab0 AS cor0
----
119
173
98

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2758
SELECT col2 DIV + tab2.col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2758
SELECT col2 / + tab2.col0 FROM tab2
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + tab0.col2 - col2 col1 FROM tab0
----
86
91
97

query I rowsort
SELECT col2 + + col0 + + tab2.col0 FROM tab2
----
182
196
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 col2 FROM tab2
----
289
3481
961

query I rowsort
SELECT - col0 * + col1 + col2 AS col0 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT ALL col0 - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + col1 + - col0 + - col0 * + col2 * - col0 AS col1 FROM tab2 AS cor0
----
1347
158165
237096

query I rowsort
SELECT ALL - col1 + + col2 + col1 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL col1 * - col0 * col1 AS col2 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT + 19 * - col1 + + col0 FROM tab2
----
-1043
-244
-582

query I rowsort
SELECT ALL 51 FROM tab1 AS cor0
----
51
51
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-2769
SELECT ALL - + col0 + cor0.col0 DIV cor0.col2 AS col2 FROM tab1 AS cor0
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-2769
SELECT ALL - + col0 + cor0.col0 / cor0.col2 AS col2 FROM tab1 AS cor0
----
-3
-63
-80

query I rowsort
SELECT - 52 FROM tab1 AS cor0
----
-52
-52
-52

query I rowsort
SELECT ALL - - col2 * + col2 - col1 FROM tab2 cor0
----
1427
617
698

query I rowsort
SELECT DISTINCT - col1 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT ALL - col0 * col2 + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-14080
-171
-7744

query I rowsort
SELECT - col0 + + col2 * - cor0.col1 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT DISTINCT - cor0.col2 * col0 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL col1 * - cor0.col2 AS col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT - 24 + col2 * col0 AS col0 FROM tab1 AS cor0
----
138
3624
7656

query I rowsort
SELECT DISTINCT 24 + + col0 - 30 * col0 AS col2 FROM tab2 AS cor0
----
-179
-2238
-2267

query I rowsort
SELECT DISTINCT 90 * + col0 - col0 FROM tab1 AS cor0
----
267
5696
7120

query I rowsort
SELECT ALL col1 * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - 70 AS col1 FROM tab0 cor0
----
-70
-70
-70

query I rowsort
SELECT DISTINCT col1 - - col2 * + cor0.col2 FROM tab2 cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT + 83 FROM tab1 AS cor0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 col1 FROM tab2 AS cor0
----
189
2028
3002

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7

query I rowsort
SELECT ALL - 6 + - col1 * col0 AS col1 FROM tab2
----
-1349
-223
-4608

query I rowsort
SELECT DISTINCT 3 AS col1 FROM tab0, tab1 cor0
----
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2788
SELECT col1 * + col1 + col0 DIV - col0 col1 FROM tab0 AS cor0
----
7395
8280
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2788
SELECT col1 * + col1 + col0 / - col0 col1 FROM tab0 AS cor0
----
7395
8280
9408

query I rowsort
SELECT + cor0.col0 + + col1 * - 85 FROM tab1 AS cor0
----
-1025
-2207
-786

query I rowsort
SELECT + col2 + + ( col2 ) AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + tab1.col2 + ( col0 ) * col1 * 83 AS col1 FROM tab1
----
53177
6528
86416

query I rowsort
SELECT col0 * 38 FROM tab0
----
1330
3382
912

query I rowsort
SELECT + cor0.col2 + 39 FROM tab0, tab0 AS cor0
----
9 values hashing to 5de53199516d39b4c062739dfa5c2bd8

query I rowsort
SELECT ALL col0 * - col0 * + 96 FROM tab0 AS cor0
----
-117600
-55296
-760416

query I rowsort
SELECT col1 * ( - col2 ) * + col1 + 78 FROM tab0 AS cor0
----
-243990
-678964
-9331

query I rowsort
SELECT + - cor0.col2 * - ( - col1 * - col0 ) + col2 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT DISTINCT + col1 + + col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL + - 92 + col2 FROM tab1 AS cor0
----
-35
-38
4

query I rowsort
SELECT - - 67 * col1 * - cor0.col1 + + col1 FROM tab0 AS cor0
----
-495446
-554736
-630306

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2800
SELECT + CAST( col1 AS SIGNED ) + col1 * 84 * ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
14209
56810
8410

skipif mysql # not compatible
query I rowsort label-2800
SELECT + CAST ( col1 AS INTEGER ) + col1 * 84 * ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
14209
56810
8410

query I rowsort
SELECT ALL + - col0 - 43 FROM tab2 AS cor0
----
-121
-122
-50

query I rowsort
SELECT DISTINCT + - ( col1 ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - + 87 * cor0.col1 FROM tab2 AS cor0
----
-1479
-2697
-5133

query I rowsort
SELECT DISTINCT - col0 * col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - - ( col2 ) * col0 + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL - - 11 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT DISTINCT - col1 + + col0 * - tab2.col1 AS col2 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT ALL col1 * col1 + ( - col0 + col2 ) * + col1 AS col1 FROM tab0
----
6111
7644
8170

query I rowsort
SELECT DISTINCT col2 + ( - col1 * col1 ) AS col1 FROM tab2
----
-251
-3455
-934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 * + col0 + + cor0.col0 * col1 col2 FROM tab1 AS cor0
----
-144
-4096
-4880

onlyif mysql # use DIV operator for integer division
query I rowsort label-2811
SELECT + + col0 - cor0.col1 DIV - col1 col2 FROM tab0 AS cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2811
SELECT + + col0 - cor0.col1 / - col1 col2 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab2, tab0 cor0, tab1 AS cor1
----
86
91
97

query I rowsort
SELECT cor0.col1 + 61 FROM tab1 AS cor0
----
71
74
87

query I rowsort
SELECT + ( - col0 ) + col1 + - cor0.col1 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2815
SELECT + col2 DIV - col1 col2 FROM tab1
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2815
SELECT + col2 / - col1 col2 FROM tab1
----
-2
-5
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * - 1 + col1 col2 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col0 + 12 col1 FROM tab0
----
-12
-23
-77

query I rowsort
SELECT + ( - tab0.col0 ) AS col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT col1 + + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT + ( + col0 * - col0 + col2 ) FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT 72 * col0 * - col2 AS col2 FROM tab0 AS cor0
----
-2520
-525456
-57024

query I rowsort
SELECT DISTINCT + ( + col0 + + col2 ) FROM tab1
----
121
176
57

query I rowsort
SELECT ( col2 ) * col1 AS col0 FROM tab0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2824
SELECT + col2 DIV ( col0 ) FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2824
SELECT + col2 / ( col0 ) FROM tab2
----
0
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2825
SELECT DISTINCT + - col2 DIV 35 AS col2 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT + - col2 / 35 AS col2 FROM tab0 AS cor0
----
-2
0

query I rowsort
SELECT ALL + - 47 FROM tab0 cor0
----
-47
-47
-47

onlyif mysql # use DIV operator for integer division
query I rowsort label-2827
SELECT col1 + - ( - col1 + - col2 ) DIV col1 FROM tab1 AS cor0
----
16
21
29

skipif mysql # not compatible
query I rowsort label-2827
SELECT col1 + - ( - col1 + - col2 ) / col1 FROM tab1 AS cor0
----
16
21
29

query I rowsort
SELECT - col0 * - ( - col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) col2 FROM tab2
----
17
31
59

query I rowsort
SELECT col1 + + tab1.col2 * - col2 AS col0 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT + 4 AS col1 FROM tab2
----
4
4
4

query I rowsort
SELECT ALL - tab2.col0 * + col1 AS col1 FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-2833
SELECT ALL + 69 DIV 22 FROM tab0, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

skipif mysql # not compatible
query I rowsort label-2833
SELECT ALL + 69 / 22 FROM tab0, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT ALL col1 * - ( + col1 ) + - col1 FROM tab0
----
-7482
-8372
-9506

query I rowsort
SELECT DISTINCT - col0 * + ( col2 ) + + col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT col0 * - 0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - cor0.col2 * col2 * + ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT - col0 * - col1 AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - + col0 * col0 + - col2 FROM tab2 AS cor0
----
-6110
-6279
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( col2 * - col2 ) col1 FROM tab0 AS cor0
----
-1
-35937
-551368

query I rowsort
SELECT + col2 + + ( col2 ) * + col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
22626
24586
39910

onlyif mysql # use DIV operator for integer division
query I rowsort label-2842
SELECT - col0 + + col1 * col2 DIV + cor0.col1 FROM tab1 AS cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-2842
SELECT - col0 + + col1 * col2 / + cor0.col1 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2843
SELECT DISTINCT - + col2 * + CAST( 89 AS SIGNED ) * col0 + col2 AS col1 FROM tab0 AS cor0
----
-3114
-649440
-70455

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT - + col2 * + CAST ( 89 AS INTEGER ) * col0 + col2 AS col1 FROM tab0 AS cor0
----
-3114
-649440
-70455

query I rowsort
SELECT ALL col0 * + ( - ( + col0 ) ) + col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT ALL 26 AS col0 FROM tab1
----
26
26
26

query I rowsort
SELECT col1 + ( col2 ) AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - 90 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2848
SELECT + + col0 + - col0 DIV col1 FROM tab2 AS cor0
----
7
75
77

skipif mysql # not compatible
query I rowsort label-2848
SELECT + + col0 + - col0 / col1 FROM tab2 AS cor0
----
7
75
77

query I rowsort
SELECT - col0 * - 69 * cor0.col2 FROM tab1 AS cor0
----
11178
251712
529920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + col2 * - tab1.col2 * col1 col1 FROM tab1
----
-119639
-32390
-75140

query I rowsort
SELECT - 32 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT ALL - + 19 - 36 AS col0 FROM tab0 cor0
----
-55
-55
-55

onlyif mysql # use DIV operator for integer division
query I rowsort label-2854
SELECT 86 DIV + col2 + + cor0.col2 * + 27 FROM tab1 AS cor0
----
1459
1540
2592

skipif mysql # not compatible
query I rowsort label-2854
SELECT 86 / + col2 + + cor0.col2 * + 27 FROM tab1 AS cor0
----
1459
1540
2592

query I rowsort
SELECT DISTINCT + 38 * - col2 AS col0 FROM tab1 AS cor0
----
-2052
-2166
-3648

query I rowsort
SELECT ALL 9 + 6 AS col0 FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT - ( tab2.col0 ) AS col2 FROM tab2
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - 88 * + col1 + + col1 * - 53 * - ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
32742
41633
76110

query I rowsort
SELECT DISTINCT cor1.col0 * cor0.col2 FROM tab2, tab1 cor0, tab1 cor1, tab1, tab1 AS cor2
----
9 values hashing to d678abade8bf70a0dcfdc79d6219306c

query I rowsort
SELECT + 8 * col2 FROM tab2 AS cor0
----
208
216
304

query I rowsort
SELECT 35 * + cor0.col0 + - col2 FROM tab1 cor0
----
2183
2704
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-2862
SELECT - col1 DIV col2 + col2 * col1 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-2862
SELECT - col1 / col2 + col2 * col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2864
SELECT - + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-2864
SELECT - + col2 / col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT ALL - 37 + - col0 AS col0 FROM tab1
----
-101
-117
-40

query I rowsort
SELECT + ( + cor0.col2 ) * - ( col2 ) * - col0 AS col1 FROM tab1 cor0
----
207936
737280
8748

query I rowsort
SELECT ALL - - 57 FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT col2 * col0 + 86 AS col2 FROM tab1 AS cor0
----
248
3734
7766

query I rowsort
SELECT DISTINCT + + col0 * col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL - 29 * + col2 AS col2 FROM tab1 AS cor0
----
-1566
-1653
-2784

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2871
SELECT + - 77 * col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2871
SELECT + - 77 * col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( col1 ) * col2 + - col2 AS col0 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL + col2 * - ( col0 ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - + col2 * + col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2875
SELECT col0 + - 96 DIV col0 AS col1 FROM tab2 AS cor0
----
-6
77
78

skipif mysql # not compatible
query I rowsort label-2875
SELECT col0 + - 96 / col0 AS col1 FROM tab2 AS cor0
----
-6
77
78

query I rowsort
SELECT DISTINCT - cor0.col2 + - ( - col0 ) * col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT col2 * 10 FROM tab0 cor0
----
10
330
820

query I rowsort
SELECT ALL + tab1.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT ( + 84 ) + cor0.col1 AS col2 FROM tab0 AS cor0
----
170
175
181

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859

query I rowsort
SELECT DISTINCT 21 + cor0.col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2817
-7441
-76

query I rowsort
SELECT + - col0 * + 13 FROM tab2 AS cor0
----
-1014
-1027
-91

query I rowsort
SELECT - 56 FROM tab1, tab0 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query I rowsort
SELECT DISTINCT ( + col1 ) + + cor0.col1 * 66 FROM tab0 AS cor0
----
5762
6097
6499

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 1 col0 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2886
SELECT DISTINCT + col0 DIV - tab2.col1 col2 FROM tab2
----
-1
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT + col0 / - tab2.col1 col2 FROM tab2
----
-1
-4
0

query I rowsort
SELECT ALL - - 13 + - col0 * 24 FROM tab0 AS cor0
----
-2123
-563
-827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 + ( + 91 ) col0 FROM tab0 AS cor0
----
-1973
-3304
-8008

query I rowsort
SELECT DISTINCT - + 84 * - cor0.col1 FROM tab2 AS cor0
----
1428
2604
4956

query I rowsort
SELECT ALL - ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT cor0.col0 * col1 * col1 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-2892
SELECT + 81 + + tab2.col0 - - tab2.col1 DIV + 99 FROM tab2
----
159
160
88

skipif mysql # not compatible
query I rowsort label-2892
SELECT + 81 + + tab2.col0 - - tab2.col1 / + 99 FROM tab2
----
159
160
88

query I rowsort
SELECT ALL ( col2 ) - tab0.col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * ( - col1 ) AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL + 25 * + 87 FROM tab0
----
2175
2175
2175

query I rowsort
SELECT + 19 * - col0 FROM tab2
----
-133
-1482
-1501

query I rowsort
SELECT - - 24 - + cor0.col2 FROM tab1 AS cor0
----
-30
-33
-72

query I rowsort
SELECT + - col0 * - col1 + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT DISTINCT - - col0 * - 53 * - ( col1 ) + col0 FROM tab0 AS cor0
----
109416
179970
429336

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2900
SELECT - 37 * cor0.col0 * - CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2900
SELECT - 37 * cor0.col0 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + ( 50 ) FROM tab0, tab1 cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab0 AS cor3
----
7
78
79

query I rowsort
SELECT - col0 + - 98 AS col2 FROM tab2
----
-105
-176
-177

query I rowsort
SELECT ALL - col1 * - col0 + col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL - ( - col1 ) FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2906
SELECT ALL + - CAST( + col1 AS SIGNED ) + - col1 AS col2 FROM tab2 cor0
----
-118
-34
-62

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL + - CAST ( + col1 AS INTEGER ) + - col1 AS col2 FROM tab2 cor0
----
-118
-34
-62

query I rowsort
SELECT - 78 + - 78 FROM tab2 AS cor0
----
-156
-156
-156

query I rowsort
SELECT DISTINCT ( col2 ) + cor0.col0 + col0 AS col2 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT DISTINCT + - ( - 56 ) + - cor0.col1 * + 52 * ( + col0 * + col2 ) AS col0 FROM tab2 AS cor0
----
-2653712
-304612
-6221848

query I rowsort
SELECT - cor0.col2 + - cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 9b6b643191a390a3a60049db62acd1a4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2911
SELECT ALL - CAST( NULL AS SIGNED ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL - CAST ( NULL AS INTEGER ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2912
SELECT - CAST( col2 AS SIGNED ) + + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-2912
SELECT - CAST ( col2 AS INTEGER ) + + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - 18 + 59 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1552
-1611
-2260

query I rowsort
SELECT - + col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - - ( col1 ) + + col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT tab1.col1 + tab1.col0 AS col2 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL - 26 * + col0 AS col0 FROM tab2 cor0
----
-182
-2028
-2054

onlyif mysql # use DIV operator for integer division
query I rowsort label-2918
SELECT ALL + 30 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL + 30 / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * - col2 AS col1 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT + - col1 * col2 * col1 AS col1 FROM tab0 cor0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL - col1 + - 95 - + col1 * + col1 * - 38 AS col0 FROM tab2 AS cor0
----
10870
132124
36392

query I rowsort
SELECT - col1 + - col2 * - 36 FROM tab1 AS cor0
----
1918
2042
3443

query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + cor0.col1 + col1 AS col2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT - col2 - + col0 * ( col1 + - cor0.col2 ) FROM tab2 AS cor0
----
-2600
-55
1621

query I rowsort
SELECT DISTINCT + + cor0.col0 + cor0.col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL col2 * + 95 * + col2 FROM tab2 cor0
----
137180
64220
69255

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2928
SELECT DISTINCT col1 + + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-2928
SELECT DISTINCT col1 + + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-2929
SELECT col1 DIV + 83 + + col1 AS col2 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-2929
SELECT col1 / + 83 + + col1 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + - col2 + - 94 AS col2 FROM tab1 AS cor0
----
-148
-151
-190

query I rowsort
SELECT ALL - + col2 + ( - 62 + col2 ) * - col2 FROM tab1 AS cor0
----
-3360
228
378

query I rowsort
SELECT - - col1 + - ( 45 ) FROM tab2 AS cor0
----
-14
-28
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-2933
SELECT ALL - + cor0.col0 * col2 - 49 DIV cor0.col1 FROM tab1 AS cor0
----
-163
-3652
-7683

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL - + cor0.col0 * col2 - 49 / cor0.col1 FROM tab1 AS cor0
----
-163
-3652
-7683

query I rowsort
SELECT ALL + - col1 * - col1 * - col1 + - col1 + col2 * cor0.col1 * - col0 AS col0 FROM tab2 cor0
----
-325090
-35681
-55964

query I rowsort
SELECT DISTINCT col1 * 68 AS col0 FROM tab1 AS cor0
----
1768
680
884

query I rowsort
SELECT - + col0 - + ( cor0.col0 * col0 ) FROM tab2 cor0
----
-56
-6162
-6320

query I rowsort
SELECT ALL + col2 + 15 * col1 AS col0 FROM tab1 AS cor0
----
207
291
444

query I rowsort
SELECT DISTINCT + - cor0.col2 * 91 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-4860
-5130
-8640

query I rowsort
SELECT DISTINCT col1 * + col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + ( cor0.col2 ) * + cor0.col2 col0 FROM tab1 AS cor0
----
2913
3185
9136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 + + 29 col1 FROM tab2, tab2 cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT - col1 * 4 AS col1 FROM tab0 AS cor0
----
-344
-364
-388

query I rowsort
SELECT + col1 * + col0 + - cor0.col2 - - col0 * + 83 AS col2 FROM tab1 AS cor0
----
273
5895
7584

query I rowsort
SELECT 7 * ( + col0 * + col0 ) + 84 FROM tab2 AS cor0
----
42672
427
43771

query I rowsort
SELECT - ( col0 ) AS col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT 12 * + col1 + cor0.col0 FROM tab2 AS cor0
----
283
379
786

query I rowsort
SELECT - + cor0.col2 - col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - 5 * - col1 FROM tab0 AS cor0
----
430
455
485

query I rowsort
SELECT - ( + col0 ) + + col0 - ( col2 ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT col2 * ( + 79 + col0 ) FROM tab2
----
2322
4082
6004

query I rowsort
SELECT ALL col2 * 80 * col2 AS col0 FROM tab0
----
537920
80
87120

query I rowsort
SELECT DISTINCT + tab1.col1 * 6 AS col0 FROM tab1, tab0, tab2 AS cor0
----
156
60
78

query I rowsort
SELECT DISTINCT + col2 + 52 FROM tab2
----
78
79
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + 28 + col0 col0 FROM tab1
----
109
1148
732

query I rowsort
SELECT ALL + col1 * + col1 + + cor0.col2 AS col2 FROM tab2 cor0
----
327
3507
988

query I rowsort
SELECT + 92 + cor0.col0 * + 98 AS col2 FROM tab0 cor0
----
2444
3522
8814

query I rowsort
SELECT + - col1 * col2 AS col2 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2958
SELECT ALL - col2 + - col1 DIV col0 col0 FROM tab0 AS cor0
----
-3
-36
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL - col2 + - col1 / col0 col0 FROM tab0 AS cor0
----
-3
-36
-83

query I rowsort
SELECT ALL col0 * col2 * - ( - 4 ) AS col0 FROM tab0 AS cor0
----
140
29192
3168

query I rowsort
SELECT + col0 * - col0 + - col0 AS col1 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT DISTINCT + + 16 FROM tab0 AS cor0
----
16

query I rowsort
SELECT ALL - col1 * col2 + col2 + tab2.col1 AS col0 FROM tab2
----
-1449
-591
-779

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab0.col2 + col2 col1 FROM tab0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-2964
SELECT ALL - col2 + - col2 DIV col0 + - 14 AS col1 FROM tab0
----
-15
-48
-96

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL - col2 + - col2 / col0 + - 14 AS col1 FROM tab0
----
-15
-48
-96

query I rowsort
SELECT 61 + + col1 * - 97 FROM tab2 AS cor0
----
-1588
-2946
-5662

query I rowsort
SELECT DISTINCT col0 * tab2.col2 AS col0 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-2967
SELECT ALL - tab2.col1 DIV col0 AS col0 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL - tab2.col1 / col0 AS col0 FROM tab2
----
-4
0
0

query I rowsort
SELECT ALL - + 0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + - 48 * col2 AS col0 FROM tab0 AS cor0
----
-1584
-3936
-48

query I rowsort
SELECT DISTINCT - 98 + + col1 AS col2 FROM tab2 AS cor0
----
-39
-67
-81

query I rowsort
SELECT - ( + col0 ) * col1 + col2 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-2972
SELECT col1 * ( col2 ) DIV - 53 + col2 * cor0.col1 + - 74 FROM tab2 AS cor0
----
1432
560
748

skipif mysql # not compatible
query I rowsort label-2972
SELECT col1 * ( col2 ) / - 53 + col2 * cor0.col1 + - 74 FROM tab2 AS cor0
----
1432
560
748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 + col1 col0 FROM tab2 cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-2974
SELECT - + cor0.col2 + + col1 * col2 DIV col2 FROM tab1 AS cor0
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-2974
SELECT - + cor0.col2 + + col1 * col2 / col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - tab0.col1 + 32 FROM tab0
----
-54
-59
-65

query I rowsort
SELECT ALL + 74 FROM tab0 AS cor0
----
74
74
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-2977
SELECT col2 * 95 + col1 DIV + 46 FROM tab1 AS cor0
----
5130
5415
9120

skipif mysql # not compatible
query I rowsort label-2977
SELECT col2 * 95 + col1 / + 46 FROM tab1 AS cor0
----
5130
5415
9120

query I rowsort
SELECT + 77 * col0 + col2 FROM tab0 AS cor0
----
1881
2696
6935

query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + 70 AS col1 FROM tab0, tab1 AS cor0
----
70

query I rowsort
SELECT + 52 - cor0.col0 AS col1 FROM tab1 AS cor0
----
-12
-28
49

query I rowsort
SELECT - col2 * + cor0.col0 + - col2 * cor0.col0 FROM tab2 AS cor0
----
-378
-4056
-6004

query I rowsort
SELECT 83 + - col1 + 47 FROM tab1 AS cor0
----
104
117
120

query I rowsort
SELECT DISTINCT + 34 * - col2 FROM tab2 AS cor0
----
-1292
-884
-918

query I rowsort
SELECT DISTINCT + 32 FROM tab2 AS cor0
----
32

query I rowsort
SELECT DISTINCT + 67 * - col1 * - 99 + col0 FROM tab2 AS cor0
----
112840
205630
391425

query I rowsort
SELECT ALL - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + + ( + cor0.col1 ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - col0 - + col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT - cor0.col0 * col0 + - col1 AS col1 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT DISTINCT 84 AS col1 FROM tab2 AS cor0
----
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-2992
SELECT DISTINCT cor0.col0 + col0 DIV - col1 FROM tab2 AS cor0
----
7
75
77

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT cor0.col0 + col0 / - col1 FROM tab2 AS cor0
----
7
75
77

query I rowsort
SELECT - 89 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT - 63 + - col2 - + tab2.col2 * + col2 FROM tab2
----
-1545
-765
-819

query I rowsort
SELECT DISTINCT - 78 + tab0.col1 * col1 AS col2 FROM tab0
----
7318
8203
9331

query I rowsort
SELECT DISTINCT + 54 AS col1 FROM tab0, tab2 AS cor0
----
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-2997
SELECT col1 DIV col1 + col0 DIV col0 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2997
SELECT col1 / col1 + col0 / col0 FROM tab1
----
2
2
2

query I rowsort
SELECT - 79 FROM tab1, tab2 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT ALL col0 * tab2.col2 * tab2.col0 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT + 33 AS col0 FROM tab1, tab0, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to 5b9acd68f8a2078394b8b32da4e0a18f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - + cor0.col0 col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + col1 + + col1 * col2 - - cor0.col0 * 40 FROM tab2 cor0
----
1148
3823
4713

onlyif mysql # use DIV operator for integer division
query I rowsort label-3003
SELECT + + col0 DIV ( col1 ) FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3003
SELECT + + col0 / ( col1 ) FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT 51 FROM tab1
----
51
51
51

query I rowsort
SELECT 5 + col1 FROM tab1
----
15
18
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-3006
SELECT + col1 DIV + 58 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3006
SELECT + col1 / + 58 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - + col1 * 53 + - col0 FROM tab0 AS cor0
----
-4582
-4912
-5176

onlyif mysql # use DIV operator for integer division
query I rowsort label-3008
SELECT + col1 * col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-3008
SELECT + col1 * col2 / - col2 AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT cor0.col0 * - col1 * 53 + col0 FROM tab1 AS cor0
----
-33856
-4131
-55040

query IIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab2 cor1
----
243 values hashing to 2248b8c3b6efacb4e8fc6d9f81b7df8b

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3012
SELECT DISTINCT CAST( NULL AS SIGNED ) col2 FROM tab0, tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3012
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab0, tab1 AS cor0
----
NULL

query I rowsort
SELECT 41 + - cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 9e366535e61dc696897acb14b84e2706

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3014
SELECT DISTINCT + ( + col1 ) + col2 * - ( 68 + - col1 ) * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3014
SELECT DISTINCT + ( + col1 ) + col2 * - ( 68 + - col1 ) * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 * + cor0.col0 + + col0 * col2 col2 FROM tab0 AS cor0
----
15397
2976
3220

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3016
SELECT ALL + CAST( + 15 AS SIGNED ) + col0 AS col2 FROM tab0 AS cor0
----
104
39
50

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL + CAST ( + 15 AS INTEGER ) + col0 AS col2 FROM tab0 AS cor0
----
104
39
50

query I rowsort
SELECT ALL ( col1 ) + col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - col0 + + col1 * col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT + cor0.col1 * + col0 + - col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT - + 1 + col0 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT DISTINCT 3 FROM tab1, tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT tab0.col1 * ( col1 ) FROM tab0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3023
SELECT - col0 DIV + col0 - 56 * - col1 FROM tab2
----
1735
3303
951

skipif mysql # not compatible
query I rowsort label-3023
SELECT - col0 / + col0 - 56 * - col1 FROM tab2
----
1735
3303
951

query I rowsort
SELECT ALL + - ( - 79 ) * - col1 AS col1 FROM tab2 AS cor0
----
-1343
-2449
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + cor0.col2 col0 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL - 58 * + col2 FROM tab0 AS cor0
----
-1914
-4756
-58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3027
SELECT - CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT - CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3028
SELECT ALL col1 DIV 48 FROM tab0 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3028
SELECT ALL col1 / 48 FROM tab0 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT - + col2 * col1 + - col0 * col1 FROM tab1 AS cor0
----
-1210
-1482
-2288

query I rowsort
SELECT - 62 * - col1 + col2 + + 96 AS col0 FROM tab0 cor0
----
5461
5820
6111

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3031
SELECT CAST( NULL AS DECIMAL ) * + cor0.col1 - col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT CAST ( NULL AS REAL ) * + cor0.col1 - col1 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) col1 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT col1 * + col0 * col0 + - 13 FROM tab0 AS cor0
----
118812
49523
720798

query I rowsort
SELECT 49 * - cor0.col1 + + col0 AS col0 FROM tab2 cor0
----
-1512
-2813
-754

query I rowsort
SELECT ALL col1 + col0 * - col2 * + col2 FROM tab2 AS cor0
----
-114059
-5072
-52669

query I rowsort
SELECT ( - col1 ) * + 20 + + col2 FROM tab2
----
-1154
-302
-593

query I rowsort
SELECT ( col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - 22 + - col0 * + col1 FROM tab2
----
-1365
-239
-4624

query I rowsort
SELECT + 42 AS col0 FROM tab1
----
42
42
42

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 - 44 AS col0 FROM tab2 AS cor0
----
-44
-44
-44

query I rowsort
SELECT ALL cor0.col2 + + col0 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3043
SELECT DISTINCT + col1 + 71 DIV + col0 FROM tab0 AS cor0
----
88
91
99

skipif mysql # not compatible
query I rowsort label-3043
SELECT DISTINCT + col1 + 71 / + col0 FROM tab0 AS cor0
----
88
91
99

query I rowsort
SELECT ALL + - col2 * col1 * col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-10965
-25916
-90447

query I rowsort
SELECT - col2 + + col0 AS col1 FROM tab1
----
-16
-51
7

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab2 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 95cc5fe1844e2fb00b447bbee94ccc5e

query I rowsort
SELECT ALL 69 AS col2 FROM tab0
----
69
69
69

query I rowsort
SELECT + 12 AS col2 FROM tab1
----
12
12
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - col1 * - col0 col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + ( col2 ) * col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - 6 * col1 AS col1 FROM tab1 AS cor0
----
-156
-60
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + col2 col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + + 38 + + col1 - 78 AS col1 FROM tab2 AS cor0
----
-23
-9
19

query I rowsort
SELECT + ( - cor0.col2 ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - cor0.col0 * - col0 * - col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT ALL - 2 AS col1 FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT + col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL - - 31 + + cor0.col2 * + col1 AS col0 FROM tab1 cor0
----
1279
1435
601

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3059
SELECT DISTINCT 49 + col0 * + CAST( NULL AS SIGNED ) / - cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT 49 + col0 * + CAST ( NULL AS INTEGER ) / - cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT cor0.col0 * + col2 * 34 AS col1 FROM tab1 AS cor0
----
124032
261120
5508

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 col2 FROM tab0 AS cor0
----
-32
-32
-32

query I rowsort
SELECT - col2 * 80 - - col2 FROM tab2 AS cor0
----
-2054
-2133
-3002

query I rowsort
SELECT - col0 * col0 - col2 FROM tab1 AS cor0
----
-4153
-63
-6496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3064
SELECT + - col1 + + CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3064
SELECT + - col1 + + CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + tab1.col0 AS col0 FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT - col1 * + col2 + 47 AS col0 FROM tab2
----
-1487
-599
-790

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
17
31
59

query I rowsort
SELECT DISTINCT 32 + 56 FROM tab0, tab0 AS cor0
----
88

query I rowsort
SELECT DISTINCT + - 79 + - col2 * + col2 * 76 FROM tab0 AS cor0
----
-155
-511103
-82843

query I rowsort
SELECT DISTINCT + + ( - col0 ) * + col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT col1 * + col0 + col0 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3072
SELECT ALL col0 DIV 9 FROM tab1 AS cor0
----
0
7
8

skipif mysql # not compatible
query I rowsort label-3072
SELECT ALL col0 / 9 FROM tab1 AS cor0
----
0
7
8

query I rowsort
SELECT 38 * col1 AS col1 FROM tab0 cor0
----
3268
3458
3686

query I rowsort
SELECT ALL + - 89 + - col2 * col0 FROM tab0 AS cor0
----
-124
-7387
-881

query I rowsort
SELECT ALL - col1 + - 16 AS col2 FROM tab0
----
-102
-107
-113

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col1 FROM tab0, tab0 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3079
SELECT ALL CAST( - col0 AS SIGNED ) FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL CAST ( - col0 AS INTEGER ) FROM tab1
----
-3
-64
-80

query I rowsort
SELECT - col2 * - 99 + col0 * - 79 * col2 AS col0 FROM tab0
----
-2666
-568424
-59301

query I rowsort
SELECT ALL - - ( - col2 ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + col2 + + ( - cor0.col2 ) * - 23 FROM tab0 AS cor0
----
1968
24
792

query I rowsort
SELECT + col2 * col1 * + col0 FROM tab0 cor0
----
3395
664118
68112

query I rowsort
SELECT ( + ( - col2 ) ) + col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT ALL - - col0 * + col0 + - col0 FROM tab0 cor0
----
1190
552
7832

query I rowsort
SELECT DISTINCT - - col2 * - 55 * col0 AS col1 FROM tab1 AS cor0
----
-200640
-422400
-8910

query I rowsort
SELECT DISTINCT + 5 - + ( col1 ) AS col1 FROM tab2 AS cor0
----
-12
-26
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-3088
SELECT 43 * - tab1.col1 + col0 DIV + 11 FROM tab1
----
-1118
-425
-552

skipif mysql # not compatible
query I rowsort label-3088
SELECT 43 * - tab1.col1 + col0 / + 11 FROM tab1
----
-1118
-425
-552

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3089
SELECT ALL - CAST( NULL AS SIGNED ) + + cor0.col1 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL - CAST ( NULL AS INTEGER ) + + cor0.col1 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3090
SELECT - + CAST( col0 AS SIGNED ) + - cor0.col1 FROM tab2 AS cor0
----
-137
-38
-96

skipif mysql # not compatible
query I rowsort label-3090
SELECT - + CAST ( col0 AS INTEGER ) + - cor0.col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT - - ( + col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + - cor0.col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL - 75 * col0 AS col2 FROM tab2 cor0
----
-525
-5850
-5925

query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col1 FROM tab1 cor0
----
63
63
63

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3096
SELECT - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3096
SELECT - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 col1 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT + col2 + 55 FROM tab1 AS cor0
----
109
112
151

query I rowsort
SELECT ALL - col0 + - 99 * 40 FROM tab2 AS cor0
----
-3967
-4038
-4039

query I rowsort
SELECT + + 96 * + 5 FROM tab2 AS cor0
----
480
480
480

query I rowsort
SELECT - 59 + ( - col0 ) * 5 AS col1 FROM tab2 cor0
----
-449
-454
-94

query I rowsort
SELECT cor0.col1 * - col0 + col2 * col0 * col0 FROM tab0 AS cor0
----
-2170
16944
641423

query I rowsort
SELECT - - col0 * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - ( col1 ) * + cor0.col1 + + ( - 24 * - cor0.col2 ) AS col0 FROM tab0 AS cor0
----
-6313
-6604
-9385

query I rowsort
SELECT - ( + col0 ) * col0 AS col1 FROM tab0 cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-3106
SELECT ALL - - 22 DIV cor0.col1 + + col0 AS col0 FROM tab2 AS cor0
----
7
78
80

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL - - 22 / cor0.col1 + + col0 AS col0 FROM tab2 AS cor0
----
7
78
80

query I rowsort
SELECT - - ( - col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - - 93 + - col2 AS col1 FROM tab0 AS cor0
----
11
60
92

query I rowsort
SELECT + col1 + + col2 * cor0.col0 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT col2 + col1 * + col1 AS col1 FROM tab2
----
327
3507
988

query I rowsort
SELECT ALL col2 + col2 AS col2 FROM tab2
----
52
54
76

query I rowsort
SELECT ALL + col0 - tab2.col1 AS col0 FROM tab2
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3113
SELECT col0 DIV - col1 AS col0 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3113
SELECT col0 / - col1 AS col0 FROM tab2
----
-1
-4
0

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0, tab0 AS cor0, tab2 cor1
----
-1
-33
-82

query I rowsort
SELECT - col2 + - col0 AS col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT cor0.col1 + col1 AS col1 FROM tab1 AS cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col0 + col1 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - col2 + - col1 * - col2 AS col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT + cor0.col1 * + 80 + + cor0.col2 * - col2 * - col1 AS col0 FROM tab2 AS cor0
----
25079
25908
44604

query I rowsort
SELECT DISTINCT + tab0.col1 AS col0 FROM tab0, tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + 91 FROM tab1
----
91

query I rowsort
SELECT col0 * - 19 + - col2 - + col2 FROM tab1 AS cor0
----
-1330
-165
-1712

query I rowsort
SELECT ALL - cor0.col0 * - col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - col2 + col0 AS col1 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT - - cor0.col0 + + 72 AS col2 FROM tab1 cor0
----
136
152
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3127
SELECT ALL - - col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3127
SELECT ALL - - col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3128
SELECT - - col1 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3128
SELECT - - col1 / - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 + + col2 * col1 AS col1 FROM tab0 cor0
----
2805
7380
96

query I rowsort
SELECT - cor0.col2 * - 14 AS col1 FROM tab1 AS cor0
----
1344
756
798

onlyif mysql # use DIV operator for integer division
query I rowsort label-3131
SELECT + col2 DIV cor0.col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3131
SELECT + col2 / cor0.col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3132
SELECT col1 DIV + ( + col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3132
SELECT col1 / + ( + col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( col0 ) col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL col2 * + 11 FROM tab1
----
1056
594
627

query I rowsort
SELECT + - ( + col0 ) * col2 AS col0 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3137
SELECT DISTINCT - - cor0.col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3137
SELECT DISTINCT - - cor0.col1 / + col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col2 + col2 * col0 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-3139
SELECT ALL ( + col1 + + col1 ) DIV col2 col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL ( + col1 + + col1 ) / col2 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + 16 AS col2 FROM tab2 AS cor0
----
16
16
16

query I rowsort
SELECT + cor0.col1 AS col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - - cor0.col0 * col1 * + col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT DISTINCT col1 + - col2 * + ( + 19 ) FROM tab0 AS cor0
----
-1467
-541
78

query I rowsort
SELECT - - cor0.col0 * col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - + col0 * - cor0.col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - cor0.col0 * - col2 FROM tab2 AS cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col0 col1 FROM tab0 AS cor0
----
2
62

query I rowsort
SELECT ALL + + ( - col0 ) + col0 * - col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT DISTINCT + col2 * - col1 + col0 + col1 FROM tab2 cor0
----
-1397
-550
-799

query I rowsort
SELECT ALL cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + col1 - ( + col0 ) * + col1 AS col2 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL + + col0 + col0 FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col1 + col2 col2 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT - + 18 FROM tab2 cor0
----
-18

query I rowsort
SELECT ALL - col2 + - col0 + col2 AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL 36 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # use DIV operator for integer division
query I rowsort label-3157
SELECT col0 - - col2 DIV 83 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-3157
SELECT col0 - - col2 / 83 FROM tab2
----
7
78
79

query I rowsort
SELECT cor1.col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL col1 + + col2 * col0 AS col1 FROM tab2 cor0
----
2087
220
3019

query I rowsort
SELECT + 89 + + col1 FROM tab0 AS cor0
----
175
180
186

query I rowsort
SELECT - - cor0.col2 * - col1 + + col2 * col1 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3162
SELECT + col2 + - col2 DIV col0 FROM tab0 AS cor0
----
1
32
82

skipif mysql # not compatible
query I rowsort label-3162
SELECT + col2 + - col2 / col0 FROM tab0 AS cor0
----
1
32
82

query I rowsort
SELECT DISTINCT ( col0 ) * cor0.col2 * ( 14 * + col2 ) FROM tab1 AS cor0
----
10321920
122472
2911104

query I rowsort
SELECT - col2 * - col0 + - col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT - - 56 AS col0 FROM tab2 cor0
----
56
56
56

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 5ec52b92c3c8d78cc0a61df3fc16f18b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3167
SELECT - 39 * - ( + col2 ) * + col0 + - col1 DIV - col1 FROM tab1 cor0
----
142273
299521
6319

skipif mysql # not compatible
query I rowsort label-3167
SELECT - 39 * - ( + col2 ) * + col0 + - col1 / - col1 FROM tab1 cor0
----
142273
299521
6319

query I rowsort
SELECT ALL + col1 + 42 * + cor0.col1 FROM tab0 AS cor0
----
3698
3913
4171

query I rowsort
SELECT ALL - - ( - 53 ) AS col1 FROM tab1 AS cor0
----
-53
-53
-53

query I rowsort
SELECT - + col0 + col2 * 36 FROM tab1 AS cor0
----
1941
1988
3376

query I rowsort
SELECT ALL - col2 + - 70 * cor0.col2 FROM tab2 AS cor0
----
-1846
-1917
-2698

query I rowsort
SELECT - col2 * + ( + 75 ) FROM tab2 cor0
----
-1950
-2025
-2850

query I rowsort
SELECT - + col0 * + cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - col2 * - col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT ALL ( tab0.col1 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT 88 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT DISTINCT - col0 + col0 - 98 FROM tab2 AS cor0
----
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 col0 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + col2 * - cor0.col2 + + 93 FROM tab2 AS cor0
----
-1351
-583
-636

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3181
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) * col1 * col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) * col1 * col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + col1 AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL + col0 * col1 + - cor0.col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL - col1 + col2 * + 4 FROM tab2 AS cor0
----
135
45
77

query I rowsort
SELECT ALL + - col2 - ( 4 + - col0 ) AS col2 FROM tab1 AS cor0
----
-20
-55
3

query I rowsort
SELECT DISTINCT + + cor0.col2 + ( + col1 ) * col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT + 8 * + col1 AS col2 FROM tab1 AS cor0
----
104
208
80

query I rowsort
SELECT ALL - - col0 * col1 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3189
SELECT + CAST( NULL AS SIGNED ) * 44 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT + CAST ( NULL AS INTEGER ) * 44 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col2 * + col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT 37 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT ALL + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT + col1 + col2 * col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT ALL 8 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 cor2
----
81 values hashing to a42c42e56e75960d97c09dd731d99c01

onlyif mysql # use DIV operator for integer division
query I rowsort label-3195
SELECT ALL + col1 * - col0 + col2 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL + col1 * - col0 + col2 / cor0.col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col0 + - col1 * col2 + 41 * col1 AS col2 FROM tab0 AS cor0
----
-3642
3915
712

query I rowsort
SELECT DISTINCT cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT 83 + + cor0.col2 * - col0 * ( col1 ) FROM tab0 cor0
----
-3312
-664035
-68029

query I rowsort
SELECT ALL + col2 * - col1 * - col0 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT + col2 + 80 * col0 AS col2 FROM tab2
----
587
6266
6358

query I rowsort
SELECT ALL col2 * + col1 + - col0 AS col1 FROM tab0
----
2814
62
7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 + - col1 * cor0.col0 col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 * col0 + col0 * + col2 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT ALL - - col1 + + col1 AS col1 FROM tab0 AS cor0
----
172
182
194

onlyif mysql # use DIV operator for integer division
query I rowsort label-3205
SELECT ALL - col1 + + tab1.col2 DIV col2 FROM tab1
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL - col1 + + tab1.col2 / col2 FROM tab1
----
-12
-25
-9

query I rowsort
SELECT ALL col1 * + col1 * 85 + col1 FROM tab1
----
14378
57486
8510

query I rowsort
SELECT ALL 85 * col1 * col0 AS col1 FROM tab0
----
175440
288575
688415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col2 ) * ( - cor0.col1 ) * col1 col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + 35 * - col1 + + col1 + + ( + cor0.col2 ) FROM tab1 AS cor0
----
-283
-346
-830

query I rowsort
SELECT + + 69 + + 41 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ebfbd032a0a7b9ce9f54a2516c43134d

query I rowsort
SELECT col1 * + 1 + col0 * + col0 * + 36 + + 48 AS col1 FROM tab2 AS cor0
----
1843
219131
224741

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3212
SELECT - cor0.col0 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3212
SELECT - cor0.col0 * + CAST ( NULL AS REAL ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 18 AS col0 FROM tab2
----
18

query I rowsort
SELECT + col2 * - ( + col1 ) FROM tab2
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3215
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3215
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 67 AS col2 FROM tab1, tab1 cor0
----
67

query I rowsort
SELECT + col1 + 63 + - ( col2 ) FROM tab2 AS cor0
----
42
67
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3218
SELECT col0 DIV 16 FROM tab0 cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-3218
SELECT col0 / 16 FROM tab0 cor0
----
1
2
5

query I rowsort
SELECT tab1.col0 * - ( + col0 ) FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT ALL + - col1 * - col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT 85 AS col1 FROM tab2
----
85
85
85

query I rowsort
SELECT tab0.col2 + 56 * - tab0.col0 FROM tab0
----
-1311
-1959
-4902

query I rowsort
SELECT 83 FROM tab0, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT DISTINCT + ( + col0 ) + col2 FROM tab1
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3225
SELECT DISTINCT CAST( NULL AS SIGNED ) + 15 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 15 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + col1 + + col0 * col1 FROM tab2
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * - col1 + - col0 + col0 col1 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT col2 * + col1 + - col2 AS col0 FROM tab2
----
1508
608
810

query I rowsort
SELECT - 83 AS col1 FROM tab0
----
-83
-83
-83

query I rowsort
SELECT ALL - + 11 * cor0.col0 FROM tab2 AS cor0
----
-77
-858
-869

query I rowsort
SELECT ALL + 21 FROM tab1 AS cor0
----
21
21
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3232
SELECT ALL - CAST( NULL AS DECIMAL ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL - CAST ( NULL AS REAL ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 54 * + col2 + col2 FROM tab2
----
1430
1485
2090

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 col1 FROM tab0 cor0
----
-9
34
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 12 * + cor0.col2 col2 FROM tab2 AS cor0
----
312
324
456

query I rowsort
SELECT DISTINCT 78 * - col1 * + 3 + + col2 + - col2 FROM tab2 AS cor0
----
-13806
-3978
-7254

query I rowsort
SELECT ALL + 94 * col2 + ( ( col0 ) ) + + 11 AS col0 FROM tab1 AS cor0
----
5090
5433
9115

query I rowsort
SELECT ALL col0 - - col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - ( - col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - ( + col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3241
SELECT - col0 - col1 DIV ( + col0 ) AS col0 FROM tab2 AS cor0
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-3241
SELECT - col0 - col1 / ( + col0 ) AS col0 FROM tab2 AS cor0
----
-11
-78
-79

query I rowsort
SELECT + tab0.col0 * col0 AS col0 FROM tab0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-3243
SELECT ALL + col2 * + col0 + - 84 DIV - col2 + col1 AS col1 FROM tab1 AS cor0
----
189
3659
7693

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL + col2 * + col0 + - 84 / - col2 + col1 AS col1 FROM tab1 AS cor0
----
189
3659
7693

query I rowsort
SELECT DISTINCT col0 + col1 * cor0.col1 FROM tab0 AS cor0
----
7420
8370
9444

query I rowsort
SELECT col2 - + col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT + col2 - - col0 * col2 * - col2 FROM tab2 AS cor0
----
-114038
-5076
-52702

query I rowsort
SELECT + + col2 + col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - 55 * col2 FROM tab1 AS cor0
----
-2970
-3135
-5280

query I rowsort
SELECT ALL 81 FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT ALL - cor0.col2 * cor0.col1 + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT - cor0.col0 + - cor0.col2 FROM tab1 cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col1 col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL ( + col0 ) - + col2 AS col2 FROM tab1
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3254
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
NULL

query I rowsort
SELECT + + col2 * + col1 + col0 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT + 71 * col0 AS col1 FROM tab1 AS cor0
----
213
4544
5680

query I rowsort
SELECT + - 53 FROM tab1 AS cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT + 19 AS col0 FROM tab2, tab1 AS cor0
----
19

query I rowsort
SELECT cor1.col1 AS col0 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT + 84 FROM tab0, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT tab1.col0 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL + 25 - - tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b68e2c5d2df05b0723a28ad588a1167

query I rowsort
SELECT DISTINCT col0 * - 45 + col0 AS col1 FROM tab1
----
-132
-2816
-3520

query I rowsort
SELECT DISTINCT col0 + + ( + col0 ) FROM tab1
----
128
160
6

query I rowsort
SELECT DISTINCT 96 + 85 FROM tab2, tab1 AS cor0
----
181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3266
SELECT + col0 * CAST( - col2 AS SIGNED ) + + col0 col1 FROM tab0 AS cor0
----
-7209
-768
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3266
SELECT + col0 * CAST ( - col2 AS INTEGER ) + + col0 col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - ( - 64 ) AS col2 FROM tab1 AS cor0
----
64
64
64

query I rowsort
SELECT - 91 + + col1 * + col1 AS col1 FROM tab2 AS cor0
----
198
3390
870

query I rowsort
SELECT + 41 * col0 FROM tab0 AS cor0
----
1435
3649
984

query I rowsort
SELECT ( col2 ) AS col2 FROM tab1 cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 90 ) col2 FROM tab0
----
-90
-90
-90

query I rowsort
SELECT + cor0.col1 * + 92 AS col2 FROM tab2 AS cor0
----
1564
2852
5428

query I rowsort
SELECT ALL + col1 * - col2 + col1 + - col0 * 87 AS col2 FROM tab0 AS cor0
----
-15114
-3045
-4840

query I rowsort
SELECT ALL + 81 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7477
8362
9490

query I rowsort
SELECT ALL - col1 * + 46 + - cor0.col1 * 52 AS col1 FROM tab2 AS cor0
----
-1666
-3038
-5782

query I rowsort
SELECT DISTINCT - + col2 + - col0 * - col0 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT ALL col0 - - 47 AS col0 FROM tab1 AS cor0
----
111
127
50

query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - col2 * 72 AS col1 FROM tab2 AS cor0
----
-1872
-1944
-2736

query I rowsort
SELECT ALL 39 AS col0 FROM tab2
----
39
39
39

query I rowsort
SELECT - tab2.col2 AS col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3282
SELECT DISTINCT 64 DIV - tab1.col0 AS col0 FROM tab1, tab2 AS cor0
----
-1
-21
0

skipif mysql # not compatible
query I rowsort label-3282
SELECT DISTINCT 64 / - tab1.col0 AS col0 FROM tab1, tab2 AS cor0
----
-1
-21
0

query I rowsort
SELECT DISTINCT + + 53 FROM tab2, tab1, tab2 AS cor0
----
53

query I rowsort
SELECT DISTINCT + 66 * col2 - + col2 FROM tab0 AS cor0
----
2145
5330
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL + - col0 - - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 28 ) + - col0 * + col0 col1 FROM tab0 AS cor0
----
-1197
-548
-7893

query I rowsort
SELECT + cor0.col1 + + col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL + col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT - cor0.col0 + col1 - ( ( col2 ) ) AS col2 FROM tab2 AS cor0
----
-100
-3
-45

query I rowsort
SELECT ALL 31 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT - 89 * + col2 AS col1 FROM tab2 cor0
----
-2314
-2403
-3382

onlyif mysql # use DIV operator for integer division
query I rowsort label-3293
SELECT DISTINCT col2 + - col2 DIV 88 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT col2 + - col2 / 88 FROM tab0 cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 - + col2 * col2 col0 FROM tab1 AS cor0
----
-2942
-3259
-9229

query I rowsort
SELECT DISTINCT + col1 * col2 - ( col2 ) AS col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT ALL - col1 + col2 * + col2 FROM tab2 cor0
----
1427
617
698

query I rowsort
SELECT ALL cor0.col0 * + cor0.col2 + col2 + + 51 AS col2 FROM tab0 AS cor0
----
7431
87
876

query I rowsort
SELECT ALL col1 + cor0.col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT - - cor0.col1 * col2 - + col1 AS col0 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT tab0.col0 + col0 * col2 * 59 AS col0 FROM tab0
----
2100
430671
46752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + tab0.col1 * - col2 col2 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT + + col2 - col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 + ( col1 ) AS col2 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL - col0 * + col0 + col1 AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT ALL - - col2 + - 88 AS col1 FROM tab1 AS cor0
----
-31
-34
8

query I rowsort
SELECT ALL - cor0.col1 * + ( + 58 ) * - col1 AS col0 FROM tab2 AS cor0
----
16762
201898
55738

query I rowsort
SELECT col1 * + ( cor0.col0 ) + - col1 * col2 FROM tab1 AS cor0
----
-1326
-208
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col2 col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT DISTINCT cor0.col0 * + ( + 40 ) FROM tab1 AS cor0
----
120
2560
3200

query I rowsort
SELECT - col2 * col2 + 88 * col2 AS col0 FROM tab2 AS cor0
----
1612
1647
1900

query I rowsort
SELECT + col2 * - 91 FROM tab1 AS cor0
----
-4914
-5187
-8736

query I rowsort
SELECT - + col2 - + col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 col1 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3314
SELECT DISTINCT - cor0.col1 * - CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT - cor0.col1 * - CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - cor0.col1 * - col0 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT - col1 + col2 * - col2 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT 24 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT ALL 31 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT DISTINCT - + col2 * + 59 FROM tab0 AS cor0
----
-1947
-4838
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3320
SELECT + + col1 + + 17 DIV - col1 FROM tab1 AS cor0
----
12
26
9

skipif mysql # not compatible
query I rowsort label-3320
SELECT + + col1 + + 17 / - col1 FROM tab1 AS cor0
----
12
26
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 + + col0 col0 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 * col1 + - col1 * 20 col2 FROM tab1 AS cor0
----
119548
32290
75296

query I rowsort
SELECT ALL - col2 * + col2 FROM tab1 cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-3324
SELECT col1 DIV 38 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3324
SELECT col1 / 38 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT col0 * + col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab2, tab1 cor1
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab

query I rowsort
SELECT ALL - cor0.col1 * - cor0.col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL + ( col0 ) * col2 - - col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + - col2 * col0 + - col1 * + ( + col1 ) * - col0 FROM tab2 AS cor0
----
19829
269490
6538

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3330
SELECT ALL col1 + CAST( NULL AS SIGNED ) / + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL col1 + CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 96 FROM tab0
----
-96

query I rowsort
SELECT ALL 8 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

query I rowsort
SELECT - cor0.col2 + + ( col2 * cor0.col2 ) FROM tab0 AS cor0
----
0
1056
6642

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + 3 * - col1 col1 FROM tab1 AS cor0
----
-75
34
41

query I rowsort
SELECT DISTINCT col1 + tab2.col1 * - col0 FROM tab2
----
-1326
-186
-4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3336
SELECT DISTINCT - col0 / + tab0.col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3336
SELECT DISTINCT - col0 / + tab0.col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL 23 FROM tab1
----
23
23
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3338
SELECT + cor0.col0 + col2 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3338
SELECT + cor0.col0 + col2 * - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + 23 + col2 AS col2 FROM tab1 AS cor0
----
119
77
80

query I rowsort
SELECT - tab1.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT ALL - 52 FROM tab1
----
-52
-52
-52

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1
----
243 values hashing to 2464a6f4cfabe66aeca50fcb4cd85bf5

query I rowsort
SELECT ALL + + col2 * + ( - col2 ) + - col1 * ( + col0 ) FROM tab2 AS cor0
----
-2787
-5278
-946

query I rowsort
SELECT 32 FROM tab1, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

onlyif mysql # use DIV operator for integer division
query I rowsort label-3346
SELECT - col0 * col2 DIV - 70 + col1 FROM tab1 AS cor0
----
122
28
62

skipif mysql # not compatible
query I rowsort label-3346
SELECT - col0 * col2 / - 70 + col1 FROM tab1 AS cor0
----
122
28
62

query I rowsort
SELECT - col1 + + col2 AS col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + col0 * 32 FROM tab1 AS cor0
----
2048
2560
96

query I rowsort
SELECT DISTINCT col1 + col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * cor0.col2 col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + col2 * - col2 AS col1 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT + col1 * - col1 * - col1 FROM tab2
----
205379
29791
4913

query I rowsort
SELECT DISTINCT tab2.col1 + - col0 * + tab2.col0 AS col0 FROM tab2
----
-18
-6025
-6224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT ALL tab1.col1 + col2 + - col2 AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT tab1.col0 * col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL col2 * col0 + + col2 * + col2 FROM tab2
----
2704
4446
918

query I rowsort
SELECT DISTINCT col0 * col0 + col2 FROM tab2
----
6110
6279
76

query I rowsort
SELECT DISTINCT + col0 * tab1.col1 FROM tab1
----
1040
640
78

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + col0 < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3361
SELECT ALL + tab1.col2 DIV - col0 + col1 AS col2 FROM tab1
----
10
12
8

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL + tab1.col2 / - col0 + col1 AS col2 FROM tab1
----
10
12
8

query I rowsort
SELECT - col2 * - col1 + col2 FROM tab2
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-3363
SELECT tab2.col0 * + col1 DIV + col1 - - col2 FROM tab2
----
104
117
34

skipif mysql # not compatible
query I rowsort label-3363
SELECT tab2.col0 * + col1 / + col1 - - col2 FROM tab2
----
104
117
34

query I rowsort
SELECT col0 * col2 + + col0 AS col1 FROM tab1 WHERE NOT ( - col0 ) IN ( - tab1.col2 * - col1 )
----
165
3712
7760

query I rowsort
SELECT - tab0.col1 * - col0 + col1 * + tab0.col1 FROM tab0
----
12804
16380
9460

query I rowsort
SELECT cor0.col1 + col0 * ( ( + col1 ) + - 70 ) AS col2 FROM tab1 cor0
----
-106
-3830
-4547

query I rowsort
SELECT 79 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT ALL col1 * col1 + cor0.col2 + col1 * - col0 FROM tab1 AS cor0
----
-483
-775
652

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 * + col0 + + 57 * col2 * + col2 col1 FROM tab0 AS cor0
----
1667
387362
63177

query I rowsort
SELECT DISTINCT + cor0.col2 + col0 + col0 * col2 AS col0 FROM tab0 AS cor0
----
71
7469
849

query I rowsort
SELECT - + 22 * col1 * col1 + - cor0.col0 FROM tab1 AS cor0
----
-14875
-2264
-3798

onlyif mysql # use DIV operator for integer division
query I rowsort label-3372
SELECT - col2 + - col2 DIV + 87 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3372
SELECT - col2 + - col2 / + 87 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - col2 * col0 + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT + tab1.col1 * + tab1.col2 * col2 AS col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT + col2 * - col0 + col2 * tab1.col1 FROM tab1
----
-3078
-6432
1242

query III rowsort
SELECT * FROM tab2 WHERE + col0 + col1 * tab2.col2 * col0 > + col2
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT tab1.col0 * tab1.col1 AS col1 FROM tab1
----
1040
640
78

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - col0 )
----

query I rowsort
SELECT ALL - col0 * col2 AS col1 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT col2 + col1 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + + 12 * col2 - + 4 * - col1 FROM tab2 cor0
----
448
524
548

query I rowsort
SELECT + cor0.col2 * + col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT 73 * + tab0.col0 FROM tab0
----
1752
2555
6497

query I rowsort
SELECT - + cor0.col0 + cor0.col1 AS col1 FROM tab0 AS cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3386
SELECT + col1 * col2 + 61 * 72 DIV - cor0.col0 FROM tab1 AS cor0
----
-60
1194
502

skipif mysql # not compatible
query I rowsort label-3386
SELECT + col1 * col2 + 61 * 72 / - cor0.col0 FROM tab1 AS cor0
----
-60
1194
502

query I rowsort
SELECT col0 + + col1 AS col1 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT + 62 + - col1 * ( col1 ) - col2 AS col2 FROM tab2 AS cor0
----
-265
-3445
-926

query I rowsort
SELECT - + 86 FROM tab2 AS cor0
----
-86
-86
-86

query I rowsort
SELECT - 13 AS col2 FROM tab1, tab1 cor0, tab1 cor1
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 380241bbc503a31e70494611a87ffd99

query I rowsort
SELECT + col2 * - ( - col2 * col2 ) + ( - ( col2 ) ) FROM tab2 AS cor0
----
17550
19656
54834

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3393
SELECT col2 + CAST( + 33 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-204
-2548
-2569

skipif mysql # not compatible
query I rowsort label-3393
SELECT col2 + CAST ( + 33 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-204
-2548
-2569

query I rowsort
SELECT DISTINCT + 5 FROM tab0
----
5

query I rowsort
SELECT 30 * + col2 * col2 FROM tab1 AS cor0
----
276480
87480
97470

query I rowsort
SELECT + col0 + 54 * - col1 FROM tab2 AS cor0
----
-1667
-3108
-839

query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab2, tab1 AS cor0
----
89

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab2 AS cor2, tab1 cor3
----
13122 values hashing to bcca216849fb4e367323996735ed899a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3399
SELECT CAST( - ( col2 ) AS SIGNED ) * col0 FROM tab1 cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-3399
SELECT CAST ( - ( col2 ) AS INTEGER ) * col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col2 * col1 + col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT 28 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL - 90 * + col0 * - col2 + + col0 FROM tab0
----
3185
656909
71304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3403
SELECT DISTINCT + 57 / + col2 + - col0 + - CAST( NULL AS SIGNED ) * ( - col0 ) * - col2 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT + 57 / + col2 + - col0 + - CAST ( NULL AS INTEGER ) * ( - col0 ) * - col2 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT 58 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT DISTINCT + ( + 14 ) AS col2 FROM tab1 cor0
----
14

query I rowsort
SELECT ( - col2 ) * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + 70 AS col0 FROM tab0
----
70
70
70

query I rowsort
SELECT 74 FROM tab2
----
74
74
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-3409
SELECT DISTINCT + + cor0.col1 DIV + 18 FROM tab2, tab0, tab0 AS cor0
----
4
5

skipif mysql # not compatible
query I rowsort label-3409
SELECT DISTINCT + + cor0.col1 / + 18 FROM tab2, tab0, tab0 AS cor0
----
4
5

query I rowsort
SELECT + ( + col0 ) FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT 41 AS col0 FROM tab2, tab1 AS cor0
----
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-3412
SELECT - - col1 * - col1 DIV - col1 col2 FROM tab0 cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3412
SELECT - - col1 * - col1 / - col1 col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT cor0.col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - cor0.col2 + + col0 + 46 AS col1 FROM tab1 AS cor0
----
-5
30
53

query I rowsort
SELECT DISTINCT + - col1 * + col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT + cor0.col1 * 51 FROM tab2, tab0 AS cor0
----
9 values hashing to 98c668e36be52a824d29bbc0004a3f1b

query I rowsort
SELECT + cor1.col1 FROM tab1, tab1 cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT ALL + cor0.col2 + + 36 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 759daaae20e992266c467b427c4bcd49

query I rowsort
SELECT DISTINCT - col2 * tab2.col0 AS col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT col1 * 58 * - col2 FROM tab0
----
-164604
-432796
-5626

onlyif mysql # use DIV operator for integer division
query I rowsort label-3421
SELECT ALL tab1.col0 DIV col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3421
SELECT ALL tab1.col0 / col1 FROM tab1
----
0
6
6

query I rowsort
SELECT ALL ( - col2 ) + col0 * + col0 AS col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT 17 FROM tab2 cor0
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 col1 FROM tab1 AS cor0
----
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-3425
SELECT + col1 - 75 DIV col0 FROM tab2
----
17
21
59

skipif mysql # not compatible
query I rowsort label-3425
SELECT + col1 - 75 / col0 FROM tab2
----
17
21
59

query I rowsort
SELECT - 43 FROM tab2, tab1 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT col0 + + cor0.col2 FROM tab1 AS cor0
----
121
176
57

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab0 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 028fd38910121a0fa7c5b9a24c207cf0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3429
SELECT ALL col1 * CAST( - ( + col1 ) AS SIGNED ) FROM tab1
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL col1 * CAST ( - ( + col1 ) AS INTEGER ) FROM tab1
----
-100
-169
-676

query I rowsort
SELECT tab2.col2 * ( 46 ) * + col0 - + ( - col0 * col2 ) FROM tab2
----
141094
8883
95316

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3431
SELECT CAST( NULL AS SIGNED ) * - 41 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT CAST ( NULL AS INTEGER ) * - 41 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 14 FROM tab2, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT ALL + 30 FROM tab1
----
30
30
30

query I rowsort
SELECT + - col0 + col0 + col1 * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + - col2 * col2 + col1 + col1 AS col2 FROM tab2 AS cor0
----
-1410
-558
-667

query I rowsort
SELECT DISTINCT - cor0.col0 + + col0 * col0 AS col1 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT ALL - col2 + col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
7363
8199
9408

query I rowsort
SELECT 31 + col2 AS col0 FROM tab1 AS cor0
----
127
85
88

query I rowsort
SELECT ALL + col1 * + col2 + col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - 71 FROM tab1
----
-71
-71
-71

query I rowsort
SELECT cor0.col2 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL 57 AS col0 FROM tab0
----
57
57
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3443
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3443
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + col2 FROM tab0
----
NULL

query I rowsort
SELECT - 41 + + ( col1 ) * + col2 AS col2 FROM tab2
----
1493
605
796

query I rowsort
SELECT ALL - tab0.col1 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT 29 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ALL - 41 + col1 * + 80 + col2 FROM tab2
----
1357
2466
4705

query I rowsort
SELECT cor0.col2 + cor0.col2 + - 20 AS col2 FROM tab1 AS cor0
----
172
88
94

query I rowsort
SELECT col2 + cor0.col2 AS col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT + col2 * - col0 + + 27 + cor0.col0 FROM tab0 AS cor0
----
-7182
-741
27

query I rowsort
SELECT 0 + + cor0.col2 + + 16 * cor0.col1 FROM tab1 AS cor0
----
217
304
470

query I rowsort
SELECT col2 * col0 + col1 * cor0.col0 AS col2 FROM tab1 cor0
----
240
4288
8720

query I rowsort
SELECT + col2 + - col0 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT + 1 * + col0 + tab2.col1 AS col2 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3455
SELECT col1 * col2 DIV 8 col0 FROM tab2
----
104
191
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3455
SELECT col1 * col2 / 8 col0 FROM tab2
----
104
191
80

query I rowsort
SELECT - col2 + + col0 AS col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT 61 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
61

query I rowsort
SELECT 71 + col2 AS col1 FROM tab2
----
109
97
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * - col0 + col1 col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT + 78 * col0 + + col0 * - col2 AS col1 FROM tab1
----
-1440
1344
72

query I rowsort
SELECT ALL - + col2 + + col0 AS col0 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT ALL - + col1 + - col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT col1 + - col2 + + 7 AS col1 FROM tab2
----
-14
11
40

query I rowsort
SELECT ALL col2 + - tab0.col1 AS col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ALL - col0 * col2 * + col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

skipif mysql # not compatible
query I rowsort
SELECT col2 * CAST ( + 97 AS REAL ) + col0 AS col0 FROM tab0 AS cor0
----
132
3225
8043

query I rowsort
SELECT ALL cor0.col1 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-3468
SELECT DISTINCT + - col0 + - col1 DIV - 24 AS col1 FROM tab1 AS cor0
----
-2
-64
-80

skipif mysql # not compatible
query I rowsort label-3468
SELECT DISTINCT + - col0 + - col1 / - 24 AS col1 FROM tab1 AS cor0
----
-2
-64
-80

query I rowsort
SELECT DISTINCT + - col2 * - col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3470
SELECT DISTINCT - cor0.col0 DIV col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT - cor0.col0 / col0 FROM tab0 AS cor0
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3471
SELECT DISTINCT + col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT + col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * col2 + col2 * + col2 FROM tab0 AS cor0
----
14022
1881
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3473
SELECT ALL cor0.col2 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL cor0.col2 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + - 9 AS col2 FROM tab1 AS cor0
----
45
48
87

query I rowsort
SELECT + col2 + - 8 FROM tab0 AS cor0
----
-7
25
74

query I rowsort
SELECT ALL - col2 + cor0.col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT - cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT col1 * - col2 * 82 FROM tab2 AS cor0
----
-125788
-52972
-68634

query I rowsort
SELECT ALL - + col1 + col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT + col0 * + 35 * - ( col1 * cor0.col1 ) FROM tab0 AS cor0
----
-11526025
-25795315
-6212640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3481
SELECT - - col2 * + CAST( + 30 AS SIGNED ) + - col1 AS col0 FROM tab0 AS cor0
----
-67
2369
904

skipif mysql # not compatible
query I rowsort label-3481
SELECT - - col2 * + CAST ( + 30 AS INTEGER ) + - col1 AS col0 FROM tab0 AS cor0
----
-67
2369
904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - cor0.col2 col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT ALL - col0 + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT col0 + 64 FROM tab1 AS cor0
----
128
144
67

query I rowsort
SELECT ALL - + col1 * 60 + 84 FROM tab0 AS cor0
----
-5076
-5376
-5736

query I rowsort
SELECT + cor0.col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3487
SELECT ALL - 10 * col0 + col2 * + col0 DIV - cor0.col0 FROM tab1 AS cor0
----
-697
-84
-896

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL - 10 * col0 + col2 * + col0 / - cor0.col0 FROM tab1 AS cor0
----
-697
-84
-896

query I rowsort
SELECT + ( - 16 ) FROM tab1 cor0
----
-16
-16
-16

query I rowsort
SELECT ALL - col0 * ( col0 + + ( col1 ) ) * + col2 FROM tab2 AS cor0
----
-277836
-288192
-7182

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( 69 AS REAL ) * - cor0.col0 AS col1 FROM tab2 AS cor0
----
483
5382
5451

query I rowsort
SELECT ALL - ( cor0.col2 ) * + col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + - ( col2 ) * + 35 * ( cor0.col0 ) FROM tab0 AS cor0
----
-1225
-255430
-27720

onlyif mysql # use DIV operator for integer division
query I rowsort label-3493
SELECT ALL + col0 DIV - col1 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL + col0 / - col1 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + + cor0.col0 + col1 AS col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + cor0.col0 + + col0 - 64 AS col2 FROM tab2 AS cor0
----
-50
92
94

query I rowsort
SELECT 1 + - col1 * col2 AS col1 FROM tab0 AS cor0
----
-2837
-7461
-96

query I rowsort
SELECT ALL 65 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 + 19 * - col2 col2 FROM tab2 AS cor0
----
-433
2987
448

query I rowsort
SELECT DISTINCT col1 * - col2 + 7 FROM tab0 AS cor0
----
-2831
-7455
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + 6 col1 FROM tab2
----
23
37
65

query I rowsort
SELECT ALL + col1 * + col2 AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT col0 - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 53 * col2 FROM tab2 AS cor0
----
-1378
-1431
-2014

query I rowsort
SELECT - 63 + 82 FROM tab1 AS cor0
----
19
19
19

query I rowsort
SELECT 30 * cor0.col1 * + col0 AS col0 FROM tab1 AS cor0
----
19200
2340
31200

query I rowsort
SELECT + + 32 - col0 FROM tab0 AS cor0
----
-3
-57
8

query I rowsort
SELECT ALL + 77 FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT - col2 + - 11 + col1 FROM tab1 AS cor0
----
-39
-58
-94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3509
SELECT CAST( NULL AS SIGNED ) + col2 * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3509
SELECT CAST ( NULL AS INTEGER ) + col2 * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 * - 89 FROM tab2 AS cor0
----
-2314
-2403
-3382

query I rowsort
SELECT - col2 * tab1.col2 * - tab1.col1 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT DISTINCT - col2 + col2 * + 3 FROM tab2
----
52
54
76

query I rowsort
SELECT ALL + col1 + + ( - tab0.col2 ) FROM tab0
----
53
9
96

query I rowsort
SELECT + tab1.col2 * col2 + 72 + col1 FROM tab1
----
3014
3331
9301

query I rowsort
SELECT + col0 * 51 + ( col1 ) AS col2 FROM tab0
----
1310
1882
4630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3516
SELECT + tab1.col0 + CAST( NULL AS SIGNED ) - 74 * col1 * - tab1.col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT + tab1.col0 + CAST ( NULL AS INTEGER ) - 74 * col1 * - tab1.col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + col1 + col1 FROM tab1
----
-1027
-52
-630

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3518
SELECT DISTINCT - CAST( cor0.col1 AS SIGNED ) FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT - CAST ( cor0.col1 AS INTEGER ) FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
-86
-91
-97

query I rowsort
SELECT - 10 * - col2 * + col2 AS col2 FROM tab1
----
29160
32490
92160

query I rowsort
SELECT + - cor0.col0 * col0 + col1 FROM tab1 cor0
----
-4086
-6387
17

query I rowsort
SELECT ALL - ( + 4 ) AS col1 FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT - cor0.col0 + - col2 + + col0 AS col1 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 col1 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + col2 * - 61 FROM tab1 AS cor0
----
-3294
-3477
-5856

onlyif mysql # use DIV operator for integer division
query I rowsort label-3525
SELECT ALL + + col1 + 4 DIV - col0 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL + + col1 + 4 / - col0 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3526
SELECT + col1 * + col0 + + CAST( col2 AS SIGNED ) AS col2 FROM tab0
----
2097
3396
8181

skipif mysql # not compatible
query I rowsort label-3526
SELECT + col1 * + col0 + + CAST ( col2 AS INTEGER ) AS col2 FROM tab0
----
2097
3396
8181

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9

query I rowsort
SELECT - + 31 AS col0 FROM tab2 AS cor0
----
-31
-31
-31

query I rowsort
SELECT ALL + + cor0.col2 + - col0 * - ( ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT + - cor0.col0 * cor0.col2 + - 9 FROM tab1 AS cor0
----
-171
-3657
-7689

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3531
SELECT ALL col2 * col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL col2 * col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 83 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3533
SELECT ALL - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3534
SELECT - CAST( - 33 AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

skipif mysql # not compatible
query I rowsort label-3534
SELECT - CAST ( - 33 AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3535
SELECT ALL col2 DIV col1 + 49 + - col1 FROM tab1
----
25
43
44

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL col2 / col1 + 49 + - col1 FROM tab1
----
25
43
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 col0 FROM tab2
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-3537
SELECT DISTINCT + col0 DIV 36 AS col1 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-3537
SELECT DISTINCT + col0 / 36 AS col1 FROM tab2 AS cor0
----
0
2

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab2 cor2
----
3645 values hashing to 47906197307eee6829150d762058792a

query I rowsort
SELECT DISTINCT - col1 * - 40 + col2 FROM tab2 AS cor0
----
1267
2386
718

query I rowsort
SELECT col0 * 19 AS col0 FROM tab1 AS cor0
----
1216
1520
57

query I rowsort
SELECT DISTINCT + col1 * 94 FROM tab0 AS cor0
----
8084
8554
9118

query I rowsort
SELECT DISTINCT + col0 * col0 + + 67 * col2 FROM tab0 AS cor0
----
1292
13415
2787

query I rowsort
SELECT ALL + ( + 90 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT 2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3545
SELECT + cor0.col1 + CAST( 57 AS SIGNED ) col0 FROM tab0 AS cor0
----
143
148
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3545
SELECT + cor0.col1 + CAST ( 57 AS INTEGER ) col0 FROM tab0 AS cor0
----
143
148
154

query I rowsort
SELECT 48 FROM tab2 AS cor0
----
48
48
48

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975

query I rowsort
SELECT 3 * + col0 - - col0 FROM tab1 AS cor0
----
12
256
320

query I rowsort
SELECT + 79 FROM tab0, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT + - cor0.col1 + - col1 * col2 FROM tab2 AS cor0
----
-1593
-663
-868

onlyif mysql # use DIV operator for integer division
query I rowsort label-3551
SELECT + col1 DIV 80 + col0 AS col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-3551
SELECT + col1 / 80 + col0 AS col1 FROM tab0 AS cor0
----
25
36
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3552
SELECT - CAST( + col1 AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3552
SELECT - CAST ( + col1 AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 71 * ( - col2 ) FROM tab0 AS cor0
----
2343
5822
71

query I rowsort
SELECT DISTINCT 62 AS col1 FROM tab2 AS cor0
----
62

query I rowsort
SELECT ALL + col1 + col1 * - ( + col0 ) FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT - 63 AS col0 FROM tab2 cor0
----
-63
-63
-63

query I rowsort
SELECT - 86 AS col0 FROM tab1
----
-86
-86
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-3558
SELECT ALL - ( col0 ) DIV - ( cor0.col0 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL - ( col0 ) / - ( cor0.col0 ) FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - ( - cor0.col0 ) + 42 AS col2 FROM tab2 AS cor0
----
120
121
49

query I rowsort
SELECT ALL col2 * + col1 + tab2.col1 * 13 FROM tab2
----
1240
2301
867

query I rowsort
SELECT cor0.col0 + col1 * ( col2 ) + - col0 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3562
SELECT - col1 * + CAST( col1 + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-14792
-16562
-18818

skipif mysql # not compatible
query I rowsort label-3562
SELECT - col1 * + CAST ( col1 + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-14792
-16562
-18818

query I rowsort
SELECT ALL + ( col2 ) * ( col2 ) FROM tab2
----
1444
676
729

query I rowsort
SELECT ( + col0 * col2 ) FROM tab2
----
189
2028
3002

query I rowsort
SELECT col1 * - 64 FROM tab2 AS cor0
----
-1088
-1984
-3776

query I rowsort
SELECT ( tab1.col1 ) AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT 84 + - cor0.col1 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 07473b34633286566feeddad35114092

query I rowsort
SELECT DISTINCT + ( col2 ) * 45 AS col0 FROM tab0
----
1485
3690
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-3569
SELECT ALL + col0 DIV + tab0.col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL + col0 / + tab0.col0 FROM tab0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3570
SELECT cor1.col0 DIV 53 + 34 * - cor0.col2 col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b83b0529dedd1b695381d97760b4f963

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3570
SELECT cor1.col0 / 53 + 34 * - cor0.col2 col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b83b0529dedd1b695381d97760b4f963

query I rowsort
SELECT DISTINCT 61 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 * col2 col2 FROM tab2 cor0
----
114076
5103
52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 + cor0.col2 col0 FROM tab0 AS cor0
----
-28
-60
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + 83 col2 FROM tab0 AS cor0
----
7138
7553
8051

query I rowsort
SELECT ALL + 15 AS col0 FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT + + 79 + - cor0.col1 * col1 AS col0 FROM tab1 AS cor0
----
-21
-597
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + col1 ) col1 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3578
SELECT ALL - CAST( 21 AS SIGNED ) + cor0.col2 FROM tab0 AS cor0
----
-20
12
61

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL - CAST ( 21 AS INTEGER ) + cor0.col2 FROM tab0 AS cor0
----
-20
12
61

query I rowsort
SELECT 7 AS col0 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT DISTINCT - col2 * + col2 + - col1 + + col2 * + 78 FROM tab0 AS cor0
----
-20
-419
1399

query I rowsort
SELECT cor0.col0 * 20 AS col2 FROM tab1 cor0
----
1280
1600
60

query I rowsort
SELECT 16 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3583
SELECT ALL CAST( + 69 AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL CAST ( + 69 AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40

query I rowsort
SELECT ALL - 25 * col1 FROM tab2 AS cor0
----
-1475
-425
-775

query I rowsort
SELECT - col0 * + col0 + + col1 * - 67 FROM tab1 cor0
----
-1751
-4766
-7271

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + cor0.col0 col2 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col1 col2 FROM tab2 AS cor0
----
-24
19
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col2 + + col2 col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + - 30 + col2 * col2 FROM tab0 cor0
----
-29
1059
6694

query I rowsort
SELECT DISTINCT 5 + - col1 AS col0 FROM tab1 AS cor0
----
-21
-5
-8

query I rowsort
SELECT DISTINCT col2 + + col0 * - col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT + col1 * + col0 + ( - 41 + col2 * + col0 ) FROM tab0 cor0
----
15356
2815
3389

query I rowsort
SELECT ALL - tab2.col2 * + tab2.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c52f276f0448e9317aa4a2c462e0bab5

query I rowsort
SELECT DISTINCT - col2 + cor0.col1 * ( - col2 ) FROM tab0 cor0
----
-2871
-7544
-98

query I rowsort
SELECT ALL col2 - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT 20 AS col0 FROM tab1, tab0 AS cor0
----
20

query I rowsort
SELECT + - col0 * ( col0 ) AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT + col1 + - 8 FROM tab0 AS cor0
----
78
83
89

query I rowsort
SELECT DISTINCT + col0 * + col1 * 26 FROM tab2
----
119652
34918
5642

onlyif mysql # use DIV operator for integer division
query I rowsort label-3601
SELECT col1 DIV ( ( - col2 ) * 57 + col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3601
SELECT col1 / ( ( - col2 ) * 57 + col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + - col0 * 93 AS col2 FROM tab0 AS cor0
----
-2199
-3254
-8195

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3603
SELECT ALL col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3604
SELECT ALL + + col0 DIV + 86 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3604
SELECT ALL + + col0 / + 86 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - col2 col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - - 80 + - col0 FROM tab1 AS cor0
----
0
16
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3607
SELECT ALL CAST( col0 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL CAST ( col0 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL + ( - col1 ) * col1 + 59 AS col0 FROM tab0 cor0
----
-7337
-8222
-9350

query I rowsort
SELECT + 87 * col2 FROM tab1 AS cor0
----
4698
4959
8352

query I rowsort
SELECT DISTINCT + + col1 * 72 + - col0 AS col2 FROM tab0 AS cor0
----
6168
6463
6949

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3611
SELECT ALL - + CAST( + ( col2 ) AS SIGNED ) * - col0 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-3611
SELECT ALL - + CAST ( + ( col2 ) AS INTEGER ) * - col0 col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col1 - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT col0 + 5 AS col1 FROM tab1 AS cor0
----
69
8
85

query I rowsort
SELECT DISTINCT 73 + - col0 - col0 AS col2 FROM tab2 AS cor0
----
-83
-85
59

query I rowsort
SELECT ALL cor1.col2 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3616
SELECT - CAST( NULL AS SIGNED ) FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3616
SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col1 + + ( + col0 ) - + col1 AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT - col1 - tab0.col1 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT col2 * col2 + col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT ( - 66 ) * col2 + 24 * col1 FROM tab0 AS cor0
----
-114
-3228
2262

query I rowsort
SELECT + col1 * 83 * col1 FROM tab2 AS cor0
----
23987
288923
79763

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3622
SELECT CAST( cor0.col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3622
SELECT CAST ( cor0.col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3623
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9

query I rowsort
SELECT tab2.col2 + ( + col1 + col1 ) FROM tab2
----
144
72
89

query I rowsort
SELECT - cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 51 + + col2 * tab2.col2 col0 FROM tab2
----
2310
2311
3685

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 3a186ad492d315801f56fb30a5e89dbb

query I rowsort
SELECT DISTINCT 37 + 20 FROM tab2, tab0 AS cor0
----
57

query I rowsort
SELECT 77 + + col0 FROM tab2
----
155
156
84

query I rowsort
SELECT DISTINCT 85 AS col1 FROM tab0, tab0 AS cor0
----
85

query I rowsort
SELECT 16 * tab0.col0 + - tab0.col2 AS col1 FROM tab0
----
1342
351
559

query I rowsort
SELECT DISTINCT + col1 * + col2 + + col2 AS col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT - col2 * - col1 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT 96 AS col1 FROM tab1
----
96
96
96

query I rowsort
SELECT ALL tab2.col2 + ( tab2.col2 ) + - ( + 24 ) AS col2 FROM tab2
----
28
30
52

query I rowsort
SELECT DISTINCT col1 + col0 * col2 * + col1 AS col1 FROM tab1
----
36490
4238
99853

onlyif mysql # use DIV operator for integer division
query I rowsort label-3638
SELECT + 54 + col2 + + col0 DIV + 45 AS col1 FROM tab0
----
137
55
87

skipif mysql # not compatible
query I rowsort label-3638
SELECT + 54 + col2 + + col0 / + 45 AS col1 FROM tab0
----
137
55
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-3639
SELECT ALL col0 * - tab1.col0 + col2 DIV + ( + col0 * + col1 ) FROM tab1
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL col0 * - tab1.col0 + col2 / + ( + col0 * + col1 ) FROM tab1
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3640
SELECT DISTINCT col2 DIV - col1 + - col0 * 82 FROM tab1
----
-248
-5253
-6567

skipif mysql # not compatible
query I rowsort label-3640
SELECT DISTINCT col2 / - col1 + - col0 * 82 FROM tab1
----
-248
-5253
-6567

query I rowsort
SELECT ALL - ( - col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - 56 AS col2 FROM tab2 AS cor0
----
-56
-56
-56

query I rowsort
SELECT cor0.col1 * - 59 AS col1 FROM tab1 AS cor0
----
-1534
-590
-767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) + cor0.col1 col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + 77 * - col2 + + tab0.col1 * + col0 AS col0 FROM tab0
----
-477
1785
3318

query I rowsort
SELECT ( 92 ) FROM tab2
----
92
92
92

query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab0, tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT 0 + col0 + + col1 FROM tab1
----
29
74
93

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-3650
SELECT DISTINCT + col1 * col0 DIV ( col1 ) AS col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3650
SELECT DISTINCT + col1 * col0 / ( col1 ) AS col0 FROM tab0
----
24
35
89

query I rowsort
SELECT + col1 - tab1.col2 AS col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL ( col0 + - col2 ) AS col1 FROM tab1
----
-16
-51
7

query I rowsort
SELECT - 27 FROM tab0, tab0 cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 9b91cf9fcc064ee1c13074a678b72ac7

query I rowsort
SELECT - - col1 * 51 * col2 FROM tab2 AS cor0
----
32946
42687
78234

onlyif mysql # use DIV operator for integer division
query I rowsort label-3656
SELECT + col1 DIV + CAST( 40 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3656
SELECT + col1 / + CAST ( 40 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - col2 + - ( col1 ) FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL - + col2 + col0 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-51
-7
24

query I rowsort
SELECT DISTINCT + col2 * - 41 AS col2 FROM tab0 AS cor0
----
-1353
-3362
-41

query I rowsort
SELECT DISTINCT + + col0 * - 23 - col0 AS col0 FROM tab2 AS cor0
----
-168
-1872
-1896

query I rowsort
SELECT DISTINCT + col0 + + 97 * 55 FROM tab1 AS cor0
----
5338
5399
5415

query I rowsort
SELECT ALL - col2 * + col2 * + 20 + + col0 FROM tab1 AS cor0
----
-184240
-58317
-64916

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 83 col0 FROM tab1 AS cor0
----
249
5312
6640

query I rowsort
SELECT ALL + + col0 * - col2 + + col1 * + col2 FROM tab2 cor0
----
-2356
-494
648

query I rowsort
SELECT ALL cor0.col0 + ( col2 ) * col1 + col1 FROM tab1 AS cor0
----
1341
1433
644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col1 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3667
SELECT DISTINCT + + 74 * col0 + CAST( + cor0.col1 AS SIGNED ) * col1 DIV ( + col0 ) FROM tab1 AS cor0
----
447
4737
5922

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT + + 74 * col0 + CAST ( + cor0.col1 AS INTEGER ) * col1 / ( + col0 ) FROM tab1 AS cor0
----
447
4737
5922

query I rowsort
SELECT - 28 + + cor0.col0 FROM tab0 AS cor0
----
-4
61
7

query I rowsort
SELECT - + 87 FROM tab2 cor0
----
-87
-87
-87

query I rowsort
SELECT - + 67 * col0 FROM tab0 AS cor0
----
-1608
-2345
-5963

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3671
SELECT - - cor0.col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT - - cor0.col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - col0 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT - col1 + - 31 FROM tab2 AS cor0
----
-48
-62
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col1 - + col1 col2 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT - - col0 + + 40 * ( col2 ) FROM tab1 AS cor0
----
2163
2344
3920

query I rowsort
SELECT - col1 + col0 * col0 FROM tab0
----
1128
490
7830

query I rowsort
SELECT col0 + + tab1.col1 * + col1 AS col2 FROM tab1
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-3678
SELECT + 99 DIV + col2 FROM tab0
----
1
3
99

skipif mysql # not compatible
query I rowsort label-3678
SELECT + 99 / + col2 FROM tab0
----
1
3
99

query I rowsort
SELECT + 26 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT - tab0.col1 * col1 * - col1 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT DISTINCT ( - col0 ) + - 54 FROM tab2
----
-132
-133
-61

query I rowsort
SELECT ALL - col2 + col1 FROM tab0
----
53
9
96

query I rowsort
SELECT - 61 AS col1 FROM tab1
----
-61
-61
-61

query I rowsort
SELECT - cor0.col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL 96 * + 0 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT + - 18 * + col2 FROM tab0 AS cor0
----
-1476
-18
-594

onlyif mysql # use DIV operator for integer division
query I rowsort label-3687
SELECT + 56 DIV col2 FROM tab0 AS cor0
----
0
1
56

skipif mysql # not compatible
query I rowsort label-3687
SELECT + 56 / col2 FROM tab0 AS cor0
----
0
1
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * + 75 + col1 col0 FROM tab0 AS cor0
----
6536
6916
7372

query I rowsort
SELECT ALL + + 79 AS col1 FROM tab0 AS cor0
----
79
79
79

query I rowsort
SELECT - + col1 * ( + col1 ) FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL + ( + cor0.col1 ) FROM tab0 cor0
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3692
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL + col0 + - col0 * cor0.col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT 47 * - col0 FROM tab2 AS cor0
----
-329
-3666
-3713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 39 col2 FROM tab2
----
-22
-8
20

query I rowsort
SELECT DISTINCT + col2 + col2 + col0 FROM tab2
----
130
155
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-3698
SELECT col0 DIV - col1 + 79 AS col2 FROM tab0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-3698
SELECT col0 / - col1 + 79 AS col2 FROM tab0
----
79
79
79

query I rowsort
SELECT - - col0 + col1 + col2 * 58 FROM tab2 AS cor0
----
1604
1645
2300

query I rowsort
SELECT + + col2 * col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - col2 + + 65 AS col0 FROM tab1
----
-31
11
8

query I rowsort
SELECT - col2 + - 91 * - col2 AS col1 FROM tab0
----
2970
7380
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3703
SELECT ALL CAST( + col2 AS SIGNED ) AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL CAST ( + col2 AS INTEGER ) AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL - + col2 + col2 * col1 FROM tab0 AS cor0
----
2805
7380
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3705
SELECT + col2 DIV cor0.col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3705
SELECT + col2 / cor0.col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - ( col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + - cor0.col2 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - ( + tab1.col1 ) - + 55 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 392f83cb55d3a6148917a667b4d7f88a

query I rowsort
SELECT DISTINCT + 29 FROM tab2 AS cor0
----
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-3710
SELECT cor0.col2 DIV col0 col0 FROM tab0 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3710
SELECT cor0.col2 / col0 col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + + 57 * + col1 * col1 FROM tab2 AS cor0
----
16473
198417
54777

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 * - col0 col2 FROM tab1
----
-213
-4544
-5680

query I rowsort
SELECT + + 26 FROM tab2 AS cor0
----
26
26
26

query I rowsort
SELECT col0 * 70 FROM tab2
----
490
5460
5530

query I rowsort
SELECT ALL + ( - tab2.col0 * - col2 ) AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT cor0.col2 * - ( + 79 ) FROM tab2, tab0 cor0
----
9 values hashing to 1049f343e89f9a135d183593777b30d8

query I rowsort
SELECT + 59 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT - 53 AS col1 FROM tab1 AS cor0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col0 ) col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + ( col2 ) * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3721
SELECT DISTINCT + - col1 * CAST( NULL AS SIGNED ) + + 6 * - cor0.col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT + - col1 * CAST ( NULL AS INTEGER ) + + 6 * - cor0.col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col1 col0 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-3723
SELECT col2 DIV ( - 77 ) + col1 AS col2 FROM tab0 AS cor0
----
86
90
97

skipif mysql # not compatible
query I rowsort label-3723
SELECT col2 / ( - 77 ) + col1 AS col2 FROM tab0 AS cor0
----
86
90
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3724
SELECT + - col1 * CAST( col1 AS SIGNED ) * col2 - + col2 AS col2 FROM tab1 AS cor0
----
-16320
-36558
-5757

skipif mysql # not compatible
query I rowsort label-3724
SELECT + - col1 * CAST ( col1 AS INTEGER ) * col2 - + col2 AS col2 FROM tab1 AS cor0
----
-16320
-36558
-5757

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 / CAST ( - col0 AS REAL ) + col2 + + 54 FROM tab0 AS cor0
----
135
54
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 + - col1 col0 FROM tab2 AS cor0
----
-55
-58
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col2 FROM tab1 cor0
----
95
95
95

query I rowsort
SELECT - ( 79 + - tab1.col0 ) FROM tab1
----
-15
-76
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3729
SELECT DISTINCT - CAST( tab1.col1 AS SIGNED ) FROM tab1, tab0, tab2 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-3729
SELECT DISTINCT - CAST ( tab1.col1 AS INTEGER ) FROM tab1, tab0, tab2 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - ( col1 ) + - col2 col0 FROM tab2
----
-327
-3507
-988

query I rowsort
SELECT + col1 + 61 AS col1 FROM tab0
----
147
152
158

query I rowsort
SELECT DISTINCT - col0 - + col1 FROM tab2
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3733
SELECT 46 DIV - col1 - + col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-3733
SELECT 46 / - col1 - + col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT + ( + col1 ) * - col1 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT ALL col1 - col2 * + col0 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT 78 - col2 AS col2 FROM tab2
----
40
51
52

query I rowsort
SELECT - + col0 + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 + col0 * tab1.col0 FROM tab1
----
-45
4039
6304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - cor0.col0 + - col2 + - col1 col0 FROM tab0 AS cor0
----
-133
-7471
-911

onlyif mysql # use DIV operator for integer division
query I rowsort label-3740
SELECT ALL cor0.col1 - - cor0.col1 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-3740
SELECT ALL cor0.col1 - - cor0.col1 / cor0.col1 AS col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT cor0.col1 * col0 + - cor0.col2 + col1 FROM tab1 AS cor0
----
50
593
957

query I rowsort
SELECT DISTINCT - col0 * col1 + - col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT - col2 * - col2 + - col1 AS col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT + col1 + col2 * col2 AS col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT + + col2 + col2 * - col2 FROM tab0 cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL cor0.col0 - + col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3747
SELECT - - col2 + + col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-3747
SELECT - - col2 + + col1 / - col2 AS col0 FROM tab0 AS cor0
----
-96
31
81

query I rowsort
SELECT - + col0 - + col1 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT DISTINCT col1 + cor0.col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT col1 * 62 AS col2 FROM tab0 AS cor0
----
5332
5642
6014

query I rowsort
SELECT col0 * col1 + tab1.col1 AS col2 FROM tab1
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col2 * 49 * + col2 col2 FROM tab2
----
33124
35721
70756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3753
SELECT - CAST( + ( + cor0.col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3753
SELECT - CAST ( + ( + cor0.col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3754
SELECT col2 DIV 17 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3754
SELECT col2 / 17 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT ALL - + ( - col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - col1 - cor0.col2 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT DISTINCT - col1 * - col0 * col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL - 21 + + col1 FROM tab1 AS cor0
----
-11
-8
5

query I rowsort
SELECT ALL - - col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT + + col0 - col0 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 23 FROM tab1 AS cor0
----
23
23
23

query I rowsort
SELECT - - 69 + col1 * col1 FROM tab1 AS cor0
----
169
238
745

query I rowsort
SELECT DISTINCT - + col0 + cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT 53 FROM tab1, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT ALL + 1 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT + ( - ( + col0 ) + + col1 ) AS col2 FROM tab0
----
2
62
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3767
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3767
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col2 + + col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT + ( col0 ) AS col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - 11 AS REAL ) FROM tab2
----
11

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT cor0.col1 < NULL
----

query I rowsort
SELECT cor0.col0 * + col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= ( + col2 )
----

query I rowsort
SELECT ALL - col1 * cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 IN ( - col0 * + col0 - - col1 )
----

query I rowsort
SELECT col0 + + col0 AS col1 FROM tab0
----
178
48
70

query I rowsort
SELECT - tab1.col0 + + tab1.col2 AS col1 FROM tab1
----
-7
16
51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> col2
----

query I rowsort
SELECT - tab0.col2 * - tab0.col1 AS col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL + col1 + - col1 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 * - tab1.col2 AS col2 FROM tab1
----
1248
1404
570

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( - col0 - - col1 / col0 )
----

query I rowsort
SELECT ALL - col0 * - tab2.col1 + - col2 FROM tab2
----
1305
190
4576

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE ( NULL ) < + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( col2 * - col2 )
----

query I rowsort
SELECT ALL col0 + col2 * + col1 AS col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT + tab0.col1 * + col2 AS col2 FROM tab0
----
2838
7462
97

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col2 + + col0 )
----

query I rowsort
SELECT DISTINCT + col2 - col2 * - tab1.col0 AS col2 FROM tab1
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-3790
SELECT col1 DIV - col0 + col2 * col2 + + col1 * col2 FROM tab2 AS cor0
----
1562
2090
2210

skipif mysql # not compatible
query I rowsort label-3790
SELECT col1 / - col0 + col2 * col2 + + col1 * col2 FROM tab2 AS cor0
----
1562
2090
2210

query I rowsort
SELECT + col0 + col2 + + col1 AS col2 FROM tab2 cor0
----
134
163
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col2 * col0 + + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT - col1 * col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT col1 * col2 AS col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL - - col0 * + col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - col2 - + col2 * + col0 AS col0 FROM tab1
----
-216
-3705
-7776

query I rowsort
SELECT col2 + - col2 * col2 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT col2 + + col2 * col1 * col2 AS col0 FROM tab1
----
119904
32547
75870

query I rowsort
SELECT DISTINCT col0 + tab0.col2 AS col0 FROM tab0
----
171
36
57

query I rowsort
SELECT + col2 * + col1 + + col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT - col1 + + col1 - + col0 AS col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT col0 * + col0 - + col0 FROM tab0
----
1190
552
7832

query I rowsort
SELECT + col1 + - col0 * + col1 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT col0 * + col0 + col2 * tab2.col2 FROM tab2
----
6760
7685
778

query I rowsort
SELECT ALL - col2 * + col2 AS col0 FROM tab2
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-3807
SELECT DISTINCT col0 * col1 DIV - tab0.col2 AS col2 FROM tab0
----
-3395
-62
-98

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT col0 * col1 / - tab0.col2 AS col2 FROM tab0
----
-3395
-62
-98

query I rowsort
SELECT + col2 * col2 * - tab2.col1 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT ALL col1 * col0 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT col0 + + col2 * col1 FROM tab2
----
1612
725
844

query I rowsort
SELECT ALL + cor0.col2 * + col1 + + col0 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT col1 * + cor0.col2 + + col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - col0 + col2 * + col0 AS col1 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT DISTINCT cor0.col1 + col2 * + col2 FROM tab1 cor0
----
2942
3259
9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-3815
SELECT - + col0 DIV - col1 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3815
SELECT - + col0 / - col1 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + + col0 * col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( tab0.col2 + + col1 * + col2 )
----

query I rowsort
SELECT DISTINCT + col0 * col2 AS col0 FROM tab1
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3819
SELECT - CAST( cor0.col1 AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

skipif mysql # not compatible
query I rowsort label-3819
SELECT - CAST ( cor0.col1 AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT ALL + col0 * 84 - 80 FROM tab1 AS cor0
----
172
5296
6640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col1 FROM tab1 AS cor0
----
-17
-17
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 * + col0 + col0 col1 FROM tab2 AS cor0
----
203
2262
2291

query I rowsort
SELECT ALL - 92 * - 81 + cor0.col2 FROM tab0 AS cor0
----
7453
7485
7534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col1 ) col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL + - cor0.col1 * 34 + - cor0.col0 FROM tab1 AS cor0
----
-404
-522
-887

query I rowsort
SELECT col2 * - col1 + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-3827
SELECT ALL tab2.col0 DIV - col0 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL tab2.col0 / - col0 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT 19 AS col2 FROM tab1 AS cor0
----
19
19
19

query I rowsort
SELECT - ( col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 + + col2 col1 FROM tab0 cor0
----
-12
-61
-93

query I rowsort
SELECT DISTINCT - - ( - col0 ) + ( 97 ) AS col1 FROM tab0 AS cor0
----
62
73
8

query I rowsort
SELECT - col0 + + col1 * 4 FROM tab2 cor0
----
-11
117
158

query I rowsort
SELECT - col2 + col1 * - ( 20 ) * - col0 FROM tab1 cor0
----
12743
1506
20704

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 + 27 + col2 * - col2 * + col2 col1 FROM tab0 AS cor0
----
-35910
-551341
26

query I rowsort
SELECT col0 + col0 * 0 * + col0 + col1 FROM tab2 cor0
----
137
38
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * + ( ( + col0 ) ) col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL 49 AS col2 FROM tab2 AS cor0
----
49
49
49

query I rowsort
SELECT ALL 72 + - col2 * 11 AS col2 FROM tab1 AS cor0
----
-522
-555
-984

query I rowsort
SELECT DISTINCT - col0 * col1 - col2 * col2 FROM tab2 AS cor0
----
-2787
-5278
-946

query I rowsort
SELECT + col2 * + col2 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT DISTINCT - - 64 * + cor0.col1 + - col1 AS col2 FROM tab1 AS cor0
----
1638
630
819

query I rowsort
SELECT DISTINCT + 7 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-602
-637
-679

onlyif mysql # use DIV operator for integer division
query I rowsort label-3844
SELECT DISTINCT - cor0.col0 + + col0 DIV ( cor0.col1 ) AS col2 FROM tab0 cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT - cor0.col0 + + col0 / ( cor0.col1 ) AS col2 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT 90 * + col1 FROM tab0 AS cor0
----
7740
8190
8730

query I rowsort
SELECT DISTINCT 46 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
46

query I rowsort
SELECT + 23 * + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fb8dd46c1d1e50c6add3c75f1eae539c

query I rowsort
SELECT DISTINCT - tab2.col1 * + col0 + col2 AS col1 FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT col0 * - col1 + col0 * tab2.col2 FROM tab2
----
-2574
-28
1659

query I rowsort
SELECT + col0 * - col2 + + col2 AS col1 FROM tab2 cor0
----
-162
-2002
-2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3851
SELECT - + col0 + CAST( + col1 AS SIGNED ) * - cor0.col2 + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-10544
-3883
-4323

skipif mysql # not compatible
query I rowsort label-3851
SELECT - + col0 + CAST ( + col1 AS INTEGER ) * - cor0.col2 + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-10544
-3883
-4323

query I rowsort
SELECT - - col2 + + cor0.col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT + col2 * ( + 50 ) AS col1 FROM tab2 cor0
----
1300
1350
1900

query I rowsort
SELECT 85 FROM tab0
----
85
85
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3855
SELECT CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3855
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - col0 * - col1 + 22 + cor0.col0 * - col0 FROM tab1 AS cor0
----
-3434
-5338
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3857
SELECT - col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3857
SELECT - col1 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 * 66 + + 54 AS col2 FROM tab2 AS cor0
----
-1662
-1728
-2454

onlyif mysql # use DIV operator for integer division
query I rowsort label-3859
SELECT ALL - - col2 + CAST( - 63 AS SIGNED ) DIV cor0.col1 AS col0 FROM tab2 cor0
----
25
25
35

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL - - col2 + CAST ( - 63 AS INTEGER ) / cor0.col1 AS col0 FROM tab2 cor0
----
25
25
35

query I rowsort
SELECT DISTINCT 31 AS col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
31

query I rowsort
SELECT ALL tab0.col2 * + tab0.col2 AS col2 FROM tab0
----
1
1089
6724

query I rowsort
SELECT DISTINCT cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1
----
7
78
79

query I rowsort
SELECT DISTINCT + ( col1 ) AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT ALL - ( col0 ) * - ( ( col0 ) ) AS col1 FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL - col0 * col2 AS col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT + col2 + + col1 FROM tab1 cor0
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3867
SELECT + col0 * col0 + - CAST( + col2 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
-680
4797
5408

skipif mysql # not compatible
query I rowsort label-3867
SELECT + col0 * col0 + - CAST ( + col2 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
-680
4797
5408

query I rowsort
SELECT DISTINCT 80 AS col2 FROM tab2 AS cor0
----
80

query I rowsort
SELECT + 6 * col0 FROM tab1 AS cor0
----
18
384
480

query I rowsort
SELECT + - 9 * - col0 FROM tab0 AS cor0
----
216
315
801

query I rowsort
SELECT ALL - 27 FROM tab1 cor0
----
-27
-27
-27

query I rowsort
SELECT 31 * col1 AS col2 FROM tab1 AS cor0
----
310
403
806

query I rowsort
SELECT DISTINCT + + cor0.col2 * + col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT 41 FROM tab0 cor0
----
41
41
41

query I rowsort
SELECT DISTINCT 24 * + col2 + col1 AS col1 FROM tab2 AS cor0
----
679
683
929

query I rowsort
SELECT ALL - col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - + col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3878
SELECT DISTINCT + + col1 + col2 - - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT + + col1 + col2 - - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 * col1 * col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT 18 AS col1 FROM tab2
----
18
18
18

query I rowsort
SELECT col2 * - col1 * + cor0.col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + - ( - 15 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT - tab1.col2 + col0 AS col0 FROM tab1
----
-16
-51
7

query I rowsort
SELECT col2 - tab0.col2 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3885
SELECT + col1 DIV + col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3885
SELECT + col1 / + col2 AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col2 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 18 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # use DIV operator for integer division
query I rowsort label-3888
SELECT 62 DIV - col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3888
SELECT 62 / - col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col1 + - cor0.col1 * + col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - cor0.col1 * + col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT col1 * + 63 AS col1 FROM tab2
----
1071
1953
3717

query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab0 cor1, tab2 AS cor2
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666

onlyif mysql # use DIV operator for integer division
query I rowsort label-3893
SELECT ALL col2 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL col2 / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * ( 92 ) * col0 + col2 * - col1 AS col1 FROM tab2 AS cor0
----
-5345
-561262
-574818

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3895
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col1 + ( col2 ) AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT 45 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT ALL ( + 50 ) * + col1 AS col1 FROM tab2
----
1550
2950
850

query I rowsort
SELECT 83 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 16 ) * - cor0.col2 + + col2 * - col0 col2 FROM tab1 AS cor0
----
-1026
-4560
-9216

query I rowsort
SELECT 98 FROM tab2, tab0 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT ALL + ( 80 ) + cor0.col2 FROM tab0 AS cor0
----
113
162
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 46 ) * - col0 * col0 col1 FROM tab0 AS cor0
----
-26496
-364366
-56350

query I rowsort
SELECT ALL + 63 * col2 FROM tab2 cor0
----
1638
1701
2394

query I rowsort
SELECT - + 16 * cor0.col2 AS col2 FROM tab2 AS cor0
----
-416
-432
-608

query I rowsort
SELECT - col0 * - col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - - ( col0 ) * cor0.col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT col0 + 95 * + col2 FROM tab0 AS cor0
----
130
3159
7879

query I rowsort
SELECT DISTINCT - ( - col1 ) + - col2 * - col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT ALL - + col1 AS col2 FROM tab2 cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3911
SELECT ALL - - 59 DIV - col2 + - col0 AS col1 FROM tab1 AS cor0
----
-4
-65
-80

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL - - 59 / - col2 + - col0 AS col1 FROM tab1 AS cor0
----
-4
-65
-80

query I rowsort
SELECT + - 99 FROM tab2 AS cor0
----
-99
-99
-99

query I rowsort
SELECT DISTINCT 33 * + ( - cor0.col1 * 56 ) - - col2 FROM tab1 AS cor0
----
-18423
-23928
-47994

query I rowsort
SELECT DISTINCT - cor0.col0 * + col1 + - col1 FROM tab2 AS cor0
----
-1360
-248
-4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3915
SELECT - CAST( NULL AS SIGNED ) / + col1 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3915
SELECT - CAST ( NULL AS INTEGER ) / + col1 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 82 * - col0 - col1 FROM tab0 AS cor0
----
-2054
-2967
-7389

query I rowsort
SELECT + + col1 + 18 AS col2 FROM tab2 AS cor0
----
35
49
77

query I rowsort
SELECT ALL + col0 * + col0 FROM tab1 cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 80 col2 FROM tab2
----
80

query I rowsort
SELECT ALL + - col2 + cor0.col1 FROM tab2 AS cor0
----
-21
33
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-3921
SELECT DISTINCT - 28 DIV col1 FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT - 28 / col1 FROM tab1 AS cor0
----
-1
-2

query I rowsort
SELECT ALL - col1 * - col1 + + ( - ( col1 ) ) AS col0 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT ALL - - 88 FROM tab2 cor0
----
88
88
88

query I rowsort
SELECT DISTINCT + + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 col0 FROM tab2 AS cor0
----
-28
-28
-28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col0 col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT col2 * + tab2.col0 * 76 FROM tab2
----
14364
154128
228152

query I rowsort
SELECT 0 * col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 * ( cor0.col0 ) col0 FROM tab1, tab1 AS cor0
----
216
4608
5760

query I rowsort
SELECT ALL 18 * col1 FROM tab2 cor0
----
1062
306
558

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3931
SELECT DISTINCT - cor0.col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT - cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 + 28 AS col2 FROM tab0 AS cor0
----
114
119
125

query I rowsort
SELECT ALL col0 * col2 + + cor0.col2 * + col2 FROM tab0 AS cor0
----
14022
1881
36

query I rowsort
SELECT - - col2 * ( col2 ) FROM tab1 cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 * - 39 + + cor0.col0 col0 FROM tab1 AS cor0
----
1017
454
587

query I rowsort
SELECT DISTINCT + col0 + + 86 FROM tab1
----
150
166
89

query I rowsort
SELECT - col0 + col2 * + col0 + tab1.col1 AS col1 FROM tab1
----
185
3594
7613

query I rowsort
SELECT col0 + 9 AS col1 FROM tab1 cor0
----
12
73
89

query I rowsort
SELECT DISTINCT tab0.col1 + col2 * col0 FROM tab0
----
132
7389
878

query I rowsort
SELECT - col1 + - col2 * - cor0.col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT + - col2 + 66 * col2 - + col1 AS col0 FROM tab2 cor0
----
1631
1724
2453

query I rowsort
SELECT ALL cor0.col2 * 84 FROM tab2 AS cor0
----
2184
2268
3192

query I rowsort
SELECT - - cor0.col1 * 62 - 62 AS col2 FROM tab1 AS cor0
----
1550
558
744

query I rowsort
SELECT - + col0 * + col0 + 27 * col2 FROM tab0 AS cor0
----
-1198
-5707
315

query I rowsort
SELECT ( 39 ) AS col0 FROM tab1 AS cor0
----
39
39
39

query I rowsort
SELECT ALL - ( col1 ) * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 + - col0 FROM tab2 cor0
----
-1612
-725
-844

query I rowsort
SELECT - tab1.col2 - - ( col1 ) FROM tab1
----
-28
-47
-83

query I rowsort
SELECT 80 + 57 * + cor0.col1 * col2 FROM tab0 AS cor0
----
161846
425414
5609

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3950
SELECT - - CAST( + 19 AS SIGNED ) * - col2 + col1 * + 99 AS col1 FROM tab1 AS cor0
----
-537
-93
1548

skipif mysql # not compatible
query I rowsort label-3950
SELECT - - CAST ( + 19 AS INTEGER ) * - col2 + col1 * + 99 AS col1 FROM tab1 AS cor0
----
-537
-93
1548

query I rowsort
SELECT DISTINCT 39 + 37 * + cor0.col2 FROM tab1 AS cor0
----
2037
2148
3591

onlyif mysql # use DIV operator for integer division
query I rowsort label-3952
SELECT DISTINCT - CAST( + col1 AS SIGNED ) + col0 DIV 69 AS col0 FROM tab2 cor0
----
-16
-31
-58

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) + col0 / 69 AS col0 FROM tab2 cor0
----
-16
-31
-58

query I rowsort
SELECT 88 + 36 FROM tab2 AS cor0
----
124
124
124

onlyif mysql # use DIV operator for integer division
query I rowsort label-3954
SELECT DISTINCT - ( col0 ) DIV col2 + col0 * col1 * cor0.col1 FROM tab1 AS cor0
----
13520
2028
6399

skipif mysql # not compatible
query I rowsort label-3954
SELECT DISTINCT - ( col0 ) / col2 + col0 * col1 * cor0.col1 FROM tab1 AS cor0
----
13520
2028
6399

query I rowsort
SELECT col1 * + 82 + col2 AS col0 FROM tab0 AS cor0
----
7085
7544
7955

query I rowsort
SELECT + col0 + col1 + col0 FROM tab0
----
134
167
269

onlyif mysql # use DIV operator for integer division
query I rowsort label-3957
SELECT ALL + col2 DIV 21 + + ( + tab2.col2 ) * col2 col0 FROM tab2
----
1445
677
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL + col2 / 21 + + ( + tab2.col2 ) * col2 col0 FROM tab2
----
1445
677
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - tab1.col2 col1 FROM tab1
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3959
SELECT col2 + col0 * - col2 DIV col2 + + 35 col0 FROM tab1
----
28
51
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3959
SELECT col2 + col0 * - col2 / col2 + + 35 col0 FROM tab1
----
28
51
86

query I rowsort
SELECT DISTINCT col0 + + 58 * - col2 FROM tab2
----
-1430
-1559
-2125

query I rowsort
SELECT cor0.col0 + + col2 * col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT col2 * + col1 + + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT + tab0.col2 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-3965
SELECT tab1.col0 DIV - ( + cor0.col2 ) FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 510daade6477708c3ae26c9b0ddc7d9f

skipif mysql # not compatible
query I rowsort label-3965
SELECT tab1.col0 / - ( + cor0.col2 ) FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 510daade6477708c3ae26c9b0ddc7d9f

query I rowsort
SELECT - - col2 + col2 + + col1 AS col2 FROM tab0 cor0
----
152
255
99

query I rowsort
SELECT DISTINCT 93 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
93

query I rowsort
SELECT col0 * ( - col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-3969
SELECT DISTINCT - 96 + 99 + col2 DIV col0 AS col2 FROM tab0
----
3
4

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT - 96 + 99 + col2 / col0 AS col2 FROM tab0
----
3
4

query I rowsort
SELECT DISTINCT 27 + - col0 * col2 * - col2 + 87 FROM tab0
----
149
26250
598550

onlyif mysql # use DIV operator for integer division
query I rowsort label-3971
SELECT ( - 90 ) DIV tab2.col0 + + ( ( + tab2.col1 ) ) FROM tab2
----
16
19
58

skipif mysql # not compatible
query I rowsort label-3971
SELECT ( - 90 ) / tab2.col0 + + ( ( + tab2.col1 ) ) FROM tab2
----
16
19
58

query I rowsort
SELECT DISTINCT + col2 + 31 AS col1 FROM tab0
----
113
32
64

query I rowsort
SELECT - 79 + + col0 * - col1 * col2 AS col2 FROM tab0
----
-3474
-664197
-68191

query I rowsort
SELECT 48 + - col2 * - col1 AS col2 FROM tab2
----
1582
694
885

query I rowsort
SELECT + col0 + col1 AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT 87 + col2 * col0 FROM tab2 AS cor0
----
2115
276
3089

query I rowsort
SELECT + + 82 + + col0 * cor0.col1 FROM tab0 AS cor0
----
2146
3477
8181

query I rowsort
SELECT + - 89 FROM tab0 AS cor0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT - ( + ( col0 ) ) * 3 + 9 FROM tab1
----
-183
-231
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3980
SELECT - ( + col1 ) DIV col0 FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-3980
SELECT - ( + col1 ) / col0 FROM tab2
----
-4
0
0

query I rowsort
SELECT DISTINCT - 97 AS col0 FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 - - col2 col2 FROM tab0 cor0
----
118
37
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 * + col1 col1 FROM tab0 cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col0 col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - + col2 * col1 + ( - col0 ) + col1 FROM tab2 AS cor0
----
-1553
-708
-813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 * + col2 * - tab2.col0 col2 FROM tab2
----
-4536
-48672
-72048

query I rowsort
SELECT ALL + - col0 + col0 * col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT - col0 * cor0.col1 - col1 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT + cor0.col0 + - col1 AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL col2 * + col1 - col1 AS col1 FROM tab1
----
1235
1378
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-3991
SELECT 86 DIV + col0 FROM tab1
----
1
1
28

skipif mysql # not compatible
query I rowsort label-3991
SELECT 86 / + col0 FROM tab1
----
1
1
28

query I rowsort
SELECT col1 * col0 + - col0 - + col2 * + col0 AS col0 FROM tab0
----
1248
3325
712

query I rowsort
SELECT ALL tab1.col0 - col2 AS col1 FROM tab1
----
-16
-51
7

query I rowsort
SELECT + 52 * col0 + cor0.col1 FROM tab1 AS cor0
----
182
3338
4173

query I rowsort
SELECT + col1 + col1 * 24 * + col2 FROM tab2 AS cor0
----
15521
20119
36875

query I rowsort
SELECT - + col1 + 59 FROM tab2 AS cor0
----
0
28
42

query I rowsort
SELECT ALL - col2 + ( col1 ) * col1 * + 45 AS col0 FROM tab1 AS cor0
----
30366
4443
7509

query I rowsort
SELECT DISTINCT col0 * + ( col0 ) FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + - col1 * + cor0.col1 + col1 * - col2 FROM tab1 AS cor0
----
-1417
-2080
-670

query I rowsort
SELECT - col2 * ( col0 ) * col2 AS col0 FROM tab1 cor0
----
-207936
-737280
-8748

query I rowsort
SELECT col1 * + ( col0 ) FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + 27 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT DISTINCT + - col1 + - col1 * - ( col0 * - 74 ) + 11 FROM tab0 AS cor0
----
-152811
-251316
-599406

query I rowsort
SELECT cor0.col0 - col1 AS col2 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + col0 + + col2 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT cor0.col1 * col1 * cor0.col0 + col0 * col2 * col1 FROM tab2 cor0
----
12586
391170
73865

query I rowsort
SELECT DISTINCT - + col1 + col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT 72 * - col0 AS col0 FROM tab0 AS cor0
----
-1728
-2520
-6408

query I rowsort
SELECT + - 25 * col0 AS col2 FROM tab2 AS cor0
----
-175
-1950
-1975

query I rowsort
SELECT - - ( col1 ) + col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + + 32 FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT cor0.col2 + - ( col1 ) FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL col0 * 37 FROM tab1
----
111
2368
2960

query I rowsort
SELECT - 39 * ( col0 + - cor0.col1 ) FROM tab1 AS cor0
----
-2106
-2613
897

query I rowsort
SELECT cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + + 30 FROM tab2 AS cor0
----
30
30
30

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 cor2
----
3645 values hashing to b34c9987c389223e07378cde8a36e94f

query I rowsort
SELECT ALL ( 41 * + col1 ) AS col1 FROM tab2
----
1271
2419
697

query I rowsort
SELECT - tab1.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4021
SELECT DISTINCT - - 36 * + cor0.col1 / - CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4021
SELECT DISTINCT - - 36 * + cor0.col1 / - CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 81 FROM tab1
----
81
81
81

query I rowsort
SELECT ALL + + col0 + - 83 FROM tab2 AS cor0
----
-4
-5
-76

query I rowsort
SELECT col2 * 0 + - col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT cor0.col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + - col1 * 7 * ( - col0 + ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
-4186
3780
6097

query I rowsort
SELECT ALL - - col0 * ( - col0 ) * - col0 AS col0 FROM tab1 AS cor0
----
262144
27
512000

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4028
SELECT - col2 * 31 * - col1 + + col0 * CAST( NULL AS DECIMAL ) * + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4028
SELECT - col2 * 31 * - col1 + + col0 * CAST ( NULL AS REAL ) * + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 + ( + cor0.col2 ) * + cor0.col1 * + col2 FROM tab0 AS cor0
----
194
611975
93740

query I rowsort
SELECT col1 * + 14 FROM tab1 AS cor0
----
140
182
364

query I rowsort
SELECT + col2 + - 95 * ( + cor0.col0 ) FROM tab0 AS cor0
----
-2247
-3324
-8373

query I rowsort
SELECT ALL + col1 + + ( col2 ) AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + 52 * + 49 FROM tab1, tab2 AS cor0
----
9 values hashing to 9315a66c849e9de876c33d55af87e640

query I rowsort
SELECT - - 68 FROM tab2 AS cor0
----
68
68
68

query I rowsort
SELECT + col1 * + ( col2 ) FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + - ( - col2 ) * col1 AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT + col2 * 64 FROM tab1 cor0
----
3456
3648
6144

query I rowsort
SELECT ALL + + ( + col2 ) + col0 * + col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL + tab0.col0 * cor0.col1 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 9dd217b6385bf38f78d8b6e6b7864578

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2, tab1 cor3
----
3645 values hashing to d8caf2ef7d9c405db0aec8c013a5107c

query I rowsort
SELECT - + col2 * cor0.col0 - cor0.col2 * - 94 AS col2 FROM tab2 AS cor0
----
2349
416
570

query I rowsort
SELECT ALL + 40 * - col2 + col2 AS col1 FROM tab2 cor0
----
-1014
-1053
-1482

query I rowsort
SELECT + - 94 * + col1 + ( + 6 + col2 ) FROM tab2 cor0
----
-1554
-2881
-5514

query I rowsort
SELECT ALL tab1.col1 - col0 AS col1 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT - 40 AS col1 FROM tab0, tab2 AS cor0
----
-40

query I rowsort
SELECT - 66 + - col1 AS col1 FROM tab1
----
-76
-79
-92

query I rowsort
SELECT ALL + - 20 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

query I rowsort
SELECT + 89 - col1 * ( + tab2.col2 ) FROM tab2
----
-1445
-557
-748

query I rowsort
SELECT DISTINCT + ( col2 + col2 ) FROM tab0
----
164
2
66

query I rowsort
SELECT + 40 * + tab0.col0 + col2 - + col1 AS col1 FROM tab0
----
1304
3551
907

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4051
SELECT + tab0.col1 * - col2 + + CAST( NULL AS DECIMAL ) + + col0 * + col2 * + 79 col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4051
SELECT + tab0.col1 * - col2 + + CAST ( NULL AS REAL ) + + col0 * + col2 * + 79 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 0 * - col1 * col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 62 - 83 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1

query I rowsort
SELECT - 83 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2 cor1, tab0, tab1 AS cor2
----
3645 values hashing to 77ce60d8d42550cc1b5a38c7d1dc5d13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4056
SELECT DISTINCT + 99 + + col0 * + ( - col2 ) + - col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT + 99 + + col0 * + ( - col2 ) + - col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT cor0.col0 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4058
SELECT - col0 + + tab0.col1 * + CAST( col2 AS SIGNED ) FROM tab0
----
2814
62
7373

skipif mysql # not compatible
query I rowsort label-4058
SELECT - col0 + + tab0.col1 * + CAST ( col2 AS INTEGER ) FROM tab0
----
2814
62
7373

query I rowsort
SELECT DISTINCT 95 * col1 FROM tab2 AS cor0
----
1615
2945
5605

query I rowsort
SELECT DISTINCT 7 FROM tab0, tab2 AS cor0
----
7

query I rowsort
SELECT DISTINCT + col1 * + ( col2 ) FROM tab0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4062
SELECT ALL + col1 DIV col0 AS col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL + col1 / col0 AS col0 FROM tab0
----
1
2
3

query I rowsort
SELECT ALL - col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT - tab1.col2 * + 11 AS col0 FROM tab1
----
-1056
-594
-627

query I rowsort
SELECT DISTINCT + cor0.col0 * ( col2 ) + - col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964

skipif mysql # not compatible
query I rowsort
SELECT ALL - + col2 * CAST ( - col0 AS REAL ) AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col2 * col2 + - 84 FROM tab0 AS cor0
----
-83
1005
6640

query I rowsort
SELECT ALL - col1 * col1 + cor0.col2 + - col2 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4069
SELECT - - cor0.col2 + CAST( col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-4069
SELECT - - cor0.col2 + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT DISTINCT + - cor0.col2 * 97 + 6 + col1 FROM tab2 AS cor0
----
-2457
-2582
-3663

query I rowsort
SELECT col0 * ( col1 ) FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT - + col1 * col1 + col1 * + col1 * 44 AS col1 FROM tab2 AS cor0
----
12427
149683
41323

query I rowsort
SELECT DISTINCT - cor0.col2 * col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL - col2 * - col1 + col0 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-4075
SELECT ALL + 76 + col1 DIV col2 FROM tab1 AS cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL + 76 + col1 / col2 FROM tab1 AS cor0
----
76
76
76

query I rowsort
SELECT + 42 * + cor0.col2 FROM tab1 AS cor0
----
2268
2394
4032

query I rowsort
SELECT - col2 * - col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - 24 - - ( - col0 ) AS col2 FROM tab0 AS cor0
----
-113
-48
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4079
SELECT DISTINCT - 24 DIV cor0.col1 FROM tab1 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT - 24 / cor0.col1 FROM tab1 AS cor0
----
-1
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4080
SELECT ALL + cor0.col0 DIV - col2 + - col1 * - ( - col0 ) * - col2 FROM tab1 AS cor0
----
36479
4212
99840

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL + cor0.col0 / - col2 + - col1 * - ( - col0 ) * - col2 FROM tab1 AS cor0
----
36479
4212
99840

query I rowsort
SELECT DISTINCT 16 + col1 * ( - col0 ) * + col2 FROM tab1 AS cor0
----
-36464
-4196
-99824

query I rowsort
SELECT ALL - - col0 * cor0.col0 + col0 * + ( + col1 ) AS col2 FROM tab2 AS cor0
----
10686
266
7584

query I rowsort
SELECT 77 * - col1 - 61 FROM tab1 AS cor0
----
-1062
-2063
-831

query I rowsort
SELECT col2 - col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 30 + col0 col1 FROM tab1 AS cor0
----
-27
34
50

query I rowsort
SELECT ALL cor0.col0 + - cor0.col2 * col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT - 92 + col0 + + 2 FROM tab1 AS cor0
----
-10
-26
-87

query I rowsort
SELECT + 53 * col2 + + 47 AS col0 FROM tab1 AS cor0
----
2909
3068
5135

onlyif mysql # use DIV operator for integer division
query I rowsort label-4089
SELECT DISTINCT + col0 DIV col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT + col0 / col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT col1 + col0 + + ( + col0 ) FROM tab2 cor0
----
175
215
45

query I rowsort
SELECT ALL + - 6 FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT + 62 * + col1 * - ( + cor0.col2 + + col0 ) FROM tab1 AS cor0
----
-141856
-75020
-91884

query I rowsort
SELECT DISTINCT + 21 * + col0 AS col0 FROM tab2 AS cor0
----
147
1638
1659

query I rowsort
SELECT ALL + tab1.col1 * - col1 AS col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT DISTINCT tab2.col0 + cor0.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 4a01ecc2037eb425b02feee67266c705

onlyif mysql # use DIV operator for integer division
query I rowsort label-4096
SELECT ALL 27 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL 27 / - col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + ( + col2 * + col1 ) + + 7 * 86 FROM tab2
----
1248
1439
2136

query I rowsort
SELECT DISTINCT - + col0 * - col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT + - col2 - + col1 FROM tab1 AS cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4100
SELECT DISTINCT + col1 DIV col0 + col1 AS col1 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT + col1 / col0 + col1 AS col1 FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT DISTINCT - - col1 * - col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT col2 + cor0.col1 * ( - 0 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - col0 + + col1 * 84 AS col2 FROM tab0 AS cor0
----
7200
7555
8113

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4104
SELECT ALL + ( - col1 ) - + CAST( + 22 AS SIGNED ) * col2 FROM tab2 cor0
----
-625
-631
-853

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL + ( - col1 ) - + CAST ( + 22 AS INTEGER ) * col2 FROM tab2 cor0
----
-625
-631
-853

query I rowsort
SELECT + - col0 * col1 + col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1375
-3394
-975

query I rowsort
SELECT - col1 + + ( col1 * ( col0 ) ) FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT - col0 + - 62 AS col0 FROM tab2 AS cor0
----
-140
-141
-69

query I rowsort
SELECT 37 + col0 FROM tab0 AS cor0
----
126
61
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-4109
SELECT DISTINCT - + 27 * - col2 + col0 DIV + col0 AS col1 FROM tab0 AS cor0
----
2215
28
892

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT - + 27 * - col2 + col0 / + col0 AS col1 FROM tab0 AS cor0
----
2215
28
892

query I rowsort
SELECT ALL + col2 * col2 + - col0 AS col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab2, tab0 cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 9 * - col0 + col2 col1 FROM tab0
----
-150
-313
-637

query I rowsort
SELECT + + col1 + + cor0.col2 * col0 * + col1 - - 12 FROM tab2 AS cor0
----
119723
51063
5902

query I rowsort
SELECT + ( + col1 ) FROM tab0
----
86
91
97

query I rowsort
SELECT - 69 * col1 AS col1 FROM tab1
----
-1794
-690
-897

query I rowsort
SELECT - - ( + col2 ) FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT col0 * col2 * - col0 + col1 FROM tab1 AS cor0
----
-233462
-460
-614387

query I rowsort
SELECT - ( col0 ) * col0 FROM tab0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4119
SELECT + col2 + - CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4119
SELECT + col2 + - CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 19 * col2 FROM tab1
----
1026
1083
1824

onlyif mysql # use DIV operator for integer division
query I rowsort label-4121
SELECT + col1 DIV CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-4121
SELECT + col1 / CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT DISTINCT ( tab1.col2 ) AS col0 FROM tab1, tab1 AS cor0, tab1 cor1
----
54
57
96

query I rowsort
SELECT col0 + - 32 AS col2 FROM tab2 AS cor0
----
-25
46
47

query I rowsort
SELECT ALL + - col2 * + 24 FROM tab2 AS cor0
----
-624
-648
-912

query I rowsort
SELECT ALL - + col1 * 30 FROM tab1 AS cor0
----
-300
-390
-780

query I rowsort
SELECT DISTINCT cor0.col0 * ( - col2 ) + col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT col0 * - ( - ( col0 ) ) FROM tab1 cor0
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4128
SELECT + cor0.col2 + col2 DIV + 44 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4128
SELECT + cor0.col2 + col2 / + 44 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4129
SELECT ALL - col1 * 44 DIV - 15 FROM tab0
----
252
266
284

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL - col1 * 44 / - 15 FROM tab0
----
252
266
284

query I rowsort
SELECT - ( + col2 ) * col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL 12 FROM tab0, tab1 cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT - + ( + col0 ) * col1 + 88 * col0 - - col1 FROM tab2 AS cor0
----
2321
430
5626

onlyif mysql # use DIV operator for integer division
query I rowsort label-4133
SELECT - + col1 * + cor0.col0 DIV col0 + 35 FROM tab2 AS cor0
----
-24
18
4

skipif mysql # not compatible
query I rowsort label-4133
SELECT - + col1 * + cor0.col0 / col0 + 35 FROM tab2 AS cor0
----
-24
18
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4134
SELECT - 24 - col2 * - cor0.col2 DIV + col2 FROM tab0 AS cor0
----
-23
58
9

skipif mysql # not compatible
query I rowsort label-4134
SELECT - 24 - col2 * - cor0.col2 / + col2 FROM tab0 AS cor0
----
-23
58
9

query I rowsort
SELECT + + col0 - 5 FROM tab2 AS cor0
----
2
73
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4136
SELECT + CAST( NULL AS SIGNED ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4136
SELECT + CAST ( NULL AS INTEGER ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 25 + col1 FROM tab2 AS cor0
----
42
56
84

query I rowsort
SELECT DISTINCT - - ( col0 ) + + col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - - 9 * cor0.col1 FROM tab2 AS cor0
----
153
279
531

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4140
SELECT ALL + + 9 * - col1 + - col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL + + 9 * - col1 + - col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + cor0.col2 * 80 - col0 AS col1 FROM tab2 AS cor0
----
-2158
-2167
-3119

query I rowsort
SELECT - cor0.col0 * + cor0.col2 + col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT - + col2 * cor0.col2 * col0 + col0 FROM tab0 AS cor0
----
-26112
-598347
0

query I rowsort
SELECT - col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT - ( cor0.col0 ) * col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - + 35 * + col0 + 77 * col0 * - col1 FROM tab1 AS cor0
----
-51520
-6111
-82880

query I rowsort
SELECT + col2 + + cor0.col1 * - col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL - 33 + - cor0.col1 AS col2 FROM tab2, tab0 cor0, tab1 AS cor1, tab1, tab2 cor2
----
243 values hashing to a6a8665eb478f23223bcc6774dced825

query I rowsort
SELECT DISTINCT + col0 + col0 * - col0 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT + tab0.col1 * + tab0.col2 FROM tab0, tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + col1 + - tab2.col2 * col2 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT col2 * tab0.col1 AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ( - ( col0 ) * col0 ) + col2 * + col0 + col2 FROM tab0
----
-1189
-541
249

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4154
SELECT ALL CAST( NULL AS SIGNED ) + - col0 * + col1 + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL CAST ( NULL AS INTEGER ) + - col0 * + col1 + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - col1 ) * col2 + - col0 FROM tab0
----
-132
-2862
-7551

query I rowsort
SELECT 18 + - col1 * col1 FROM tab1 AS cor0
----
-151
-658
-82

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08

query I rowsort
SELECT DISTINCT - - cor0.col0 + - 77 * + col2 FROM tab0 AS cor0
----
-2517
-42
-6225

query I rowsort
SELECT ALL col0 * - ( cor0.col1 ) + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - 24 FROM tab0, tab1 AS cor0
----
-24

query I rowsort
SELECT - 62 + + 53 AS col0 FROM tab2
----
-9
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + 40 * col1 col2 FROM tab0
----
3526
3731
3977

query I rowsort
SELECT DISTINCT ( - tab0.col0 ) + col0 AS col1 FROM tab0
----
0

query I rowsort
SELECT - ( col0 ) AS col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ( col2 ) + col0 * - col0 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT - 15 * + col1 FROM tab1 AS cor0
----
-150
-195
-390

query I rowsort
SELECT ALL + 36 AS col2 FROM tab2 AS cor0
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + cor0.col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + 44 * + col1 FROM tab0 AS cor0
----
3784
4004
4268

onlyif mysql # use DIV operator for integer division
query I rowsort label-4170
SELECT col2 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4170
SELECT col2 / + col1 AS col2 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT ALL + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4172
SELECT ( - col0 ) * + col1 + - col1 * col0 DIV col0 + + col2 FROM tab0 AS cor0
----
-2117
-3491
-8108

skipif mysql # not compatible
query I rowsort label-4172
SELECT ( - col0 ) * + col1 + - col1 * col0 / col0 + + col2 FROM tab0 AS cor0
----
-2117
-3491
-8108

query I rowsort
SELECT ALL + col1 * + col1 AS col0 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT ALL 87 AS col0 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT DISTINCT + col0 + cor0.col0 * - col2 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT + 38 * cor0.col2 FROM tab0 cor0
----
1254
3116
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col2 col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT 30 * col0 FROM tab0 AS cor0
----
1050
2670
720

query I rowsort
SELECT ALL + 16 AS col2 FROM tab0 AS cor0
----
16
16
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-4180
SELECT + - 42 * + col0 DIV col0 FROM tab2 AS cor0
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-4180
SELECT + - 42 * + col0 / col0 FROM tab2 AS cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT - - 90 FROM tab0 AS cor0
----
90

query I rowsort
SELECT ALL - col1 + col0 * - col0 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT + 67 + col1 * col0 + + col2 AS col1 FROM tab0 AS cor0
----
2164
3463
8248

query I rowsort
SELECT ALL + - col2 + cor0.col2 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + + 81 + - col1 FROM tab2 AS cor0
----
22
50
64

query I rowsort
SELECT - + col2 + + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL + col2 - - col0 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT - col1 + col0 + col2 * - col0 FROM tab0 AS cor0
----
-7300
-854
-97

query I rowsort
SELECT - - col1 * + 3 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT ALL + cor0.col1 + - col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + col2 * ( 37 + col0 ) AS col0 FROM tab2 cor0
----
1188
2990
4408

query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT + col2 + col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT - col1 * col2 + col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT - col2 * col2 - col2 * - col0 FROM tab1 cor0
----
-1536
-2754
399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + - 98 col1 FROM tab2 AS cor0
----
-124
-125
-136

query I rowsort
SELECT col1 * 8 AS col1 FROM tab1 AS cor0
----
104
208
80

query I rowsort
SELECT DISTINCT + + col1 * col0 + col0 * col2 FROM tab2 AS cor0
----
406
4345
6630

query I rowsort
SELECT - col0 * col0 * + col0 - col0 AS col2 FROM tab2 AS cor0
----
-350
-474630
-493118

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col1 AS REAL ) + col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL - col2 * col1 - col2 * - col2 AS col0 FROM tab1 cor0
----
1512
2679
7968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4202
SELECT ALL - - CAST( 23 AS SIGNED ) + - col0 * + col1 FROM tab0 AS cor0
----
-2041
-3372
-8076

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - - CAST ( 23 AS INTEGER ) + - col0 * + col1 FROM tab0 AS cor0
----
-2041
-3372
-8076

query I rowsort
SELECT - + col0 + + 28 + col1 AS col2 FROM tab2 AS cor0
----
-34
52
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 - - col1 * 88 col1 FROM tab1
----
1157
2314
890

query I rowsort
SELECT col0 * + 12 + + col1 * col0 AS col2 FROM tab0
----
2352
3815
9167

query I rowsort
SELECT + col1 + 36 - + 61 FROM tab0
----
61
66
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL col2 + col1 + - col0 AS col1 FROM tab0 AS cor0
----
63
84
95

query I rowsort
SELECT ALL + col1 - - col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT col0 - - cor0.col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 * + col1 AS col2 FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT DISTINCT - + col2 + col2 AS col0 FROM tab1 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4213
SELECT ALL cor0.col2 + + col1 DIV col1 - col0 FROM tab1 AS cor0
----
-6
17
52

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL cor0.col2 + + col1 / col1 - col0 FROM tab1 AS cor0
----
-6
17
52

query I rowsort
SELECT - col0 + col1 * col2 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT DISTINCT + + col0 * col0 + + col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT + - col1 - cor0.col0 * + col2 AS col2 FROM tab1 cor0
----
-188
-3658
-7693

query I rowsort
SELECT + col1 + col1 * col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - tab2.col0 + tab2.col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 * col0 + - col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT ALL + col1 + tab0.col1 * - col0 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL tab2.col0 * + col2 + - tab2.col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT + col1 > + col2 + col1
----
-1
-33
-82

query I rowsort
SELECT ALL + col1 + col1 * col1 FROM tab2
----
306
3540
992

query I rowsort
SELECT + col1 + - col1 * col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT + col1 * + col1 * col1 FROM tab0 AS cor0
----
636056
753571
912673

onlyif mysql # use DIV operator for integer division
query I rowsort label-4226
SELECT + col0 DIV - cor0.col0 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4226
SELECT + col0 / - cor0.col0 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4227
SELECT DISTINCT - + cor0.col2 DIV col1 AS col0 FROM tab2 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT - + cor0.col2 / col1 AS col0 FROM tab2 AS cor0
----
-2
0

query I rowsort
SELECT ALL col2 * + col2 AS col2 FROM tab0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + + col1 * tab2.col1 col0 FROM tab2
----
327
3507
988

query I rowsort
SELECT ALL ( - col0 ) * - col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT ALL - col2 * + tab1.col2 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT ALL col1 * col0 * - col2 AS col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT - tab1.col2 AS col1 FROM tab1, tab1 AS cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4234
SELECT DISTINCT col2 DIV col1 AS col1 FROM tab2
----
0
2

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT col2 / col1 AS col1 FROM tab2
----
0
2

query I rowsort
SELECT ALL + col2 * - col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + tab2.col1 * col0 AS col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL + - col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + 81 FROM tab2
----
81
81
81

query I rowsort
SELECT - 63 * + col1 FROM tab1 AS cor0
----
-1638
-630
-819

query I rowsort
SELECT 40 AS col1 FROM tab0
----
40
40
40

query I rowsort
SELECT DISTINCT - 98 + col0 AS col1 FROM tab2 AS cor0
----
-19
-20
-91

query I rowsort
SELECT - col0 + col1 * + col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT + + col1 + - 44 + col1 AS col2 FROM tab2 AS cor0
----
-10
18
74

query I rowsort
SELECT + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT ALL + + col2 + - ( 3 ) FROM tab1 AS cor0
----
51
54
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4247
SELECT col1 DIV + col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4247
SELECT col1 / + col0 FROM tab0
----
1
2
3

query I rowsort
SELECT + col2 * col0 - col2 FROM tab2 AS cor0
----
162
2002
2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-4249
SELECT - col0 + 70 * - col0 DIV col0 FROM tab0 AS cor0
----
-105
-159
-94

skipif mysql # not compatible
query I rowsort label-4249
SELECT - col0 + 70 * - col0 / col0 FROM tab0 AS cor0
----
-105
-159
-94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4250
SELECT col1 - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4250
SELECT col1 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab1 cor1, tab0, tab0 cor2
----
3645 values hashing to 862fba9ac85fdf2cec88a0bec0808b7e

query I rowsort
SELECT - 82 AS col2 FROM tab0 AS cor0
----
-82
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 + col0 col1 FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT cor0.col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4255
SELECT - CAST( col1 AS SIGNED ) + + col0 * ( - col0 ) FROM tab0 AS cor0
----
-1322
-662
-8012

skipif mysql # not compatible
query I rowsort label-4255
SELECT - CAST ( col1 AS INTEGER ) + + col0 * ( - col0 ) FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT + ( col0 ) + cor0.col2 * + 12 FROM tab2 AS cor0
----
331
390
535

query I rowsort
SELECT - 97 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT DISTINCT - + cor0.col2 * + 93 + col1 * col2 FROM tab1 AS cor0
----
-3618
-4731
-7680

query I rowsort
SELECT - - 6 + - 98 AS col1 FROM tab2 AS cor0
----
-92
-92
-92

query I rowsort
SELECT ( col0 ) * col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT 17 FROM tab2
----
17

query I rowsort
SELECT DISTINCT 48 FROM tab2, tab0, tab0 AS cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 col2 FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-4264
SELECT - col1 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4264
SELECT - col1 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * + 14 FROM tab2
----
-364
-378
-532

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0, tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT 33 * + col1 FROM tab2 AS cor0
----
1023
1947
561

query I rowsort
SELECT - ( - 68 ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4269
SELECT + 59 DIV tab1.col2 + - col0 AS col1 FROM tab1
----
-2
-63
-80

skipif mysql # not compatible
query I rowsort label-4269
SELECT + 59 / tab1.col2 + - col0 AS col1 FROM tab1
----
-2
-63
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4270
SELECT ALL + col2 DIV + cor0.col1 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4270
SELECT ALL + col2 / + cor0.col1 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT - - col1 * - 35 AS col1 FROM tab1 AS cor0
----
-350
-455
-910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 col0 FROM tab2
----
-24
-24
-24

query I rowsort
SELECT col1 + tab1.col0 * ( + col1 ) * col1 FROM tab1
----
13533
2054
6410

query I rowsort
SELECT DISTINCT + tab0.col0 AS col0 FROM tab0, tab2 AS cor0
----
24
35
89

query I rowsort
SELECT 12 - - col0 FROM tab2
----
19
90
91

query I rowsort
SELECT + col1 + col2 * + 74 AS col1 FROM tab1
----
4022
4228
7117

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4277
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col2 * - 11 FROM tab0
----
-11
-363
-902

query I rowsort
SELECT DISTINCT col2 * - 7 * 36 AS col0 FROM tab2
----
-6552
-6804
-9576

onlyif mysql # use DIV operator for integer division
query I rowsort label-4280
SELECT ALL col2 DIV 17 AS col2 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL col2 / 17 AS col2 FROM tab0
----
0
1
4

query I rowsort
SELECT + ( col0 ) + col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + - col0 * 94 FROM tab0 AS cor0
----
-2256
-3290
-8366

query I rowsort
SELECT DISTINCT 3 + col0 * + col1 AS col0 FROM tab1 AS cor0
----
1043
643
81

query I rowsort
SELECT DISTINCT + ( col1 ) + - col1 AS col0 FROM tab0 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + ( + col0 ) * col1 col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL + - col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT col1 * 77 FROM tab1 AS cor0
----
1001
2002
770

query I rowsort
SELECT + col0 * tab0.col0 AS col1 FROM tab0
----
1225
576
7921

query I rowsort
SELECT - tab0.col2 * 15 FROM tab0, tab2 AS cor0
----
9 values hashing to 21bb369fcca3759468c13c9b8474545b

query I rowsort
SELECT ALL col1 * + ( tab1.col2 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT 88 AS col2 FROM tab0, tab2 AS cor0
----
88

query I rowsort
SELECT ALL - 31 FROM tab0, tab2 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT - col2 * 22 AS col1 FROM tab2 AS cor0
----
-572
-594
-836

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4294
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 7 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT ALL + col1 * - col1 * col1 + + col0 * col1 AS col2 FROM tab1
----
-1157
-17498
-360

query I rowsort
SELECT - ( - ( col2 ) ) * cor0.col2 * - col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT - 8 * 31 FROM tab0 AS cor0
----
-248
-248
-248

query I rowsort
SELECT + col1 + col0 * col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + col1 + + col0 * col0 * - 17 + col1 AS col1 FROM tab0 AS cor0
----
-134475
-20631
-9620

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4301
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4302
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 30 AS col0 FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 30 AS col0 FROM tab1, tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4303
SELECT col0 DIV + 6 col2 FROM tab0
----
14
4
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4303
SELECT col0 / + 6 col2 FROM tab0
----
14
4
5

query I rowsort
SELECT DISTINCT + 68 + col0 * - col0 FROM tab0 cor0
----
-1157
-508
-7853

query I rowsort
SELECT ALL - cor0.col0 * - col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + + col0 + - col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL + + 89 FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT ( - cor0.col1 ) * col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT col0 - tab2.col0 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 * col2 + - 43 AS col0 FROM tab0
----
2795
54
7419

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4311
SELECT - col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4311
SELECT - col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 - ( + col2 ) * col0 AS col1 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT ALL tab1.col1 * - col0 + + col2 - tab1.col0 FROM tab1
----
-1024
-27
-647

onlyif mysql # use DIV operator for integer division
query I rowsort label-4314
SELECT + ( col2 ) DIV - col2 + + col1 * - ( col1 ) AS col2 FROM tab1
----
-101
-170
-677

skipif mysql # not compatible
query I rowsort label-4314
SELECT + ( col2 ) / - col2 + + col1 * - ( col1 ) AS col2 FROM tab1
----
-101
-170
-677

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4315
SELECT ALL 38 * ( - col2 ) + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL 38 * ( - col2 ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( col0 ) * col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT col1 * col1 + cor0.col0 - + ( col1 ) FROM tab1 AS cor0
----
154
236
653

query I rowsort
SELECT ALL - ( - col1 ) * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4319
SELECT + + ( 33 ) DIV - col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4319
SELECT + + ( 33 ) / - col1 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT + - col0 * 29 FROM tab0 AS cor0
----
-1015
-2581
-696

query I rowsort
SELECT DISTINCT 73 + + 88 * - cor0.col1 FROM tab2 cor0
----
-1423
-2655
-5119

query I rowsort
SELECT ALL - + ( - 97 ) FROM tab1 AS cor0
----
97
97
97

query I rowsort
SELECT ALL + col0 + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT 17 * + col1 - - col2 AS col2 FROM tab1 AS cor0
----
227
317
496

query I rowsort
SELECT DISTINCT - col1 * + 73 AS col1 FROM tab1 cor0
----
-1898
-730
-949

query I rowsort
SELECT DISTINCT - + ( 62 ) + col0 * ( + 67 ) AS col1 FROM tab1 AS cor0
----
139
4226
5298

onlyif mysql # use DIV operator for integer division
query I rowsort label-4327
SELECT + - col1 DIV 18 FROM tab0 cor0
----
-4
-5
-5

skipif mysql # not compatible
query I rowsort label-4327
SELECT + - col1 / 18 FROM tab0 cor0
----
-4
-5
-5

query I rowsort
SELECT + 27 + - 60 AS col0 FROM tab2 AS cor0
----
-33
-33
-33

query I rowsort
SELECT ALL + - 12 AS col0 FROM tab1 AS cor0
----
-12
-12
-12

query I rowsort
SELECT ALL 8 * - 23 + col0 * + 85 FROM tab2 AS cor0
----
411
6446
6531

query I rowsort
SELECT + 85 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT - + col0 + - col1 * - ( col0 ) AS col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT + 24 - col0 FROM tab2 AS cor0
----
-54
-55
17

query I rowsort
SELECT - col1 + + cor0.col2 * col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT - col0 * 41 FROM tab0 AS cor0
----
-1435
-3649
-984

query I rowsort
SELECT ALL + col0 + - col1 AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT - col0 * col1 + - col1 AS col0 FROM tab2
----
-1360
-248
-4661

onlyif mysql # use DIV operator for integer division
query I rowsort label-4338
SELECT - - col1 + ( col2 ) * + col0 DIV + col0 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-4338
SELECT - - col1 + ( col2 ) * + col0 / + col0 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - cor0.col0 col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT + cor0.col0 * + ( col1 ) FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col1 col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + + cor0.col2 + - cor0.col1 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4343
SELECT DISTINCT + col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT + col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 * - ( + col0 ) + col2 * cor0.col2 - + 37 FROM tab2 cor0
----
-1389
-1595
503

onlyif mysql # use DIV operator for integer division
query I rowsort label-4345
SELECT DISTINCT col0 DIV ( - cor0.col0 ) + col1 * - col0 FROM tab1 AS cor0
----
-1041
-641
-79

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT col0 / ( - cor0.col0 ) + col1 * - col0 FROM tab1 AS cor0
----
-1041
-641
-79

query I rowsort
SELECT ALL + col0 - - col0 AS col0 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL col1 * col1 - col2 FROM tab1 cor0
----
43
622
73

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 489b7b2b5c4980d50e86e51be30361c3

query I rowsort
SELECT DISTINCT ( col2 ) + col0 FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4350
SELECT + 80 DIV col1 col2 FROM tab1 AS cor0
----
3
6
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4350
SELECT + 80 / col1 col2 FROM tab1 AS cor0
----
3
6
8

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to 73edaf471aef3f42e9a0b0be98b79374

query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0, tab1 AS cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53

query I rowsort
SELECT DISTINCT + col2 - col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT + 54 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT DISTINCT - - 2 AS col2 FROM tab0 AS cor0
----
2

query I rowsort
SELECT ALL - - 73 AS col1 FROM tab2 AS cor0
----
73
73
73

query I rowsort
SELECT col0 * - col0 + - 43 AS col0 FROM tab1 AS cor0
----
-4139
-52
-6443

query I rowsort
SELECT ALL + cor0.col1 * col2 * + cor0.col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL - col2 + + cor0.col1 - cor0.col2 FROM tab0 AS cor0
----
-73
20
95

query I rowsort
SELECT + - col1 * cor0.col2 + col0 AS col2 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT - 39 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * col1 col2 FROM tab0 AS cor0
----
-4128
-4368
-4656

query I rowsort
SELECT DISTINCT + ( - col0 ) AS col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT 5 AS col0 FROM tab0
----
5

query I rowsort
SELECT - col2 - col0 * - col2 FROM tab1
----
108
3591
7584

query I rowsort
SELECT col1 * - 50 AS col1 FROM tab0 AS cor0
----
-4300
-4550
-4850

query I rowsort
SELECT DISTINCT - 55 FROM tab0
----
-55

query I rowsort
SELECT - col1 + - cor0.col2 * col0 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4370
SELECT ALL - - ( col2 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL - - ( col2 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT - tab1.col0 + + col0 * col2 / - col0 + + col1 FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN ( + col2 * col0 * - col1 ) AND NULL
----

query I rowsort
SELECT ALL - col1 + - col1 AS col2 FROM tab2
----
-118
-34
-62

query I rowsort
SELECT ALL - col2 + + col0 * col0 FROM tab0
----
1224
543
7839

query I rowsort
SELECT ALL col0 * col1 + + col1 * + col1 AS col1 FROM tab0
----
12804
16380
9460

query I rowsort
SELECT DISTINCT tab1.col2 * col0 + col0 AS col1 FROM tab1
----
165
3712
7760

query I rowsort
SELECT + tab1.col1 - - col2 FROM tab1
----
109
67
80

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * + col1 BETWEEN - col0 / - col2 AND NULL
----

query I rowsort
SELECT ALL 32 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

query I rowsort
SELECT cor0.col1 + + col0 * col1 FROM tab2 AS cor0
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - col0 col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL col1 + - tab0.col2 AS col0 FROM tab0
----
53
9
96

query I rowsort
SELECT col0 FROM tab2 WHERE col2 IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - col0 / + col2 AND NULL
----

query I rowsort
SELECT ALL col1 * col2 / - tab0.col0 FROM tab0 WHERE NOT + col0 NOT IN ( + tab0.col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 < ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + tab0.col2 + col2 * - col0 AS col1 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT ALL col1 * col0 + col0 FROM tab1
----
1120
704
81

query III rowsort
SELECT * FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT - col2 * col2 + col2 AS col1 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT cor0.col2 + - col0 * col0 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT col1 * + col0 - col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT ALL - col0 * - col0 + col0 FROM tab2 cor0
----
56
6162
6320

query I rowsort
SELECT col0 + + col2 AS col0 FROM tab2 cor0
----
104
117
34

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + + col2 NOT BETWEEN - col2 + - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 * + col0 * col1 + col1 + col1 ) NOT IN ( + col2 )
----

query I rowsort
SELECT + col1 * + col2 AS col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 + col2 col0 FROM tab1
----
216
3705
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * tab0.col1 col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL + col2 + - col0 * col0 AS col0 FROM tab2
----
-22
-6058
-6203

query I rowsort
SELECT ALL col1 * col1 + col1 AS col2 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT col2 * + tab1.col1 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL col1 + col0 * col0 FROM tab2
----
6143
6258
80

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4406
SELECT col0 + - col2 * + col0 + - col0 DIV col0 FROM tab0
----
-1
-7210
-769

skipif mysql # not compatible
query I rowsort label-4406
SELECT col0 + - col2 * + col0 + - col0 / col0 FROM tab0
----
-1
-7210
-769

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) >= ( NULL )
----

query I rowsort
SELECT ALL + tab1.col1 * col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL + col2 * + col2 - tab2.col2 FROM tab2
----
1406
650
702

query I rowsort
SELECT DISTINCT + col0 + + col0 AS col1 FROM tab1
----
128
160
6

query III rowsort
SELECT * FROM tab2 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT + tab0.col2 * col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + col2 * col1 - + col1 AS col1 FROM tab2
----
1475
629
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * - col1 col2 FROM tab2
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col2 ) + - col0 col0 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT 24 * + col0 + col1 FROM tab1 AS cor0
----
1546
1933
98

query I rowsort
SELECT 25 + - 54 AS col2 FROM tab2 AS cor0
----
-29
-29
-29

query I rowsort
SELECT - tab2.col0 * col0 AS col2 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT 45 * col2 AS col1 FROM tab0 AS cor0
----
1485
3690
45

query I rowsort
SELECT DISTINCT + ( + col2 ) * + col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4422
SELECT ALL - ( - col0 ) DIV col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL - ( - col0 ) / col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT - + ( col1 ) + - col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT 73 * - col0 + col0 * 72 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - - ( - col0 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + + col0 * col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - + col0 + col1 + - col0 FROM tab1 AS cor0
----
-118
-147
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-4428
SELECT DISTINCT - cor0.col2 DIV + col0 + - col2 FROM tab2 AS cor0
----
-26
-30
-38

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT - cor0.col2 / + col0 + - col2 FROM tab2 AS cor0
----
-26
-30
-38

query I rowsort
SELECT 52 AS col1 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT ALL - cor0.col0 * + col0 FROM tab2 AS cor0
----
-49
-6084
-6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col2 col0 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT col1 * col0 * ( + col1 ) - - col1 * col2 FROM tab1 AS cor0
----
14768
3432
6970

query I rowsort
SELECT ALL - 27 + cor0.col2 FROM tab1 cor0
----
27
30
69

query I rowsort
SELECT 78 + col1 * + col2 FROM tab2 AS cor0
----
1612
724
915

query I rowsort
SELECT DISTINCT - + cor0.col2 * - col0 * + col0 AS col2 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT + 30 + col0 FROM tab2 AS cor0
----
108
109
37

query I rowsort
SELECT ALL 70 * col0 + + 90 AS col2 FROM tab2 AS cor0
----
5550
5620
580

query I rowsort
SELECT DISTINCT - ( - col1 ) * - cor0.col2 * 20 + cor0.col0 AS col0 FROM tab2 cor0
----
-12841
-16733
-30602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4439
SELECT + 15 * col2 DIV col1 + + 22 FROM tab1
----
107
132
53

skipif mysql # not compatible
query I rowsort label-4439
SELECT + 15 * col2 / col1 + + 22 FROM tab1
----
107
132
53

query I rowsort
SELECT tab1.col2 + col1 - col0 FROM tab1
----
29
3
77

query I rowsort
SELECT ALL - 59 AS col1 FROM tab1
----
-59
-59
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 14 col0 FROM tab2
----
-14
-14
-14

query I rowsort
SELECT DISTINCT col1 * + 42 AS col2 FROM tab0
----
3612
3822
4074

query I rowsort
SELECT + - col1 * ( + col0 ) * col0 - - 16 AS col1 FROM tab1 AS cor0
----
-218
-40944
-83184

query I rowsort
SELECT - col2 + - col0 * + col0 FROM tab1 AS cor0
----
-4153
-63
-6496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4446
SELECT DISTINCT col0 * CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT col0 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col2 - + 95 * + col2 AS col0 FROM tab0 AS cor0
----
-3102
-7708
-94

query I rowsort
SELECT ALL - - col2 + col1 FROM tab1 cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4449
SELECT - col2 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4449
SELECT - col2 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - 61 col0 FROM tab0 cor0
----
150
85
96

query I rowsort
SELECT - cor0.col2 + 50 * col0 - + col0 AS col1 FROM tab1 AS cor0
----
3079
3824
93

query I rowsort
SELECT col2 * - ( col0 * - col0 ) + col2 FROM tab0 AS cor0
----
1226
19041
649604

query I rowsort
SELECT 32 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT DISTINCT - - col1 + col2 - col2 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4455
SELECT ALL + - col0 DIV - col0 AS col0 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL + - col0 / - col0 AS col0 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT - 33 AS col0 FROM tab2 AS cor0
----
-33
-33
-33

query I rowsort
SELECT 6 AS col2 FROM tab2 AS cor0
----
6
6
6

query I rowsort
SELECT DISTINCT + 52 * - col1 AS col0 FROM tab2 AS cor0
----
-1612
-3068
-884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4459
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + 59 AS col2 FROM tab1
----
59

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4462
SELECT ALL + - 45 DIV - col0 FROM tab2 AS cor0
----
0
0
6

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL + - 45 / - col0 FROM tab2 AS cor0
----
0
0
6

query I rowsort
SELECT ALL 45 * + cor0.col2 FROM tab0 cor0
----
1485
3690
45

query I rowsort
SELECT DISTINCT - cor0.col1 + + col2 AS col1 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-4465
SELECT - 95 - + col0 * tab0.col2 DIV + tab0.col0 FROM tab0
----
-128
-177
-96

skipif mysql # not compatible
query I rowsort label-4465
SELECT - 95 - + col0 * tab0.col2 / + tab0.col0 FROM tab0
----
-128
-177
-96

query I rowsort
SELECT ALL - col1 - + col0 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4467
SELECT + - col0 - + CAST( col0 * - cor0.col1 AS SIGNED ) FROM tab1 cor0
----
576
75
960

skipif mysql # not compatible
query I rowsort label-4467
SELECT + - col0 - + CAST ( col0 * - cor0.col1 AS INTEGER ) FROM tab1 cor0
----
576
75
960

query I rowsort
SELECT 14 + + col0 AS col0 FROM tab1
----
17
78
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-4469
SELECT - cor0.col1 DIV - 60 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-4469
SELECT - cor0.col1 / - 60 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT DISTINCT 64 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
64

query I rowsort
SELECT ALL - - col2 + ( col1 ) * 25 AS col1 FROM tab1 AS cor0
----
307
421
704

query I rowsort
SELECT DISTINCT col0 - - 99 FROM tab2 AS cor0
----
106
177
178

query I rowsort
SELECT ALL + 22 + - col2 AS col0 FROM tab2 AS cor0
----
-16
-4
-5

query I rowsort
SELECT DISTINCT - col2 + 14 * col0 AS col1 FROM tab1 AS cor0
----
-12
1024
839

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4475
SELECT DISTINCT + CAST( col0 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
128
160
6

skipif mysql # not compatible
query I rowsort label-4475
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL - - 96 AS col1 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT ( + 35 ) + col2 * - col2 + - col2 AS col1 FROM tab2 AS cor0
----
-1447
-667
-721

query I rowsort
SELECT ALL col0 * 1 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT tab2.col2 + - col0 * ( col1 * - 82 ) FROM tab2
----
110164
17821
377390

query I rowsort
SELECT DISTINCT + col0 + tab0.col1 * - tab0.col0 + col2 AS col1 FROM tab0
----
-2007
-3359
-7928

query I rowsort
SELECT col2 * - 79 + 75 + tab1.col1 AS col2 FROM tab1
----
-4165
-4418
-7496

query I rowsort
SELECT DISTINCT + 32 + cor0.col1 AS col2 FROM tab1, tab0 AS cor0
----
118
123
129

query I rowsort
SELECT 99 FROM tab2, tab0, tab1 AS cor0, tab1 cor1
----
81 values hashing to c841a8d826151b422ecdb71db0250739

query I rowsort
SELECT ALL + 63 FROM tab2, tab1 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + tab0.col0 col1 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL 20 * + col2 FROM tab1
----
1080
1140
1920

query I rowsort
SELECT DISTINCT + - ( + ( col2 ) ) * 15 AS col0 FROM tab0 AS cor0
----
-1230
-15
-495

query I rowsort
SELECT + - col1 + - 58 FROM tab0 AS cor0
----
-144
-149
-155

query I rowsort
SELECT ALL - 52 * - col0 AS col2 FROM tab0 AS cor0
----
1248
1820
4628

query I rowsort
SELECT + 67 AS col0 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT ALL 55 + - col0 FROM tab2 AS cor0
----
-23
-24
48

query I rowsort
SELECT DISTINCT + 10 AS col0 FROM tab2 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 col1 FROM tab0 AS cor0
----
-32
-32
-32

query I rowsort
SELECT ALL + ( - 41 ) + + col1 * + 33 FROM tab2 AS cor0
----
1906
520
982

query I rowsort
SELECT DISTINCT + tab1.col2 FROM tab1, tab2, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + 43 * + col1 AS col0 FROM tab0
----
3698
3913
4171

query I rowsort
SELECT DISTINCT ( + col0 ) * col2 AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT cor0.col2 * + col1 + col0 * - 57 FROM tab0 AS cor0
----
-1898
1470
2389

query I rowsort
SELECT ALL 60 * col0 AS col2 FROM tab0
----
1440
2100
5340

onlyif mysql # use DIV operator for integer division
query I rowsort label-4500
SELECT ALL 35 DIV + tab1.col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL 35 / + tab1.col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 91 * 16 AS col2 FROM tab1
----
1456
1456
1456

query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4503
SELECT DISTINCT + - cor0.col0 * + col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4503
SELECT DISTINCT + - cor0.col0 * + col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - 12 FROM tab1 cor0
----
12

query I rowsort
SELECT - 75 * + col2 * - col2 FROM tab2 AS cor0
----
108300
50700
54675

onlyif mysql # use DIV operator for integer division
query I rowsort label-4506
SELECT + ( col2 ) DIV col0 FROM tab1 AS cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-4506
SELECT + ( col2 ) / col0 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT ALL - 4 AS col0 FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT - - cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-4509
SELECT ALL + 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-4509
SELECT ALL + col1 / - col1 col0 FROM tab1 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) + cor0.col1 col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL - ( 53 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT ALL col2 + - 41 AS col2 FROM tab0
----
-40
-8
41

query I rowsort
SELECT ALL + - col1 + 87 AS col2 FROM tab0 AS cor0
----
-10
-4
1

query I rowsort
SELECT cor0.col2 * - 12 * + col2 + col1 * ( col1 + col0 ) FROM tab2 AS cor0
----
-15696
-29
-7570

query I rowsort
SELECT DISTINCT col1 * + col2 + + col1 FROM tab1 AS cor0
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 - cor0.col0 col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT 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-4518
SELECT DISTINCT - + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT - + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col1 * - ( col0 ) FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - + col1 + - ( + 57 ) * - col2 FROM tab0 AS cor0
----
-40
1795
4583

query I rowsort
SELECT cor0.col0 + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4522
SELECT ALL - + cor0.col2 * CAST( NULL AS DECIMAL ) + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL - + cor0.col2 * CAST ( NULL AS REAL ) + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * col2 + col2 AS col2 FROM tab0 cor0
----
-1056
-6642
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + ( 92 ) col0 FROM tab0 AS cor0
----
-5
1
6

query I rowsort
SELECT - col2 * - col2 + col0 * col0 FROM tab2 cor0
----
6760
7685
778

query I rowsort
SELECT ALL + - cor0.col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL cor0.col2 * + 82 FROM tab0 cor0
----
2706
6724
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 + cor0.col0 col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - col2 + 68 AS col2 FROM tab0 AS cor0
----
-14
35
67

query I rowsort
SELECT ALL - col0 + col1 * col1 * col1 FROM tab2 AS cor0
----
205301
29784
4834

query I rowsort
SELECT col1 - + 19 * col0 * + col0 AS col2 FROM tab0 AS cor0
----
-10858
-150408
-23178

query I rowsort
SELECT DISTINCT - 5 AS col2 FROM tab2, tab1 AS cor0
----
-5

query I rowsort
SELECT - 38 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT - col1 - - 29 FROM tab1 AS cor0
----
16
19
3

query I rowsort
SELECT ALL - col2 * col1 AS col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + col0 + - col1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-29
-61
80

query I rowsort
SELECT + 29 * - col0 + - col0 * + col0 * col2 AS col1 FROM tab0 AS cor0
----
-19704
-2240
-652103

query I rowsort
SELECT ALL 22 * - 99 + - cor0.col0 + cor0.col0 * col2 FROM tab1 AS cor0
----
-2019
1406
5422

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab0 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 51e2051aff75c58a5edaa314f1412983

query I rowsort
SELECT + tab1.col2 + - col2 * - col0 AS col0 FROM tab1
----
216
3705
7776

query I rowsort
SELECT ALL - tab0.col1 + + col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT + - 77 FROM tab0 AS cor0
----
-77
-77
-77

query I rowsort
SELECT + col1 * + cor0.col1 + col0 + + col0 AS col2 FROM tab1 AS cor0
----
228
329
682

query I rowsort
SELECT ALL 56 FROM tab1, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 + col0 col1 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT - cor0.col1 + + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2890
3239
9203

query I rowsort
SELECT + col1 * ( - col1 ) + + col0 * col0 * + col0 FROM tab2 AS cor0
----
-618
471071
492750

query I rowsort
SELECT cor0.col0 + 27 AS col2 FROM tab2 cor0
----
105
106
34

query I rowsort
SELECT col0 * ( col0 * col0 ) AS col1 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT - col2 + + ( col0 * col0 ) AS col1 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT - col0 * ( + cor0.col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + tab0.col2 * + col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL + col2 * - col0 - 19 * col2 * + 23 FROM tab0 AS cor0
----
-15213
-43132
-472

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 * - 82 col2 FROM tab2 AS cor0
----
2073
2183
3099

query I rowsort
SELECT DISTINCT + col1 + ( col2 ) * col2 + - 87 * 35 FROM tab0 AS cor0
----
-1870
-2947
3770

query I rowsort
SELECT ALL - 90 + - 26 FROM tab0 AS cor0
----
-116
-116
-116

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4558
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4558
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col2 - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * - col1 + - ( - cor0.col0 ) * + col2 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT ALL + ( - tab1.col2 ) FROM tab1
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4562
SELECT DISTINCT + col0 DIV - col0 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT + col0 / - col0 AS col1 FROM tab0
----
-1

query I rowsort
SELECT + cor0.col0 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT 88 * + col1 - 15 FROM tab2 AS cor0
----
1481
2713
5177

query I rowsort
SELECT 90 * + col2 FROM tab1 AS cor0
----
4860
5130
8640

onlyif mysql # use DIV operator for integer division
query I rowsort label-4566
SELECT ( col0 ) * col0 DIV col1 + + col2 AS col2 FROM tab1
----
466
54
588

skipif mysql # not compatible
query I rowsort label-4566
SELECT ( col0 ) * col0 / col1 + + col2 AS col2 FROM tab1
----
466
54
588

query I rowsort
SELECT ALL cor0.col0 * - 7 FROM tab0, tab0 AS cor0
----
9 values hashing to 36815034201b815fc8c3b01e8a5bc8e8

query I rowsort
SELECT DISTINCT cor0.col0 * - cor0.col1 * col1 + col2 FROM tab2 cor0
----
-22793
-271492
-6700

query I rowsort
SELECT 94 FROM tab1 cor0
----
94
94
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-4570
SELECT + 3 * col0 - cor0.col0 * + col2 DIV col2 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-4570
SELECT + 3 * col0 - cor0.col0 * + col2 / col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT col2 * col0 - + col2 * - col1 FROM tab1 AS cor0
----
1566
4218
8928

onlyif mysql # use DIV operator for integer division
query I rowsort label-4572
SELECT DISTINCT - col2 - - col2 DIV - ( col2 ) col0 FROM tab1
----
-55
-58
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT - col2 - - col2 / - ( col2 ) col0 FROM tab1
----
-55
-58
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4573
SELECT ALL 2 DIV tab0.col2 - + ( - col2 ) FROM tab0
----
3
33
82

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL 2 / tab0.col2 - + ( - col2 ) FROM tab0
----
3
33
82

query I rowsort
SELECT - col2 + + col1 * + cor0.col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT - ( - 65 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT + cor0.col2 + col0 + col1 * col2 * col1 FROM tab1 AS cor0
----
16400
36561
5821

query I rowsort
SELECT - col1 * + ( col2 ) + col1 AS col1 FROM tab1
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT - col0 + + 42 + + col2 AS col1 FROM tab2
----
-10
1
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4579
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4579
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col2 * - ( col1 ) + - col1 + - col0 * - col0 FROM tab2 AS cor0
----
-819
4491
5578

query I rowsort
SELECT + - col1 + + cor0.col2 * + col1 FROM tab0 AS cor0
----
0
2752
7371

onlyif mysql # use DIV operator for integer division
query I rowsort label-4582
SELECT col0 * - col2 - + 97 * + col1 DIV col1 col2 FROM tab1 AS cor0
----
-259
-3745
-7777

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4582
SELECT col0 * - col2 - + 97 * + col1 / col1 col2 FROM tab1 AS cor0
----
-259
-3745
-7777

onlyif mysql # use DIV operator for integer division
query I rowsort label-4583
SELECT + - col2 * + col1 DIV col1 + col0 AS col1 FROM tab2 AS cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-4583
SELECT + - col2 * + col1 / col1 + col0 AS col1 FROM tab2 AS cor0
----
-20
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT - - 37 AS col1 FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT - 74 + + ( - col0 ) FROM tab2 cor0
----
-152
-153
-81

query I rowsort
SELECT DISTINCT - 83 * - ( col0 ) AS col1 FROM tab0 AS cor0
----
1992
2905
7387

onlyif mysql # use DIV operator for integer division
query I rowsort label-4588
SELECT + + col1 DIV cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4588
SELECT + + col1 / cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT ALL - 57 FROM tab1 cor0
----
-57
-57
-57

query I rowsort
SELECT - - ( + col1 ) * ( - 71 ) AS col0 FROM tab0 AS cor0
----
-6106
-6461
-6887

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4593
SELECT ( col0 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4593
SELECT ( col0 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col1 * col0 + + ( 68 ) * - col0 FROM tab0 AS cor0
----
1015
2047
432

query I rowsort
SELECT ALL col1 * + col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT 79 AS col2 FROM tab0 AS cor0
----
79
79
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4597
SELECT ALL col0 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL col0 / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + ( cor0.col1 ) FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT + cor0.col2 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT + + 82 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-14
25
28

query I rowsort
SELECT ALL - 84 + - col0 FROM tab2 AS cor0
----
-162
-163
-91

query I rowsort
SELECT - 71 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT DISTINCT + cor0.col2 + - ( + cor0.col0 ) FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT - col0 + 56 AS col0 FROM tab2 AS cor0
----
-22
-23
49

query I rowsort
SELECT DISTINCT - + cor0.col2 - col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT cor0.col2 + - cor0.col2 * 26 AS col0 FROM tab1 AS cor0
----
-1350
-1425
-2400

query I rowsort
SELECT ALL + col0 - + col1 * - col1 * col2 AS col2 FROM tab0 AS cor0
----
244092
679131
9444

query I rowsort
SELECT ALL - + col2 + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4609
SELECT col1 * CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-4609
SELECT col1 * CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + 63 * - col2 col0 FROM tab0 AS cor0
----
-2103
-5255
-98

query I rowsort
SELECT DISTINCT - + ( cor0.col0 ) * col0 + 28 * - col1 AS col0 FROM tab1 AS cor0
----
-4376
-6764
-737

onlyif mysql # use DIV operator for integer division
query I rowsort label-4612
SELECT DISTINCT + - CAST( - col2 AS SIGNED ) DIV - col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT + - CAST ( - col2 AS INTEGER ) / - col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col1 ) + + col2 * + col0 * - 48 + + col1 col1 FROM tab0 AS cor0
----
-1680
-350304
-38016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * + 99 + + cor0.col2 col0 FROM tab0 cor0
----
2409
3466
8893

query I rowsort
SELECT DISTINCT col1 + - col2 * - cor0.col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT col0 * col2 * col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT ALL + 85 * col2 FROM tab2 cor0
----
2210
2295
3230

query I rowsort
SELECT + tab0.col0 + - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT tab0.col1 + - col0 FROM tab0
----
2
62
62

query I rowsort
SELECT + col0 + ( - col1 ) FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT + col1 * col2 - + cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
-3068
-697
620

query I rowsort
SELECT - cor0.col1 + + col0 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + col2 + col2 AS col2 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - 48 + col2 FROM tab1 cor0
----
48
6
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL + - col1 * - col0 + ( + col0 ) - + col1 AS col0 FROM tab1 AS cor0
----
1107
55
694

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 + col0 col2 FROM tab2 AS cor0
----
129
130
58

query I rowsort
SELECT DISTINCT + cor0.col0 + + cor0.col2 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4629
SELECT DISTINCT col0 DIV - col2 + + ( col2 ) AS col2 FROM tab1 AS cor0
----
54
56
96

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT col0 / - col2 + + ( col2 ) AS col2 FROM tab1 AS cor0
----
54
56
96

query I rowsort
SELECT DISTINCT - col0 * col1 * - ( ( + cor0.col2 ) ) + col1 FROM tab1 cor0
----
36490
4238
99853

query I rowsort
SELECT - col0 * - col1 * ( - col2 ) AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL - 13 * col2 - + 75 * 65 AS col1 FROM tab1 AS cor0
----
-5577
-5616
-6123

onlyif mysql # use DIV operator for integer division
query I rowsort label-4633
SELECT col0 + col0 DIV - col1 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-4633
SELECT col0 + col0 / - col1 col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - - 95 AS col0 FROM tab2 AS cor0
----
95
95
95

query I rowsort
SELECT - - col0 * col2 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL col0 * + ( - col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + col0 + ( 6 ) FROM tab1 AS cor0
----
70
86
9

query I rowsort
SELECT + 59 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT 57 - + col0 FROM tab0
----
-32
22
33

query I rowsort
SELECT - - cor0.col1 + 50 AS col1 FROM tab1 AS cor0
----
60
63
76

query I rowsort
SELECT col2 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT + col0 + col0 FROM tab2
----
14
156
158

query I rowsort
SELECT - 53 * col1 + 73 + col2 AS col0 FROM tab0
----
-4452
-4668
-5067

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 * col2 col2 FROM tab1
----
432
456
768

query I rowsort
SELECT col1 + col1 * col2 AS col2 FROM tab0
----
194
2924
7553

query I rowsort
SELECT + col1 + - tab1.col1 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab2, tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - col1 * + col2 * - col1 AS col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT DISTINCT col1 * + col1 * col1 AS col1 FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT col2 * 60 + col0 FROM tab2 AS cor0
----
1627
1638
2359

query I rowsort
SELECT - - col0 * 17 FROM tab2 AS cor0
----
119
1326
1343

query I rowsort
SELECT + col2 * col0 * col1 FROM tab1
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-4653
SELECT DISTINCT 59 DIV col1 FROM tab1
----
2
4
5

skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT 59 / col1 FROM tab1
----
2
4
5

query I rowsort
SELECT - - 17 AS col0 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT ( col2 ) * col1 + + ( - col0 ) AS col2 FROM tab1
----
1168
1401
506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT ALL - col1 * ( + col0 ) + 60 FROM tab0 AS cor0
----
-2004
-3335
-8039

query I rowsort
SELECT DISTINCT - + ( col0 ) * cor0.col0 * - 4 + col1 + col2 * 67 AS col1 FROM tab0 cor0
----
37269
4601
5064

query I rowsort
SELECT DISTINCT col2 + cor0.col2 * col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + + ( cor0.col2 ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT 58 AS col2 FROM tab0
----
58
58
58

query I rowsort
SELECT DISTINCT 82 FROM tab1, tab1 AS cor0
----
82

query I rowsort
SELECT DISTINCT ( tab2.col0 + + col2 ) AS col2 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-4664
SELECT ALL - col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL - col2 / + col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 + col0 col2 FROM tab1 AS cor0
----
105
121
44

query I rowsort
SELECT DISTINCT col1 * - col0 AS col0 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT - - 98 * - col1 + + 33 AS col1 FROM tab1 AS cor0
----
-1241
-2515
-947

query I rowsort
SELECT + + 2 AS col2 FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT ALL - - col1 * col0 * - 31 AS col1 FROM tab0 AS cor0
----
-105245
-251069
-63984

onlyif mysql # use DIV operator for integer division
query I rowsort label-4670
SELECT - ( - cor0.col1 ) * col2 DIV 12 + + 38 AS col1 FROM tab2 AS cor0
----
107
165
91

skipif mysql # not compatible
query I rowsort label-4670
SELECT - ( - cor0.col1 ) * col2 / 12 + + 38 AS col1 FROM tab2 AS cor0
----
107
165
91

query I rowsort
SELECT + col2 - col2 * - col1 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT 5 * ( - col2 ) AS col2 FROM tab2
----
-130
-135
-190

query I rowsort
SELECT ( col1 + + tab2.col0 ) * ( 43 ) FROM tab2
----
1634
4128
5891

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 42 - - col1 col0 FROM tab2 AS cor0
----
-11
-25
17

query I rowsort
SELECT ( - col1 ) + cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 7 AS REAL ) - - col1 FROM tab1 AS cor0
----
17
20
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-4677
SELECT - - col1 + col1 DIV cor0.col1 FROM tab2 cor0
----
18
32
60

skipif mysql # not compatible
query I rowsort label-4677
SELECT - - col1 + col1 / cor0.col1 FROM tab2 cor0
----
18
32
60

query I rowsort
SELECT ALL - 48 + col2 + 28 FROM tab1 AS cor0
----
34
37
76

query I rowsort
SELECT - 85 AS col0 FROM tab2 AS cor0
----
-85
-85
-85

query I rowsort
SELECT + cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) AS col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT + cor0.col1 * - 76 FROM tab0 AS cor0
----
-6536
-6916
-7372

query I rowsort
SELECT + + col1 + + ( 46 ) * col1 FROM tab2 AS cor0
----
1457
2773
799

query I rowsort
SELECT + col1 * 82 AS col1 FROM tab0 AS cor0
----
7052
7462
7954

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 col2 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4686
SELECT ALL + - 18 DIV 7 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL + - 18 / 7 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # use DIV operator for integer division
query I rowsort label-4687
SELECT ALL - col1 * 33 + col1 DIV col0 FROM tab0
----
-2835
-3002
-3199

skipif mysql # not compatible
query I rowsort label-4687
SELECT ALL - col1 * 33 + col1 / col0 FROM tab0
----
-2835
-3002
-3199

query I rowsort
SELECT ALL 23 FROM tab0, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT - 23 + + cor0.col1 FROM tab0 AS cor0
----
63
68
74

query I rowsort
SELECT DISTINCT + tab2.col1 + ( col2 ) + col2 * - col0 AS col2 FROM tab2
----
-131
-1943
-2947

query I rowsort
SELECT col0 * 67 FROM tab2
----
469
5226
5293

query I rowsort
SELECT - col2 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT tab0.col1 * - 7 FROM tab0
----
-602
-637
-679

onlyif mysql # use DIV operator for integer division
query I rowsort label-4694
SELECT DISTINCT + col1 + 56 DIV - cor0.col0 FROM tab1 AS cor0
----
10
13
8

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT + col1 + 56 / - cor0.col0 FROM tab1 AS cor0
----
10
13
8

query I rowsort
SELECT ( col2 ) + + col2 * + col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT DISTINCT col2 * - col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL col1 * + col2 * + col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT DISTINCT ( + col0 ) FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4699
SELECT + col0 DIV col1 AS col0 FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-4699
SELECT + col0 / col1 AS col0 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT DISTINCT 15 * + col1 FROM tab0 cor0
----
1290
1365
1455

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4702
SELECT col2 DIV + col2 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4702
SELECT col2 / + col2 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT + 34 FROM tab2, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT ALL 35 * tab1.col0 * + col2 - ( col0 ) * col1 AS col2 FROM tab1
----
127040
267760
5592

query I rowsort
SELECT DISTINCT - 56 AS col2 FROM tab2, tab1 AS cor0
----
-56

query I rowsort
SELECT ALL + col1 - - col2 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL col2 + - col1 - - col0 FROM tab1
----
111
163
31

query I rowsort
SELECT - col2 * col2 * col2 AS col2 FROM tab1 cor0
----
-157464
-185193
-884736

query I rowsort
SELECT tab0.col0 - 50 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to daea533e187eb077b9c995ad22cb5b25

query I rowsort
SELECT + 52 FROM tab1
----
52
52
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4711
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4711
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + + 58 + - col0 FROM tab2 AS cor0
----
-20
-21
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-4713
SELECT ALL - col2 * col0 + col0 * + col2 DIV tab0.col2 FROM tab0
----
-7209
-768
0

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL - col2 * col0 + col0 * + col2 / tab0.col2 FROM tab0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4714
SELECT DISTINCT + 51 + col1 DIV - col2 AS col1 FROM tab0
----
-46
49
50

skipif mysql # not compatible
query I rowsort label-4714
SELECT DISTINCT + 51 + col1 / - col2 AS col1 FROM tab0
----
-46
49
50

query I rowsort
SELECT col0 + + tab2.col1 * tab2.col2 * + col2 FROM tab2
----
22606
24627
39962

query I rowsort
SELECT 96 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to e03080212e3345d8b37e64e3264019c4

query I rowsort
SELECT - col0 * ( 76 ) FROM tab0 AS cor0
----
-1824
-2660
-6764

query I rowsort
SELECT + col2 * + 32 * + col1 AS col1 FROM tab1 AS cor0
----
18240
39936
44928

onlyif mysql # use DIV operator for integer division
query I rowsort label-4719
SELECT ALL + - col1 * col0 DIV col0 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL + - col1 * col0 / col0 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4720
SELECT col1 DIV + col0 + 82 AS col1 FROM tab1 AS cor0
----
82
82
90

skipif mysql # not compatible
query I rowsort label-4720
SELECT col1 / + col0 + 82 AS col1 FROM tab1 AS cor0
----
82
82
90

query I rowsort
SELECT - col2 * - col2 * 3 AS col1 FROM tab0 AS cor0
----
20172
3
3267

query I rowsort
SELECT DISTINCT - - col2 * + col2 + - cor0.col0 * + col1 * - 39 AS col0 FROM tab1 AS cor0
----
28209
49776
5958

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4723
SELECT ALL col1 * - ( + col2 + + cor0.col1 * CAST( - cor0.col0 AS SIGNED ) ) FROM tab2 AS cor0
----
22185
269984
5890

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL col1 * - ( + col2 + + cor0.col1 * CAST ( - cor0.col0 AS INTEGER ) ) FROM tab2 AS cor0
----
22185
269984
5890

query I rowsort
SELECT + col0 + cor0.col2 * + 89 AS col1 FROM tab2 AS cor0
----
2392
2410
3461

query I rowsort
SELECT - - col2 * - ( col2 ) AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT col2 + - 30 * + cor0.col0 FROM tab0 AS cor0
----
-1049
-2588
-687

onlyif mysql # use DIV operator for integer division
query I rowsort label-4727
SELECT + - col1 DIV + cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-4727
SELECT + - col1 / + cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
12
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + - col1 col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT ALL + col0 * + col0 + - 36 * col0 AS col0 FROM tab2
----
-203
3276
3397

query I rowsort
SELECT col0 * - col1 + ( col0 ) AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 97 col2 FROM tab0
----
-8342
-8827
-9409

query I rowsort
SELECT 56 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT ALL + col0 * - ( - 51 ) * col0 FROM tab1 AS cor0
----
208896
326400
459

onlyif mysql # use DIV operator for integer division
query I rowsort label-4734
SELECT ALL - col2 DIV col1 FROM tab2 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4734
SELECT ALL - col2 / col1 FROM tab2 cor0
----
-2
0
0

query I rowsort
SELECT cor0.col0 * + ( + col2 ) + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-4736
SELECT DISTINCT col2 DIV - ( col0 ) FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT col2 / - ( col0 ) FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT ALL - col0 + - col2 AS col1 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT - + col0 + - col0 * + cor0.col1 * + cor0.col2 + col0 AS col1 FROM tab2 cor0
----
-119652
-51034
-5859

query I rowsort
SELECT 74 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col0 ) col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 5 col1 FROM tab1 AS cor0
----
-59
-75
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4742
SELECT DISTINCT tab1.col2 * col1 DIV col2 col0 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT tab1.col2 * col1 / col2 col0 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 col1 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 94 AS REAL ) + - col2 FROM tab0 AS cor0
----
-127
-176
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4745
SELECT ALL - CAST( NULL AS DECIMAL ) / ( col1 ) + col1 + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL - CAST ( NULL AS REAL ) / ( col1 ) + col1 + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor1.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT + 75 * col1 FROM tab1 AS cor0
----
1950
750
975

query I rowsort
SELECT DISTINCT - ( ( - col2 ) ) FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT col2 + col2 * + col1 FROM tab0 AS cor0
----
2871
7544
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4750
SELECT + col0 * col2 DIV CAST( + col0 AS SIGNED ) - col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-4750
SELECT + col0 * col2 / CAST ( + col0 AS INTEGER ) - col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - col1 + col0 * col2 AS col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT - + col2 + - col2 * + col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT ALL + 37 + + col0 * 59 AS col0 FROM tab0 AS cor0
----
1453
2102
5288

onlyif mysql # use DIV operator for integer division
query I rowsort label-4754
SELECT ALL + + 58 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4754
SELECT ALL + + 58 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - ( col2 ) + 76 * 68 FROM tab0 AS cor0
----
5169
5201
5250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 + - cor0.col1 col0 FROM tab1 AS cor0
----
-31
-34
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + col2 * col2 * 46 col1 FROM tab1 cor0
----
-134190
-149511
-424032

query I rowsort
SELECT + ( - col0 ) * col0 + col2 * + cor0.col1 FROM tab2 AS cor0
----
-4550
-5595
788

onlyif mysql # use DIV operator for integer division
query I rowsort label-4759
SELECT col1 DIV - col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4759
SELECT col1 / - col1 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4760
SELECT CAST( NULL AS SIGNED ) * 30 + col0 + 42 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT CAST ( NULL AS INTEGER ) * 30 + col0 + 42 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + - cor0.col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + + col0 * + cor0.col0 + - col2 AS col0 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT + 46 + col2 FROM tab1 cor0
----
100
103
142

query I rowsort
SELECT DISTINCT cor0.col2 * - col1 AS col0 FROM tab2 cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4765
SELECT - 20 + col0 DIV ( col1 ) AS col2 FROM tab2 AS cor0
----
-16
-19
-20

skipif mysql # not compatible
query I rowsort label-4765
SELECT - 20 + col0 / ( col1 ) AS col2 FROM tab2 AS cor0
----
-16
-19
-20

query I rowsort
SELECT ALL - 65 AS col0 FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT - - col2 + col1 * - ( + col1 ) * col2 AS col2 FROM tab0 AS cor0
----
-244035
-678960
-9408

query I rowsort
SELECT + col1 + col0 * - col1 * + col0 AS col2 FROM tab2 cor0
----
-106080
-1488
-358897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 + - 67 + + 90 col2 FROM tab1 AS cor0
----
-139
-3625
-7657

query I rowsort
SELECT DISTINCT col1 + - col2 AS col0 FROM tab0 cor0
----
53
9
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4771
SELECT DISTINCT - + col1 + col2 * ( + cor0.col1 * col2 + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT - + col1 + col2 * ( + cor0.col1 * col2 + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 * col1 * + col1 AS col0 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT - 82 FROM tab0 AS cor0
----
-82
-82
-82

query I rowsort
SELECT - col0 * - col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT col1 + + col1 * col2 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4776
SELECT - cor0.col0 + CAST( NULL AS SIGNED ) * col0 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4776
SELECT - cor0.col0 + CAST ( NULL AS INTEGER ) * col0 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 - + col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT cor0.col2 + 91 * 89 FROM tab2 AS cor0
----
8125
8126
8137

query I rowsort
SELECT + cor0.col2 * - ( col2 ) FROM tab2 AS cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-4780
SELECT col0 DIV tab0.col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4780
SELECT col0 / tab0.col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col1 col2 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT DISTINCT + + cor0.col0 AS col1 FROM tab1, tab2, tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + ( + cor1.col2 ) * cor0.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
1
1089
2706
33
6724
82

query I rowsort
SELECT col0 * + 34 AS col0 FROM tab0 cor0
----
1190
3026
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 8 col1 FROM tab2 AS cor0
----
8
8
8

query I rowsort
SELECT DISTINCT - + ( - col2 ) FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - - 23 * col2 FROM tab2 cor0
----
598
621
874

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4788
SELECT DISTINCT + CAST( - cor0.col1 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT + CAST ( - cor0.col1 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - 55 * col1 * - cor0.col2 FROM tab1 cor0
----
31350
68640
77220

query I rowsort
SELECT col1 * - col0 * - tab0.col0 AS col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT cor0.col2 * cor0.col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 255bedb67400f83d272763889db4ca4f

query I rowsort
SELECT + 64 AS col2 FROM tab0 AS cor0
----
64
64
64

query I rowsort
SELECT + 73 * col2 * col1 + - col1 * cor0.col0 FROM tab0 AS cor0
----
205110
3686
536627

query I rowsort
SELECT DISTINCT col0 * tab1.col0 * 19 FROM tab1
----
121600
171
77824

query I rowsort
SELECT DISTINCT - ( 91 + + col0 ) AS col1 FROM tab1
----
-155
-171
-94

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT - 52 FROM tab0, tab2 AS cor0
----
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4798
SELECT ALL - + col2 DIV cor0.col2 - - cor0.col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL - + col2 / cor0.col2 - - cor0.col2 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT 45 AS col0 FROM tab1 AS cor0
----
45
45
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-4800
SELECT DISTINCT + + 50 * 25 DIV + col0 col0 FROM tab0 AS cor0
----
14
35
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT + + 50 * 25 / + col0 col0 FROM tab0 AS cor0
----
14
35
52

query I rowsort
SELECT + col0 - + col2 * - tab1.col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT - col1 - col0 AS col0 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT ALL col0 + col0 * - col1 FROM tab2
----
-1264
-210
-4524

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = col1
----

query I rowsort
SELECT col1 + col2 AS col1 FROM tab2 WHERE NOT col2 * col1 NOT IN ( - tab2.col1 * tab2.col0 )
----

query I rowsort
SELECT DISTINCT + col0 + col1 AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE NOT ( NULL ) < col0
----

query I rowsort
SELECT col0 + + col0 * col1 AS col1 FROM tab2
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4809
SELECT - tab1.col1 DIV - col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4809
SELECT - tab1.col1 / - col1 FROM tab1
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - tab1.col0 )
----

query I rowsort
SELECT DISTINCT - col0 + tab0.col2 + - col0 * - col1 AS col2 FROM tab0
----
2073
3361
8092

onlyif mysql # use DIV operator for integer division
query I rowsort label-4812
SELECT ALL col0 DIV - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4812
SELECT ALL col0 / - col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col2 + + col2 + + col2 FROM tab1
----
162
171
288

query I rowsort
SELECT - col2 * + col0 * + col2 AS col2 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT ALL - col0 + - col2 + col0 FROM tab0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4816
SELECT ALL + col2 * col0 DIV - tab1.col0 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL + col2 * col0 / - tab1.col0 FROM tab1
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4817
SELECT tab1.col1 DIV col0 AS col1 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4817
SELECT tab1.col1 / col0 AS col1 FROM tab1
----
0
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4818
SELECT DISTINCT + tab1.col2 DIV - col2 col2 FROM tab1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT + tab1.col2 / - col2 col2 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT + col0 + + col1 + + col1 FROM tab0
----
196
229
271

query I rowsort
SELECT + col0 + col0 * - col1 + col2 AS col0 FROM tab1
----
-21
-519
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT ALL - col1 * tab0.col1 * - col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT col0 * + col0 + + col2 AS col0 FROM tab1
----
4153
63
6496

query I rowsort
SELECT DISTINCT + col2 * - col0 * + tab1.col0 AS col2 FROM tab1
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-4825
SELECT tab1.col2 + - tab1.col0 * + col1 DIV col1 FROM tab1
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-4825
SELECT tab1.col2 + - tab1.col0 * + col1 / col1 FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL - col1 + tab2.col0 * col0 AS col1 FROM tab2
----
18
6025
6224

query I rowsort
SELECT + col0 * col0 * col2 FROM tab1
----
233472
486
614400

query I rowsort
SELECT col1 * - col1 * - col0 FROM tab0
----
177504
329315
737009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 + col2 + + col2 col1 FROM tab1
----
162
171
288

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) NOT IN ( - cor0.col2 * - col0 ) OR col1 IN ( col2 + col1 )
----

query I rowsort
SELECT - - col1 * - col0 + col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT col0 + col2 * - col2 FROM tab1 cor0
----
-2913
-3185
-9136

query I rowsort
SELECT col1 / col2 AS col1 FROM tab1 AS cor0 WHERE NOT col0 / col1 < NULL
----

query I rowsort
SELECT + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - col1 * + col1 AS col0 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - col1 * + col0 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( - col0 ) * col2 col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 93 col0 FROM tab1 AS cor0
----
-3
36
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4840
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) * + 58 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) * + 58 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * ( - col2 ) + - col0 FROM tab0 AS cor0
----
-1113
-36
-6813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 28 col1 FROM tab2 AS cor0
----
-1064
-728
-756

query I rowsort
SELECT ALL - col2 + + ( col2 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + cor0.col1 * + col1 * col0 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT - col2 * 73 + 30 AS col1 FROM tab0 AS cor0
----
-2379
-43
-5956

query I rowsort
SELECT ALL + col2 + 35 * col0 AS col2 FROM tab1 AS cor0
----
159
2297
2896

query I rowsort
SELECT cor0.col2 * cor0.col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + col2 * + 30 AS col0 FROM tab1 AS cor0
----
1620
1710
2880

onlyif mysql # use DIV operator for integer division
query I rowsort label-4849
SELECT DISTINCT col0 DIV 39 + + 74 * cor0.col0 + + 93 FROM tab2 AS cor0
----
5867
5941
611

skipif mysql # not compatible
query I rowsort label-4849
SELECT DISTINCT col0 / 39 + + 74 * cor0.col0 + + 93 FROM tab2 AS cor0
----
5867
5941
611

query I rowsort
SELECT - - cor0.col1 * - col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL - col0 - + 89 AS col0 FROM tab0 AS cor0
----
-113
-124
-178

onlyif mysql # use DIV operator for integer division
query I rowsort label-4852
SELECT ALL + cor0.col0 * col2 * 95 + col2 DIV ( - col0 + + col1 ) AS col0 FROM tab1 AS cor0
----
15392
346559
729599

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL + cor0.col0 * col2 * 95 + col2 / ( - col0 + + col1 ) AS col0 FROM tab1 AS cor0
----
15392
346559
729599

query I rowsort
SELECT col0 * ( + cor0.col0 ) AS col2 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + + 44 * + col2 col2 FROM tab0 AS cor0
----
1428
3519
9

query I rowsort
SELECT DISTINCT + - ( col1 ) * col2 + - 90 AS col0 FROM tab1 cor0
----
-1338
-1494
-660

query I rowsort
SELECT DISTINCT - - ( cor0.col0 ) + + col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - - 2 AS col2 FROM tab2 AS cor0
----
2

query I rowsort
SELECT ALL col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT - col0 - + col1 * col0 * col2 FROM tab0 AS cor0
----
-3430
-664207
-68136

query I rowsort
SELECT ALL + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT + 41 * + col0 * + ( + col1 ) AS col2 FROM tab2 AS cor0
----
188682
55063
8897

query I rowsort
SELECT - + 0 + col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL + - col2 + cor0.col0 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4864
SELECT DISTINCT col1 * col2 DIV col1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT col1 * col2 / col1 FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - tab0.col2 col2 FROM tab0
----
1
1089
6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col2 col1 FROM tab1
----
108
114
192

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT NULL = col1
----

query I rowsort
SELECT ALL col0 * + col2 + col1 AS col2 FROM tab0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-4869
SELECT + tab0.col2 * - col1 + + tab0.col0 DIV - tab0.col1 AS col2 FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-4869
SELECT + tab0.col2 * - col1 + + tab0.col0 / - tab0.col1 AS col2 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4870
SELECT + col2 DIV col0 + col2 FROM tab2
----
26
30
38

skipif mysql # not compatible
query I rowsort label-4870
SELECT + col2 / col0 + col2 FROM tab2
----
26
30
38

query I rowsort
SELECT DISTINCT + col1 + - col2 * col2 AS col0 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT DISTINCT ( col0 + + col1 ) * 58 FROM tab1
----
1682
4292
5394

query I rowsort
SELECT ALL tab0.col2 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

onlyif mysql # use DIV operator for integer division
query I rowsort label-4874
SELECT 89 + col2 + 4 DIV + col0 AS col0 FROM tab0
----
122
171
90

skipif mysql # not compatible
query I rowsort label-4874
SELECT 89 + col2 + 4 / + col0 AS col0 FROM tab0
----
122
171
90

query I rowsort
SELECT + 38 * - col1 - tab2.col0 FROM tab2
----
-1185
-2320
-725

query I rowsort
SELECT DISTINCT - col1 + tab2.col0 AS col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT ALL - + ( col1 ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT + col1 * 56 + + col0 FROM tab2 AS cor0
----
1031
1743
3382

query I rowsort
SELECT ALL cor0.col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + col2 ) * col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col2 AS REAL ) AS col1 FROM tab2 AS cor0
----
26
27
38

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 cor2
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( + 74 ) + + col0 col1 FROM tab1
----
-219
-4672
-5840

query I rowsort
SELECT ALL - col2 * - ( col2 ) + col1 FROM tab2
----
1461
735
760

query I rowsort
SELECT + tab0.col1 + col1 + + col1 FROM tab0
----
258
273
291

query I rowsort
SELECT DISTINCT + col2 + - 20 * + tab0.col0 FROM tab0
----
-1698
-447
-699

query I rowsort
SELECT ALL ( + ( - col0 ) ) * - 53 + + col0 * - col2 FROM tab0
----
-2581
1820
480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 65 * - tab1.col2 * - col0 col0 FROM tab1
----
10584
237177
499296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4889
SELECT col2 + ( col1 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4889
SELECT col2 + ( col1 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 51 FROM tab1, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT ALL + 15 FROM tab0 cor0
----
15
15
15

query I rowsort
SELECT + col2 + + col1 * - col0 * col0 FROM tab1 cor0
----
-180
-40903
-83104

query I rowsort
SELECT col2 * - tab2.col0 AS col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT - col1 + ( + col2 ) + col2 AS col2 FROM tab2
----
-7
23
59

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab2 AS cor0, tab0 AS cor1
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4896
SELECT - - col2 * + CAST( NULL AS SIGNED ) / 14 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4896
SELECT - - col2 * + CAST ( NULL AS INTEGER ) / 14 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + - 39 FROM tab2 AS cor0
----
-22
-8
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 1 + - 64 col0 FROM tab1 AS cor0
----
-74
-77
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4899
SELECT cor0.col0 + - col0 DIV col0 AS col1 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-4899
SELECT cor0.col0 + - col0 / col0 AS col1 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT DISTINCT + - col2 + + 20 * 88 FROM tab0 AS cor0
----
1678
1727
1759

query I rowsort
SELECT - col2 * col0 + col1 FROM tab2
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-4903
SELECT ALL 13 DIV - tab1.col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL 13 / - tab1.col1 FROM tab1
----
-1
-1
0

query I rowsort
SELECT + ( col0 ) + + col0 FROM tab1
----
128
160
6

query I rowsort
SELECT ALL 42 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT col0 + col2 AS col1 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT - col1 + - 34 + col0 * col1 * + 95 AS col1 FROM tab2 AS cor0
----
127534
20550
437097

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4908
SELECT - tab1.col0 + CAST( - col0 * - col1 AS SIGNED ) AS col1 FROM tab1
----
576
75
960

skipif mysql # not compatible
query I rowsort label-4908
SELECT - tab1.col0 + CAST ( - col0 * - col1 AS INTEGER ) AS col1 FROM tab1
----
576
75
960

query I rowsort
SELECT col2 + + col2 * + col1 FROM tab0
----
2871
7544
98

query I rowsort
SELECT - cor0.col1 * 71 AS col0 FROM tab1 cor0
----
-1846
-710
-923

onlyif mysql # use DIV operator for integer division
query I rowsort label-4911
SELECT DISTINCT - col2 DIV - col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT - col2 / - col1 FROM tab1 AS cor0
----
2
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4912
SELECT col2 DIV col1 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4912
SELECT col2 / col1 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT ALL - - cor0.col2 + + col1 * - 85 FROM tab1 AS cor0
----
-1009
-2156
-793

onlyif mysql # use DIV operator for integer division
query I rowsort label-4914
SELECT ALL col2 DIV col0 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL col2 / col0 FROM tab1
----
0
1
18

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab0 cor1, tab0, tab1 AS cor2
----
3645 values hashing to 5d64bf87effa587b137e9591cd2c54bf

query I rowsort
SELECT DISTINCT - + col1 * col0 + - col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT DISTINCT - col0 + + 79 FROM tab1 AS cor0
----
-1
15
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-4918
SELECT DISTINCT col1 DIV ( 78 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4918
SELECT DISTINCT col1 / ( 78 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT + col1 + ( col1 ) AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + 23 * - ( col2 ) * col1 AS col1 FROM tab2 AS cor0
----
-14858
-19251
-35282

query I rowsort
SELECT + 55 * 18 AS col0 FROM tab1 AS cor0
----
990
990
990

query I rowsort
SELECT ALL - - col0 * - 55 + - col2 FROM tab1 AS cor0
----
-219
-3577
-4496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 99 col1 FROM tab0 AS cor0
----
99
99
99

query I rowsort
SELECT DISTINCT + col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL col1 + + 23 FROM tab2 AS cor0
----
40
54
82

query I rowsort
SELECT + ( - 21 ) FROM tab1 AS cor0
----
-21
-21
-21

query I rowsort
SELECT ALL - 70 AS col1 FROM tab0 cor0
----
-70
-70
-70

query I rowsort
SELECT - 65 + tab1.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to db558bd7ca01eff67b4d124f11d3abf0

query I rowsort
SELECT col1 * cor0.col0 * col1 FROM tab2 cor0
----
22831
271518
6727

query I rowsort
SELECT ALL col1 + - cor0.col0 AS col2 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT ALL - - 39 + col1 FROM tab2 AS cor0
----
56
70
98

query I rowsort
SELECT - col0 * col2 + + col1 * - col1 FROM tab1 cor0
----
-3748
-7849
-838

query I rowsort
SELECT cor0.col0 - + col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + - cor0.col1 AS col2 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL col0 + - col1 FROM tab0 cor0
----
-2
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4936
SELECT DISTINCT - 1 * - col0 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4936
SELECT DISTINCT - 1 * - col0 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 * + col2 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT + ( - cor0.col0 ) FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - - cor0.col0 AS col1 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col0 * col2 col2 FROM tab0
----
35
7298
792

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 + col0 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + - 95 FROM tab0 AS cor0
----
-95
-95
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4945
SELECT ALL - + col2 + + col1 * CAST( NULL AS DECIMAL ) * 5 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL - + col2 + + col1 * CAST ( NULL AS REAL ) * 5 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 * col2 * - col2 FROM tab1 cor0
----
157464
185193
884736

query I rowsort
SELECT DISTINCT col0 + + col1 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + ( + col2 ) AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL + 97 AS col0 FROM tab2
----
97
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 73 col2 FROM tab2
----
511
5694
5767

query I rowsort
SELECT ALL + + 38 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT ALL cor0.col2 + 86 FROM tab2, tab2 AS cor0
----
9 values hashing to 220299f7c07130f6f962cc93f22a457a

query I rowsort
SELECT DISTINCT 14 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
14

query I rowsort
SELECT - 94 FROM tab2 AS cor0
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + col1 col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT - col2 * col0 * + col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT - 61 * - col0 FROM tab2 AS cor0
----
427
4758
4819

query I rowsort
SELECT + 75 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT ALL - 80 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT DISTINCT col2 * + 72 * tab2.col0 FROM tab2
----
13608
146016
216144

query I rowsort
SELECT DISTINCT 8 + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18
21
34

query I rowsort
SELECT - 65 FROM tab1, tab0 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT ALL + col2 * 64 + cor0.col0 AS col2 FROM tab0 cor0
----
2136
5337
99

query I rowsort
SELECT - col2 + + col0 * - 97 + col2 FROM tab1 AS cor0
----
-291
-6208
-7760

query I rowsort
SELECT + col0 * ( 98 ) * - col2 FROM tab0
----
-3430
-715204
-77616

query I rowsort
SELECT ALL 25 FROM tab1, tab0 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT ALL 27 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823

query I rowsort
SELECT col2 + col1 * col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT col1 + 63 FROM tab2 AS cor0
----
122
80
94

query I rowsort
SELECT - - 48 * + col2 AS col0 FROM tab1 AS cor0
----
2592
2736
4608

query I rowsort
SELECT 43 AS col2 FROM tab2
----
43
43
43

query I rowsort
SELECT + 75 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT - + col0 * + 64 + + col0 + col0 * - 57 FROM tab1 cor0
----
-360
-7680
-9600

onlyif mysql # use DIV operator for integer division
query I rowsort label-4975
SELECT DISTINCT col1 DIV ( - tab0.col2 ) + col2 + + 14 * col1 AS col2 FROM tab0
----
1235
1262
1355

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT col1 / ( - tab0.col2 ) + col2 + + 14 * col1 AS col2 FROM tab0
----
1235
1262
1355

onlyif mysql # use DIV operator for integer division
query I rowsort label-4976
SELECT DISTINCT ( + 72 ) DIV col1 + 32 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT ( + 72 ) / col1 + 32 FROM tab0
----
32

query I rowsort
SELECT ALL - tab1.col2 * - col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT col1 + col1 + - col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + ( 77 ) + col0 + col1 * + 87 FROM tab0
----
7583
8083
8551

query I rowsort
SELECT DISTINCT + - col1 * + col2 * + cor0.col1 + - col1 AS col2 FROM tab1 AS cor0
----
-16237
-36530
-5710

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4981
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + col2 + CAST( + 44 + col0 AS SIGNED ) * - cor0.col1 col0 FROM tab0 AS cor0
----
-11939
-5782
-7661

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + col2 + CAST ( + 44 + col0 AS INTEGER ) * - cor0.col1 col0 FROM tab0 AS cor0
----
-11939
-5782
-7661

onlyif mysql # use DIV operator for integer division
query I rowsort label-4982
SELECT + col2 DIV col2 + col2 * + ( 84 ) FROM tab0 AS cor0
----
2773
6889
85

skipif mysql # not compatible
query I rowsort label-4982
SELECT + col2 / col2 + col2 * + ( 84 ) FROM tab0 AS cor0
----
2773
6889
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 89 col0 FROM tab2 AS cor0
----
-89

query I rowsort
SELECT ALL + + 90 + cor0.col0 FROM tab0 AS cor0
----
114
125
179

query I rowsort
SELECT DISTINCT + ( 95 ) * col2 + 52 FROM tab0 AS cor0
----
147
3187
7842

onlyif mysql # use DIV operator for integer division
query I rowsort label-4986
SELECT ALL - col2 + - col0 DIV col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL - col2 + - col0 / col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT - 75 + + 3 FROM tab1 AS cor0
----
-72
-72
-72

query I rowsort
SELECT + 95 AS col1 FROM tab0 AS cor0
----
95
95
95

query I rowsort
SELECT cor0.col2 + - col1 * col1 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT + col0 - col1 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL - cor0.col2 * 30 FROM tab2, tab0 AS cor0
----
9 values hashing to bc72ce7cf99d6a817b438191b7d043cb

query I rowsort
SELECT DISTINCT + cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-4993
SELECT + 5 DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4993
SELECT + 5 / col0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4994
SELECT col0 DIV - col0 AS col2 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4994
SELECT col0 / - col0 AS col2 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4995
SELECT ALL + - 48 * - col1 + + cor0.col2 DIV 75 FROM tab0 AS cor0
----
4128
4369
4656

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL + - 48 * - col1 + + cor0.col2 / 75 FROM tab0 AS cor0
----
4128
4369
4656

query I rowsort
SELECT + cor1.col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4997
SELECT DISTINCT - CAST( + col2 AS SIGNED ) FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4998
SELECT DISTINCT - col2 DIV + col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT - col2 / + col0 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT - col2 * col0 + ( 27 ) * col1 + - col0 FROM tab0 AS cor0
----
-4930
1506
2549

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col0 FROM tab0 AS cor0
----
50
50
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-5001
SELECT col1 DIV col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5001
SELECT col1 / col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + + 50 AS col1 FROM tab0 AS cor0
----
50

query I rowsort
SELECT + col0 + + ( col2 ) * + cor0.col1 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT ALL col1 * col0 + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT col1 - ( - col0 ) AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT - col2 + - 34 AS col0 FROM tab2 AS cor0
----
-60
-61
-72

query I rowsort
SELECT DISTINCT + 62 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
62

query I rowsort
SELECT + - 39 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT ALL col1 + ( + col0 ) * - col2 + 1 AS col0 FROM tab2 AS cor0
----
-157
-1968
-2984

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5010
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 + ( col2 ) * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 4 * - col1 col0 FROM tab0 AS cor0
----
29584
33124
37636

query I rowsort
SELECT DISTINCT - 51 + col1 - col2 AS col1 FROM tab0 AS cor0
----
-42
2
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5014
SELECT col1 DIV - 13 FROM tab0
----
-6
-7
-7

skipif mysql # not compatible
query I rowsort label-5014
SELECT col1 / - 13 FROM tab0
----
-6
-7
-7

query I rowsort
SELECT DISTINCT + - 20 AS col0 FROM tab2 AS cor0
----
-20

query I rowsort
SELECT DISTINCT + col0 + + ( - cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT ALL - + 0 + + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - 5 + ( - cor0.col0 ) FROM tab1 AS cor0
----
-69
-8
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5019
SELECT DISTINCT - - CAST( - col1 AS SIGNED ) + + col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5019
SELECT DISTINCT - - CAST ( - col1 AS INTEGER ) + + col1 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5020
SELECT ALL + cor0.col2 - + col2 DIV - col2 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL + cor0.col2 - + col2 / - col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT col1 - col2 * col0 FROM tab0 cor0
----
-706
-7207
62

query I rowsort
SELECT ALL + cor0.col2 + + col0 FROM tab0 cor0
----
171
36
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5023
SELECT ALL + - CAST( 14 AS SIGNED ) + col0 FROM tab2 AS cor0
----
-7
64
65

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL + - CAST ( 14 AS INTEGER ) + col0 FROM tab2 AS cor0
----
-7
64
65

query I rowsort
SELECT col1 + ( + 30 ) + col1 FROM tab0
----
202
212
224

query I rowsort
SELECT ALL - col1 - col0 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT ALL tab0.col1 - 42 * - col1 FROM tab0
----
3698
3913
4171

query I rowsort
SELECT ALL col0 * + col0 - + col2 * tab1.col1 FROM tab1
----
-1395
3526
5152

query I rowsort
SELECT ALL col2 - - col2 * - ( + col2 * col0 ) FROM tab2
----
-114038
-5076
-52702

query I rowsort
SELECT + 52 AS col2 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT + col0 + cor0.col1 * - 62 FROM tab0 AS cor0
----
-5308
-5553
-5979

query I rowsort
SELECT DISTINCT 39 * cor0.col1 FROM tab0 cor0
----
3354
3549
3783

query I rowsort
SELECT + 44 * - col2 FROM tab1 cor0
----
-2376
-2508
-4224

onlyif mysql # use DIV operator for integer division
query I rowsort label-5033
SELECT - cor0.col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5033
SELECT - cor0.col1 / - col0 AS col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT DISTINCT + + col2 * cor0.col0 + col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT 69 AS col0 FROM tab1 cor0
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + col1 * + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT - col0 * - col2 AS col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT col0 * + cor0.col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL + + cor0.col1 * col0 + + col1 + - col2 AS col1 FROM tab1 AS cor0
----
50
593
957

query I rowsort
SELECT - 68 FROM tab2 AS cor0
----
-68
-68
-68

query I rowsort
SELECT ALL + - cor0.col1 * - ( cor0.col0 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col1 * - col0 + - 3 FROM tab1
----
-1043
-643
-81

query I rowsort
SELECT ALL + - 78 * - 79 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9c8747069d89a74593f4e3d0575d9d81

query I rowsort
SELECT cor0.col1 * - 1 AS col1 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT 89 + cor0.col0 + + cor1.col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9bbb04440b684d235ca2400bc25b6108

query I rowsort
SELECT DISTINCT + 64 + col2 AS col0 FROM tab1 AS cor0
----
118
121
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 + + col2 col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT - col1 * ( - col0 ) AS col0 FROM tab0 cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5050
SELECT DISTINCT + CAST( + 28 AS SIGNED ) - col2 FROM tab1 cor0
----
-26
-29
-68

skipif mysql # not compatible
query I rowsort label-5050
SELECT DISTINCT + CAST ( + 28 AS INTEGER ) - col2 FROM tab1 cor0
----
-26
-29
-68

query I rowsort
SELECT DISTINCT - col0 * col1 + - col1 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT DISTINCT col0 + ( + col0 ) * col1 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT + ( col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT - - col2 * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL 12 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT DISTINCT ( + col1 ) AS col2 FROM tab2
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 + col2 col2 FROM tab1
----
107
65
68

query I rowsort
SELECT - 18 AS col2 FROM tab2 AS cor0
----
-18
-18
-18

query I rowsort
SELECT - 35 * 6 - col2 * + col1 * - col0 AS col2 FROM tab0
----
3185
663908
67902

query I rowsort
SELECT ( col2 ) + - col2 AS col1 FROM tab2
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5061
SELECT + col1 * ( col0 * + CAST( - 62 AS SIGNED ) ) FROM tab1
----
-39680
-4836
-64480

skipif mysql # not compatible
query I rowsort label-5061
SELECT + col1 * ( col0 * + CAST ( - 62 AS INTEGER ) ) FROM tab1
----
-39680
-4836
-64480

query I rowsort
SELECT ALL - - ( - col0 ) + col1 + + col1 * col2 AS col0 FROM tab0 AS cor0
----
159
2900
7464

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT cor0.col0 + col2 + col0 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT + + cor0.col0 + - col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - tab2.col2 FROM tab2, tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 col2 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT + - col2 * col2 * + col0 + + col0 AS col1 FROM tab1 AS cor0
----
-207872
-737200
-8745

query I rowsort
SELECT - 7 AS col1 FROM tab1
----
-7
-7
-7

query I rowsort
SELECT 91 AS col2 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT ALL col1 + + 64 + col2 AS col1 FROM tab0
----
162
183
237

query I rowsort
SELECT DISTINCT - col2 * - tab1.col2 * - ( - col0 ) + 8 FROM tab1
----
207944
737288
8756

query I rowsort
SELECT - tab2.col1 * - 23 FROM tab2
----
1357
391
713

query I rowsort
SELECT cor0.col2 * col1 * col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT ALL - col2 + ( - col1 + + col2 ) FROM tab0
----
-86
-91
-97

query I rowsort
SELECT col2 * - col0 * - tab1.col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT DISTINCT col0 * col0 + col2 FROM tab0
----
1226
609
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-5079
SELECT + col2 DIV - 31 + + col0 AS col1 FROM tab2
----
7
78
78

skipif mysql # not compatible
query I rowsort label-5079
SELECT + col2 / - 31 + + col0 AS col1 FROM tab2
----
7
78
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5080
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) / + col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) / + col1 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - tab2.col2 + 5 FROM tab2, tab0 AS cor0
----
9 values hashing to a17fdc58b445861543cf2c0aaf20541b

query I rowsort
SELECT - ( + col1 ) + - cor0.col1 + - col2 AS col0 FROM tab0 cor0
----
-195
-205
-264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5084
SELECT ALL CAST( NULL AS SIGNED ) + col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL CAST ( NULL AS INTEGER ) + col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 16 + col0 AS col0 FROM tab2 AS cor0
----
-9
62
63

query I rowsort
SELECT + col1 * ( - col2 ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5087
SELECT ALL - - 77 + + col0 DIV col1 FROM tab2 AS cor0
----
77
78
81

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL - - 77 + + col0 / col1 FROM tab2 AS cor0
----
77
78
81

query I rowsort
SELECT ( + 47 ) * col2 FROM tab2 cor0
----
1222
1269
1786

query I rowsort
SELECT ALL 60 * - col1 + cor0.col2 * + col1 AS col0 FROM tab0 AS cor0
----
-2322
-5723
2002

query I rowsort
SELECT + - cor0.col1 * + 24 - col1 FROM tab0 cor0
----
-2150
-2275
-2425

query I rowsort
SELECT - + 54 * - 37 FROM tab0 AS cor0
----
1998
1998
1998

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5092
SELECT + 52 + + col2 * col0 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5092
SELECT + 52 + + col2 * col0 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * 91 AS col2 FROM tab2 AS cor0
----
-1547
-2821
-5369

query I rowsort
SELECT - - ( - cor0.col0 ) + - col2 FROM tab2 AS cor0
----
-104
-117
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + ( + 38 + - col0 * tab1.col1 ) col2 FROM tab1
----
-37
-538
-922

query I rowsort
SELECT col2 * 42 - + col1 * col1 * + 15 AS col2 FROM tab1
----
-7872
1497
894

query I rowsort
SELECT col0 + 83 + 96 * col0 FROM tab1
----
374
6291
7843

query I rowsort
SELECT DISTINCT - col1 * + ( 38 + + col0 ) FROM tab2 AS cor0
----
-1395
-1989
-6844

query I rowsort
SELECT - col0 * col2 + + col2 FROM tab0 AS cor0
----
-34
-7216
-759

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea

query I rowsort
SELECT ALL + col0 * - ( + col2 ) + + col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # use DIV operator for integer division
query I rowsort label-5102
SELECT + cor0.col1 DIV 55 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5102
SELECT + cor0.col1 / 55 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - 73 + + cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to ab221db9538b408f31e628dd784a8301

query I rowsort
SELECT DISTINCT col1 * col0 * cor0.col0 + cor0.col2 FROM tab1 AS cor0
----
288
41017
83296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 74 col2 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT DISTINCT + 30 FROM tab0 cor0
----
30

query I rowsort
SELECT + - ( col2 ) + col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - 59 * col1 FROM tab1 AS cor0
----
-1534
-590
-767

query I rowsort
SELECT DISTINCT + - 95 + col2 * col0 AS col0 FROM tab2 AS cor0
----
1933
2907
94

query I rowsort
SELECT DISTINCT - cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5111
SELECT - CAST( col2 AS SIGNED ) 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-5111
SELECT - CAST ( col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5112
SELECT DISTINCT + + CAST( - col1 AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT + + CAST ( - col1 AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - + col1 + col0 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT cor0.col2 + + col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT 2 + 28 * - col2 AS col1 FROM tab2 cor0
----
-1062
-726
-754

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5116
SELECT ALL - + CAST( NULL AS SIGNED ) + - col2 + col2 * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL - + CAST ( NULL AS INTEGER ) + - col2 + col2 * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + tab2.col2 * - col1 FROM tab2
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5118
SELECT DISTINCT col0 * col1 DIV col1 + + col2 FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT col0 * col1 / col1 + + col2 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL + tab2.col0 * - ( col0 ) FROM tab2
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-5120
SELECT DISTINCT + col1 DIV 25 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT + col1 / 25 FROM tab2
----
0
1
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5121
SELECT - + col1 + col1 - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5121
SELECT - + col1 + col1 - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 18 FROM tab0 AS cor0
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 + col0 col2 FROM tab1 cor0
----
-6
-67
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-5124
SELECT + col1 * col1 + - 34 DIV 68 AS col2 FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-5124
SELECT + col1 * col1 + - 34 / 68 AS col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL - ( + cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT - ( col2 ) * col2 + col1 AS col1 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT ALL 67 AS col0 FROM tab0
----
67
67
67

query I rowsort
SELECT + ( - col0 ) FROM tab0
----
-24
-35
-89

query I rowsort
SELECT - 60 FROM tab1, tab0 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

query I rowsort
SELECT + + 3 FROM tab1 AS cor0
----
3
3
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5131
SELECT - 70 DIV col0 - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-3
-35
-82

skipif mysql # not compatible
query I rowsort label-5131
SELECT - 70 / col0 - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-3
-35
-82

query I rowsort
SELECT 84 * - col1 + - 74 AS col1 FROM tab1 AS cor0
----
-1166
-2258
-914

query I rowsort
SELECT col2 + - cor0.col0 * ( col2 ) AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT 44 + + col1 * 64 AS col1 FROM tab1
----
1708
684
876

query I rowsort
SELECT ALL + + col1 * cor0.col1 AS col0 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT ALL + col0 - col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT + - col1 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT ALL + col1 + - col1 * - col0 * + col1 AS col1 FROM tab0 AS cor0
----
177590
329412
737100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + + ( - ( cor0.col2 ) ) * + 11 * + 8 col1 FROM tab0 AS cor0
----
-2880
-53
-7127

onlyif mysql # use DIV operator for integer division
query I rowsort label-5140
SELECT - col2 * + ( + col1 ) DIV + col1 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-5140
SELECT - col2 * + ( + col1 ) / + col1 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - col1 * col1 + 65 AS col0 FROM tab1 AS cor0
----
-104
-35
-611

query I rowsort
SELECT DISTINCT col1 + col0 * + col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT ALL col1 + + col2 - 23 FROM tab2
----
32
35
62

query I rowsort
SELECT 45 - tab1.col2 * ( 25 ) AS col2 FROM tab1
----
-1305
-1380
-2355

onlyif mysql # use DIV operator for integer division
query I rowsort label-5145
SELECT DISTINCT tab1.col0 DIV - 68 FROM tab1, tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT tab1.col0 / - 68 FROM tab1, tab0 AS cor0
----
-1
0

query IIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1, tab2 AS cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141

query I rowsort
SELECT + col2 - 96 * 35 AS col1 FROM tab0 AS cor0
----
-3278
-3327
-3359

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5148
SELECT ALL col1 * CAST( col2 AS SIGNED ) + col0 * - col2 AS col2 FROM tab2 cor0
----
-2356
-494
648

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL col1 * CAST ( col2 AS INTEGER ) + col0 * - col2 AS col2 FROM tab2 cor0
----
-2356
-494
648

query I rowsort
SELECT col0 + ( 66 ) * col0 FROM tab2 AS cor0
----
469
5226
5293

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5150
SELECT DISTINCT + col2 + CAST( ( + col0 ) AS SIGNED ) * cor0.col0 col1 FROM tab0 AS cor0
----
1226
609
8003

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT + col2 + CAST ( ( + col0 ) AS INTEGER ) * cor0.col0 col1 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT ALL - col2 * cor0.col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT - col1 * + col1 - cor0.col2 * col1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-12804
-672399
-75508

query I rowsort
SELECT ALL col0 * 5 AS col0 FROM tab0 AS cor0
----
120
175
445

query I rowsort
SELECT ALL + col0 * cor0.col0 + - col2 FROM tab0 cor0
----
1224
543
7839

query I rowsort
SELECT DISTINCT - - col0 * 43 * ( + col2 ) + - 81 FROM tab1 AS cor0
----
156783
330159
6885

query I rowsort
SELECT ALL - col2 * col1 - col1 * col1 * ( col2 ) AS col2 FROM tab2 cor0
----
-11628
-26784
-92040

query I rowsort
SELECT - col1 * + 26 + - 98 * col2 FROM tab0 AS cor0
----
-10402
-2620
-5470

query I rowsort
SELECT ALL + col2 + - ( + col0 ) FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - - col1 * + 4 AS col0 FROM tab2 AS cor0
----
124
236
68

query I rowsort
SELECT DISTINCT col2 - - col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - 66 AS col2 FROM tab2
----
-66
-66
-66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5162
SELECT CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5162
SELECT CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5163
SELECT DISTINCT ( + col0 ) + + col2 DIV + ( - 31 * col2 ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT ( + col0 ) + + col2 / + ( - 31 * col2 ) FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5164
SELECT DISTINCT - - CAST( col2 AS SIGNED ) + col2 * + cor0.col2 FROM tab1 AS cor0
----
2970
3306
9312

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) + col2 * + cor0.col2 FROM tab1 AS cor0
----
2970
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-5165
SELECT 27 * 68 DIV col0 FROM tab2 AS cor0
----
23
23
262

skipif mysql # not compatible
query I rowsort label-5165
SELECT 27 * 68 / col0 FROM tab2 AS cor0
----
23
23
262

query I rowsort
SELECT + 76 + col0 AS col2 FROM tab0 cor0
----
100
111
165

query I rowsort
SELECT DISTINCT - + cor0.col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + - col2 + col1 AS col0 FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 col2 FROM tab2 AS cor0
----
49
49
49

query I rowsort
SELECT col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + - col0 AS col2 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - col0 * - col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 380241bbc503a31e70494611a87ffd99

query I rowsort
SELECT DISTINCT - col0 * + 23 AS col2 FROM tab0
----
-2047
-552
-805

query I rowsort
SELECT ALL col1 * - 16 * 87 FROM tab0
----
-119712
-126672
-135024

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 79 * + 31 col2 FROM tab0 AS cor0
----
2367
2416
2448

query I rowsort
SELECT ALL + cor0.col2 * - ( + col0 ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT col2 + + col0 + col1 * + col1 FROM tab2 AS cor0
----
3585
406
995

query I rowsort
SELECT DISTINCT - cor0.col0 * col1 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-5181
SELECT ALL col0 * col1 DIV 78 + col0 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
17
2
59

skipif mysql # not compatible
query I rowsort label-5181
SELECT ALL col0 * col1 / 78 + col0 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
17
2
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5182
SELECT col1 + - col1 DIV 71 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5182
SELECT col1 + - col1 / 71 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT col2 * + col0 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT + col0 * 86 FROM tab0
----
2064
3010
7654

query I rowsort
SELECT DISTINCT cor0.col0 + + 0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT - cor0.col0 * - col0 * 70 + col0 FROM tab1 AS cor0
----
286784
448080
633

query I rowsort
SELECT + cor0.col0 * ( col1 ) FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 * - col1 + col0 * + col0 col1 FROM tab2 AS cor0
----
-168
1482
4898

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col2 ) col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + - col0 * col1 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5192
SELECT DISTINCT CAST( - col1 AS SIGNED ) * - col0 * - col1 FROM tab0
----
-177504
-329315
-737009

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * - col0 * - col1 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL 77 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ALL col1 * col0 + - col2 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT col1 * + col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5197
SELECT 84 DIV 90 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5197
SELECT 84 / 90 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + 77 * + col0 + col1 AS col0 FROM tab2 AS cor0
----
570
6065
6100

query I rowsort
SELECT 29 FROM tab0, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT + - ( + col1 ) * + col2 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5201
SELECT 91 DIV - cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 4ff352ea8910742029d54ab51f002396

skipif mysql # not compatible
query I rowsort label-5201
SELECT 91 / - cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 4ff352ea8910742029d54ab51f002396

query I rowsort
SELECT ALL - cor0.col1 + + col2 FROM tab1 cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5203
SELECT ALL - 11 * - col1 + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
232
47
53

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL - 11 * - col1 + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
232
47
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-5204
SELECT DISTINCT tab2.col2 * tab2.col2 DIV col1 + ( + col2 ) AS col2 FROM tab2
----
122
37
50

skipif mysql # not compatible
query I rowsort label-5204
SELECT DISTINCT tab2.col2 * tab2.col2 / col1 + ( + col2 ) AS col2 FROM tab2
----
122
37
50

query I rowsort
SELECT ALL - cor0.col1 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT + ( col0 ) + + 80 FROM tab1 AS cor0
----
144
160
83

query I rowsort
SELECT ALL + col1 + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL - 17 + col0 + ( - col0 ) FROM tab0 cor0
----
-17
-17
-17

query I rowsort
SELECT ALL col0 * - col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT + col2 + col1 + ( - tab2.col2 ) * tab2.col1 AS col0 FROM tab2
----
-1449
-591
-779

query I rowsort
SELECT DISTINCT col1 + col2 AS col0 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT + col2 * + col2 + col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT ALL - - 90 + - col2 * col1 FROM tab0 AS cor0
----
-2748
-7
-7372

onlyif mysql # use DIV operator for integer division
query I rowsort label-5214
SELECT DISTINCT - 1 DIV - cor0.col1 + col2 * col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT - 1 / - cor0.col1 + col2 * col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL col1 - cor0.col0 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-5216
SELECT DISTINCT cor0.col0 DIV col0 + + CAST( - col2 * col2 AS SIGNED ) FROM tab0 cor0
----
-1088
-6723
0

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT cor0.col0 / col0 + + CAST ( - col2 * col2 AS INTEGER ) FROM tab0 cor0
----
-1088
-6723
0

query I rowsort
SELECT ALL - col2 + - ( 11 ) * col1 * + col2 AS col2 FROM tab2 AS cor0
----
-16900
-7144
-9234

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5218
SELECT col1 + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-5218
SELECT col1 + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT DISTINCT + + col2 + - col1 + - col0 * + col2 FROM tab1 AS cor0
----
-134
-3601
-7597

query I rowsort
SELECT ALL - cor0.col0 * ( + cor0.col2 ) + + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT col0 + col1 * ( + col2 ) FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL 97 + + col0 * col2 AS col1 FROM tab1
----
259
3745
7777

query I rowsort
SELECT ALL col2 * col1 + ( tab2.col2 ) AS col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT DISTINCT - 77 * col1 + + ( 5 ) FROM tab0
----
-6617
-7002
-7464

query I rowsort
SELECT ALL 0 + + col2 AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT ( - col2 * ( col2 ) ) + col1 - - tab1.col2 FROM tab1
----
-2836
-3182
-9107

onlyif mysql # use DIV operator for integer division
query I rowsort label-5227
SELECT ALL 8 + + col0 + 44 DIV col0 FROM tab1
----
25
72
88

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL 8 + + col0 + 44 / col0 FROM tab1
----
25
72
88

query I rowsort
SELECT + col0 + col2 * col2 FROM tab0 cor0
----
1113
36
6813

query I rowsort
SELECT DISTINCT - col2 * - col1 + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT 18 + + col0 + - col2 * col0 AS col0 FROM tab0
----
-7191
-750
18

query I rowsort
SELECT - col1 * - col2 - - cor0.col1 * col1 * - col2 FROM tab1 AS cor0
----
-14976
-35100
-5130

query I rowsort
SELECT - col0 * + cor0.col2 - - col0 AS col2 FROM tab0 cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT - tab0.col0 * col0 AS col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT cor0.col0 + - col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT - 92 + cor0.col2 FROM tab2 AS cor0
----
-54
-65
-66

query I rowsort
SELECT - + cor0.col0 * - col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - 60 AS col2 FROM tab0
----
-60
-60
-60

query I rowsort
SELECT ALL 4 AS col2 FROM tab1
----
4
4
4

query I rowsort
SELECT col1 * cor0.col0 + + col2 AS col1 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT + + ( cor0.col2 ) * + col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL ( + col2 + col1 ) * col0 FROM tab0
----
15397
2856
3430

query I rowsort
SELECT ALL - 75 AS col1 FROM tab0
----
-75
-75
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-5244
SELECT DISTINCT - col2 DIV + 65 AS col1 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5244
SELECT DISTINCT - col2 / + 65 AS col1 FROM tab1
----
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5245
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col2 AS REAL ) FROM tab2
----
-26
-27
-38

query I rowsort
SELECT DISTINCT 89 FROM tab0, tab1 AS cor0
----
89

query I rowsort
SELECT DISTINCT 92 AS col1 FROM tab1, tab0 AS cor0
----
92

query I rowsort
SELECT + col0 * tab2.col1 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL col2 + tab0.col1 * col2 AS col0 FROM tab0
----
2871
7544
98

query I rowsort
SELECT ALL + 25 * - col0 FROM tab0 AS cor0
----
-2225
-600
-875

query I rowsort
SELECT - col1 * - col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + col2 * col0 + + col1 * col0 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT - 80 - - col1 * col0 AS col0 FROM tab0 cor0
----
1984
3315
8019

query I rowsort
SELECT ALL - col0 + col1 * cor0.col1 * col1 AS col2 FROM tab1 AS cor0
----
17573
2117
936

query I rowsort
SELECT DISTINCT - - 65 FROM tab0 AS cor0
----
65

query I rowsort
SELECT ALL 66 - col1 * tab1.col1 AS col2 FROM tab1
----
-103
-34
-610

query I rowsort
SELECT + tab0.col0 * col1 - - col0 FROM tab0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-5259
SELECT ALL 47 + - tab1.col1 - - col1 * col2 DIV + 92 FROM tab1
----
36
43
47

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL 47 + - tab1.col1 - - col1 * col2 / + 92 FROM tab1
----
36
43
47

query I rowsort
SELECT - + tab1.col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT 19 * col1 + col0 * cor0.col0 FROM tab2 AS cor0
----
638
6564
7205

onlyif mysql # use DIV operator for integer division
query I rowsort label-5262
SELECT col2 * + col2 DIV + cor0.col2 + + col1 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-5262
SELECT col2 * + col2 / + cor0.col2 + + col1 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT col0 * col0 + - 92 * col1 FROM tab1 AS cor0
----
-2383
3176
5204

query I rowsort
SELECT DISTINCT + cor0.col0 + - col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-25
-3
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 col0 FROM tab2 AS cor0
----
69
69
69

query I rowsort
SELECT ALL + 20 * col2 FROM tab1 AS cor0
----
1080
1140
1920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 + + col1 col0 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT col0 + + col2 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - col2 + + col2 + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + 70 * col0 * 12 FROM tab1 AS cor0
----
2520
53760
67200

query I rowsort
SELECT - - col2 + col2 + 83 * col0 FROM tab1 AS cor0
----
357
5426
6832

query I rowsort
SELECT - 85 FROM tab2
----
-85
-85
-85

query I rowsort
SELECT col0 * - 74 AS col2 FROM tab0
----
-1776
-2590
-6586

query I rowsort
SELECT - col2 * col1 * col1 AS col2 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT DISTINCT - col2 * col1 * + col0 FROM tab0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-5276
SELECT ALL - tab2.col2 DIV - col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL - tab2.col2 / - col0 FROM tab2
----
0
0
3

query I rowsort
SELECT + - col0 + col1 + 8 FROM tab1 cor0
----
-46
-59
31

query I rowsort
SELECT ALL - cor0.col2 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - col0 * col2 + 40 FROM tab1 AS cor0
----
-122
-3608
-7640

query I rowsort
SELECT ALL - ( - col0 ) FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5281
SELECT col2 + cor0.col1 * col1 DIV col1 + col0 FROM tab2 AS cor0
----
134
163
65

skipif mysql # not compatible
query I rowsort label-5281
SELECT col2 + cor0.col1 * col1 / col1 + col0 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT ALL - - ( col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT 11 * - col2 * col0 AS col2 FROM tab2 AS cor0
----
-2079
-22308
-33022

onlyif mysql # use DIV operator for integer division
query I rowsort label-5284
SELECT DISTINCT + cor0.col2 DIV + cor0.col1 FROM tab2 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-5284
SELECT DISTINCT + cor0.col2 / + cor0.col1 FROM tab2 AS cor0
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL col1 + col2 * - col2 FROM tab2 AS cor0
----
-1427
-617
-698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5287
SELECT + + col1 + CAST( NULL AS DECIMAL ) * + col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5287
SELECT + + col1 + CAST ( NULL AS REAL ) * + col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5288
SELECT + tab1.col2 DIV ( + col0 * + col2 ) + col2 AS col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5288
SELECT + tab1.col2 / ( + col0 * + col2 ) + col2 AS col1 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + cor0.col2 col1 FROM tab2 AS cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-5290
SELECT DISTINCT col2 DIV 86 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5290
SELECT DISTINCT col2 / 86 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - - col2 * + ( col0 ) FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5292
SELECT ALL - CAST( + col0 AS SIGNED ) * - col2 - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL - CAST ( + col0 AS INTEGER ) * - col2 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( cor0.col2 ) * - col2 + + 10 FROM tab2 cor0
----
-1434
-666
-719

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5294
SELECT DISTINCT + col2 * 24 * + col1 + CAST( ( + col2 ) AS SIGNED ) FROM tab1 AS cor0
----
13737
30048
33750

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT + col2 * 24 * + col1 + CAST ( ( + col2 ) AS INTEGER ) FROM tab1 AS cor0
----
13737
30048
33750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col1 col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ( ( + col1 ) ) - ( - col2 ) FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - ( ( + col1 ) ) + + ( col2 ) AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - col1 * - col0 - - col1 * - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - col1 + + 99 AS col2 FROM tab1 AS cor0
----
73
86
89

query I rowsort
SELECT DISTINCT + 98 AS col2 FROM tab2 AS cor0
----
98

query I rowsort
SELECT + + 97 AS col2 FROM tab0 AS cor0
----
97
97
97

query I rowsort
SELECT DISTINCT - ( 76 ) * col1 - col1 FROM tab2 cor0
----
-1309
-2387
-4543

query I rowsort
SELECT ALL - col0 * - col1 + + col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + + col0 * col2 * + col1 AS col2 FROM tab1 AS cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5306
SELECT ALL + - cor0.col2 DIV + col0 col0 FROM tab1 AS cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL + - cor0.col2 / + col0 col0 FROM tab1 AS cor0
----
-1
-18
0

query I rowsort
SELECT - col1 + 31 FROM tab0
----
-55
-60
-66

query I rowsort
SELECT col2 + + 34 FROM tab1
----
130
88
91

query I rowsort
SELECT col0 * - col0 + col2 FROM tab0
----
-1224
-543
-7839

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5310
SELECT DISTINCT cor0.col2 * col2 - col0 * + CAST( col2 AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
-1224
-17919
-642798

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT cor0.col2 * col2 - col0 * + CAST ( col2 AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
-1224
-17919
-642798

onlyif mysql # use DIV operator for integer division
query I rowsort label-5311
SELECT ALL - 48 + col2 DIV + col0 + col0 AS col0 FROM tab0 AS cor0
----
-13
-23
41

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL - 48 + col2 / + col0 + col0 AS col0 FROM tab0 AS cor0
----
-13
-23
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-5312
SELECT tab2.col0 DIV + ( + col0 * ( 9 ) ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5312
SELECT tab2.col0 / + ( + col0 * ( 9 ) ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 23 AS col1 FROM tab2, tab0 AS cor0
----
23

query I rowsort
SELECT DISTINCT + + ( col1 ) + col1 * col0 * cor0.col1 FROM tab0 AS cor0
----
177590
329412
737100

query I rowsort
SELECT ALL - - 7 * - col2 FROM tab2 cor0
----
-182
-189
-266

query I rowsort
SELECT DISTINCT + - 85 + ( col0 ) * - col1 + col2 AS col0 FROM tab0 AS cor0
----
-2116
-3479
-8102

query I rowsort
SELECT 3 * + cor0.col2 FROM tab1 AS cor0
----
162
171
288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - 29 col2 FROM tab0 AS cor0
----
-28
4
53

query I rowsort
SELECT DISTINCT col1 + + 47 * col1 FROM tab1 AS cor0
----
1248
480
624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT + 39 + col2 FROM tab2
----
65
66
77

query I rowsort
SELECT 59 FROM tab1, tab2 cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT - + col2 * - 11 AS col1 FROM tab0 AS cor0
----
11
363
902

query I rowsort
SELECT ( - cor0.col1 + + 37 ) FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 58d1f3ab6577c895a9c429dd0f73c0e5

query I rowsort
SELECT DISTINCT tab2.col1 * col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT DISTINCT col0 * + 97 FROM tab2 AS cor0
----
679
7566
7663

onlyif mysql # use DIV operator for integer division
query I rowsort label-5328
SELECT ALL - col0 DIV + CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL - col0 / + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5329
SELECT - cor0.col2 * + CAST( 22 AS SIGNED ) * col1 col1 FROM tab0 AS cor0
----
-164164
-2134
-62436

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5329
SELECT - cor0.col2 * + CAST ( 22 AS INTEGER ) * col1 col1 FROM tab0 AS cor0
----
-164164
-2134
-62436

onlyif mysql # use DIV operator for integer division
query I rowsort label-5330
SELECT ALL + + cor0.col2 DIV col0 FROM tab2 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5330
SELECT ALL + + cor0.col2 / col0 FROM tab2 cor0
----
0
0
3

query I rowsort
SELECT + col2 * + 33 AS col2 FROM tab2 AS cor0
----
1254
858
891

query I rowsort
SELECT ALL - - col1 * - 42 AS col2 FROM tab2 AS cor0
----
-1302
-2478
-714

query I rowsort
SELECT + - cor0.col1 + col1 * + col0 * col2 FROM tab1 AS cor0
----
36470
4186
99827

query I rowsort
SELECT col2 * - 74 FROM tab1 AS cor0
----
-3996
-4218
-7104

query I rowsort
SELECT - col1 + + col0 * col2 FROM tab1 AS cor0
----
136
3638
7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5336
SELECT ALL - col1 * + tab1.col1 + CAST( NULL AS SIGNED ) * 37 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL - col1 * + tab1.col1 + CAST ( NULL AS INTEGER ) * 37 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 16 * + col0 AS col2 FROM tab1
----
1024
1280
48

query I rowsort
SELECT tab0.col0 + - col2 AS col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL - 74 * + tab1.col1 + + ( + col2 ) AS col1 FROM tab1
----
-1870
-683
-866

query I rowsort
SELECT - col0 * - col2 + col0 AS col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL 42 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT - - col0 * + col2 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL col1 + col1 * + col1 AS col2 FROM tab1 AS cor0
----
110
182
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-5344
SELECT DISTINCT col2 DIV ( - cor0.col1 ) + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT col2 / ( - cor0.col1 ) + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT - col0 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL - col1 + + ( + col1 ) * col0 AS col0 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT + cor0.col2 + ( 8 ) FROM tab2 cor0
----
34
35
46

query I rowsort
SELECT DISTINCT - col2 * + col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT col2 * col0 - col2 AS col2 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT DISTINCT - 57 FROM tab2, tab1 cor0
----
-57

query I rowsort
SELECT 84 AS col1 FROM tab2
----
84
84
84

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f

query I rowsort
SELECT 34 * - col0 FROM tab2 AS cor0
----
-238
-2652
-2686

query I rowsort
SELECT DISTINCT ( - 2 ) * + col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT 35 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT - 3 AS col2 FROM tab0
----
-3
-3
-3

query I rowsort
SELECT ALL + 26 * col1 FROM tab1 AS cor0
----
260
338
676

query I rowsort
SELECT DISTINCT + 24 * col1 AS col0 FROM tab0
----
2064
2184
2328

query I rowsort
SELECT DISTINCT + col2 * col2 AS col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT + - col2 - + col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT + col0 - col1 * + col2 FROM tab2 cor0
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 * - col0 + - col1 col0 FROM tab2 AS cor0
----
-254
-293
-52

query I rowsort
SELECT - - cor0.col2 + + col2 + + cor0.col0 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT ALL 96 FROM tab0 AS cor0
----
96
96
96

query I rowsort
SELECT DISTINCT + + col0 * col2 + 31 * - 47 AS col0 FROM tab2 AS cor0
----
-1268
1545
571

query I rowsort
SELECT tab2.col1 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT 82 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # use DIV operator for integer division
query I rowsort label-5368
SELECT + + col1 + + col0 DIV + 12 col0 FROM tab1 AS cor0
----
15
19
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5368
SELECT + + col1 + + col0 / + 12 col0 FROM tab1 AS cor0
----
15
19
26

query I rowsort
SELECT + col1 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5370
SELECT - col2 * - col2 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5370
SELECT - col2 * - col2 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
24
35
89

query I rowsort
SELECT + col0 + - cor0.col0 * col2 + + col0 FROM tab2 AS cor0
----
-175
-1872
-2844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + ( col1 ) * col0 col2 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT + + col0 * col0 + col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab1, tab0 cor0
----
24
35
89

query I rowsort
SELECT - col0 * - col0 + col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT 95 FROM tab2 cor0
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + ( col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + cor0.col2 * ( - col0 ) + + 28 FROM tab0 cor0
----
-7
-7270
-764

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 263f0eb7d5dfd4076c74918bc141bd9b

query I rowsort
SELECT ( + cor0.col0 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT ( col1 ) * - col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ( col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + + col0 + + cor0.col0 * + ( + col1 ) AS col1 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT - - cor0.col2 * + col2 + + col2 * 48 AS col1 FROM tab2 cor0
----
1924
2025
3268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( + col1 ) ) col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ALL 35 AS col0 FROM tab1
----
35
35
35

query I rowsort
SELECT 39 FROM tab0 AS cor0
----
39
39
39

query I rowsort
SELECT ALL col0 + + col0 * cor0.col2 * + ( + ( - col0 ) + 59 ) AS col0 FROM tab1 AS cor0
----
-161200
-18176
9075

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5391
SELECT ALL col0 * + CAST( col1 AS SIGNED ) * col0 FROM tab0
----
118825
49536
720811

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL col0 * + CAST ( col1 AS INTEGER ) * col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT + 88 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab2 cor3
----
3645 values hashing to 6726a15019c52908f1f1d0df0cd4c1b8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5394
SELECT ALL + - ( - cor0.col0 ) * cor0.col1 + + col0 DIV col2 AS col0 FROM tab1 AS cor0
----
1040
641
78

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL + - ( - cor0.col0 ) * cor0.col1 + + col0 / col2 AS col0 FROM tab1 AS cor0
----
1040
641
78

query I rowsort
SELECT ALL col1 * cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 45 col0 FROM tab1 AS cor0
----
45
45
45

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab0 AS cor2, tab2
----
13122 values hashing to c60533705e2e9ad7166aecf338598a8c

query I rowsort
SELECT + 57 * + col0 FROM tab0
----
1368
1995
5073

query I rowsort
SELECT ALL - col0 + 81 AS col0 FROM tab2
----
2
3
74

query I rowsort
SELECT 65 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ALL + col0 - - col1 * + col2 AS col1 FROM tab2
----
1612
725
844

query I rowsort
SELECT DISTINCT + - 95 * col1 + col1 FROM tab0 AS cor0
----
-8084
-8554
-9118

query I rowsort
SELECT DISTINCT - 8 + + 99 * col2 FROM tab1 AS cor0
----
5338
5635
9496

onlyif mysql # use DIV operator for integer division
query I rowsort label-5404
SELECT DISTINCT col2 DIV col1 + - col1 + 53 AS col0 FROM tab0 AS cor0
----
-33
-38
-44

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT col2 / col1 + - col1 + 53 AS col0 FROM tab0 AS cor0
----
-33
-38
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 * col1 col0 FROM tab2
----
153
279
531

query I rowsort
SELECT + col2 * col0 + col1 * col2 * - col0 AS col0 FROM tab0 AS cor0
----
-3360
-656820
-67320

query I rowsort
SELECT - 73 * col0 FROM tab0
----
-1752
-2555
-6497

query I rowsort
SELECT - col1 + col1 * + col2 AS col2 FROM tab1
----
1235
1378
560

query I rowsort
SELECT + - col2 * + col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT col1 * 58 FROM tab1 AS cor0
----
1508
580
754

query I rowsort
SELECT + cor0.col2 + ( + col1 ) FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + - col1 * ( + cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - 25 FROM tab1, tab2 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT + cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 8 col1 FROM tab0 AS cor0
----
264
656
8

query I rowsort
SELECT ALL - - col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5417
SELECT DISTINCT - + col1 * - col1 DIV + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT - + col1 * - col1 / + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + - col1 * col0 + + col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT - cor0.col1 - + 75 AS col0 FROM tab0 AS cor0
----
-161
-166
-172

query I rowsort
SELECT DISTINCT - - col1 * col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - col2 * + col2 + col2 + col2 AS col0 FROM tab1 AS cor0
----
-2808
-3135
-9024

query I rowsort
SELECT DISTINCT - col2 * - col2 - 58 * - col0 FROM tab1 AS cor0
----
13856
3090
6961

query I rowsort
SELECT cor1.col2 AS col2 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT + col1 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT - + col2 + 63 FROM tab2 AS cor0
----
25
36
37

query I rowsort
SELECT - 94 FROM tab0, tab1 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT - 97 FROM tab1, tab0 cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query I rowsort
SELECT col2 * - col2 * col2 + + col1 AS col2 FROM tab0
----
-35851
-551277
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5429
SELECT ALL 25 DIV - cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8652c6005030e32767da8435f76fa05f

skipif mysql # not compatible
query I rowsort label-5429
SELECT ALL 25 / - cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8652c6005030e32767da8435f76fa05f

query I rowsort
SELECT + + cor0.col0 + 77 AS col1 FROM tab0 AS cor0
----
101
112
166

query I rowsort
SELECT - cor0.col0 + + 52 AS col0 FROM tab2 cor0
----
-26
-27
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5432
SELECT DISTINCT + col0 + col2 DIV col0 FROM tab0 AS cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-5432
SELECT DISTINCT + col0 + col2 / col0 FROM tab0 AS cor0
----
25
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5433
SELECT ALL + col2 + - col2 DIV + 33 FROM tab2 AS cor0
----
26
27
37

skipif mysql # not compatible
query I rowsort label-5433
SELECT ALL + col2 + - col2 / + 33 FROM tab2 AS cor0
----
26
27
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5434
SELECT ALL cor0.col0 * - CAST( NULL AS SIGNED ) / + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL cor0.col0 * - CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 * 73 + col0 FROM tab1 AS cor0
----
3945
4225
7088

query I rowsort
SELECT DISTINCT - col1 * + 31 FROM tab0 AS cor0
----
-2666
-2821
-3007

query I rowsort
SELECT ( col1 ) FROM tab1 cor0
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-5438
SELECT ALL + cor0.col1 DIV col1 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL + cor0.col1 / col1 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - ( + col1 ) + col1 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ( col0 ) * col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL ( - ( - col0 ) ) * col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-5442
SELECT DISTINCT - 98 + - 29 DIV - col0 AS col0 FROM tab0 AS cor0
----
-97
-98

skipif mysql # not compatible
query I rowsort label-5442
SELECT DISTINCT - 98 + - 29 / - col0 AS col0 FROM tab0 AS cor0
----
-97
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 * col1 col1 FROM tab2 AS cor0
----
1394
2542
4838

query I rowsort
SELECT col0 * - 52 FROM tab0 AS cor0
----
-1248
-1820
-4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5445
SELECT ALL + - CAST( + 32 AS SIGNED ) * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1888
-544
-992

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL + - CAST ( + 32 AS INTEGER ) * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1888
-544
-992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 95 + - col1 col2 FROM tab0 AS cor0
----
-2
4
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5447
SELECT DISTINCT - col2 DIV col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT - col2 / col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL 61 * + col2 + cor0.col0 FROM tab2 AS cor0
----
1654
1664
2397

query I rowsort
SELECT + col2 * col2 + - 92 FROM tab0
----
-91
6632
997

query I rowsort
SELECT tab2.col2 + - 9 AS col0 FROM tab2
----
17
18
29

query I rowsort
SELECT ALL + + cor0.col0 AS col1 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT + col0 * - 6 AS col0 FROM tab1
----
-18
-384
-480

query I rowsort
SELECT 78 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col2 * 5 col2 FROM tab0 cor0
----
-198
-492
-6

query I rowsort
SELECT DISTINCT - col0 - - col1 FROM tab1 cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-5456
SELECT DISTINCT + ( + col0 ) DIV - 97 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT + ( + col0 ) / - 97 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col1 - + col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT - + col0 * + col0 + - 39 FROM tab2 AS cor0
----
-6123
-6280
-88

query I rowsort
SELECT DISTINCT - 75 * col2 - + ( col0 ) AS col0 FROM tab1 cor0
----
-4053
-4339
-7280

query I rowsort
SELECT ALL + col0 + - col0 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5461
SELECT DISTINCT - col1 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT - col1 / cor0.col2 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + cor0.col2 + col2 + + ( col0 ) FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT - + cor0.col1 + col0 AS col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT - ( + 59 ) FROM tab2
----
-59
-59
-59

query I rowsort
SELECT + col1 + - col1 * - col2 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - - 46 * - col1 + ( col2 ) AS col2 FROM tab2 AS cor0
----
-1399
-2688
-744

query I rowsort
SELECT DISTINCT + + cor0.col1 + col1 AS col2 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5468
SELECT + col1 * col1 - + 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-5468
SELECT + col1 * col1 - + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col0 * + col0 + + 34 FROM tab2 AS cor0
----
6118
6275
83

query I rowsort
SELECT - 92 * + col2 - - 12 AS col1 FROM tab1 AS cor0
----
-4956
-5232
-8820

query I rowsort
SELECT DISTINCT + + col2 + - col0 * + ( col2 ) * col1 FROM tab2 AS cor0
----
-119626
-50996
-5832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 77 * - col2 col0 FROM tab2 AS cor0
----
1924
2072
2847

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 + 53 col0 FROM tab0
----
7449
8334
9462

query I rowsort
SELECT ALL + 79 + + col2 FROM tab1
----
133
136
175

query I rowsort
SELECT ALL - col1 + col0 AS col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT tab2.col2 - col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT tab2.col0 * 83 + + 57 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to e30e5f6d8b12ecc678443a15f89b3480

onlyif mysql # use DIV operator for integer division
query I rowsort label-5479
SELECT - + col1 DIV col0 - - cor0.col2 col1 FROM tab1 AS cor0
----
46
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5479
SELECT - + col1 / col0 - - cor0.col2 col1 FROM tab1 AS cor0
----
46
57
96

query I rowsort
SELECT DISTINCT + ( + col2 ) * + col2 + col1 AS col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT + 98 * col1 - - col1 FROM tab0 AS cor0
----
8514
9009
9603

query I rowsort
SELECT ALL + + col0 * col1 * cor0.col2 + + ( - col0 + col1 ) AS col2 FROM tab1 AS cor0
----
36426
4235
99773

onlyif mysql # use DIV operator for integer division
query I rowsort label-5483
SELECT col0 + ( + col1 ) DIV - 68 AS col2 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-5483
SELECT col0 + ( + col1 ) / - 68 AS col2 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT ALL + col2 + + col2 * col0 * col1 AS col2 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT ALL 91 + col2 AS col0 FROM tab2 AS cor0
----
117
118
129

query I rowsort
SELECT DISTINCT + 3 + + col1 * - col0 FROM tab1 cor0
----
-1037
-637
-75

query I rowsort
SELECT ALL - - 25 + col1 AS col0 FROM tab1 AS cor0
----
35
38
51

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 - + cor0.col0 + + cor0.col2 AS col1 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT + col2 * - col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT 9 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to b7e6b25481699c3a4ee7381c7eae0817

query I rowsort
SELECT DISTINCT - 74 AS col1 FROM tab0, tab0 AS cor0
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - col1 col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col1 + - 77 * - col1 FROM tab1 AS cor0
----
1976
760
988

query I rowsort
SELECT - + col1 + - cor0.col0 * col1 FROM tab0 cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL + col1 * tab2.col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT ALL + col2 * + ( 46 * col0 ) FROM tab1 AS cor0
----
167808
353280
7452

query I rowsort
SELECT ALL col1 * 76 FROM tab0 AS cor0
----
6536
6916
7372

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to d41be7437523f0dba2158c7f0439f329

query I rowsort
SELECT - 73 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5501
SELECT DISTINCT + col2 * - CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT + col2 * - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + - col1 * cor0.col1 - + 29 AS col1 FROM tab0 AS cor0
----
-7425
-8310
-9438

query I rowsort
SELECT ALL col2 * + col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5504
SELECT ALL col2 * + CAST( col1 AS SIGNED ) FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL col2 * + CAST ( col1 AS INTEGER ) FROM tab2
----
1534
646
837

query I rowsort
SELECT tab0.col1 - cor0.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3bf815aa1abab719801164f7eb7c7cba

query I rowsort
SELECT - col1 * - ( + col1 * + col2 ) AS col1 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT DISTINCT col1 * - ( + 57 ) FROM tab2
----
-1767
-3363
-969

query I rowsort
SELECT DISTINCT + 0 AS col1 FROM tab1
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5509
SELECT - CAST( ( col2 ) AS SIGNED ) * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-5509
SELECT - CAST ( ( col2 ) AS INTEGER ) * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - ( cor0.col2 ) * - col0 * col2 FROM tab1 AS cor0
----
207936
737280
8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col2 FROM tab0
----
76
76
76

query I rowsort
SELECT col2 * col1 + 18 AS col1 FROM tab0
----
115
2856
7480

query I rowsort
SELECT - + cor0.col2 + col1 + - ( col2 ) AS col2 FROM tab1 AS cor0
----
-104
-179
-82

query I rowsort
SELECT + - col1 + - 18 FROM tab0 AS cor0
----
-104
-109
-115

onlyif mysql # use DIV operator for integer division
query I rowsort label-5515
SELECT col1 DIV col1 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5515
SELECT col1 / col1 AS col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5516
SELECT + col0 DIV col2 + + col2 FROM tab0 cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-5516
SELECT + col0 / col2 + + col2 FROM tab0 cor0
----
33
36
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5517
SELECT col1 DIV - 7 AS col2 FROM tab1 AS cor0
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-5517
SELECT col1 / - 7 AS col2 FROM tab1 AS cor0
----
-1
-1
-3

query I rowsort
SELECT + col1 + ( + col0 * col2 ) AS col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT + + col0 * 76 * + col0 FROM tab2 AS cor0
----
3724
462384
474316

query I rowsort
SELECT - col0 + 27 * - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-1015
-2581
-696

query I rowsort
SELECT + + col0 * - col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL - col0 + + cor0.col2 AS col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT - - 90 FROM tab1 AS cor0
----
90
90
90

query I rowsort
SELECT ALL + 10 + - cor0.col0 FROM tab1 cor0
----
-54
-70
7

query I rowsort
SELECT DISTINCT - col2 * col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT 5 AS col2 FROM tab1
----
5
5
5

query I rowsort
SELECT DISTINCT + ( - col2 ) AS col2 FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5528
SELECT col0 DIV col1 - + ( + 54 ) AS col2 FROM tab2
----
-50
-53
-54

skipif mysql # not compatible
query I rowsort label-5528
SELECT col0 / col1 - + ( + 54 ) AS col2 FROM tab2
----
-50
-53
-54

query I rowsort
SELECT DISTINCT - - col1 + col0 * - col0 * col0 FROM tab0 AS cor0
----
-13738
-42778
-704878

query I rowsort
SELECT - col1 + - tab2.col0 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT - 89 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

query I rowsort
SELECT + - 88 * col2 AS col2 FROM tab2 AS cor0
----
-2288
-2376
-3344

query I rowsort
SELECT - col1 + col1 * + col0 AS col2 FROM tab1
----
1027
52
630

query I rowsort
SELECT - col2 + + col0 * col0 AS col2 FROM tab1
----
-45
4039
6304

query I rowsort
SELECT ALL 63 AS col2 FROM tab1
----
63
63
63

query I rowsort
SELECT + col0 * tab0.col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT + 9 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

onlyif mysql # use DIV operator for integer division
query I rowsort label-5538
SELECT DISTINCT col0 DIV CAST( + col2 AS SIGNED ) AS col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-5538
SELECT DISTINCT col0 / CAST ( + col2 AS INTEGER ) AS col0 FROM tab1
----
0
1

query I rowsort
SELECT ALL + 89 FROM tab2, tab2 cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT DISTINCT - + col0 + 44 FROM tab0 AS cor0
----
-45
20
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5541
SELECT + - ( - col0 ) + + col0 + + CAST( NULL AS SIGNED ) * - 48 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5541
SELECT + - ( - col0 ) + + col0 + + CAST ( NULL AS INTEGER ) * - 48 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - 60 ) + - col1 AS col1 FROM tab2 AS cor0
----
-119
-77
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-5543
SELECT ALL - 12 DIV + 15 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL - 12 / + 15 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 68 FROM tab0 AS cor0
----
-68

query I rowsort
SELECT ALL + ( col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - - cor0.col0 + + col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - - col0 * 29 + col2 FROM tab2 AS cor0
----
2288
230
2329

query I rowsort
SELECT + col0 * col2 + + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-5549
SELECT DISTINCT - col0 + ( 36 ) DIV + col1 - - 6 * tab1.col0 AS col2 FROM tab1
----
16
323
402

skipif mysql # not compatible
query I rowsort label-5549
SELECT DISTINCT - col0 + ( 36 ) / + col1 - - 6 * tab1.col0 AS col2 FROM tab1
----
16
323
402

query I rowsort
SELECT - ( 84 ) AS col0 FROM tab0 AS cor0
----
-84
-84
-84

query I rowsort
SELECT 79 AS col1 FROM tab1 AS cor0
----
79
79
79

query I rowsort
SELECT 56 * - 38 + col2 FROM tab2 AS cor0
----
-2090
-2101
-2102

query I rowsort
SELECT + 35 AS col1 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT 70 + - ( + col2 * - col2 ) FROM tab0 cor0
----
1159
6794
71

query I rowsort
SELECT col1 * + cor0.col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT 33 FROM tab2, tab0 AS cor0
----
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-5557
SELECT + ( 41 ) DIV col2 + - col2 + col1 AS col1 FROM tab0 cor0
----
137
54
9

skipif mysql # not compatible
query I rowsort label-5557
SELECT + ( 41 ) / col2 + - col2 + col1 AS col1 FROM tab0 cor0
----
137
54
9

query I rowsort
SELECT ALL - col2 + + col2 * col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT 80 + ( + tab1.col2 ) FROM tab1
----
134
137
176

query I rowsort
SELECT col0 + - 16 AS col2 FROM tab2
----
-9
62
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-5561
SELECT + ( col1 ) + - tab0.col0 + col0 DIV - col2 AS col1 FROM tab0
----
1
27
62

skipif mysql # not compatible
query I rowsort label-5561
SELECT + ( col1 ) + - tab0.col0 + col0 / - col2 AS col1 FROM tab0
----
1
27
62

query I rowsort
SELECT 11 + - 22 + col2 FROM tab2
----
15
16
27

query I rowsort
SELECT DISTINCT + 62 + - col0 * + col0 * 2 FROM tab1 AS cor0
----
-12738
-8130
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-5564
SELECT ALL - ( + col1 ) DIV - col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL - ( + col1 ) / - col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT + col1 * cor0.col0 * 85 + col1 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
175550
288707
688595

query I rowsort
SELECT + col1 * - col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT 77 + + col0 FROM tab0 AS cor0
----
101
112
166

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5568
SELECT ALL + col0 + - col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL + col0 + - col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 78 AS col2 FROM tab2 AS cor0
----
78

query I rowsort
SELECT - + col1 * + col2 + col0 * col0 AS col2 FROM tab2 AS cor0
----
-788
4550
5595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( - col1 ) * 17 col1 FROM tab0 AS cor0
----
-1462
-1547
-1649

query I rowsort
SELECT ALL - + ( - col0 ) * col2 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT col0 + + col0 * 97 AS col1 FROM tab2 AS cor0
----
686
7644
7742

query I rowsort
SELECT 71 * - col1 FROM tab1 AS cor0
----
-1846
-710
-923

onlyif mysql # use DIV operator for integer division
query I rowsort label-5575
SELECT 28 DIV + col0 + col0 FROM tab0 AS cor0
----
25
35
89

skipif mysql # not compatible
query I rowsort label-5575
SELECT 28 / + col0 + col0 FROM tab0 AS cor0
----
25
35
89

query I rowsort
SELECT ALL + + 16 + col1 AS col1 FROM tab2 cor0
----
33
47
75

query I rowsort
SELECT DISTINCT - ( col2 ) + col2 * - col2 FROM tab0 AS cor0
----
-1122
-2
-6806

query I rowsort
SELECT ALL + + 44 AS col2 FROM tab1 cor0
----
44
44
44

query I rowsort
SELECT + 16 AS col1 FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT ALL + - 87 + col2 AS col2 FROM tab2 AS cor0
----
-49
-60
-61

query I rowsort
SELECT DISTINCT 50 AS col1 FROM tab2 AS cor0
----
50

query I rowsort
SELECT + tab2.col2 + col1 AS col1 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL + + col0 + col0 AS col1 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5584
SELECT ALL - col2 + CAST( + 39 + - col2 * col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-177
-3666
-7737

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL - col2 + CAST ( + 39 + - col2 * col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-177
-3666
-7737

query I rowsort
SELECT ALL + - col0 + - 97 FROM tab2 AS cor0
----
-104
-175
-176

query I rowsort
SELECT DISTINCT + + col1 * cor0.col1 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT + col2 * + ( col2 ) * col0 AS col0 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT - col1 * - col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL + - col2 * - 80 AS col0 FROM tab0 AS cor0
----
2640
6560
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5590
SELECT - + col1 DIV ( + col1 ) FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5590
SELECT - + col1 / ( + col1 ) FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT + 75 * - col0 * + col2 + + col0 AS col1 FROM tab0 AS cor0
----
-2590
-547261
-59376

onlyif mysql # use DIV operator for integer division
query I rowsort label-5593
SELECT + col1 DIV - 95 + - col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-5593
SELECT + col1 / - 95 + - col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL + 97 + col2 * col1 FROM tab0 cor0
----
194
2935
7559

onlyif mysql # use DIV operator for integer division
query I rowsort label-5595
SELECT ALL 7 * + col2 DIV col2 FROM tab1 cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL 7 * + col2 / col2 FROM tab1 cor0
----
7
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 61 col0 FROM tab2 AS cor0
----
-2
-30
-44

query I rowsort
SELECT - - col0 + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-5598
SELECT - 42 * cor0.col1 - - col1 DIV col0 col2 FROM tab1 AS cor0
----
-1084
-420
-546

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5598
SELECT - 42 * cor0.col1 - - col1 / col0 col2 FROM tab1 AS cor0
----
-1084
-420
-546

query I rowsort
SELECT DISTINCT - 38 FROM tab2 AS cor0
----
-38

query I rowsort
SELECT + col1 + - 31 FROM tab2
----
-14
0
28

query I rowsort
SELECT 0 * - 15 - - col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT cor0.col1 - + cor0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to c1eca5ea8dadf5efbc400ae6094b52e3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5603
SELECT DISTINCT col1 DIV - col1 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT col1 / - col1 AS col2 FROM tab1
----
-1

query I rowsort
SELECT ALL - 97 FROM tab0
----
-97
-97
-97

query I rowsort
SELECT - 44 + + col1 * - tab1.col0 AS col2 FROM tab1
----
-1084
-122
-684

query I rowsort
SELECT ALL - tab1.col0 * col1 AS col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT ALL - col2 + col0 * - col2 FROM tab0 AS cor0
----
-36
-7380
-825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5608
SELECT + CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5608
SELECT + CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT 84 * + col0 * col2 FROM tab1
----
13608
306432
645120

query I rowsort
SELECT ALL + - 63 FROM tab1 AS cor0
----
-63
-63
-63

query I rowsort
SELECT - + col0 + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5612
SELECT - col1 DIV 58 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5612
SELECT - col1 / 58 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - cor0.col2 * + 60 FROM tab0 AS cor0
----
-1980
-4920
-60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5614
SELECT - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5614
SELECT - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 * - col1 AS col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - - col1 * col2 * - col0 FROM tab0 cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + col2 * + ( col0 ) AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - - col2 + - col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL - 20 * 99 + + col1 FROM tab0 cor0
----
-1883
-1889
-1894

query I rowsort
SELECT DISTINCT - col2 + - col2 * col0 * + col2 + - col0 AS col1 FROM tab0 AS cor0
----
-26193
-598607
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-5621
SELECT - col0 * + 4 * + cor0.col2 + CAST( 3 AS SIGNED ) DIV - cor0.col0 FROM tab0 AS cor0
----
-140
-29192
-3168

skipif mysql # not compatible
query I rowsort label-5621
SELECT - col0 * + 4 * + cor0.col2 + CAST ( 3 AS INTEGER ) / - cor0.col0 FROM tab0 AS cor0
----
-140
-29192
-3168

query I rowsort
SELECT DISTINCT + - ( cor0.col0 ) + + col2 FROM tab1 AS cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( ( + col0 ) AS REAL ) FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT col2 + + 9 FROM tab0 AS cor0
----
10
42
91

query I rowsort
SELECT ALL cor0.col1 * - 69 FROM tab0 AS cor0
----
-5934
-6279
-6693

onlyif mysql # use DIV operator for integer division
query I rowsort label-5626
SELECT DISTINCT 40 DIV col1 AS col1 FROM tab1
----
1
3
4

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT 40 / col1 AS col1 FROM tab1
----
1
3
4

query I rowsort
SELECT DISTINCT + - ( - col1 ) * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + 49 + + ( + col2 ) FROM tab0 AS cor0
----
131
50
82

query I rowsort
SELECT ALL - ( col0 ) * col2 + ( col2 ) FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5630
SELECT + CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5630
SELECT + CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - 91 AS col2 FROM tab2 AS cor0
----
-53
-64
-65

query I rowsort
SELECT DISTINCT + - col1 + - col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + - col2 + 5 * col1 FROM tab2 AS cor0
----
128
269
47

query I rowsort
SELECT ALL - ( cor0.col2 ) + + col2 * - col0 - - 83 FROM tab2 AS cor0
----
-133
-1971
-2957

query I rowsort
SELECT + ( col0 ) + + col0 AS col0 FROM tab0 AS cor0
----
178
48
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT + ( col2 ) + cor0.col2 AS col1 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT - + 28 + 99 * + col0 + + 16 * + col2 FROM tab2 AS cor0
----
1097
8110
8401

query I rowsort
SELECT + col1 + + col2 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - 60 * cor0.col1 FROM tab0 AS cor0
----
-5160
-5460
-5820

onlyif mysql # use DIV operator for integer division
query I rowsort label-5641
SELECT col1 + + cor0.col0 DIV + ( - 49 ) AS col1 FROM tab1 cor0
----
12
26
9

skipif mysql # not compatible
query I rowsort label-5641
SELECT col1 + + cor0.col0 / + ( - 49 ) AS col1 FROM tab1 cor0
----
12
26
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5642
SELECT + cor0.col2 * + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5642
SELECT + cor0.col2 * + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 91 + - col1 FROM tab2 AS cor0
----
32
60
74

query I rowsort
SELECT - 16 * col0 + - col1 AS col1 FROM tab0 AS cor0
----
-1515
-470
-657

query I rowsort
SELECT - 75 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT DISTINCT - 99 FROM tab1
----
-99

query I rowsort
SELECT ( 6 ) FROM tab2
----
6
6
6

query I rowsort
SELECT col1 * - 81 AS col0 FROM tab1
----
-1053
-2106
-810

query I rowsort
SELECT cor0.col2 * cor0.col0 + - cor0.col0 * - col2 FROM tab0 AS cor0
----
14596
1584
70

query I rowsort
SELECT - + 96 FROM tab1 cor0
----
-96
-96
-96

query I rowsort
SELECT - - col0 + col1 * + col2 * col2 AS col0 FROM tab2 AS cor0
----
22606
24627
39962

query I rowsort
SELECT DISTINCT col0 + col0 * col2 FROM tab1 AS cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 57 * col2 * - col2 + - col0 * + col2 col0 FROM tab2 AS cor0
----
36504
41364
79306

query I rowsort
SELECT DISTINCT cor0.col0 * + col2 * - col1 AS col1 FROM tab0 cor0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + tab2.col1 + + col1 col2 FROM tab2
----
177
51
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col1 FROM tab0
----
80
80
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5657
SELECT - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 9 AS col2 FROM tab1, tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + 60 FROM tab0, tab0 cor0
----
60

query I rowsort
SELECT - 42 FROM tab0, tab2 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5661
SELECT ALL - CAST( - 31 AS SIGNED ) FROM tab1
----
31
31
31

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL - CAST ( - 31 AS INTEGER ) FROM tab1
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 96 col2 FROM tab2
----
1632
2976
5664

query I rowsort
SELECT ALL + col2 * + 23 - - col2 AS col1 FROM tab1
----
1296
1368
2304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5664
SELECT ALL - CAST( + 5 * + col2 AS SIGNED ) AS col1 FROM tab2
----
-130
-135
-190

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL - CAST ( + 5 * + col2 AS INTEGER ) AS col1 FROM tab2
----
-130
-135
-190

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - col0 - - cor0.col1 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT col2 * 38 + cor0.col2 FROM tab1 AS cor0
----
2106
2223
3744

query I rowsort
SELECT - 46 * ( - col2 ) + + col2 FROM tab2 AS cor0
----
1222
1269
1786

query I rowsort
SELECT ALL col0 + col1 + 18 FROM tab2
----
114
155
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5670
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5670
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
NULL

query I rowsort
SELECT - col1 * ( col2 ) FROM tab0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort
SELECT + - col0 + - cor0.col0 + ( col1 * + CAST ( col0 AS REAL ) ) FROM tab1 cor0
----
512
72
880

query I rowsort
SELECT cor0.col0 * + 52 * - cor0.col1 FROM tab1 AS cor0
----
-33280
-4056
-54080

query I rowsort
SELECT - cor0.col0 + + col1 AS col0 FROM tab0 AS cor0
----
2
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + ( col0 ) col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT + col0 * 31 + col0 AS col2 FROM tab0 AS cor0
----
1120
2848
768

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5677
SELECT ALL - - col2 * CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL - - col2 * CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5678
SELECT ALL + cor0.col0 DIV col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5678
SELECT ALL + cor0.col0 / col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - ( col2 ) * col2 + + ( + col0 ) FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT ALL - col1 + col2 * col2 AS col0 FROM tab1 AS cor0
----
2890
3239
9203

onlyif mysql # use DIV operator for integer division
query I rowsort label-5681
SELECT DISTINCT ( ( col2 ) ) DIV col2 AS col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT ( ( col2 ) ) / col2 AS col2 FROM tab0 cor0
----
1

query I rowsort
SELECT 53 * col0 FROM tab1 AS cor0
----
159
3392
4240

query I rowsort
SELECT DISTINCT 57 * - cor0.col1 FROM tab1 AS cor0
----
-1482
-570
-741

query I rowsort
SELECT ALL ( - col1 ) * col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - 42 + + 90 FROM tab1 cor0
----
48
48
48

query I rowsort
SELECT col1 - + ( - col2 ) FROM tab0
----
119
173
98

query I rowsort
SELECT - col0 + + 67 FROM tab2
----
-11
-12
60

query I rowsort
SELECT ( col2 ) + col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + 20 FROM tab1 AS cor0
----
20

query I rowsort
SELECT DISTINCT + 44 + + col0 AS col1 FROM tab0 cor0
----
133
68
79

query I rowsort
SELECT - + col1 * col0 + col1 * + col2 FROM tab2 AS cor0
----
-3068
-697
620

query I rowsort
SELECT ALL + 1 AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5693
SELECT + + col1 + col0 DIV col1 AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5693
SELECT + + col1 + col0 / col1 AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL + + cor0.col0 + - cor0.col1 + + 79 AS col0 FROM tab0 AS cor0
----
17
17
77

query I rowsort
SELECT ALL + + col2 - - cor0.col2 AS col2 FROM tab0 AS cor0
----
164
2
66

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c

query I rowsort
SELECT DISTINCT - 49 FROM tab2
----
-49

query I rowsort
SELECT 94 AS col0 FROM tab2, tab2 cor0, tab2 cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col1 * ( + col2 ) col2 FROM tab0 AS cor0
----
-611884
-93654
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5700
SELECT DISTINCT - col2 * - CAST( + col2 AS SIGNED ) * col1 + - 79 + col0 AS col2 FROM tab0 AS cor0
----
53
611894
93599

skipif mysql # not compatible
query I rowsort label-5700
SELECT DISTINCT - col2 * - CAST ( + col2 AS INTEGER ) * col1 + - 79 + col0 AS col2 FROM tab0 AS cor0
----
53
611894
93599

query I rowsort
SELECT DISTINCT - col2 + - cor0.col0 AS col1 FROM tab0 cor0
----
-171
-36
-57

query I rowsort
SELECT - - col0 * + 40 + + col1 * cor0.col0 + 51 * col0 FROM tab2 AS cor0
----
11700
8532
854

query I rowsort
SELECT DISTINCT - - col1 + col1 * col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT tab1.col2 FROM tab1, tab2, tab0 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + 61 - col1 FROM tab0
----
-25
-30
-36

query I rowsort
SELECT col2 * col2 * - col1 + col1 FROM tab2
----
-22568
-24531
-39825

query I rowsort
SELECT DISTINCT + col1 - + col0 AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT - col1 * 48 + col2 FROM tab2 AS cor0
----
-1461
-2806
-778

query I rowsort
SELECT - - col2 - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * - 90 AS col0 FROM tab0 AS cor0
----
-2970
-7380
-90

query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT - cor0.col1 + - ( + 87 ) AS col1 FROM tab0 AS cor0
----
-173
-178
-184

query I rowsort
SELECT ALL + - cor0.col2 + + col1 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5714
SELECT DISTINCT col1 DIV col0 + 20 - - col1 col2 FROM tab0 AS cor0
----
109
112
119

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT col1 / col0 + 20 - - col1 col2 FROM tab0 AS cor0
----
109
112
119

query I rowsort
SELECT ALL 60 - + col1 FROM tab2
----
1
29
43

query I rowsort
SELECT ALL + col0 + - tab0.col1 AS col1 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + 68 AS col1 FROM tab1, tab2 AS cor0
----
68

skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 + CAST ( - col0 + col0 AS REAL ) FROM tab0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5719
SELECT 17 DIV - 5 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

skipif mysql # not compatible
query I rowsort label-5719
SELECT 17 / - 5 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT ALL col1 + - 76 AS col0 FROM tab2
----
-17
-45
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5721
SELECT DISTINCT col1 DIV col1 + - tab0.col0 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-5721
SELECT DISTINCT col1 / col1 + - tab0.col0 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT - col1 * ( + 93 ) FROM tab2
----
-1581
-2883
-5487

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 * - 89 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d8a1bf57bc17c296329b0482257c2ba8

query I rowsort
SELECT col2 * + col0 + col1 * + col0 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT col1 + - col2 * - col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT + col1 * - col1 AS col0 FROM tab2
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + 43 * col2 AS col1 FROM tab1 AS cor0
----
2322
2451
4128

query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 AS col0 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT 28 FROM tab0
----
28

query I rowsort
SELECT + ( + col1 ) + + col0 * col2 FROM tab1
----
188
3658
7693

query I rowsort
SELECT DISTINCT - 30 FROM tab0, tab2 cor0
----
-30

query I rowsort
SELECT + 10 + + tab2.col0 AS col0 FROM tab2
----
17
88
89

query I rowsort
SELECT 91 * - col0 + + col0 FROM tab1
----
-270
-5760
-7200

query I rowsort
SELECT ALL ( + col1 * col0 ) FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * + col2 col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + - col2 * col2 * + col0 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT ALL - col2 * col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + 39 + + col2 * 19 AS col2 FROM tab1 AS cor0
----
1065
1122
1863

query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL - 82 - col2 * col2 FROM tab2 AS cor0
----
-1526
-758
-811

query I rowsort
SELECT ALL - col0 * cor0.col2 - col2 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT DISTINCT 68 * + col2 AS col0 FROM tab0 cor0
----
2244
5576
68

query I rowsort
SELECT ALL 39 FROM tab0 AS cor0
----
39
39
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 * col1 col1 FROM tab2 AS cor0
----
1258
2294
4366

query I rowsort
SELECT + col1 * col0 AS col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + - ( + col2 ) + ( ( - col2 ) ) * col0 AS col0 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT + col0 * cor0.col1 * - col1 AS col0 FROM tab2 cor0
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT + ( + col2 ) + ( col1 ) AS col1 FROM tab2 AS cor0
----
55
58
85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5750
SELECT DISTINCT - CAST( + 76 AS SIGNED ) * - col1 FROM tab0
----
6536
6916
7372

skipif mysql # not compatible
query I rowsort label-5750
SELECT DISTINCT - CAST ( + 76 AS INTEGER ) * - col1 FROM tab0
----
6536
6916
7372

query I rowsort
SELECT - ( col1 ) * - ( - 15 ) FROM tab0 AS cor0
----
-1290
-1365
-1455

query I rowsort
SELECT col2 * col0 + - ( - col0 ) FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT 32 FROM tab2, tab2 cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT ALL - col0 * 0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - tab1.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT ALL - 71 * 51 * col1 AS col0 FROM tab1
----
-36210
-47073
-94146

query I rowsort
SELECT + cor0.col2 + - ( tab2.col0 ) AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 927bd78ab61aa38e103e2033cac2cd3b

query I rowsort
SELECT - ( col0 ) * col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ( - 87 ) * col1 + tab1.col1 AS col2 FROM tab1
----
-1118
-2236
-860

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5760
SELECT ALL CAST( - ( + col0 ) AS SIGNED ) FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL CAST ( - ( + col0 ) AS INTEGER ) FROM tab0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col2 FROM tab2 AS cor0
----
69
69
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-5762
SELECT ALL - 27 DIV col1 AS col1 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL - 27 / col1 AS col1 FROM tab1 AS cor0
----
-1
-2
-2

query I rowsort
SELECT DISTINCT tab0.col1 FROM tab0, tab0 cor0
----
86
91
97

query I rowsort
SELECT + 28 FROM tab2 cor0
----
28
28
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-5765
SELECT - col2 * + cor0.col0 DIV 1 + - col0 FROM tab1 AS cor0
----
-165
-3712
-7760

skipif mysql # not compatible
query I rowsort label-5765
SELECT - col2 * + cor0.col0 / 1 + - col0 FROM tab1 AS cor0
----
-165
-3712
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 * col0 col2 FROM tab1 AS cor0
----
2112
2640
99

query I rowsort
SELECT - - col2 * - col1 AS col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT + cor0.col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + - col1 * - col0 + 82 + col1 FROM tab0 AS cor0
----
2232
3574
8272

onlyif mysql # use DIV operator for integer division
query I rowsort label-5770
SELECT DISTINCT + + col2 DIV 24 AS col1 FROM tab1 AS cor0
----
2
4

skipif mysql # not compatible
query I rowsort label-5770
SELECT DISTINCT + + col2 / 24 AS col1 FROM tab1 AS cor0
----
2
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + col1 col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col1 * + 65 FROM tab0 AS cor0
----
-5590
-5915
-6305

query I rowsort
SELECT + col0 * ( + col0 ) - col1 * col0 AS col0 FROM tab2 cor0
----
-168
1482
4898

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 + 56 col1 FROM tab0 AS cor0
----
-26
23
55

query I rowsort
SELECT - cor0.col1 + 74 + col2 AS col0 FROM tab2 AS cor0
----
41
70
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-5776
SELECT DISTINCT col2 DIV 22 AS col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT col2 / 22 AS col0 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT + + cor0.col2 + + col1 * 72 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-148575
-244439
-583046

query I rowsort
SELECT + 45 FROM tab2, tab1 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT + col0 + 16 FROM tab1 cor0
----
19
80
96

query I rowsort
SELECT - col2 * + col2 + col2 + col2 AS col1 FROM tab0 AS cor0
----
-1023
-6560
1

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 DISTINCT + cor0.col0 * 45 FROM tab2 AS cor0
----
315
3510
3555

query I rowsort
SELECT DISTINCT + + col0 + + ( + col2 ) * col1 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT + col2 + - 54 * col1 AS col2 FROM tab0 AS cor0
----
-4611
-4832
-5237

query I rowsort
SELECT cor0.col2 FROM tab2, tab1 cor0, tab2 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5786
SELECT - + col2 + + ( - col1 + - CAST( col0 AS SIGNED ) ) * cor0.col2 FROM tab2 cor0
----
-1053
-3588
-3686

skipif mysql # not compatible
query I rowsort label-5786
SELECT - + col2 + + ( - col1 + - CAST ( col0 AS INTEGER ) ) * cor0.col2 FROM tab2 cor0
----
-1053
-3588
-3686

query I rowsort
SELECT ALL 87 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5788
SELECT + CAST( NULL AS SIGNED ) + col1 * col2 + - 44 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5788
SELECT + CAST ( NULL AS INTEGER ) + col1 * col2 + - 44 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + 31 * + col0 FROM tab2 AS cor0
----
224
2496
2528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col2 * + col2 * 88 col1 FROM tab2 AS cor0
----
-127110
-59514
-64179

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5791
SELECT + CAST( NULL AS SIGNED ) + + 81 * + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5791
SELECT + CAST ( NULL AS INTEGER ) + + 81 * + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - col0 ) FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5793
SELECT - col1 + + col0 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-5793
SELECT - col1 + + col0 / cor0.col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5794
SELECT ALL cor0.col1 DIV + col2 FROM tab0 cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL cor0.col1 / + col2 FROM tab0 cor0
----
1
2
97

query I rowsort
SELECT ALL + cor0.col2 + col1 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5796
SELECT - + cor0.col1 + cor0.col0 + ( + col0 ) DIV col0 AS col0 FROM tab1 AS cor0
----
-22
55
68

skipif mysql # not compatible
query I rowsort label-5796
SELECT - + cor0.col1 + cor0.col0 + ( + col0 ) / col0 AS col0 FROM tab1 AS cor0
----
-22
55
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-5797
SELECT - 60 DIV col2 col2 FROM tab0 AS cor0
----
-1
-60
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5797
SELECT - 60 / col2 col2 FROM tab0 AS cor0
----
-1
-60
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5798
SELECT - 69 * + col1 + - 46 DIV col0 + col2 * - 45 * 9 AS col1 FROM tab1 AS cor0
----
-23679
-23775
-39777

skipif mysql # not compatible
query I rowsort label-5798
SELECT - 69 * + col1 + - 46 / col0 + col2 * - 45 * 9 AS col1 FROM tab1 AS cor0
----
-23679
-23775
-39777

query I rowsort
SELECT - 80 FROM tab2, tab1 cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT - - col0 + - ( col1 ) AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT 14 AS col1 FROM tab1
----
14
14
14

query I rowsort
SELECT + - col0 * - 31 FROM tab1 AS cor0
----
1984
2480
93

query I rowsort
SELECT col2 - 10 AS col0 FROM tab0 AS cor0
----
-9
23
72

query I rowsort
SELECT ALL + 42 + 89 FROM tab2 AS cor0
----
131
131
131

query I rowsort
SELECT DISTINCT - - cor0.col2 * + col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - 16 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9

query I rowsort
SELECT ALL col2 - - col2 * col1 FROM tab2
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-5808
SELECT - cor0.col1 DIV cor0.col0 - col1 AS col2 FROM tab0 AS cor0
----
-89
-92
-99

skipif mysql # not compatible
query I rowsort label-5808
SELECT - cor0.col1 / cor0.col0 - col1 AS col2 FROM tab0 AS cor0
----
-89
-92
-99

query I rowsort
SELECT cor0.col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query III rowsort
SELECT * FROM tab1 WHERE col1 * + col1 IN ( - col1 )
----

query I rowsort
SELECT + cor0.col1 * col0 - col2 AS col0 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT + col0 - + col1 FROM tab0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5813
SELECT + col0 DIV col0 - col2 * col2 AS col0 FROM tab1
----
-2915
-3248
-9215

skipif mysql # not compatible
query I rowsort label-5813
SELECT + col0 / col0 - col2 * col2 AS col0 FROM tab1
----
-2915
-3248
-9215

query I rowsort
SELECT ALL - tab1.col0 AS col2 FROM tab0, tab1 cor0 CROSS JOIN tab1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

query I rowsort
SELECT DISTINCT col2 + - tab2.col2 * col2 AS col1 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT cor0.col2 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - col2 * + col0 + + col0 * + col0 FROM tab0
----
-216
1190
623

query I rowsort
SELECT ALL + col1 - + col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT - col0 * col0 NOT BETWEEN ( col1 ) AND cor0.col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5821
SELECT + col1 * col2 - - col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-5821
SELECT + col1 * col2 - - col0 / - col0 AS col2 FROM tab2 AS cor0
----
1533
645
836

query I rowsort
SELECT ALL col0 - + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - tab2.col1 * col1 FROM tab2
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col0 * + col2 col0 FROM tab2
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-5825
SELECT - col0 DIV + col0 - col1 * col2 AS col1 FROM tab0
----
-2839
-7463
-98

skipif mysql # not compatible
query I rowsort label-5825
SELECT - col0 / + col0 - col1 * col2 AS col1 FROM tab0
----
-2839
-7463
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5826
SELECT DISTINCT col0 DIV col0 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5826
SELECT DISTINCT col0 / col0 AS col0 FROM tab2
----
1

query I rowsort
SELECT DISTINCT col0 * - col2 + col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-399
1536
2754

query I rowsort
SELECT ALL + col0 + col2 * + col1 * col1 AS col2 FROM tab2 AS cor0
----
11061
25954
90584

onlyif mysql # use DIV operator for integer division
query I rowsort label-5829
SELECT DISTINCT + + col1 DIV cor0.col1 AS col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT + + col1 / cor0.col1 AS col2 FROM tab0 cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5830
SELECT - + cor0.col0 DIV col2 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5830
SELECT - + cor0.col0 / col2 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + col1 * - col0 AS col2 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT col1 * - col1 + - col0 * col0 AS col1 FROM tab0 AS cor0
----
-10634
-16202
-7972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - col0 col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-5834
SELECT col1 DIV col1 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5834
SELECT col1 / col1 AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5835
SELECT ALL - col1 DIV - col0 + col1 FROM tab0 cor0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL - col1 / - col0 + col1 FROM tab0 cor0
----
89
92
99

query I rowsort
SELECT + - col0 * - col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col1 - + col1 * - col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - + cor0.col2 * - col0 + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL + cor0.col2 * col2 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5840
SELECT DISTINCT - cor0.col0 * cor0.col2 + - col2 DIV + col0 + + col1 FROM tab0 AS cor0
----
-707
-7207
62

skipif mysql # not compatible
query I rowsort label-5840
SELECT DISTINCT - cor0.col0 * cor0.col2 + - col2 / + col0 + + col1 FROM tab0 AS cor0
----
-707
-7207
62

query I rowsort
SELECT ALL cor0.col1 * col0 AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT cor0.col1 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + - 98 AS col2 FROM tab1 AS cor0
----
-98
-98
-98

query I rowsort
SELECT DISTINCT col1 * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL - - 23 FROM tab2 AS cor0
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col1 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to d8cc00265be49df5e89f33bc08ab6f6d

query I rowsort
SELECT DISTINCT + tab1.col1 + - col0 AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT - ( col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - - col1 + col1 AS col1 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT ALL col2 - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + col0 * - 12 * col1 FROM tab2 AS cor0
----
-16116
-2604
-55224

query I rowsort
SELECT col0 - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5853
SELECT + col0 + col0 DIV 28 AS col1 FROM tab1 AS cor0
----
3
66
82

skipif mysql # not compatible
query I rowsort label-5853
SELECT + col0 + col0 / 28 AS col1 FROM tab1 AS cor0
----
3
66
82

query I rowsort
SELECT - 91 * + col2 + col1 AS col1 FROM tab2
----
-2307
-2426
-3441

query I rowsort
SELECT col0 * col2 - + 49 FROM tab0
----
-14
7249
743

query I rowsort
SELECT ALL - tab0.col0 + col2 FROM tab0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - tab0.col0 + col1 AS col1 FROM tab0
----
2
62

query I rowsort
SELECT DISTINCT col2 - - col1 AS col2 FROM tab2
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5859
SELECT - col1 + col1 DIV - col1 FROM tab2 WHERE NOT + col1 >= + col1 + col0
----
-18
-32
-60

skipif mysql # not compatible
query I rowsort label-5859
SELECT - col1 + col1 / - col1 FROM tab2 WHERE NOT + col1 >= + col1 + col0
----
-18
-32
-60

onlyif mysql # use DIV operator for integer division
query I rowsort label-5860
SELECT DISTINCT - col0 DIV col2 + + col2 FROM tab1
----
54
56
96

skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT - col0 / col2 + + col2 FROM tab1
----
54
56
96

query I rowsort
SELECT DISTINCT - col1 * + col0 * + col1 AS col0 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT col2 * - tab0.col1 AS col1 FROM tab0
----
-2838
-7462
-97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) <= ( + col2 )
----

query I rowsort
SELECT col1 + col2 AS col0 FROM tab0 WHERE NOT ( + col2 + col1 ) > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5865
SELECT ALL - tab2.col1 DIV tab2.col1 + - tab2.col2 FROM tab2
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-5865
SELECT ALL - tab2.col1 / tab2.col1 + - tab2.col2 FROM tab2
----
-27
-28
-39

query I rowsort
SELECT ALL - tab1.col0 * tab1.col2 AS col1 FROM tab1
----
-162
-3648
-7680

query III rowsort
SELECT * FROM tab1 WHERE - col0 + + col2 > NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5868
SELECT + col2 DIV col1 col1 FROM tab2
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5868
SELECT + col2 / col1 col1 FROM tab2
----
0
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5869
SELECT + col0 DIV + tab1.col2 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5869
SELECT + col0 / + tab1.col2 AS col1 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 col1 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5871
SELECT ALL col2 * col0 DIV tab1.col2 + + col0 FROM tab1
----
128
160
6

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL col2 * col0 / tab1.col2 + + col0 FROM tab1
----
128
160
6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT col2 + col0 - col1 FROM tab0
----
-29
-61
80

query I rowsort
SELECT DISTINCT + col2 + + col2 FROM tab2
----
52
54
76

query I rowsort
SELECT ALL col1 * + col0 * col2 + col0 AS col0 FROM tab0
----
3430
664207
68136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 col1 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5877
SELECT DISTINCT - tab1.col0 DIV col1 + col2 AS col1 FROM tab1
----
51
54
90

skipif mysql # not compatible
query I rowsort label-5877
SELECT DISTINCT - tab1.col0 / col1 + col2 AS col1 FROM tab1
----
51
54
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5878
SELECT DISTINCT + col1 DIV - col0 + + col0 * col2 AS col0 FROM tab2
----
185
2028
3002

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT + col1 / - col0 + + col0 * col2 AS col0 FROM tab2
----
185
2028
3002

query I rowsort
SELECT col0 FROM tab2 WHERE - col2 <> col0
----
7
78
79

query I rowsort
SELECT ALL - col0 * - tab1.col1 - + col0 * + col0 * + col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL col2 + + tab1.col1 * - col0 AS col1 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT + col2 + - col2 * + col0 + - col1 AS col1 FROM tab2
----
-193
-2061
-2981

query I rowsort
SELECT + tab0.col0 + - col2 FROM tab0
----
-9
34
7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + col0 * + col2 AS col0 FROM tab2 WHERE NOT col2 IN ( + col2 )
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE tab2.col0 > + col2 / + col1
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5887
SELECT - cor0.col2 + + CAST( + ( + col2 ) * + CAST( 75 AS DECIMAL ) AS SIGNED ) FROM tab0 AS cor0
----
2442
6068
74

skipif mysql # not compatible
query I rowsort label-5887
SELECT - cor0.col2 + + CAST ( + ( + col2 ) * + CAST ( 75 AS REAL ) AS INTEGER ) FROM tab0 AS cor0
----
2442
6068
74

query I rowsort
SELECT ALL - - 93 * + cor0.col0 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 303bcdbd00172c7e53460b815faf52ee

query I rowsort
SELECT - + cor0.col0 + 12 * cor0.col0 FROM tab1 AS cor0
----
33
704
880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 * 46 col2 FROM tab2
----
1118
1235
1669

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 col1 * 71 col0 FROM tab1
----
1846
710
923

query I rowsort
SELECT tab0.col2 * cor0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 1d94ea086ff4b04d01d3c46ff83c5c3d

onlyif mysql # use DIV operator for integer division
query I rowsort label-5894
SELECT ( + col1 ) DIV - col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5894
SELECT ( + col1 ) / - col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5896
SELECT + - col2 DIV + 53 col1 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5896
SELECT + - col2 / + 53 col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT col1 * + ( - col1 ) FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT - tab0.col1 * - 0 AS col0 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5899
SELECT DISTINCT + tab1.col0 DIV 58 FROM tab1, tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT + tab1.col0 / 58 FROM tab1, tab0 AS cor0
----
0
1

query I rowsort
SELECT + 35 AS col2 FROM tab1
----
35
35
35

query I rowsort
SELECT DISTINCT 58 * - col2 AS col0 FROM tab1
----
-3132
-3306
-5568

query I rowsort
SELECT - - 58 AS col0 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT ALL ( + col2 ) AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL 36 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT ALL - tab2.col1 + + col1 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5906
SELECT + col2 DIV cor0.col1 - - col0 FROM tab2 AS cor0
----
7
78
81

skipif mysql # not compatible
query I rowsort label-5906
SELECT + col2 / cor0.col1 - - col0 FROM tab2 AS cor0
----
7
78
81

query I rowsort
SELECT + - col1 + cor0.col1 * cor0.col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT - - ( col2 ) * col2 + - 38 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-165
-37
3608

query I rowsort
SELECT DISTINCT + col1 + + col1 * + 32 FROM tab2 AS cor0
----
1023
1947
561

query I rowsort
SELECT - - col0 * - col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - col1 * col1 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT col2 + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-5913
SELECT ALL + col2 DIV - col1 + + 78 - col0 AS col1 FROM tab2 AS cor0
----
-3
0
71

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL + col2 / - col1 + + 78 - col0 AS col1 FROM tab2 AS cor0
----
-3
0
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col0 FROM tab1
----
-39
-39
-39

query I rowsort
SELECT + + 41 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT ALL 99 AS col1 FROM tab1
----
99
99
99

query I rowsort
SELECT DISTINCT + 43 AS col0 FROM tab0
----
43

query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0, tab2, tab0 AS cor0, tab2 AS cor1
----
1
33
82

query I rowsort
SELECT 81 AS col0 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT 32 + - col1 AS col2 FROM tab2
----
-27
1
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - tab2.col1 * col0 * - 92 col0 FROM tab2
----
123635
19971
423462

query I rowsort
SELECT - col2 - col0 * - cor0.col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT - col0 + 92 FROM tab0
----
3
57
68

query I rowsort
SELECT col2 * + ( col0 ) FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT - col1 - - 46 FROM tab0
----
-40
-45
-51

query I rowsort
SELECT + - col1 - + col0 * cor0.col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT + col2 * ( 0 ) - col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT col2 * - col0 + cor0.col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT + - col2 * cor0.col2 + + 5 FROM tab2 AS cor0
----
-1439
-671
-724

query I rowsort
SELECT DISTINCT + col2 + col0 + + col2 AS col0 FROM tab0 AS cor0
----
253
37
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 94 col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f

query I rowsort
SELECT ALL - 72 AS col2 FROM tab0
----
-72
-72
-72

query I rowsort
SELECT col2 + + cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT col0 + 19 AS col0 FROM tab2 AS cor0
----
26
97
98

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163

query I rowsort
SELECT - col2 + col1 * - 63 AS col0 FROM tab2 AS cor0
----
-1109
-1980
-3743

query I rowsort
SELECT - + col2 * col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - cor0.col0 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT DISTINCT tab0.col1 * 50 AS col2 FROM tab0
----
4300
4550
4850

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col1 col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + 21 FROM tab1 cor0
----
21
21
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5942
SELECT - CAST( + 75 AS SIGNED ) * col0 FROM tab0 AS cor0
----
-1800
-2625
-6675

skipif mysql # not compatible
query I rowsort label-5942
SELECT - CAST ( + 75 AS INTEGER ) * col0 FROM tab0 AS cor0
----
-1800
-2625
-6675

query I rowsort
SELECT + - 54 FROM tab0 AS cor0
----
-54
-54
-54

query I rowsort
SELECT DISTINCT ( 84 ) + + col1 AS col0 FROM tab0 AS cor0
----
170
175
181

query I rowsort
SELECT ALL ( - col0 ) - + col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL - - col0 + - col2 * col1 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + - col1 + col0 FROM tab2 AS cor0
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5948
SELECT ALL col1 DIV 44 + - col2 FROM tab2 AS cor0
----
-25
-27
-38

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL col1 / 44 + - col2 FROM tab2 AS cor0
----
-25
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5949
SELECT DISTINCT + - 11 * + col2 + - col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT + - 11 * + col2 + - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col0 * + col2 FROM tab0 cor0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT - col0 * - ( col1 ) + ( 56 + col1 ) * ( col2 + + cor0.col0 ) FROM tab0 AS cor0
----
10158
33236
8903

query I rowsort
SELECT DISTINCT - 23 + + col0 AS col2 FROM tab0 AS cor0
----
1
12
66

query I rowsort
SELECT ALL col1 - + 34 AS col1 FROM tab0 AS cor0
----
52
57
63

query I rowsort
SELECT DISTINCT - 68 AS col2 FROM tab0 AS cor0
----
-68

query I rowsort
SELECT 72 * 37 FROM tab0 AS cor0
----
2664
2664
2664

query I rowsort
SELECT DISTINCT ( 16 ) * + col0 AS col1 FROM tab2 AS cor0
----
112
1248
1264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 + col1 * + 4 col2 FROM tab2 cor0
----
1512
853
912

query I rowsort
SELECT 70 FROM tab2, tab0 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT DISTINCT col2 - 77 FROM tab2
----
-39
-50
-51

query I rowsort
SELECT + cor0.col2 + + col2 * + col0 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL - 76 * col2 FROM tab2
----
-1976
-2052
-2888

query I rowsort
SELECT DISTINCT cor0.col0 * tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to ae10dfda2508149d338269366c35c584

onlyif mysql # use DIV operator for integer division
query I rowsort label-5964
SELECT DISTINCT col0 + - col1 DIV + col0 FROM tab1 AS cor0
----
-5
64
80

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT col0 + - col1 / + col0 FROM tab1 AS cor0
----
-5
64
80

query I rowsort
SELECT - col1 * - 78 FROM tab0 AS cor0
----
6708
7098
7566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 + tab1.col1 col0 FROM tab1
----
188
3658
7693

query I rowsort
SELECT ALL tab0.col1 + 12 FROM tab0, tab2 cor0
----
9 values hashing to 74e0471cdd5aa70daea2e37c51076f1d

query I rowsort
SELECT - 8 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT ALL + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL + cor0.col2 + - col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL ( 2 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT DISTINCT - cor0.col0 + col2 * - ( col2 ) AS col2 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 FROM tab1 AS cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 66 col2 FROM tab1 AS cor0
----
-30
12
9

query I rowsort
SELECT - 4 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # use DIV operator for integer division
query I rowsort label-5976
SELECT DISTINCT + col0 * ( col2 ) DIV + cor0.col2 + col0 * col1 AS col1 FROM tab0 cor0
----
2088
3430
8188

skipif mysql # not compatible
query I rowsort label-5976
SELECT DISTINCT + col0 * ( col2 ) / + cor0.col2 + col0 * col1 AS col1 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT - cor0.col0 + + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT ALL - - col1 * 2 + + 14 FROM tab2 AS cor0
----
132
48
76

query I rowsort
SELECT ALL - + col1 * 31 AS col1 FROM tab2 cor0
----
-1829
-527
-961

query I rowsort
SELECT DISTINCT - col1 * 73 + - 16 AS col0 FROM tab0 AS cor0
----
-6294
-6659
-7097

query I rowsort
SELECT ALL 31 AS col0 FROM tab1 AS cor0
----
31
31
31

query I rowsort
SELECT ALL cor0.col0 * col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5983
SELECT ALL 20 DIV + 33 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL 20 / + 33 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( ( + col1 ) ) * 55 AS col2 FROM tab2
----
1705
3245
935

query I rowsort
SELECT DISTINCT + 12 + + col1 * cor0.col0 FROM tab2 AS cor0
----
1355
229
4614

query I rowsort
SELECT cor0.col0 + - 23 AS col1 FROM tab2 AS cor0
----
-16
55
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5987
SELECT - ( 4 ) * + col2 + CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-219
-292
-464

skipif mysql # not compatible
query I rowsort label-5987
SELECT - ( 4 ) * + col2 + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-219
-292
-464

query I rowsort
SELECT 41 * col1 FROM tab2 AS cor0
----
1271
2419
697

query I rowsort
SELECT col0 * - col1 + - 87 + + 28 FROM tab0 AS cor0
----
-2123
-3454
-8158

query I rowsort
SELECT ALL + cor0.col0 * col2 + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT - 47 + - col2 * + ( col1 * + col1 ) FROM tab2 AS cor0
----
-11029
-25994
-90553

query I rowsort
SELECT DISTINCT - 91 AS col0 FROM tab0 AS cor0
----
-91

query I rowsort
SELECT - col2 * tab2.col2 + + col1 * - 0 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT + cor0.col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-5995
SELECT DISTINCT - col0 DIV tab0.col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5995
SELECT DISTINCT - col0 / tab0.col0 FROM tab0
----
-1

query I rowsort
SELECT 54 AS col0 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT ALL - col1 * col2 AS col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col1 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5999
SELECT - + 0 + cor0.col2 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5999
SELECT - + 0 + cor0.col2 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col2 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL + cor0.col0 * + col2 + 98 AS col0 FROM tab1 AS cor0
----
260
3746
7778

query I rowsort
SELECT + col2 + + col1 + col2 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT col2 * + 15 * + col0 FROM tab2 AS cor0
----
2835
30420
45030

query I rowsort
SELECT ALL - col2 * - 88 FROM tab1 AS cor0
----
4752
5016
8448

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-6006
SELECT col2 + + CAST( - col2 * col0 AS SIGNED ) + - col2 * col1 FROM tab1 cor0
----
-1512
-4161
-8832

skipif mysql # not compatible
query I rowsort label-6006
SELECT col2 + + CAST ( - col2 * col0 AS INTEGER ) + - col2 * col1 FROM tab1 cor0
----
-1512
-4161
-8832

query I rowsort
SELECT DISTINCT + col1 * - ( + cor0.col0 ) FROM tab1 AS cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + - col1 + col2 col0 FROM tab2 AS cor0
----
1364
213
4569

query I rowsort
SELECT DISTINCT + ( col0 ) + + ( 42 * + col1 ) FROM tab2
----
1309
2556
793

query I rowsort
SELECT 19 * - col1 AS col2 FROM tab1
----
-190
-247
-494

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6011
SELECT ALL + col0 * - col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL + col0 * - col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6012
SELECT DISTINCT 27 DIV - col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT 27 / - col0 FROM tab0
----
-1
0

query I rowsort
SELECT DISTINCT - 94 AS col1 FROM tab1
----
-94

query I rowsort
SELECT + cor0.col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT + - col0 * col0 + cor0.col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT DISTINCT 16 + cor0.col0 FROM tab1 AS cor0
----
19
80
96

query I rowsort
SELECT + + 18 AS col0 FROM tab0 AS cor0
----
18
18
18

onlyif mysql # use DIV operator for integer division
query I rowsort label-6018
SELECT ALL - + ( + 97 ) * - col2 + col2 DIV - col0 AS col1 FROM tab0 AS cor0
----
3200
7954
97

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL - + ( + 97 ) * - col2 + col2 / - col0 AS col1 FROM tab0 AS cor0
----
3200
7954
97

query I rowsort
SELECT DISTINCT col2 * - 77 FROM tab0 cor0
----
-2541
-6314
-77

query I rowsort
SELECT - 11 * + col2 * + col2 FROM tab0
----
-11
-11979
-73964

onlyif mysql # use DIV operator for integer division
query I rowsort label-6021
SELECT - col2 DIV 3 FROM tab1
----
-18
-19
-32

skipif mysql # not compatible
query I rowsort label-6021
SELECT - col2 / 3 FROM tab1
----
-18
-19
-32

query I rowsort
SELECT col2 * 24 FROM tab0
----
1968
24
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6023
SELECT CAST( col1 AS SIGNED ) DIV col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6023
SELECT CAST ( col1 AS INTEGER ) / col1 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT 74 AS col1 FROM tab1, tab0 AS cor0
----
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6025
SELECT - col1 / col2 + - CAST( ( - col0 ) AS SIGNED ) * col0 * + col0 + + col2 * + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6025
SELECT - col1 / col2 + - CAST ( ( - col0 ) AS INTEGER ) * col0 * + col0 + + col2 * + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ( - col1 ) + col2 AS col1 FROM tab1 cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6028
SELECT col2 + - col0 * CAST( NULL AS SIGNED ) / 82 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6028
SELECT col2 + - col0 * CAST ( NULL AS INTEGER ) / 82 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - cor0.col0 * 19 AS col2 FROM tab2 AS cor0
----
-126
-1404
-1422

query I rowsort
SELECT + col1 * - col0 * col1 + + col0 AS col1 FROM tab1 AS cor0
----
-13440
-2025
-6336

query I rowsort
SELECT - col1 * col1 * col0 FROM tab1
----
-13520
-2028
-6400

onlyif mysql # use DIV operator for integer division
query I rowsort label-6032
SELECT col1 DIV tab1.col1 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6032
SELECT col1 / tab1.col1 AS col1 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT + col0 * tab1.col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT + tab0.col1 * 89 AS col1 FROM tab0
----
7654
8099
8633

query I rowsort
SELECT + - 27 * col1 FROM tab1 AS cor0
----
-270
-351
-702

query I rowsort
SELECT ALL tab0.col1 + col0 * col2 FROM tab0
----
132
7389
878

onlyif mysql # use DIV operator for integer division
query I rowsort label-6037
SELECT DISTINCT + - col2 + - 7 DIV + col2 AS col1 FROM tab0 AS cor0
----
-33
-8
-82

skipif mysql # not compatible
query I rowsort label-6037
SELECT DISTINCT + - col2 + - 7 / + col2 AS col1 FROM tab0 AS cor0
----
-33
-8
-82

query I rowsort
SELECT DISTINCT - - col0 * col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
207936
737280
8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * col1 col2 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 + col0 + 42 col2 FROM tab2 AS cor0
----
146
159
76

query I rowsort
SELECT tab2.col2 + tab2.col0 AS col1 FROM tab2
----
104
117
34

query I rowsort
SELECT ALL 57 FROM tab1, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT - ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - - col1 + - col0 FROM tab2 cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-6045
SELECT DISTINCT + - col0 DIV - 53 - - col1 FROM tab2 AS cor0
----
18
31
60

skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT + - col0 / - 53 - - col1 FROM tab2 AS cor0
----
18
31
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-6046
SELECT ALL 11 DIV col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL 11 / col0 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + - 18 * 53 - + col1 FROM tab0 AS cor0
----
-1040
-1045
-1051

query I rowsort
SELECT + 89 FROM tab2 AS cor0
----
89
89
89

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 DISTINCT - col0 * 90 - - col2 AS col2 FROM tab0 AS cor0
----
-2127
-3149
-7928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + - col2 col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL ( cor0.col0 ) * - col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - ( + 58 ) + + col0 FROM tab1 AS cor0
----
-55
22
6

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab0, tab1 AS cor1
----
972 values hashing to 9af67d6f98010464af5d560bf949d487

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6055
SELECT - CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6055
SELECT - CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6056
SELECT CAST( - col0 AS SIGNED ) DIV col0 - tab2.col2 AS col2 FROM tab2
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-6056
SELECT CAST ( - col0 AS INTEGER ) / col0 - tab2.col2 AS col2 FROM tab2
----
-27
-28
-39

query I rowsort
SELECT col0 + + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136

onlyif mysql # use DIV operator for integer division
query I rowsort label-6058
SELECT + - col1 + cor0.col2 DIV col2 AS col0 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-6058
SELECT + - col1 + cor0.col2 / col2 AS col0 FROM tab1 AS cor0
----
-12
-25
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col1 col1 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - tab0.col1 AS col2 FROM tab0, tab2 cor0
----
-86
-91
-97

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6062
SELECT ALL + tab2.col0 + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL + tab2.col0 + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT - col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - ( col1 ) * - col0 + col2 col0 FROM tab1 AS cor0
----
13616
2082
6457

query I rowsort
SELECT ALL + 79 * + col1 + col1 * 97 * col1 FROM tab0 AS cor0
----
724206
810446
920336

query I rowsort
SELECT DISTINCT - - col0 * col1 + ( col0 ) FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + + 96 * col0 AS col1 FROM tab1 AS cor0
----
288
6144
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6069
SELECT ALL - col1 + col2 DIV ( - col0 ) FROM tab0 AS cor0
----
-87
-91
-97

skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL - col1 + col2 / ( - col0 ) FROM tab0 AS cor0
----
-87
-91
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6070
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6070
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col1 + - tab1.col2 * + col1 AS col1 FROM tab1
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-6072
SELECT ALL 62 DIV + col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL 62 / + col2 AS col1 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT - - col1 * col0 + + 33 FROM tab2 AS cor0
----
1376
250
4635

query I rowsort
SELECT - + col0 + col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT col1 + - col0 AS col2 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT + 87 + col2 AS col2 FROM tab0 AS cor0
----
120
169
88

query I rowsort
SELECT DISTINCT + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT col0 * + cor0.col2 + + col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6080
SELECT DISTINCT - 46 * + col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6080
SELECT DISTINCT - 46 * + col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - + cor0.col0 * cor0.col1 * col2 + + cor0.col0 FROM tab1 cor0
----
-36416
-4209
-99760

query I rowsort
SELECT ALL + col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + 87 * col0 * + ( + col0 * col2 ) + - cor0.col1 AS col0 FROM tab1 AS cor0
----
20312054
42256
53452787

onlyif mysql # use DIV operator for integer division
query I rowsort label-6084
SELECT DISTINCT - + cor0.col0 + col2 + 33 DIV - col0 FROM tab0 AS cor0
----
-34
-7
8

skipif mysql # not compatible
query I rowsort label-6084
SELECT DISTINCT - + cor0.col0 + col2 + 33 / - col0 FROM tab0 AS cor0
----
-34
-7
8

query I rowsort
SELECT ALL col2 - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - col2 * + col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT ALL - + 6 AS col2 FROM tab1 cor0
----
-6
-6
-6

query I rowsort
SELECT ALL + col0 * - col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - 6 AS col2 FROM tab0
----
-6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6090
SELECT + col0 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6090
SELECT + col0 * + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 41 AS REAL ) AS col1 FROM tab0, tab0 AS cor0
----
41

query I rowsort
SELECT - col0 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT - - col1 * + col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL col1 + ( - 89 ) FROM tab1 AS cor0
----
-63
-76
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 34 col0 FROM tab2 AS cor0
----
-1292
-884
-918

onlyif mysql # use DIV operator for integer division
query I rowsort label-6096
SELECT ALL 21 DIV + col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL 21 / + col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - 3 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

query I rowsort
SELECT ( - cor0.col2 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT DISTINCT + 78 AS col0 FROM tab2 cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 62 + + cor0.col0 col1 FROM tab1 AS cor0
----
189
4032
5040

query I rowsort
SELECT DISTINCT + col1 - col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-17
-31
-59

query I rowsort
SELECT ALL + col2 * + col2 + + col1 AS col1 FROM tab0 AS cor0
----
1175
6815
98

query I rowsort
SELECT ALL ( + col1 ) - - col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + col0 + + ( col2 * + col0 ) AS col1 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-6106
SELECT ALL + cor0.col0 * 3 * cor0.col1 + 70 DIV + col2 AS col0 FROM tab0 AS cor0
----
10255
24297
6194

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL + cor0.col0 * 3 * cor0.col1 + 70 / + col2 AS col0 FROM tab0 AS cor0
----
10255
24297
6194

query I rowsort
SELECT ALL + col1 * + col2 - + col0 AS col2 FROM tab0
----
2814
62
7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-6109
SELECT DISTINCT col0 DIV + ( - col1 * - ( - tab1.col0 ) ) + col0 AS col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT col0 / + ( - col1 * - ( - tab1.col0 ) ) + col0 AS col2 FROM tab1
----
3
64
80

query I rowsort
SELECT ( + col2 ) AS col0 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT col1 + + tab0.col2 * col2 AS col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT ALL + ( + 71 ) FROM tab0
----
71
71
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-6113
SELECT + col1 DIV - col1 + + col0 AS col0 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-6113
SELECT + col1 / - col1 + + col0 AS col0 FROM tab0 AS cor0
----
23
34
88

query I rowsort
SELECT - col0 + col0 AS col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6115
SELECT col1 / + col2 + col2 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6115
SELECT col1 / + col2 + col2 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 50 + ( + col1 ) FROM tab0 AS cor0
----
136
141
147

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6117
SELECT + CAST( - col1 AS SIGNED ) FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6117
SELECT + CAST ( - col1 AS INTEGER ) FROM tab0
----
-86
-91
-97

query I rowsort
SELECT 53 FROM tab2
----
53
53
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-6119
SELECT DISTINCT - col0 DIV col2 + col0 AS col0 FROM tab0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT - col0 / col2 + col0 AS col0 FROM tab0
----
0
24
88

query I rowsort
SELECT ALL + 10 FROM tab2, tab0 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT ( - 70 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT DISTINCT 96 * col1 + col0 FROM tab1
----
1024
1328
2499

query I rowsort
SELECT + ( col1 ) + + col2 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL - 9 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5

query I rowsort
SELECT 25 AS col2 FROM tab0
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 col1 FROM tab2
----
-12
-12
-12

query I rowsort
SELECT 6 FROM tab2
----
6
6
6

query I rowsort
SELECT DISTINCT + 71 * col1 * col1 FROM tab0 cor0
----
525116
587951
668039

query I rowsort
SELECT - cor0.col2 * - col1 + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + 94 + cor0.col1 FROM tab2 AS cor0
----
111
125
153

query I rowsort
SELECT ALL - + col1 * cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6132
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - 15 * + cor0.col1 + - 10 + 94 FROM tab2 AS cor0
----
-171
-381
-801

query I rowsort
SELECT ALL + 19 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT ALL + tab1.col2 * + tab1.col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT col2 + - col2 * + col2 + + col2 * 16 FROM tab1
----
-1998
-2280
-7584

query I rowsort
SELECT DISTINCT col1 - + col1 FROM tab1
----
0

query I rowsort
SELECT ALL - col2 * col0 * - col2 AS col1 FROM tab1 AS cor0
----
207936
737280
8748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6139
SELECT CAST( NULL AS SIGNED ) FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6139
SELECT CAST ( NULL AS INTEGER ) FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + - col1 * col0 + 84 * col1 AS col2 FROM tab2 cor0
----
2387
354
85

query I rowsort
SELECT ALL + 45 AS col1 FROM tab1 AS cor0
----
45
45
45

query I rowsort
SELECT 34 + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1055
-6690
33

query I rowsort
SELECT ALL - + ( ( cor0.col0 ) ) * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + - 49 AS col0 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT + col2 * + ( - col2 ) + col0 * ( col2 ) - - col1 FROM tab0 AS cor0
----
-211
131
665

query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL 70 AS col0 FROM tab0
----
70
70
70

query I rowsort
SELECT + 0 * 52 + col1 * col2 * 83 AS col0 FROM tab2 AS cor0
----
127322
53618
69471

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6150
SELECT + CAST( - col2 AS SIGNED ) + - col1 FROM tab1 cor0
----
-109
-67
-80

skipif mysql # not compatible
query I rowsort label-6150
SELECT + CAST ( - col2 AS INTEGER ) + - col1 FROM tab1 cor0
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6151
SELECT DISTINCT col2 DIV col1 FROM tab2 cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-6151
SELECT DISTINCT col2 / col1 FROM tab2 cor0
----
0
2

query I rowsort
SELECT DISTINCT col2 - - ( col0 + col1 ) * - col2 * + col1 FROM tab1
----
-115968
-40662
-42123

query I rowsort
SELECT col1 + - col1 * cor0.col0 * - 3 FROM tab1 AS cor0
----
1930
260
3133

onlyif mysql # use DIV operator for integer division
query I rowsort label-6154
SELECT ALL tab1.col1 DIV 10 + + col0 - + col2 FROM tab1
----
-15
-49
8

skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL tab1.col1 / 10 + + col0 - + col2 FROM tab1
----
-15
-49
8

query I rowsort
SELECT DISTINCT - ( - 38 ) FROM tab2 cor0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 * col2 + col2 col0 FROM tab1 AS cor0
----
-3672
-3876
-6528

onlyif mysql # use DIV operator for integer division
query I rowsort label-6157
SELECT - 95 DIV col0 FROM tab1 AS cor0
----
-1
-1
-31

skipif mysql # not compatible
query I rowsort label-6157
SELECT - 95 / col0 FROM tab1 AS cor0
----
-1
-1
-31

query I rowsort
SELECT ALL - - 80 AS col0 FROM tab1 AS cor0
----
80
80
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 * - 91 + - col2 - 0 col1 FROM tab0 AS cor0
----
1465
1514
1546

query I rowsort
SELECT ALL 40 + - col0 FROM tab1 AS cor0
----
-24
-40
37

query I rowsort
SELECT DISTINCT col1 * ( - 22 ) FROM tab1
----
-220
-286
-572

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0, tab2 cor2
----
3645 values hashing to d6a6e32c6adcc8525ed3eb7827781237

query I rowsort
SELECT DISTINCT 46 AS col1 FROM tab2
----
46

query I rowsort
SELECT 26 * tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5c0a5491ba5889db5c6fbe57eb19a7d3

query I rowsort
SELECT + ( col2 ) * cor0.col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT tab1.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT - tab0.col0 * col0 FROM tab0
----
-1225
-576
-7921

query I rowsort
SELECT DISTINCT - col1 * - tab0.col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + - col0 * col1 + + 5 FROM tab1 AS cor0
----
-1035
-635
-73

skipif mysql # not compatible
query I rowsort
SELECT - col2 * col0 + CAST ( col1 AS REAL ) AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col2 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + cor0.col0 * col0 + 23 + col1 FROM tab0 cor0
----
1345
685
8035

query I rowsort
SELECT + + cor0.col0 * cor0.col0 + col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT - col0 * + tab0.col1 + - col0 FROM tab0
----
-2088
-3430
-8188

query I rowsort
SELECT 19 * + col0 * ( 57 ) AS col1 FROM tab2
----
7581
84474
85557

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6176
SELECT + col0 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6176
SELECT + col0 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6177
SELECT col0 + - col0 + - 63 * col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6177
SELECT col0 + - col0 + - 63 * col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + 2 + - 26 * col1 FROM tab1 AS cor0
----
-322
-416
-677

query I rowsort
SELECT + - col2 + - col0 AS col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT col1 * - col1 + col0 * col0 * + 90 FROM tab2
----
3449
544079
561401

query I rowsort
SELECT + col2 + - col2 * - 41 FROM tab2
----
1092
1134
1596

onlyif mysql # use DIV operator for integer division
query I rowsort label-6182
SELECT DISTINCT col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-6182
SELECT DISTINCT col2 / - col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT ALL cor0.col0 + ( col1 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL - col0 * - 42 AS col1 FROM tab1 AS cor0
----
126
2688
3360

query I rowsort
SELECT - col2 + - 67 AS col2 FROM tab1 AS cor0
----
-121
-124
-163

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6186
SELECT ALL + col0 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL + col0 + - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + ( col0 ) AS col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT - col2 * + ( cor0.col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col0 AS REAL ) AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - ( 1 ) + col0 * col2 FROM tab2 AS cor0
----
188
2027
3001

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6191
SELECT ALL CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + 49 ) * col2 * - col2 col2 FROM tab1 AS cor0
----
142884
159201
451584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ALL - 36 * 65 FROM tab2 cor0
----
-2340
-2340
-2340

onlyif mysql # use DIV operator for integer division
query I rowsort label-6195
SELECT DISTINCT - + 81 DIV ( - col1 ) AS col0 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT - + 81 / ( - col1 ) AS col0 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT 87 * cor0.col2 AS col2 FROM tab1 AS cor0
----
4698
4959
8352

query I rowsort
SELECT - cor0.col2 * 10 FROM tab1 AS cor0
----
-540
-570
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6198
SELECT - - CAST( NULL AS SIGNED ) * + 63 * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6198
SELECT - - CAST ( NULL AS INTEGER ) * + 63 * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 40 * col2 FROM tab1 AS cor0
----
2160
2280
3840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6200
SELECT DISTINCT CAST( - col0 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-6200
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6201
SELECT + ( - col2 ) DIV col0 + - col1 AS col1 FROM tab1 AS cor0
----
-10
-14
-44

skipif mysql # not compatible
query I rowsort label-6201
SELECT + ( - col2 ) / col0 + - col1 AS col1 FROM tab1 AS cor0
----
-10
-14
-44

query I rowsort
SELECT ALL + 64 FROM tab2, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT 84 FROM tab0, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT 58 - col0 AS col2 FROM tab1 AS cor0
----
-22
-6
55

query I rowsort
SELECT + 33 * col0 + - col0 FROM tab0 AS cor0
----
1120
2848
768

query I rowsort
SELECT - 39 - + col0 FROM tab2 cor0
----
-117
-118
-46

query I rowsort
SELECT DISTINCT - cor0.col2 * + col0 + 96 FROM tab1 cor0
----
-3552
-66
-7584

query I rowsort
SELECT DISTINCT col2 * - col0 + - col0 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT + col2 - - col2 AS col2 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + 68 + + col2 FROM tab0 AS cor0
----
101
150
69

query I rowsort
SELECT - 12 FROM tab2 AS cor0
----
-12
-12
-12

onlyif mysql # use DIV operator for integer division
query I rowsort label-6213
SELECT DISTINCT col2 DIV col2 + col0 * - col0 FROM tab1 AS cor0
----
-4095
-6399
-8

skipif mysql # not compatible
query I rowsort label-6213
SELECT DISTINCT col2 / col2 + col0 * - col0 FROM tab1 AS cor0
----
-4095
-6399
-8

query I rowsort
SELECT + col2 * col0 + + 56 AS col2 FROM tab0 AS cor0
----
7354
848
91

query I rowsort
SELECT col2 * - 46 FROM tab2
----
-1196
-1242
-1748

query I rowsort
SELECT ALL + 49 * col0 AS col2 FROM tab0
----
1176
1715
4361

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + col1 col2 FROM tab1
----
-23
54
67

query I rowsort
SELECT - col1 * + col1 * + 88 FROM tab1 cor0
----
-14872
-59488
-8800

query I rowsort
SELECT + 11 * - col0 + - 77 AS col0 FROM tab0
----
-1056
-341
-462

query I rowsort
SELECT ALL col2 + col1 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT tab2.col1 + tab2.col2 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL col2 + - col1 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL - col1 * col0 * - col2 + + col2 FROM tab0
----
3396
664200
68145

query I rowsort
SELECT ALL + col1 * - col1 + - col1 FROM tab2
----
-306
-3540
-992

query I rowsort
SELECT ALL - col0 + col1 * col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT DISTINCT + col1 * col1 * col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT + - cor0.col1 + col1 + col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + cor0.col2 + col0 * + col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT ALL col0 + - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6230
SELECT DISTINCT + col0 * col1 DIV - col1 + + col1 AS col2 FROM tab1
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-6230
SELECT DISTINCT + col0 * col1 / - col1 + + col1 AS col2 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT tab1.col2 + col0 * col1 AS col1 FROM tab1
----
1136
132
697

query I rowsort
SELECT col0 * - tab2.col2 + col2 + col0 AS col1 FROM tab2
----
-155
-1924
-2885

query I rowsort
SELECT col1 + tab0.col2 AS col2 FROM tab0
----
119
173
98

query I rowsort
SELECT + - col1 * col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL - + col1 - - col1 * col1 FROM tab2 cor0
----
272
3422
930

query I rowsort
SELECT col0 * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL - col0 + - cor0.col2 - + col2 FROM tab0 AS cor0
----
-253
-37
-90

query I rowsort
SELECT DISTINCT col0 * - col2 + col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT + - col0 * col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + - col1 + + col1 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - tab2.col2 * col1 * col2 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT ALL cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT cor0.col0 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + col0 + col1 + col0 FROM tab0 AS cor0
----
134
167
269

onlyif mysql # use DIV operator for integer division
query I rowsort label-6245
SELECT + - col2 DIV - col1 + + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6245
SELECT + - col2 / - col1 + + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE NULL BETWEEN ( NULL ) AND ( NULL ) OR NOT NULL IN ( col1 )
----

query I rowsort
SELECT ALL - col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + col2 + + col2 col1 FROM tab0 AS cor0
----
2130
3397
8263

query I rowsort
SELECT ALL + col0 * + col2 + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT col1 + col1 * col0 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-6251
SELECT - + cor0.col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6251
SELECT - + cor0.col0 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 5 * - col0 * col0 - - col0 AS col0 FROM tab0
----
-2856
-39516
-6090

query I rowsort
SELECT - col2 * + col0 * + col1 + - col0 FROM tab2
----
-119730
-51113
-5866

query I rowsort
SELECT + tab1.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col1 + col1 + col0 FROM tab1 cor0
----
1341
1433
644

query I rowsort
SELECT - - cor0.col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - col0 + + col2 * col2 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT ALL - col2 + - cor0.col0 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT + 62 * col2 * + col2 AS col2 FROM tab1 AS cor0
----
180792
201438
571392

onlyif mysql # use DIV operator for integer division
query I rowsort label-6260
SELECT + - 78 + col1 DIV - col1 FROM tab0 AS cor0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-6260
SELECT + - 78 + col1 / - col1 FROM tab0 AS cor0
----
-79
-79
-79

query I rowsort
SELECT DISTINCT + - 94 + - col2 FROM tab2 AS cor0
----
-120
-121
-132

query I rowsort
SELECT DISTINCT 18 + - col0 FROM tab2 AS cor0
----
-60
-61
11

query I rowsort
SELECT + ( - col0 ) + + cor0.col2 * col0 - + col0 * + col0 * + col1 AS col0 FROM tab1 AS cor0
----
-37376
-75
-75600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col2 + col2 col0 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT + 14 + - col1 * - col1 AS col2 FROM tab1 AS cor0
----
114
183
690

query I rowsort
SELECT - cor0.col1 * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + - col0 * - col2 - col2 AS col0 FROM tab2 cor0
----
162
2002
2964

query I rowsort
SELECT - cor0.col1 + + col1 * - col2 FROM tab0 cor0
----
-194
-2924
-7553

query I rowsort
SELECT col2 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT + tab2.col0 FROM tab2, tab0 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT col2 - - col1 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6272
SELECT - col1 DIV + col1 - col2 * col2 AS col0 FROM tab1
----
-2917
-3250
-9217

skipif mysql # not compatible
query I rowsort label-6272
SELECT - col1 / + col1 - col2 * col2 AS col0 FROM tab1
----
-2917
-3250
-9217

query I rowsort
SELECT ALL col0 * tab0.col1 + col2 * - col0 * col0 AS col2 FROM tab0
----
-16944
-641423
2170

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 * col0 - col0 ) BETWEEN + col2 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6275
SELECT - col0 * tab0.col2 DIV col0 AS col1 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6275
SELECT - col0 * tab0.col2 / col0 AS col1 FROM tab0
----
-1
-33
-82

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 * col0 - col1 ) NOT IN ( - col0 + - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT col0 + + col1 AS col2 FROM tab2 WHERE col2 NOT BETWEEN NULL AND col1 * col0 - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 col0 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT col2 * col0 + + col0 FROM tab0
----
70
7387
816

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - col0 * + col0 / - col1 )
----

query I rowsort
SELECT DISTINCT col1 * - col1 + col1 * - col1 + col2 FROM tab1
----
-1298
-143
-242

onlyif mysql # use DIV operator for integer division
query I rowsort label-6282
SELECT ALL - col2 DIV - col1 + - col0 AS col1 FROM tab2
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-6282
SELECT ALL - col2 / - col1 + - col0 AS col1 FROM tab2
----
-7
-77
-78

query I rowsort
SELECT ALL + col1 + col0 * + col2 AS col1 FROM tab2
----
2087
220
3019

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT col1 * - col0 AS col1 FROM tab2
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6287
SELECT ALL - col2 DIV + col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL - col2 / + col2 FROM tab1
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6288
SELECT + col1 DIV col0 - + col2 * - col0 AS col2 FROM tab0
----
37
7299
795

skipif mysql # not compatible
query I rowsort label-6288
SELECT + col1 / col0 - + col2 * - col0 AS col2 FROM tab0
----
37
7299
795

query I rowsort
SELECT DISTINCT - col2 * + col2 + - col1 - - tab2.col2 FROM tab2
----
-1423
-709
-733

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( col2 )
----

query I rowsort
SELECT ALL + tab2.col0 + tab2.col2 * - tab2.col0 + col2 FROM tab2
----
-155
-1924
-2885

query I rowsort
SELECT col1 * - col0 + col0 * col0 FROM tab0
----
-1488
-178
-2170

query I rowsort
SELECT - tab2.col0 * + col2 AS col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT + col0 * tab0.col1 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + col2 + col1 * - col2 * col2 + col1 AS col1 FROM tab0
----
-611711
-93535
1

query I rowsort
SELECT DISTINCT - col1 * + tab1.col0 * - col1 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT - col0 - + col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT - col0 - col0 * + col2 AS col2 FROM tab0
----
-70
-7387
-816

query I rowsort
SELECT tab0.col2 + + col0 FROM tab0 WHERE - col0 / - col2 <= NULL
----

query I rowsort
SELECT col2 * + col0 + - col0 AS col0 FROM tab2
----
182
1950
2923

query I rowsort
SELECT tab1.col2 + col1 FROM tab1
----
109
67
80

query I rowsort
SELECT ALL - col0 * col2 AS col2 FROM tab0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6303
SELECT - col0 DIV - col0 + - col1 FROM tab1
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-6303
SELECT - col0 / - col0 + - col1 FROM tab1
----
-12
-25
-9

query I rowsort
SELECT ALL + col1 + col1 * col1 * + tab2.col2 AS col1 FROM tab2
----
10999
25978
90565

query I rowsort
SELECT DISTINCT + col1 + tab1.col2 FROM tab1
----
109
67
80

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT col2 - + col1 AS col0 FROM tab1 WHERE ( NULL ) IN ( col1 )
----

query I rowsort
SELECT ALL - col1 * col1 AS col2 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT - tab2.col2 + col1 * col2 FROM tab2
----
1508
608
810

query I rowsort
SELECT DISTINCT - col2 - col0 AS col0 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT col2 * + col1 AS col2 FROM tab0
----
2838
7462
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 IN ( - col2 * col0 )
----

query I rowsort
SELECT - col2 + col0 AS col1 FROM tab2
----
-20
41
52

query I rowsort
SELECT ALL col1 + tab0.col2 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT + col2 * tab2.col2 + col2 AS col2 FROM tab2
----
1482
702
756

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NOT NULL NOT IN ( cor0.col0 )
----

query I rowsort
SELECT ALL + col0 * col0 * - col1 + col0 FROM tab0 AS cor0
----
-118790
-49512
-720722

onlyif mysql # use DIV operator for integer division
query I rowsort label-6318
SELECT col1 DIV + col1 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6318
SELECT col1 / + col1 AS col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6319
SELECT DISTINCT - col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT - col2 / - col0 AS col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + col0 - col0 * - col2 AS col1 FROM tab0
----
70
7387
816

query I rowsort
SELECT ALL - col1 + col2 AS col1 FROM tab2
----
-33
-4
21

query I rowsort
SELECT col0 + + col1 AS col2 FROM tab0
----
110
132
180

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6324
SELECT DISTINCT col1 - + col2 DIV col1 FROM tab1 cor0
----
24
5
6

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT col1 - + col2 / col1 FROM tab1 cor0
----
24
5
6

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col1 AS REAL ) FROM tab2
----
-17
-31
-59

query I rowsort
SELECT + ( + tab2.col0 + - col0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab1, tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL 63 FROM tab1
----
63
63
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-6329
SELECT ALL + 21 DIV + 28 col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6329
SELECT ALL + 21 / + 28 col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT tab1.col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - col1 * col2 + col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT 93 FROM tab2
----
93
93
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6333
SELECT DISTINCT col0 DIV - col0 + - col2 AS col1 FROM tab1
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT col0 / - col0 + - col2 AS col1 FROM tab1
----
-55
-58
-97

query I rowsort
SELECT DISTINCT col1 + - tab0.col1 * col2 FROM tab0
----
-2752
-7371
0

query I rowsort
SELECT col0 + + 17 * - col2 + col1 FROM tab1
----
-1539
-889
-895

query I rowsort
SELECT tab2.col0 * - 84 FROM tab2
----
-588
-6552
-6636

query I rowsort
SELECT - 9 FROM tab2, tab1 cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to cf5683051968b61a6305c2d5329cdea1

query I rowsort
SELECT ALL - + col0 + + 82 AS col2 FROM tab2 AS cor0
----
3
4
75

query I rowsort
SELECT + col2 * 4 FROM tab1
----
216
228
384

onlyif mysql # use DIV operator for integer division
query I rowsort label-6340
SELECT - col2 DIV 8 FROM tab0
----
-10
-4
0

skipif mysql # not compatible
query I rowsort label-6340
SELECT - col2 / 8 FROM tab0
----
-10
-4
0

query I rowsort
SELECT DISTINCT 84 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * + col2 + col2 col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - 46 FROM tab2 AS cor0
----
-46
-46
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * tab0.col2 col0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL ( - col1 ) - col1 * col2 AS col0 FROM tab1 cor0
----
-1261
-1430
-580

query I rowsort
SELECT + + ( + cor0.col2 ) + col1 * col0 AS col0 FROM tab0 cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT ( - 96 ) FROM tab1
----
-96

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1, tab1 AS cor1
----
3645 values hashing to 199388980dc5177ebebcfdbc0408ba02

query I rowsort
SELECT - + col0 * col2 - - col2 * cor0.col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6350
SELECT col1 DIV + col2 + col0 AS col1 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-6350
SELECT col1 / + col2 + col0 AS col1 FROM tab0 AS cor0
----
132
26
90

query I rowsort
SELECT - ( - cor0.col2 ) * cor0.col2 + ( 85 ) AS col1 FROM tab0 AS cor0
----
1174
6809
86

query I rowsort
SELECT - - 48 + col0 AS col1 FROM tab2 AS cor0
----
126
127
55

query I rowsort
SELECT - 27 + - cor0.col2 * - col2 FROM tab0 AS cor0
----
-26
1062
6697

query I rowsort
SELECT ALL - col1 * col2 - + col0 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT ALL + 50 FROM tab2
----
50
50
50

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6356
SELECT + CAST( - 85 + col2 AS SIGNED ) AS col0 FROM tab2
----
-47
-58
-59

skipif mysql # not compatible
query I rowsort label-6356
SELECT + CAST ( - 85 + col2 AS INTEGER ) AS col0 FROM tab2
----
-47
-58
-59

query I rowsort
SELECT col0 * - tab1.col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL cor1.col1 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT + col1 * + 2 FROM tab1
----
20
26
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6360
SELECT ALL - CAST( col1 AS SIGNED ) + col1 * 49 - col2 AS col1 FROM tab0
----
4095
4286
4655

skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL - CAST ( col1 AS INTEGER ) + col1 * 49 - col2 AS col1 FROM tab0
----
4095
4286
4655

query I rowsort
SELECT ALL cor0.col2 + - cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6362
SELECT + CAST( NULL AS SIGNED ) + col0 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6362
SELECT + CAST ( NULL AS INTEGER ) + col0 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - col2 - - col1 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT cor0.col0 FROM tab2, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

onlyif mysql # use DIV operator for integer division
query I rowsort label-6365
SELECT col0 + + col1 + 92 DIV + ( col0 ) FROM tab0 AS cor0
----
113
134
181

skipif mysql # not compatible
query I rowsort label-6365
SELECT col0 + + col1 + 92 / + ( col0 ) FROM tab0 AS cor0
----
113
134
181

query I rowsort
SELECT col1 + col0 + ( + 55 ) AS col2 FROM tab2 AS cor0
----
151
192
93

query I rowsort
SELECT DISTINCT + 16 AS col2 FROM tab2 cor0
----
16

query I rowsort
SELECT DISTINCT - - 99 AS col0 FROM tab2 AS cor0
----
99

query I rowsort
SELECT - 34 AS col2 FROM tab2 AS cor0
----
-34
-34
-34

query I rowsort
SELECT ALL col0 + - col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - 84 FROM tab2 AS cor0
----
-84
-84
-84

query I rowsort
SELECT col0 * col1 AS col0 FROM tab1 cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6373
SELECT col0 + cor0.col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6373
SELECT col0 + cor0.col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * col1 * 45 FROM tab0 AS cor0
----
-332820
-372645
-423405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 + col2 col1 FROM tab2 AS cor0
----
-38
-49
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-6376
SELECT ALL + cor0.col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL + cor0.col1 / + col1 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( ( + col1 ) * col2 ) col1 FROM tab0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col1 col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL - 79 + - cor0.col0 FROM tab2 cor0
----
-157
-158
-86

query I rowsort
SELECT ALL - - col1 * + col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6381
SELECT - 73 / - col0 + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6381
SELECT - 73 / - col0 + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + cor0.col1 * ( col2 ) * col0 AS col0 FROM tab2 AS cor0
----
119593
51017
5828

query I rowsort
SELECT + col1 * - col2 * col2 AS col0 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT - cor0.col2 * cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT col0 * col2 * - 54 AS col1 FROM tab1 cor0
----
-196992
-414720
-8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * col2 col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - + col1 * ( + col2 ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT + + cor0.col2 * + 7 FROM tab1 AS cor0
----
378
399
672

query I rowsort
SELECT cor0.col0 + - 10 FROM tab1 AS cor0
----
-7
54
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6390
SELECT - ( + ( - col0 ) ) DIV col0 + + 22 * col1 FROM tab1 AS cor0
----
221
287
573

skipif mysql # not compatible
query I rowsort label-6390
SELECT - ( + ( - col0 ) ) / col0 + + 22 * col1 FROM tab1 AS cor0
----
221
287
573

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 86 + + 65 col0 FROM tab1 AS cor0
----
-21
-21
-21

query I rowsort
SELECT DISTINCT + + cor0.col2 * + col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT 7 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to bd991c690468eea3ef45a96817ca3617

query I rowsort
SELECT ALL 3 * + tab1.col0 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5b7ab77c4282e0e2c74b780a822f0b5e

query I rowsort
SELECT DISTINCT 9 + 95 FROM tab0, tab0 AS cor0
----
104

query I rowsort
SELECT + col0 * 2 - + col1 * col1 AS col2 FROM tab2 AS cor0
----
-131
-3325
-947

query I rowsort
SELECT DISTINCT 10 - col1 AS col2 FROM tab2
----
-21
-49
-7

query I rowsort
SELECT DISTINCT col0 * 16 + 78 FROM tab2 cor0
----
1326
1342
190

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6399
SELECT - + col1 + + CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-6399
SELECT - + col1 + + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT ALL col2 + + ( + 7 + + cor0.col0 ) AS col0 FROM tab1 AS cor0
----
128
183
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-6401
SELECT - col2 + col1 DIV - col0 FROM tab0 cor0
----
-3
-36
-83

skipif mysql # not compatible
query I rowsort label-6401
SELECT - col2 + col1 / - col0 FROM tab0 cor0
----
-3
-36
-83

query I rowsort
SELECT DISTINCT - cor0.col0 + - cor0.col0 AS col2 FROM tab2 cor0
----
-14
-156
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + tab1.col0 col1 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT ALL col1 * col2 - col1 FROM tab0
----
0
2752
7371

query I rowsort
SELECT ALL - 71 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 col2 FROM tab2 cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 + + col0 col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT - col2 * - 3 + col1 FROM tab2 AS cor0
----
112
131
137

query I rowsort
SELECT + - col2 * ( col1 ) + - col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( 39 ) col1 FROM tab2 AS cor0
----
1014
1053
1482

query I rowsort
SELECT col0 + + col2 * col1 AS col0 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-6412
SELECT + col0 + col0 DIV - 93 AS col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-6412
SELECT + col0 + col0 / - 93 AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - col2 * ( 79 ) + col0 FROM tab0 cor0
----
-2583
-44
-6389

onlyif mysql # use DIV operator for integer division
query I rowsort label-6414
SELECT DISTINCT + col0 + 82 DIV - col0 FROM tab1 AS cor0
----
-24
63
79

skipif mysql # not compatible
query I rowsort label-6414
SELECT DISTINCT + col0 + 82 / - col0 FROM tab1 AS cor0
----
-24
63
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6415
SELECT ALL col2 DIV + col1 col2 FROM tab2 cor0
----
0
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL col2 / + col1 col2 FROM tab2 cor0
----
0
0
2

query I rowsort
SELECT + col0 * - ( cor0.col1 ) + col0 * + cor0.col0 FROM tab0 AS cor0
----
-1488
-178
-2170

query I rowsort
SELECT ALL + - col0 + + 7 * - 28 FROM tab0 AS cor0
----
-220
-231
-285

query I rowsort
SELECT DISTINCT - - col0 * + col2 + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT + 89 * cor0.col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
267
5696
7120

query I rowsort
SELECT ALL - cor0.col1 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT ALL 90 FROM tab0, tab1 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT tab2.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521

query I rowsort
SELECT ALL ( 5 ) * - tab2.col2 AS col2 FROM tab2
----
-130
-135
-190

onlyif mysql # use DIV operator for integer division
query I rowsort label-6425
SELECT - col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-6425
SELECT - col1 / + col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT ALL - ( - col1 ) * col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + col1 + - col1 * + col2 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT + ( col2 ) * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - + col0 + + col0 * - col1 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT - ( + 54 ) AS col1 FROM tab2 AS cor0
----
-54
-54
-54

onlyif mysql # use DIV operator for integer division
query I rowsort label-6431
SELECT - - col1 DIV - 75 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6431
SELECT - - col1 / - 75 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( - col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT + col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6434
SELECT ALL + col1 DIV + col0 + + ( col0 ) FROM tab2
----
11
78
79

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL + col1 / + col0 + + ( col0 ) FROM tab2
----
11
78
79

query I rowsort
SELECT ALL - + col1 + col0 + + ( col1 ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - + col1 + col2 AS col1 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - - cor0.col0 + + col2 * - 42 + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-2343
-2970
-4992

query I rowsort
SELECT - ( - col0 ) * + ( col1 ) + col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 col1 FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT + 82 * col0 AS col2 FROM tab0 AS cor0
----
1968
2870
7298

query I rowsort
SELECT - col0 * - col0 * - ( + col0 ) FROM tab2 AS cor0
----
-343
-474552
-493039

query I rowsort
SELECT - 76 * col2 FROM tab2 AS cor0
----
-1976
-2052
-2888

onlyif mysql # use DIV operator for integer division
query I rowsort label-6443
SELECT DISTINCT col2 DIV col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6443
SELECT DISTINCT col2 / col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + + 97 FROM tab2 cor0
----
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6446
SELECT ALL - cor0.col0 + - col0 DIV + col1 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL - cor0.col0 + - col0 / + col1 FROM tab0 AS cor0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6447
SELECT DISTINCT col0 DIV col0 AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6447
SELECT DISTINCT col0 / col0 AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT + ( col2 ) * - 69 FROM tab0 AS cor0
----
-2277
-5658
-69

query I rowsort
SELECT DISTINCT col1 + col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT ALL - + col2 * col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - + col2 + col1 + col2 AS col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT col2 * 39 FROM tab0 AS cor0
----
1287
3198
39

query I rowsort
SELECT + + col2 + col1 AS col2 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6454
SELECT + col0 + + CAST( NULL AS DECIMAL ) * ( col2 + - 76 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6454
SELECT + col0 + + CAST ( NULL AS REAL ) * ( col2 + - 76 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * ( - cor0.col0 + + cor0.col1 ) FROM tab2 AS cor0
----
-1482
-4898
168

query I rowsort
SELECT ALL + col0 * - col1 * col0 + - col1 AS col0 FROM tab1 cor0
----
-260
-40970
-83213

query I rowsort
SELECT DISTINCT col2 * + ( + col0 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - + col0 + - 80 AS col0 FROM tab1 AS cor0
----
-144
-160
-83

query I rowsort
SELECT - cor0.col0 * 90 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 0e5475309cbaf97e72937591f14389cb

query I rowsort
SELECT + ( - ( - col0 ) ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + - col2 + + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1344
-1458
-627

query I rowsort
SELECT DISTINCT - 61 FROM tab0 AS cor0
----
-61

query I rowsort
SELECT DISTINCT 63 * + col2 + col2 AS col0 FROM tab0 AS cor0
----
2112
5248
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6465
SELECT - CAST( + ( + col2 ) AS SIGNED ) * + 59 + - col0 FROM tab1 AS cor0
----
-3189
-3427
-5744

skipif mysql # not compatible
query I rowsort label-6465
SELECT - CAST ( + ( + col2 ) AS INTEGER ) * + 59 + - col0 FROM tab1 AS cor0
----
-3189
-3427
-5744

query I rowsort
SELECT DISTINCT + col1 * col2 FROM tab0
----
2838
7462
97

query I rowsort
SELECT col1 + + col1 * 94 AS col0 FROM tab1 AS cor0
----
1235
2470
950

query I rowsort
SELECT - + 73 * + col2 FROM tab2 AS cor0
----
-1898
-1971
-2774

query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae

onlyif mysql # use DIV operator for integer division
query I rowsort label-6470
SELECT ALL + - 31 DIV col0 + - col1 * - col2 FROM tab0 AS cor0
----
2837
7462
97

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL + - 31 / col0 + - col1 * - col2 FROM tab0 AS cor0
----
2837
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 52 * tab1.col2 col1 FROM tab1
----
2862
3021
5088

query I rowsort
SELECT ALL - ( - 96 ) FROM tab1
----
96
96
96

query I rowsort
SELECT - col2 + - cor0.col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT - col0 + + col1 * - col1 * - col2 + + 20 * col1 AS col2 FROM tab2 AS cor0
----
11243
26560
91608

query I rowsort
SELECT ALL 51 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT DISTINCT + 57 FROM tab2, tab0 AS cor0
----
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6477
SELECT - col0 * 70 DIV - col0 + col2 - - 82 * - col0 AS col0 FROM tab0
----
-1865
-2799
-7146

skipif mysql # not compatible
query I rowsort label-6477
SELECT - col0 * 70 / - col0 + col2 - - 82 * - col0 AS col0 FROM tab0
----
-1865
-2799
-7146

onlyif mysql # use DIV operator for integer division
query I rowsort label-6478
SELECT cor0.col1 * col0 + cor0.col2 DIV col2 AS col1 FROM tab0 AS cor0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-6478
SELECT cor0.col1 * col0 + cor0.col2 / col2 AS col1 FROM tab0 AS cor0
----
2065
3396
8100

query I rowsort
SELECT + + cor0.col1 + col0 * col1 AS col1 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT col2 * - 41 FROM tab1 AS cor0
----
-2214
-2337
-3936

query I rowsort
SELECT + cor0.col2 * - col1 * col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

onlyif mysql # use DIV operator for integer division
query I rowsort label-6482
SELECT + cor0.col0 DIV - 83 - - col1 DIV col2 FROM tab0 AS cor0
----
0
2
97

skipif mysql # not compatible
query I rowsort label-6482
SELECT + cor0.col0 / - 83 - - col1 / col2 FROM tab0 AS cor0
----
0
2
97

query I rowsort
SELECT - col1 * 77 AS col2 FROM tab1 AS cor0
----
-1001
-2002
-770

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6484
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + col1 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6485
SELECT + col2 DIV + col1 + col0 + col1 * - col0 col0 FROM tab2 AS cor0
----
-1262
-210
-4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6485
SELECT + col2 / + col1 + col0 + col1 * - col0 col0 FROM tab2 AS cor0
----
-1262
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-6486
SELECT CAST( col0 AS SIGNED ) * col1 + ( 98 ) DIV col0 FROM tab0 AS cor0
----
2068
3397
8100

skipif mysql # not compatible
query I rowsort label-6486
SELECT CAST ( col0 AS INTEGER ) * col1 + ( 98 ) / col0 FROM tab0 AS cor0
----
2068
3397
8100

query I rowsort
SELECT ALL 48 FROM tab0, tab1 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query I rowsort
SELECT + col0 * + col2 * col2 AS col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT 85 AS col1 FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT + cor0.col0 + - cor1.col1 FROM tab2, tab0 cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to 32ef1907b75f5bdd86c915307bfbc4c3

onlyif mysql # use DIV operator for integer division
query I rowsort label-6491
SELECT ALL + col2 DIV + col2 col1 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL + col2 / + col2 col1 FROM tab0
----
1
1
1

query I rowsort
SELECT tab1.col2 AS col2 FROM tab1, tab1 cor0, tab2 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT col1 * col0 * - ( col1 ) AS col2 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT ALL - tab0.col2 + - col0 * - ( + col0 ) AS col0 FROM tab0
----
1224
543
7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-6495
SELECT + col0 DIV col1 col2 FROM tab2
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6495
SELECT + col0 / col1 col2 FROM tab2
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6496
SELECT col1 DIV + col0 AS col2 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6496
SELECT col1 / + col0 AS col2 FROM tab1
----
0
0
8

query I rowsort
SELECT DISTINCT + cor0.col0 + + 57 AS col2 FROM tab1 AS cor0
----
121
137
60

query I rowsort
SELECT DISTINCT cor0.col0 + + col2 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT - ( col2 ) AS col1 FROM tab1
----
-54
-57
-96

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 76de18c5bf2cf2620e1f411d7bde86e7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + 88 col1 FROM tab2 AS cor0
----
10
81
9

query I rowsort
SELECT ALL + tab0.col0 + col2 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-6503
SELECT ALL tab1.col0 DIV + col1 + + col2 * col0 AS col0 FROM tab1
----
162
3654
7686

skipif mysql # not compatible
query I rowsort label-6503
SELECT ALL tab1.col0 / + col1 + + col2 * col0 AS col0 FROM tab1
----
162
3654
7686

query I rowsort
SELECT ALL col1 + - col2 AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT col2 - + col0 FROM tab1
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-6506
SELECT ALL + tab1.col1 * - tab1.col2 + + col0 - - col1 DIV ( + col2 ) FROM tab1
----
-1168
-1401
-506

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL + tab1.col1 * - tab1.col2 + + col0 - - col1 / ( + col2 ) FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT ALL - col0 + 6 - + col1 AS col1 FROM tab2
----
-131
-32
-90

query I rowsort
SELECT col1 + col0 * cor0.col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL - - col0 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT col1 - ( col1 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - cor0.col1 - ( col2 * + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-1175
-6815
-98

query I rowsort
SELECT col2 + 27 + ( - col0 + 99 ) * 29 FROM tab2 AS cor0
----
2722
645
662

onlyif mysql # use DIV operator for integer division
query I rowsort label-6513
SELECT DISTINCT + col2 DIV col0 FROM tab1 cor0
----
0
1
18

skipif mysql # not compatible
query I rowsort label-6513
SELECT DISTINCT + col2 / col0 FROM tab1 cor0
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + + 9 col2 FROM tab1 AS cor0
----
-153
-3639
-7671

query I rowsort
SELECT 80 * + col0 - col1 AS col2 FROM tab0
----
1834
2703
7029

onlyif mysql # use DIV operator for integer division
query I rowsort label-6516
SELECT + ( - col2 ) DIV + col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6516
SELECT + ( - col2 ) / + col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + col1 * - ( col2 ) + + cor0.col0 + col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-2022
-27
-75

query I rowsort
SELECT DISTINCT + 25 - cor0.col1 FROM tab1, tab2 AS cor0
----
-34
-6
8

query I rowsort
SELECT ALL ( - col2 ) + col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT 92 + - ( col2 ) * 65 + - 86 AS col0 FROM tab1
----
-3504
-3699
-6234

query I rowsort
SELECT + - col0 + + col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - 23 AS col1 FROM tab1 AS cor0
----
23
23
23

query I rowsort
SELECT - + ( col2 ) * 17 FROM tab0 AS cor0
----
-1394
-17
-561

query I rowsort
SELECT col0 * - col0 * col0 FROM tab1 AS cor0
----
-262144
-27
-512000

query I rowsort
SELECT DISTINCT - ( + col0 ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + col0 + - col1 * 62 FROM tab2 AS cor0
----
-1915
-3580
-975

query I rowsort
SELECT ALL - 5 AS col1 FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT - 71 * col1 AS col2 FROM tab0 AS cor0
----
-6106
-6461
-6887

query I rowsort
SELECT - + col2 + col0 * ( - 57 ) AS col0 FROM tab1 AS cor0
----
-225
-3705
-4656

query I rowsort
SELECT ALL - 70 - col0 * col2 AS col2 FROM tab0 AS cor0
----
-105
-7368
-862

query I rowsort
SELECT - 72 FROM tab1 AS cor0
----
-72
-72
-72

query I rowsort
SELECT ALL + + 54 * col0 + col2 AS col2 FROM tab1 AS cor0
----
216
3513
4416

query I rowsort
SELECT DISTINCT 23 * - col1 FROM tab1 AS cor0
----
-230
-299
-598

query I rowsort
SELECT - 8 * col0 AS col2 FROM tab1 AS cor0
----
-24
-512
-640

onlyif mysql # use DIV operator for integer division
query I rowsort label-6535
SELECT DISTINCT - col0 * col0 DIV - 33 AS col1 FROM tab0 AS cor0
----
17
240
37

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT - col0 * col0 / - 33 AS col1 FROM tab0 AS cor0
----
17
240
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6536
SELECT + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6536
SELECT + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - ( - 62 ) * col1 FROM tab0 cor0
----
5332
5642
6014

query I rowsort
SELECT DISTINCT col0 + 25 * col1 FROM tab2 AS cor0
----
1553
504
782

query I rowsort
SELECT ALL - 67 FROM tab2 AS cor0
----
-67
-67
-67

query I rowsort
SELECT cor1.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT 13 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT 99 FROM tab0, tab2 cor0
----
99

query I rowsort
SELECT ALL ( 3 ) AS col0 FROM tab0 cor0
----
3
3
3

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab0 cor1, tab2, tab1 AS cor2
----
3645 values hashing to b2cff03af5bc7306c5e3322cc78563c1

query I rowsort
SELECT ALL - col0 * - col2 * + col1 AS col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - 20 FROM tab0, tab1 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to 3d45fa4e6631691e5f0e0ca86982e9c2

query I rowsort
SELECT + + col0 * + col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT - col2 * + 88 + col1 AS col1 FROM tab2 AS cor0
----
-2229
-2345
-3327

onlyif mysql # use DIV operator for integer division
query I rowsort label-6550
SELECT - + cor0.col1 + col1 DIV + ( col0 ) FROM tab0 cor0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-6550
SELECT - + cor0.col1 + col1 / + ( col0 ) FROM tab0 cor0
----
-83
-90
-95

query I rowsort
SELECT DISTINCT + 10 + col0 - - col2 FROM tab1
----
131
186
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6552
SELECT col1 + + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6552
SELECT col1 + + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + col1 * tab0.col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT ALL col2 + 85 * + col1 - + col0 AS col1 FROM tab2
----
1404
2655
4963

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 * + col2 ) + 45 col2 FROM tab2
----
1579
691
882

query I rowsort
SELECT + - col0 * col2 - col1 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT - 9 * col2 + 17 FROM tab0 AS cor0
----
-280
-721
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6558
SELECT col1 DIV col2 + - 46 FROM tab1 AS cor0
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-6558
SELECT col1 / col2 + - 46 FROM tab1 AS cor0
----
-46
-46
-46

onlyif mysql # use DIV operator for integer division
query I rowsort label-6559
SELECT tab0.col2 DIV tab0.col1 + - tab0.col2 * + col0 FROM tab0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-6559
SELECT tab0.col2 / tab0.col1 + - tab0.col2 * + col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT - 70 FROM tab1, tab0 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6561
SELECT ALL CAST( NULL AS SIGNED ) + tab0.col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL CAST ( NULL AS INTEGER ) + tab0.col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 56 AS col1 FROM tab1, tab0 cor0
----
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6563
SELECT CAST( NULL AS SIGNED ) + col1 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6563
SELECT CAST ( NULL AS INTEGER ) + col1 * col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col2 col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + - cor0.col1 + + col2 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - col2 * 22 AS col2 FROM tab2 AS cor0
----
-572
-594
-836

query I rowsort
SELECT - + col1 + - 75 FROM tab1 AS cor0
----
-101
-85
-88

skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 * CAST ( col2 AS REAL ) + col2 AS col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT - col0 * - col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT + cor0.col1 + ( - ( col2 ) ) * - 90 FROM tab1 AS cor0
----
4886
5140
8653

query I rowsort
SELECT DISTINCT + col0 + col0 * - 47 * col2 AS col2 FROM tab0 AS cor0
----
-1610
-342917
-37200

query I rowsort
SELECT ALL - + col1 * col1 + 85 FROM tab2 AS cor0
----
-204
-3396
-876

onlyif mysql # use DIV operator for integer division
query I rowsort label-6573
SELECT col1 + col2 DIV - ( - col0 * + col2 ) AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6573
SELECT col1 + col2 / - ( - col0 * + col2 ) AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT col2 * 90 + - cor0.col1 FROM tab0 AS cor0
----
-7
2884
7289

query I rowsort
SELECT DISTINCT + - col0 + - 57 FROM tab2 AS cor0
----
-135
-136
-64

query I rowsort
SELECT DISTINCT col2 * - col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT + col2 * - 89 FROM tab2 AS cor0
----
-2314
-2403
-3382

onlyif mysql # use DIV operator for integer division
query I rowsort label-6578
SELECT DISTINCT + - col2 + - col0 * cor0.col2 DIV cor0.col0 FROM tab2 AS cor0
----
-52
-54
-76

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT + - col2 + - col0 * cor0.col2 / cor0.col0 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT ALL col2 + col1 * col1 AS col0 FROM tab1
----
157
265
730

query I rowsort
SELECT ALL + col0 + col0 AS col2 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
7
78
79

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to 0cc433e09ad9e61562b7840dd1db6f57

skipif mysql # not compatible
query I rowsort
SELECT - col2 + CAST ( tab2.col1 * col1 AS REAL ) AS col1 FROM tab2
----
251
3455
934

query I rowsort
SELECT ALL col0 * col1 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col1 * cor0.col0 + - cor0.col0 + + col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT ALL - col2 * col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT - col1 + - col0 AS col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT - col2 + - col2 AS col2 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT - - ( + col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - col0 + 6 * + col0 FROM tab1 AS cor0
----
15
320
400

query I rowsort
SELECT ALL - 65 * + tab0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d19d651fdf56c3e54f2a946fd0aebb1b

query I rowsort
SELECT DISTINCT tab2.col2 * col0 * - tab2.col1 AS col1 FROM tab2
----
-119652
-51034
-5859

query I rowsort
SELECT + col1 * + 19 FROM tab2
----
1121
323
589

query I rowsort
SELECT DISTINCT 97 FROM tab0, tab1 AS cor0
----
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6595
SELECT + CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6595
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6596
SELECT ALL + + col0 DIV col2 + - col2 FROM tab1 AS cor0
----
-54
-56
-96

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL + + col0 / col2 + - col2 FROM tab1 AS cor0
----
-54
-56
-96

query I rowsort
SELECT DISTINCT 64 + col0 FROM tab1 cor0
----
128
144
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6598
SELECT - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6598
SELECT - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL + col2 + cor0.col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT - col1 * - col1 AS col0 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT tab0.col0 * + 32 * 34 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to b147c6c289d42c14953ef1e6ae41fdf3

query I rowsort
SELECT DISTINCT 32 - cor0.col0 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-32
-48
29

query I rowsort
SELECT DISTINCT ( tab2.col1 ) + col1 FROM tab2
----
118
34
62

query I rowsort
SELECT + cor0.col2 * col0 + col1 * ( col1 ) FROM tab2 AS cor0
----
1150
3291
5509

query I rowsort
SELECT ALL col0 + + col1 AS col1 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT cor0.col1 + - col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ( + col1 ) * + cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT 57 - col1 FROM tab2 AS cor0
----
-2
26
40

query I rowsort
SELECT ALL - 58 * col0 AS col2 FROM tab0 AS cor0
----
-1392
-2030
-5162

query I rowsort
SELECT + 65 + - col2 AS col2 FROM tab2 AS cor0
----
27
38
39

query I rowsort
SELECT - - col1 - + col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT 51 * col2 FROM tab1 AS cor0
----
2754
2907
4896

onlyif mysql # use DIV operator for integer division
query I rowsort label-6613
SELECT DISTINCT col0 + cor0.col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-6613
SELECT DISTINCT col0 + cor0.col1 / - col1 AS col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT - cor0.col2 + ( + col2 ) AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6615
SELECT DISTINCT - - col1 / CAST( NULL AS SIGNED ) + cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6615
SELECT DISTINCT - - col1 / CAST ( NULL AS INTEGER ) + cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col2 * col1 + + 11 * col2 AS col1 FROM tab2 AS cor0
----
1064
1134
1820

onlyif mysql # use DIV operator for integer division
query I rowsort label-6617
SELECT ALL + col1 - + ( + col0 + + cor0.col2 ) DIV + ( + col1 ) FROM tab0 AS cor0
----
86
90
97

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL + col1 - + ( + col0 + + cor0.col2 ) / + ( + col1 ) FROM tab0 AS cor0
----
86
90
97

query I rowsort
SELECT + col0 + 35 AS col2 FROM tab1 AS cor0
----
115
38
99

query I rowsort
SELECT ALL + col2 * + 31 FROM tab1 cor0
----
1674
1767
2976

query I rowsort
SELECT DISTINCT + col0 * - col2 + - 77 FROM tab1 AS cor0
----
-239
-3725
-7757

query I rowsort
SELECT DISTINCT 87 * col0 + - col2 * col2 FROM tab2
----
-120
5429
6110

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6622
SELECT - col0 * - CAST( NULL AS SIGNED ) + ( col1 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6622
SELECT - col0 * - CAST ( NULL AS INTEGER ) + ( col1 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6623
SELECT DISTINCT CAST( + col2 + - col1 AS SIGNED ) FROM tab0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-6623
SELECT DISTINCT CAST ( + col2 + - col1 AS INTEGER ) FROM tab0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6624
SELECT - col2 + col1 DIV col1 AS col0 FROM tab2 AS cor0
----
-25
-26
-37

skipif mysql # not compatible
query I rowsort label-6624
SELECT - col2 + col1 / col1 AS col0 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT ( - col2 ) + - col0 * ( + col1 ) AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT - 65 * col0 FROM tab2 cor0
----
-455
-5070
-5135

query I rowsort
SELECT ALL tab2.col0 + - col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - - 82 AS col2 FROM tab2 AS cor0
----
82
82
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6629
SELECT CAST( + 53 AS SIGNED ) col0 FROM tab1
----
53
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6629
SELECT CAST ( + 53 AS INTEGER ) col0 FROM tab1
----
53
53
53

query I rowsort
SELECT col2 * - col1 * - ( + col1 ) + - col1 AS col2 FROM tab0 cor0
----
243982
678951
9312

query I rowsort
SELECT col2 + + col2 - + col1 FROM tab0 AS cor0
----
-20
-95
73

query I rowsort
SELECT DISTINCT + col2 * - col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT + cor0.col2 * 98 FROM tab2 AS cor0
----
2548
2646
3724

query I rowsort
SELECT + ( 86 ) AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6635
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1, tab0, tab0 AS cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1, tab0, tab0 AS cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT DISTINCT - col2 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6637
SELECT col1 DIV 55 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6637
SELECT col1 / 55 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + 91 FROM tab2 AS cor0
----
117
118
129

query I rowsort
SELECT - + 96 AS col0 FROM tab0 AS cor0
----
-96
-96
-96

query I rowsort
SELECT + 20 + 55 * - col2 * col1 AS col2 FROM tab0 AS cor0
----
-156070
-410390
-5315

query I rowsort
SELECT ALL tab1.col2 * + ( + tab1.col2 ) AS col0 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT col1 * ( ( + col2 ) ) AS col2 FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 col1 FROM tab1, tab0 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6644
SELECT DISTINCT + col2 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT + col2 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - + ( col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT ALL - col2 + - 68 * + col1 AS col1 FROM tab0 AS cor0
----
-5881
-6270
-6597

onlyif mysql # use DIV operator for integer division
query I rowsort label-6647
SELECT - ( + 56 ) DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-6647
SELECT - ( + 56 ) / cor0.col1 AS col1 FROM tab2 AS cor0
----
-1
-3
0

query I rowsort
SELECT + 9 * col0 FROM tab2 AS cor0
----
63
702
711

query I rowsort
SELECT ALL + 65 AS col0 FROM tab1 AS cor0
----
65
65
65

query I rowsort
SELECT ALL 36 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT ALL ( col1 ) + - cor0.col1 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6652
SELECT DISTINCT - col0 * col1 DIV cor0.col1 + col0 + cor0.col0 col2 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT - col0 * col1 / cor0.col1 + col0 + cor0.col0 col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL - col2 + - cor0.col1 * + col1 AS col0 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT + ( - 99 + col2 ) FROM tab2
----
-61
-72
-73

query I rowsort
SELECT + col1 + 23 FROM tab1
----
33
36
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( tab0.col2 ) col1 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL - - col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 * col1 + - col2 col2 FROM tab1
----
-1224
-507
-681

query I rowsort
SELECT DISTINCT + 16 * 89 FROM tab0
----
1424

query I rowsort
SELECT + col2 + 75 AS col2 FROM tab1
----
129
132
171

query I rowsort
SELECT 21 + 67 * col2 AS col1 FROM tab1
----
3639
3840
6453

query I rowsort
SELECT - col1 - - tab2.col0 FROM tab2
----
-24
19
62

query I rowsort
SELECT DISTINCT - 31 FROM tab2
----
-31

query I rowsort
SELECT DISTINCT - 73 * col1 FROM tab2
----
-1241
-2263
-4307

query I rowsort
SELECT DISTINCT - col2 * cor0.col1 * col1 + - cor0.col2 FROM tab0 AS cor0
----
-244101
-679124
-9410

query I rowsort
SELECT - col0 * + 81 + cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
-1716
-350
-5056

query I rowsort
SELECT DISTINCT col0 + col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL cor0.col2 * - 8 - + 50 * + col1 AS col1 FROM tab2 AS cor0
----
-1154
-1766
-3158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 + ( col2 ) col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT - col2 * 50 AS col0 FROM tab0 AS cor0
----
-1650
-4100
-50

query I rowsort
SELECT ALL 60 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

onlyif mysql # use DIV operator for integer division
query I rowsort label-6672
SELECT ALL - 98 - tab0.col2 DIV - 23 AS col1 FROM tab0
----
-95
-97
-98

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL - 98 - tab0.col2 / - 23 AS col1 FROM tab0
----
-95
-97
-98

query I rowsort
SELECT + col1 * tab1.col2 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT col1 + col2 * - col2 * + tab2.col0 FROM tab2
----
-114059
-5072
-52669

onlyif mysql # use DIV operator for integer division
query I rowsort label-6675
SELECT DISTINCT - col2 DIV + 29 AS col2 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT - col2 / + 29 AS col2 FROM tab0
----
-1
-2
0

query I rowsort
SELECT - 62 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d2579f9395350eda865ff3a2d38a74f6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6677
SELECT DISTINCT col2 + col1 DIV - col2 AS col1 FROM tab0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT col2 + col1 / - col2 AS col1 FROM tab0
----
-96
31
81

query I rowsort
SELECT ALL + col0 * 95 AS col2 FROM tab2 AS cor0
----
665
7410
7505

query I rowsort
SELECT + col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL cor0.col0 + 1 * - col2 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6681
SELECT DISTINCT + col0 DIV - 57 + col0 FROM tab1 cor0
----
3
63
79

skipif mysql # not compatible
query I rowsort label-6681
SELECT DISTINCT + col0 / - 57 + col0 FROM tab1 cor0
----
3
63
79

query I rowsort
SELECT col0 * col2 + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + - col0 + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT 35 AS col2 FROM tab2
----
35
35
35

query I rowsort
SELECT 9 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07

query I rowsort
SELECT DISTINCT - + tab2.col1 + + tab2.col1 FROM tab2, tab0, tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6687
SELECT + + 2 DIV col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6687
SELECT + + 2 / col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + cor0.col1 * - col1 + 77 FROM tab1 AS cor0
----
-23
-599
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-6689
SELECT col0 DIV col0 + col1 * + col2 AS col0 FROM tab0 AS cor0
----
2839
7463
98

skipif mysql # not compatible
query I rowsort label-6689
SELECT col0 / col0 + col1 * + col2 AS col0 FROM tab0 AS cor0
----
2839
7463
98

query I rowsort
SELECT ALL - col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT + col1 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col0 * - col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + - col0 * ( col1 ) + col0 FROM tab1 cor0
----
-576
-75
-960

query I rowsort
SELECT + + col0 * - ( - 63 ) FROM tab0 AS cor0
----
1512
2205
5607

query I rowsort
SELECT ALL + - cor0.col0 + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL - col2 + + ( col1 * + col2 ) + 47 FROM tab1 cor0
----
1199
1397
560

query I rowsort
SELECT ALL + col2 * col1 - + col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT - col2 * - col0 + - 41 FROM tab0
----
-6
7257
751

query I rowsort
SELECT col0 + - col0 * - ( - col1 ) AS col1 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT - ( + 44 ) + - cor0.col0 + + col2 FROM tab0 AS cor0
----
-35
-51
-78

query I rowsort
SELECT ALL + - cor0.col1 * 85 * cor0.col1 FROM tab2 AS cor0
----
-24565
-295885
-81685

onlyif mysql # use DIV operator for integer division
query I rowsort label-6702
SELECT DISTINCT - + cor0.col1 DIV + col0 FROM tab1 cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-6702
SELECT DISTINCT - + cor0.col1 / + col0 FROM tab1 cor0
----
-8
0

query I rowsort
SELECT ALL + + col2 + col1 * - col0 AS col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT 58 + col0 * cor0.col2 * - col1 + + col1 AS col2 FROM tab2 AS cor0
----
-119535
-50959
-5770

query I rowsort
SELECT DISTINCT + col0 + - cor0.col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL + - 42 + - col2 FROM tab2 cor0
----
-68
-69
-80

query I rowsort
SELECT + + 71 AS col0 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT ALL + + 85 AS col2 FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT - cor0.col1 + 26 * col2 + col1 FROM tab2 cor0
----
676
702
988

query I rowsort
SELECT DISTINCT - + 5 FROM tab1 cor0
----
-5

query I rowsort
SELECT DISTINCT col2 * 32 FROM tab1 AS cor0
----
1728
1824
3072

query I rowsort
SELECT ALL - + cor0.col2 + - ( col1 ) * 15 FROM tab2 AS cor0
----
-293
-492
-911

query I rowsort
SELECT ALL - 2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # use DIV operator for integer division
query I rowsort label-6714
SELECT col0 DIV 54 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6714
SELECT col0 / 54 FROM tab2
----
0
1
1

query I rowsort
SELECT tab0.col2 * 69 + - col2 + + tab0.col2 * - 89 AS col0 FROM tab0
----
-1722
-21
-693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6716
SELECT ALL + cor0.col0 + - col2 * col2 + CAST( NULL AS DECIMAL ) / - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL + cor0.col0 + - col2 * col2 + CAST ( NULL AS REAL ) / - cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * 19 AS col2 FROM tab1 cor0
----
-1026
-1083
-1824

query I rowsort
SELECT ALL col0 * col2 + + col1 * 66 + - cor0.col1 FROM tab2 AS cor0
----
2204
4107
5863

query I rowsort
SELECT - + 66 FROM tab1 AS cor0
----
-66
-66
-66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6720
SELECT - - CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6720
SELECT - - CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + + col0 * col0 AS col2 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT + - 71 AS col0 FROM tab2 AS cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT - + 97 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT + ( - col1 ) - col2 AS col0 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col1 FROM tab1, tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - + col0 * col2 + + col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - cor0.col0 col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT ( ( - col1 ) ) + + col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT col0 + + ( col1 ) FROM tab1
----
29
74
93

query I rowsort
SELECT - col0 * col0 + 8 FROM tab0 cor0
----
-1217
-568
-7913

query I rowsort
SELECT 12 + 69 * - col2 + + 35 FROM tab0
----
-22
-2230
-5611

query I rowsort
SELECT 58 * - col0 AS col0 FROM tab1
----
-174
-3712
-4640

onlyif mysql # use DIV operator for integer division
query I rowsort label-6733
SELECT ALL ( col2 ) * ( col2 ) DIV cor0.col1 + - ( - cor0.col0 ) AS col1 FROM tab2 AS cor0
----
163
30
89

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL ( col2 ) * ( col2 ) / cor0.col1 + - ( - cor0.col0 ) AS col1 FROM tab2 AS cor0
----
163
30
89

query I rowsort
SELECT ALL + - col0 * - col2 - + 54 FROM tab1 AS cor0
----
108
3594
7626

query I rowsort
SELECT ALL + col2 * col2 + - ( 83 ) AS col1 FROM tab1 AS cor0
----
2833
3166
9133

query I rowsort
SELECT ALL - cor0.col0 * - col0 + + col0 AS col2 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT - col2 * - col2 + - 43 * 9 FROM tab2 AS cor0
----
1057
289
342

query I rowsort
SELECT ( - 23 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT - col2 + ( + 77 ) AS col0 FROM tab0
----
-5
44
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1, tab0 AS cor2, tab1 AS cor3
----
243 values hashing to d130086b8d8a18a3ac49ce2321d35e00

query I rowsort
SELECT - col0 + + col2 * + 32 AS col1 FROM tab2 AS cor0
----
1137
754
857

query I rowsort
SELECT ALL - - col2 + - col0 * - cor0.col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT + col2 * + col2 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6744
SELECT tab0.col0 DIV + col0 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6744
SELECT tab0.col0 / + col0 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT + - 35 * 44 + + col2 AS col1 FROM tab0 AS cor0
----
-1458
-1507
-1539

query I rowsort
SELECT ALL - cor0.col0 AS col0 FROM tab1 cor0
----
-3
-64
-80

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-6748
SELECT col0 DIV tab1.col0 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6748
SELECT col0 / tab1.col0 AS col2 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT ( col0 ) AS col1 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT + ( - col0 ) * col0 - col1 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT cor0.col2 + col1 AS col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT col1 - + col1 * col0 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-6753
SELECT DISTINCT - + CAST( col1 AS SIGNED ) + - col0 DIV + 44 AS col0 FROM tab0 AS cor0
----
-86
-93
-97

skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT - + CAST ( col1 AS INTEGER ) + - col0 / + 44 AS col0 FROM tab0 AS cor0
----
-86
-93
-97

query I rowsort
SELECT cor0.col1 * cor1.col0 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7ccaf24f2c8d9f29787f37bd29e709d9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6755
SELECT DISTINCT + CAST( - ( + col1 ) AS SIGNED ) * - 58 + 32 * - col1 + - 53 AS col2 FROM tab2 AS cor0
----
1481
389
753

skipif mysql # not compatible
query I rowsort label-6755
SELECT DISTINCT + CAST ( - ( + col1 ) AS INTEGER ) * - 58 + 32 * - col1 + - 53 AS col2 FROM tab2 AS cor0
----
1481
389
753

query I rowsort
SELECT + col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - 59 * col1 AS col1 FROM tab2 AS cor0
----
-1003
-1829
-3481

query I rowsort
SELECT ALL 44 + + col0 AS col2 FROM tab2 AS cor0
----
122
123
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 4 col0 FROM tab2 AS cor0
----
4

query I rowsort
SELECT + col1 * + col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 * col0 + col1 + + ( 45 * col0 + + cor0.col0 ) col1 FROM tab0 AS cor0
----
12907
3542
5137

query I rowsort
SELECT ALL - + col1 * + 34 * col2 AS col1 FROM tab0 AS cor0
----
-253708
-3298
-96492

onlyif mysql # use DIV operator for integer division
query I rowsort label-6763
SELECT + + 8 DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6763
SELECT + + 8 / + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col2 + + col0 * cor0.col1 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL ( + col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - + col2 * - col0 * col0 AS col2 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT + 63 * - col2 AS col0 FROM tab0 AS cor0
----
-2079
-5166
-63

query I rowsort
SELECT ALL cor0.col2 + - 60 * col0 FROM tab0 cor0
----
-1407
-2099
-5258

query I rowsort
SELECT ALL col2 * + 52 FROM tab2
----
1352
1404
1976

query I rowsort
SELECT 61 * 29 FROM tab1, tab0 AS cor0
----
9 values hashing to b4de1bbebe1b9c7549c2aa17e9ba19c4

query I rowsort
SELECT ALL + ( + col0 + col1 ) AS col2 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-6772
SELECT ALL tab1.col1 DIV - col1 col0 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL tab1.col1 / - col1 col0 FROM tab1
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6773
SELECT - - CAST( NULL AS SIGNED ) * + 68 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6773
SELECT - - CAST ( NULL AS INTEGER ) * + 68 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 19 * cor0.col0 AS col1 FROM tab2 AS cor0
----
133
1482
1501

query I rowsort
SELECT ALL 13 AS col0 FROM tab0
----
13
13
13

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 CROSS JOIN tab0 cor1
----
243 values hashing to 3e8bd9634a3f5947d8becd5f5799bb7f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT ALL - 63 FROM tab2
----
-63
-63
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - col0 + - col2 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT ( 22 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT + col1 * - 6 AS col2 FROM tab0 AS cor0
----
-516
-546
-582

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6783
SELECT col0 * CAST( col0 AS SIGNED ) AS col2 FROM tab2
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-6783
SELECT col0 * CAST ( col0 AS INTEGER ) AS col2 FROM tab2
----
49
6084
6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6784
SELECT - col0 * CAST( NULL AS DECIMAL ) - + tab1.col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6784
SELECT - col0 * CAST ( NULL AS REAL ) - + tab1.col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + col1 - col0 FROM tab1
----
36
673
89

query I rowsort
SELECT 33 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT DISTINCT + 80 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
80

query I rowsort
SELECT col0 + cor0.col0 * col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT - col0 + cor0.col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT + 25 AS col0 FROM tab2, tab0 AS cor0
----
25

query I rowsort
SELECT - col1 * - ( - col0 ) * - col0 - col2 AS col1 FROM tab1
----
180
40903
83104

query I rowsort
SELECT - col1 * 50 AS col0 FROM tab1
----
-1300
-500
-650

query I rowsort
SELECT - col2 * + ( col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - col0 + ( cor0.col0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + cor0.col0 * + 27 FROM tab2 AS cor0
----
189
2106
2133

query I rowsort
SELECT - col2 * + 0 + col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6797
SELECT ALL col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL col1 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + ( col1 ) + - col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + + col2 + 24 AS col0 FROM tab0 cor0
----
106
25
57

query I rowsort
SELECT ALL + 71 AS col1 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT + ( - 98 ) AS col1 FROM tab1 AS cor0
----
-98
-98
-98

query I rowsort
SELECT DISTINCT - 29 + 66 FROM tab0 AS cor0
----
37

query I rowsort
SELECT DISTINCT + - col0 * - col1 * - col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT ALL ( - cor0.col1 ) FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT 45 * col2 + - col1 - + cor0.col0 FROM tab1 AS cor0
----
2401
2491
4227

query I rowsort
SELECT col0 * col1 + col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT DISTINCT + ( - 39 ) + col0 FROM tab1 AS cor0
----
-36
25
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + col2 col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - + 97 * col0 FROM tab1 AS cor0
----
-291
-6208
-7760

query I rowsort
SELECT DISTINCT 36 FROM tab1 AS cor0
----
36

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6811
SELECT ALL - col0 * - ( - col0 * CAST( ( col0 ) AS SIGNED ) + col2 ) FROM tab1 AS cor0
----
-258496
-504320
135

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL - col0 * - ( - col0 * CAST ( ( col0 ) AS INTEGER ) + col2 ) FROM tab1 AS cor0
----
-258496
-504320
135

query I rowsort
SELECT + - col1 * col1 + - 69 AS col1 FROM tab2 cor0
----
-1030
-3550
-358

query I rowsort
SELECT - 86 + cor0.col2 + col0 AS col1 FROM tab0 AS cor0
----
-29
-50
85

query I rowsort
SELECT DISTINCT - col0 * col1 + + cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-6815
SELECT DISTINCT col0 * col2 * col2 + col1 * col2 DIV + cor0.col2 FROM tab0 AS cor0
----
132
26222
598527

skipif mysql # not compatible
query I rowsort label-6815
SELECT DISTINCT col0 * col2 * col2 + col1 * col2 / + cor0.col2 FROM tab0 AS cor0
----
132
26222
598527

query I rowsort
SELECT + 24 - cor0.col2 AS col0 FROM tab1 AS cor0
----
-30
-33
-72

query I rowsort
SELECT DISTINCT ( 87 * + col1 + - col0 ) FROM tab2
----
1400
2690
5055

query I rowsort
SELECT ALL 42 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
81 values hashing to 4d49d5ffe533e92cf06d98cb59a19b10

query I rowsort
SELECT + + col2 + col1 + ( 84 ) * col1 FROM tab2 AS cor0
----
1483
2662
5041

query I rowsort
SELECT ALL + col0 * + col2 + 32 FROM tab2 AS cor0
----
2060
221
3034

query I rowsort
SELECT - + 57 - col1 AS col0 FROM tab1 cor0
----
-67
-70
-83

query I rowsort
SELECT DISTINCT - 8 + cor0.col2 FROM tab0 AS cor0
----
-7
25
74

query I rowsort
SELECT - cor0.col2 + ( + ( col1 ) ) + - col0 FROM tab0 AS cor0
----
-80
29
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6824
SELECT - CAST( NULL AS DECIMAL ) FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6824
SELECT - CAST ( NULL AS REAL ) FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - - col0 + col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
260
71
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-6826
SELECT DISTINCT + col0 - + col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT + col0 - + col0 / - col1 AS col1 FROM tab1 AS cor0
----
3
70
86

query I rowsort
SELECT ALL - col0 + + col2 * + 9 FROM tab2 AS cor0
----
156
236
263

query I rowsort
SELECT ALL - - col2 + + col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT DISTINCT col0 + + col2 AS col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT col1 + - col2 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT ALL col2 + + col1 - ( + ( - col0 ) * ( col0 ) ) AS col2 FROM tab0
----
1323
695
8094

onlyif mysql # use DIV operator for integer division
query I rowsort label-6832
SELECT + col1 * col2 DIV + 52 + + 16 col1 FROM tab0
----
159
17
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6832
SELECT + col1 * col2 / + 52 + + 16 col1 FROM tab0
----
159
17
70

query I rowsort
SELECT + col2 + col0 AS col1 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL + col1 * + col0 * - col0 + tab0.col1 FROM tab0
----
-118728
-49450
-720720

query I rowsort
SELECT ALL tab0.col0 + col2 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL cor0.col2 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT col0 - + tab2.col0 AS col0 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6838
SELECT ALL - col2 DIV col0 - 15 AS col2 FROM tab2
----
-15
-15
-18

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL - col2 / col0 - 15 AS col2 FROM tab2
----
-15
-15
-18

query I rowsort
SELECT DISTINCT 1 * cor0.col2 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT ALL - 66 AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112

onlyif mysql # use DIV operator for integer division
query I rowsort label-6841
SELECT DISTINCT tab0.col1 DIV - col1 + col1 * - col1 AS col0 FROM tab0
----
-7397
-8282
-9410

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT tab0.col1 / - col1 + col1 * - col1 AS col0 FROM tab0
----
-7397
-8282
-9410

query I rowsort
SELECT ALL - 89 + 41 AS col0 FROM tab0, tab1 cor0 CROSS JOIN tab1
----
27 values hashing to 2558735eaa258a08592aef9d33020c18

onlyif mysql # use DIV operator for integer division
query I rowsort label-6843
SELECT DISTINCT - 63 DIV - col0 AS col2 FROM tab1
----
0
21

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT - 63 / - col0 AS col2 FROM tab1
----
0
21

query I rowsort
SELECT DISTINCT - col1 * - col1 * col1 AS col2 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT ALL - 7 + col2 * 70 AS col1 FROM tab1 AS cor0
----
3773
3983
6713

query I rowsort
SELECT DISTINCT + 67 * - cor0.col2 + cor0.col0 * ( - col2 ) FROM tab2 AS cor0
----
-1998
-3770
-5548

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6847
SELECT DISTINCT + cor0.col2 + + col0 * + CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6847
SELECT DISTINCT + cor0.col2 + + col0 * + CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT 26 * cor0.col1 + + col1 AS col2 FROM tab2 cor0
----
1593
459
837

query I rowsort
SELECT ALL + + 87 + + cor0.col2 * + col0 FROM tab2 cor0
----
2115
276
3089

query I rowsort
SELECT ALL - tab2.col1 + + 57 AS col0 FROM tab2
----
-2
26
40

query I rowsort
SELECT col0 * + col2 * - 79 FROM tab1
----
-12798
-288192
-606720

query I rowsort
SELECT DISTINCT 41 AS col1 FROM tab2, tab1 AS cor0
----
41

query I rowsort
SELECT DISTINCT - col1 + - col2 * - ( col2 ) FROM tab0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT + col2 * - 17 * col1 AS col2 FROM tab1 AS cor0
----
-21216
-23868
-9690

query I rowsort
SELECT - cor0.col2 * - col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + cor0.col1 * - col2 * ( - col1 + - cor0.col1 ) AS col1 FROM tab0 AS cor0
----
1358084
18818
488136

onlyif mysql # use DIV operator for integer division
query I rowsort label-6857
SELECT ALL + col0 DIV + 93 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6857
SELECT ALL + col0 / + 93 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * col0 * - col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col0 FROM tab0 cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6860
SELECT DISTINCT CAST( NULL AS SIGNED ) * 95 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 95 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 52 * col0 * col1 FROM tab1 AS cor0
----
33280
4056
54080

query I rowsort
SELECT + col1 * + col2 - col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT + 71 + col1 - + cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
-1404
-558
-735

query I rowsort
SELECT - cor0.col1 - col1 * col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT + - col0 + - 18 FROM tab2 AS cor0
----
-25
-96
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 * - col0 col2 FROM tab1 AS cor0
----
4096
6400
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6867
SELECT DISTINCT 59 * col0 + + col2 * - CAST( - ( - col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-1473
2064
327

skipif mysql # not compatible
query I rowsort label-6867
SELECT DISTINCT 59 * col0 + + col2 * - CAST ( - ( - col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-1473
2064
327

query I rowsort
SELECT - + col1 * 9 FROM tab1 AS cor0
----
-117
-234
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6869
SELECT + CAST( NULL AS SIGNED ) + + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6869
SELECT + CAST ( NULL AS INTEGER ) + + col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6870
SELECT col2 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6870
SELECT col2 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - + tab0.col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT - col0 * col1 + col0 - - col2 * ( + col0 ) AS col2 FROM tab1
----
3072
6720
87

query I rowsort
SELECT ALL col1 * - col1 + col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1079
470
728

query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) + - col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT + ( col1 ) * col1 + 46 AS col0 FROM tab2 AS cor0
----
1007
335
3527

query I rowsort
SELECT 99 * - col0 + col2 FROM tab1 cor0
----
-243
-6279
-7824

query I rowsort
SELECT ALL + ( + 57 ) + cor0.col2 FROM tab2 AS cor0
----
83
84
95

query I rowsort
SELECT + col1 * - cor0.col0 - col0 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT ALL tab2.col0 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT + col2 * col1 AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT - + ( col0 ) * col0 * 34 FROM tab1 cor0
----
-139264
-217600
-306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + + 59 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to bc7fe2fa0efe3a71ea0d79a4e905bbbe

onlyif mysql # use DIV operator for integer division
query I rowsort label-6883
SELECT - col2 * col0 DIV - col1 FROM tab1
----
364
590
6

skipif mysql # not compatible
query I rowsort label-6883
SELECT - col2 * col0 / - col1 FROM tab1
----
364
590
6

query I rowsort
SELECT col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + ( col2 ) AS col0 FROM tab1 cor0
----
54
57
96

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-6887
SELECT + CAST( - col1 AS SIGNED ) * col0 + col0 AS col0 FROM tab1 cor0
----
-576
-75
-960

skipif mysql # not compatible
query I rowsort label-6887
SELECT + CAST ( - col1 AS INTEGER ) * col0 + col0 AS col0 FROM tab1 cor0
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 + col2 col0 FROM tab2 AS cor0
----
81
82
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * + ( - col1 + cor0.col0 * + 90 ) col2 FROM tab0 AS cor0
----
178364
296141
720629

query I rowsort
SELECT col2 + - col1 * ( col1 * col1 ) FROM tab2 AS cor0
----
-205353
-29764
-4875

query I rowsort
SELECT + col1 * col1 + col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT + + ( + col2 ) FROM tab0 AS cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 * col1 col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT ( + 43 ) * + tab1.col2 FROM tab1
----
2322
2451
4128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 60 col0 FROM tab1
----
3240
3420
5760

query I rowsort
SELECT DISTINCT - 41 AS col0 FROM tab2
----
-41

query I rowsort
SELECT ( col2 ) * col0 - + 78 AS col0 FROM tab1 cor0
----
3570
7602
84

query I rowsort
SELECT ( col2 ) * + col2 + 33 * col2 FROM tab1
----
12384
4698
5130

query I rowsort
SELECT ALL 78 + + ( - col2 ) * + ( + 96 ) AS col2 FROM tab1
----
-5106
-5394
-9138

query I rowsort
SELECT - col1 + col1 * + col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT DISTINCT + - col0 * col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT - col0 * 44 FROM tab0 AS cor0
----
-1056
-1540
-3916

query I rowsort
SELECT col1 * + 74 * - col0 AS col1 FROM tab0 AS cor0
----
-152736
-251230
-599326

query I rowsort
SELECT - 81 FROM tab2
----
-81
-81
-81

query I rowsort
SELECT + ( + col1 ) + + 47 AS col2 FROM tab2
----
106
64
78

query I rowsort
SELECT col2 + col2 * 99 AS col1 FROM tab2
----
2600
2700
3800

query I rowsort
SELECT col1 * col2 + - 13 * + 41 * + col0 FROM tab2
----
-2894
-40040
-41461

query I rowsort
SELECT cor0.col1 * cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba

query I rowsort
SELECT DISTINCT + 72 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6910
SELECT DISTINCT + CAST( NULL AS SIGNED ) + tab0.col2 AS col1 FROM tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6910
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + tab0.col2 AS col1 FROM tab0, tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 * 8 + - 10 + col1 AS col2 FROM tab2 AS cor0
----
237
257
311

query I rowsort
SELECT - - col1 + col0 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6913
SELECT - - 7 * col1 DIV col0 AS col1 FROM tab2 AS cor0
----
1
31
5

skipif mysql # not compatible
query I rowsort label-6913
SELECT - - 7 * col1 / col0 AS col1 FROM tab2 AS cor0
----
1
31
5

query I rowsort
SELECT - - col0 + - col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - ( col1 + tab1.col1 ) AS col1 FROM tab1
----
-20
-26
-52

query I rowsort
SELECT DISTINCT - 81 FROM tab2
----
-81

query I rowsort
SELECT DISTINCT - + 7 FROM tab2 AS cor0
----
-7

query I rowsort
SELECT ALL + 3 * col2 AS col0 FROM tab2 AS cor0
----
114
78
81

query I rowsort
SELECT ALL col0 + - col1 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL - col1 + cor0.col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * - col2 * 29 + + 66 AS col0 FROM tab1 AS cor0
----
-267198
-84498
-94155

query I rowsort
SELECT ALL tab1.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - tab2.col0 col1 FROM tab2, tab0 AS cor0, tab0, tab2 AS cor1
----
-7
-78
-79

query I rowsort
SELECT + + col0 + 13 * col1 FROM tab2 AS cor0
----
300
410
845

query I rowsort
SELECT DISTINCT ( + col2 ) * 71 * - col2 AS col0 FROM tab2
----
-102524
-47996
-51759

query I rowsort
SELECT ALL ( col0 ) * - tab1.col2 * + tab1.col1 + + col2 FROM tab1
----
-36423
-4158
-99744

query I rowsort
SELECT 87 * + 5 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d5cff7726eff78e42b13240a3000ab1c

query I rowsort
SELECT - - col1 * + cor0.col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT 77 + 87 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 82b82007e5cf358be71175ce1d7ebcf2

query I rowsort
SELECT ALL + + 7 - - cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 8d0e02b442e609af0d0214bcf4a41b90

query I rowsort
SELECT - ( - col0 ) * tab0.col1 AS col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - ( col1 ) * col2 * 79 FROM tab0
----
-224202
-589498
-7663

query I rowsort
SELECT ALL - ( 79 ) FROM tab1
----
-79
-79
-79

query I rowsort
SELECT - col2 - col0 * - col0 AS col0 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT 41 + - col2 * cor0.col1 FROM tab2 AS cor0
----
-1493
-605
-796

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731

query I rowsort
SELECT ALL - col0 - ( col2 ) AS col0 FROM tab1
----
-121
-176
-57

query I rowsort
SELECT - 91 + - col1 FROM tab0
----
-177
-182
-188

onlyif mysql # use DIV operator for integer division
query I rowsort label-6940
SELECT ALL - cor0.col1 + - col2 + - col1 DIV - col1 AS col1 FROM tab1 cor0
----
-108
-66
-79

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL - cor0.col1 + - col2 + - col1 / - col1 AS col1 FROM tab1 cor0
----
-108
-66
-79

query I rowsort
SELECT 32 * tab0.col2 FROM tab0
----
1056
2624
32

query I rowsort
SELECT + + col0 + col0 AS col2 FROM tab2 AS cor0
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-6943
SELECT + CAST( - col0 AS SIGNED ) + col2 DIV - col1 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-6943
SELECT + CAST ( - col0 AS INTEGER ) + col2 / - col1 FROM tab0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6944
SELECT + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - col0 * - col2 AS col1 FROM tab0
----
36
7380
825

query I rowsort
SELECT ALL - ( tab1.col2 ) AS col1 FROM tab1, tab0 AS cor0, tab0, tab0 cor1
----
81 values hashing to 2df272448a67587d4635afedff278dcc

query I rowsort
SELECT ( + tab2.col2 + cor0.col0 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 73feda3cdfbb1052036b56d1a1e9df2d

query I rowsort
SELECT + 98 AS col1 FROM tab1
----
98
98
98

query I rowsort
SELECT + cor0.col0 * + 71 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to e674318d1c1f37f21287c95f3070a6b9

query I rowsort
SELECT ALL - + 64 * + col0 + ( + col0 * col1 ) AS col0 FROM tab1 cor0
----
-114
-3456
-4080

query I rowsort
SELECT DISTINCT + col0 - + col1 FROM tab1 AS cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 col2 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT - 30 + - col2 FROM tab0
----
-112
-31
-63

query I rowsort
SELECT ALL + col2 * cor0.col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + 91 + - 61 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + cor0.col2 col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6957
SELECT DISTINCT + + ( + col0 ) DIV - CAST( - 96 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT + + ( + col0 ) / - CAST ( - 96 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6958
SELECT DISTINCT - - col2 - - cor0.col2 DIV cor0.col1 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6958
SELECT DISTINCT - - col2 - - cor0.col2 / cor0.col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6959
SELECT + col2 + + cor0.col1 * CAST( col0 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-36423
-4158
-99744

skipif mysql # not compatible
query I rowsort label-6959
SELECT + col2 + + cor0.col1 * CAST ( col0 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-36423
-4158
-99744

query I rowsort
SELECT DISTINCT - + 84 * col1 + 71 FROM tab1 AS cor0
----
-1021
-2113
-769

query I rowsort
SELECT - 59 + + col0 FROM tab2 AS cor0
----
-52
19
20

query I rowsort
SELECT + - col1 + - col2 AS col1 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT ALL 61 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT - col1 * + col0 * - tab0.col2 + col0 AS col1 FROM tab0
----
3430
664207
68136

query I rowsort
SELECT ALL - 49 FROM tab2, tab2 cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT + tab0.col1 + tab0.col1 AS col2 FROM tab0
----
172
182
194

query I rowsort
SELECT DISTINCT col2 * ( 74 ) * + col2 FROM tab1
----
215784
240426
681984

onlyif mysql # use DIV operator for integer division
query I rowsort label-6968
SELECT col2 DIV col2 + 59 FROM tab1
----
60
60
60

skipif mysql # not compatible
query I rowsort label-6968
SELECT col2 / col2 + 59 FROM tab1
----
60
60
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-6969
SELECT + col0 DIV + tab0.col1 + col0 AS col2 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6969
SELECT + col0 / + tab0.col1 + col0 AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT - col0 * - col1 - tab0.col2 FROM tab0
----
2031
3394
8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-6971
SELECT - col2 + + 18 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-6971
SELECT - col2 + + 18 / col0 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + - col2 * col1 * ( + col0 * - 47 ) FROM tab0 AS cor0
----
159565
31213546
3201264

query I rowsort
SELECT col1 + 6 * col1 AS col1 FROM tab2 cor0
----
119
217
413

query I rowsort
SELECT DISTINCT col2 * 20 AS col2 FROM tab1 AS cor0
----
1080
1140
1920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6975
SELECT DISTINCT col0 * CAST( + col2 + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
14596
1584
70

skipif mysql # not compatible
query I rowsort label-6975
SELECT DISTINCT col0 * CAST ( + col2 + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
14596
1584
70

query I rowsort
SELECT DISTINCT - + ( col0 ) AS col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - 41 + 70 + - col0 FROM tab0 AS cor0
----
-6
-60
5

query I rowsort
SELECT ( col1 ) FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL + ( col0 ) - - col2 * col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT - ( - cor0.col0 ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + ( + 34 ) * col2 AS col2 FROM tab0 AS cor0
----
1122
2788
34

query I rowsort
SELECT - ( col1 ) - + col0 AS col1 FROM tab2 cor0
----
-137
-38
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6983
SELECT - CAST( NULL AS SIGNED ) * - 96 + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6983
SELECT - CAST ( NULL AS INTEGER ) * - 96 + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6984
SELECT ALL CAST( NULL AS SIGNED ) * - ( col0 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6984
SELECT ALL CAST ( NULL AS INTEGER ) * - ( col0 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * 80 + col2 AS col2 FROM tab0 AS cor0
----
6913
7362
7761

query I rowsort
SELECT 34 * col1 * - cor0.col2 + + col2 FROM tab1 AS cor0
----
-19323
-42336
-47682

query I rowsort
SELECT DISTINCT 29 + + col0 FROM tab1 cor0
----
109
32
93

query I rowsort
SELECT ALL - col0 - col2 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT - + col2 + + col1 AS col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
1
33
82

query I rowsort
SELECT ALL - tab1.col1 * - col0 * + col2 FROM tab1
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-6992
SELECT DISTINCT - + 86 DIV - 10 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT - + 86 / - 10 FROM tab1 AS cor0
----
8

query I rowsort
SELECT + col1 + + col1 * col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT ALL - + 81 FROM tab2 AS cor0
----
-81
-81
-81

query I rowsort
SELECT 69 * + ( col1 ) AS col0 FROM tab0 cor0
----
5934
6279
6693

query I rowsort
SELECT + col0 - + ( + col2 ) AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - col1 + 79 * - col2 AS col0 FROM tab1 cor0
----
-4292
-4513
-7597

query I rowsort
SELECT ALL 46 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT DISTINCT - + col0 * col0 + - 83 AS col2 FROM tab0 cor0
----
-1308
-659
-8004

query I rowsort
SELECT - - col0 + + col2 AS col0 FROM tab1 AS cor0
----
121
176
57

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to b6efe6f7ec1a3daa3cc6ea9dd7d13455

query I rowsort
SELECT ALL - col1 + + 87 * - col1 FROM tab2 AS cor0
----
-1496
-2728
-5192

query I rowsort
SELECT DISTINCT + col1 * col2 + + 69 * col2 + - col0 FROM tab0 AS cor0
----
13031
131
5091

query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7005
SELECT + 1 * + col1 + CAST( - ( - col1 ) AS SIGNED ) * 56 FROM tab1
----
1482
570
741

skipif mysql # not compatible
query I rowsort label-7005
SELECT + 1 * + col1 + CAST ( - ( - col1 ) AS INTEGER ) * 56 FROM tab1
----
1482
570
741

query I rowsort
SELECT ALL col0 + + col1 AS col1 FROM tab0
----
110
132
180

onlyif mysql # use DIV operator for integer division
query I rowsort label-7007
SELECT - col2 DIV - col0 + 24 + tab2.col2 col0 FROM tab2
----
50
54
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7007
SELECT - col2 / - col0 + 24 + tab2.col2 col0 FROM tab2
----
50
54
62

query I rowsort
SELECT ALL col2 + + col0 * col1 AS col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT ALL col1 * col0 + + 57 AS col1 FROM tab0
----
2121
3452
8156

query I rowsort
SELECT DISTINCT + col2 + - 91 FROM tab0 AS cor0
----
-58
-9
-90

query I rowsort
SELECT ALL + col2 * col1 + + col1 * + col1 * 75 FROM tab2 AS cor0
----
22321
262609
72912

query I rowsort
SELECT - 35 * 47 FROM tab0, tab2 AS cor0
----
9 values hashing to 3e711b4f11ccd92baeefa6b005ec23cb

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7013
SELECT col2 * + CAST( 21 AS SIGNED ) * col0 FROM tab2
----
3969
42588
63042

skipif mysql # not compatible
query I rowsort label-7013
SELECT col2 * + CAST ( 21 AS INTEGER ) * col0 FROM tab2
----
3969
42588
63042

query I rowsort
SELECT tab2.col2 + - col0 AS col2 FROM tab2
----
-41
-52
20

query I rowsort
SELECT + col2 * col1 * col0 AS col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
3
64
80

query I rowsort
SELECT col0 - + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + 91 FROM tab1, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT + - cor0.col2 AS col1 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT + 11 FROM tab2, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT DISTINCT ( - col2 ) * + col0 AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL cor0.col2 * col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT 20 FROM tab0
----
20

query I rowsort
SELECT - 85 + + col1 AS col0 FROM tab1
----
-59
-72
-75

query I rowsort
SELECT ALL - 69 + - col1 AS col2 FROM tab0 AS cor0
----
-155
-160
-166

query I rowsort
SELECT ALL + col1 + + col2 * + col0 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT cor0.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT col0 * + col2 + - 78 FROM tab0
----
-43
714
7220

query I rowsort
SELECT DISTINCT - 7 * - 25 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
175

query I rowsort
SELECT + 71 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7031
SELECT ALL 55 + + col0 DIV cor0.col1 FROM tab0 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-7031
SELECT ALL 55 + + col0 / cor0.col1 FROM tab0 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT - + col1 * col2 - cor0.col1 * - 94 FROM tab1 AS cor0
----
-26
1040
370

query I rowsort
SELECT 25 * - cor0.col0 FROM tab0 AS cor0
----
-2225
-600
-875

query I rowsort
SELECT ALL + ( col2 ) + 23 * 0 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7035
SELECT DISTINCT - cor0.col2 DIV - col2 - col0 AS col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-7035
SELECT DISTINCT - cor0.col2 / - col2 - col0 AS col0 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT + + ( col1 ) * + col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7037
SELECT - - col0 * cor0.col0 + - CAST( - 38 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1263
614
7959

skipif mysql # not compatible
query I rowsort label-7037
SELECT - - col0 * cor0.col0 + - CAST ( - 38 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1263
614
7959

query I rowsort
SELECT ALL - - 74 AS col2 FROM tab2 AS cor0
----
74
74
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 76 * - col1 col2 FROM tab1 AS cor0
----
-1976
-760
-988

query I rowsort
SELECT DISTINCT 85 + + col2 FROM tab1 AS cor0
----
139
142
181

query I rowsort
SELECT + col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7042
SELECT ALL - + col2 * col0 DIV CAST( + col1 AS SIGNED ) - + col2 * 2 * 43 FROM tab2 AS cor0
----
-2270
-2328
-3444

skipif mysql # not compatible
query I rowsort label-7042
SELECT ALL - + col2 * col0 / CAST ( + col1 AS INTEGER ) - + col2 * 2 * 43 FROM tab2 AS cor0
----
-2270
-2328
-3444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 col0 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT - + col1 * - col2 FROM tab1 cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT + + col1 * col1 + + col1 * + 5 AS col0 FROM tab1 cor0
----
150
234
806

query I rowsort
SELECT DISTINCT + ( + col0 ) + col1 * - col0 AS col1 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - ( col2 ) FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - + col0 + col1 * ( col1 ) * + cor0.col1 AS col0 FROM tab1 AS cor0
----
17573
2117
936

onlyif mysql # use DIV operator for integer division
query I rowsort label-7050
SELECT ALL col0 DIV - col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7050
SELECT ALL col0 / - col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col0 * - col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ( col0 ) * - col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + - col0 + cor0.col1 * + 61 FROM tab2 AS cor0
----
1884
3521
958

query I rowsort
SELECT cor0.col1 + ( - ( col0 ) ) AS col1 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + col2 + ( - col2 ) AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT cor0.col0 * col2 AS col1 FROM tab1 cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7057
SELECT col0 * CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-7057
SELECT col0 * CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + ( col1 ) * - col2 + - col0 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT ALL - col0 + 94 FROM tab2 AS cor0
----
15
16
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7060
SELECT ALL + CAST( NULL AS SIGNED ) * - 40 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL + CAST ( NULL AS INTEGER ) * - 40 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * - 92 + col0 FROM tab0 AS cor0
----
-2184
-3185
-8099

query I rowsort
SELECT ALL + ( + 5 ) * cor0.col0 FROM tab0 cor0
----
120
175
445

query I rowsort
SELECT + + col0 * + col0 + cor0.col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 * - col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7065
SELECT CAST( 21 AS SIGNED ) FROM tab0 AS cor0
----
21
21
21

skipif mysql # not compatible
query I rowsort label-7065
SELECT CAST ( 21 AS INTEGER ) FROM tab0 AS cor0
----
21
21
21

query I rowsort
SELECT ALL + 13 + col0 AS col0 FROM tab2 AS cor0
----
20
91
92

query I rowsort
SELECT DISTINCT + ( col1 ) * col1 AS col1 FROM tab1
----
100
169
676

query I rowsort
SELECT - 93 + - col1 + col1 AS col0 FROM tab0 AS cor0
----
-93
-93
-93

query I rowsort
SELECT cor0.col1 + + col2 * cor0.col2 FROM tab0 AS cor0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7070
SELECT + cor0.col1 DIV col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-7070
SELECT + cor0.col1 / col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
27
28
39

query I rowsort
SELECT cor0.col1 + - 51 AS col1 FROM tab0 AS cor0
----
35
40
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-7072
SELECT ALL - col1 + + col0 DIV cor0.col1 FROM tab0 cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-7072
SELECT ALL - col1 + + col0 / cor0.col1 FROM tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT - cor0.col2 + 61 FROM tab2 AS cor0
----
23
34
35

query I rowsort
SELECT DISTINCT ( col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + + 69 + + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7465
8350
9478

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab

query I rowsort
SELECT 11 FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT + 63 + + col1 * col2 FROM tab1 AS cor0
----
1311
1467
633

query I rowsort
SELECT + tab2.col2 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL col0 + + 1 * ( + col2 ) FROM tab1
----
121
176
57

query I rowsort
SELECT - col0 * col0 - + col1 FROM tab2
----
-6143
-6258
-80

query I rowsort
SELECT + col2 - - tab2.col1 FROM tab2
----
55
58
85

query I rowsort
SELECT col1 * 30 AS col1 FROM tab2
----
1770
510
930

query I rowsort
SELECT col1 * col2 - col1 FROM tab2
----
1475
629
806

query I rowsort
SELECT DISTINCT + col2 - + col1 FROM tab1
----
28
47
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * + col0 col2 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT + - col0 + 30 AS col2 FROM tab2 AS cor0
----
-48
-49
23

query I rowsort
SELECT ALL + col2 + + ( col1 ) FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7089
SELECT ALL - col0 DIV col0 + col2 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-7089
SELECT ALL - col0 / col0 + col2 FROM tab1
----
53
56
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7090
SELECT + - col0 + + CAST( 53 AS SIGNED ) FROM tab1 AS cor0
----
-11
-27
50

skipif mysql # not compatible
query I rowsort label-7090
SELECT + - col0 + + CAST ( 53 AS INTEGER ) FROM tab1 AS cor0
----
-11
-27
50

query I rowsort
SELECT DISTINCT + + col1 + 60 AS col0 FROM tab0 AS cor0
----
146
151
157

query I rowsort
SELECT ALL + col2 * + 72 + col0 FROM tab1 AS cor0
----
3891
4168
6992

query I rowsort
SELECT - 7 AS col2 FROM tab2 AS cor0
----
-7
-7
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7094
SELECT ( - col1 ) DIV col1 + col2 AS col2 FROM tab2 cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-7094
SELECT ( - col1 ) / col1 + col2 AS col2 FROM tab2 cor0
----
25
26
37

query I rowsort
SELECT ( - ( cor0.col0 ) ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL + 29 + + col1 AS col2 FROM tab2 cor0
----
46
60
88

query I rowsort
SELECT - 67 FROM tab2, tab1 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT + 41 * col1 AS col1 FROM tab2 AS cor0
----
1271
2419
697

query I rowsort
SELECT - col1 * col2 AS col0 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT col0 * - 54 + col0 * col1 FROM tab1 AS cor0
----
-2816
-3280
-84

query I rowsort
SELECT ALL + + 83 + - 82 * - col2 AS col1 FROM tab2 AS cor0
----
2215
2297
3199

query I rowsort
SELECT DISTINCT - col0 - + 50 * - col2 FROM tab1 AS cor0
----
2697
2786
4720

query I rowsort
SELECT DISTINCT - - 14 FROM tab0 AS cor0
----
14

query I rowsort
SELECT col2 + + col1 AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + 97 + - col0 + + col2 AS col2 FROM tab1 AS cor0
----
113
148
90

query I rowsort
SELECT ALL - + 93 * 81 FROM tab2 cor0
----
-7533
-7533
-7533

query I rowsort
SELECT + ( - col0 ) * + col0 + cor0.col1 * col2 FROM tab1 AS cor0
----
-3526
-5152
1395

query I rowsort
SELECT DISTINCT + - col2 + 80 * col0 * 7 FROM tab2 AS cor0
----
3893
43654
44202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 38 * cor0.col0 col2 FROM tab1 cor0
----
-114
-2432
-3040

query I rowsort
SELECT 7 AS col1 FROM tab1 AS cor0
----
7
7
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7111
SELECT ALL - - CAST( NULL AS SIGNED ) * 31 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL - - CAST ( NULL AS INTEGER ) * 31 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-7112
SELECT DISTINCT - - cor0.col0 DIV + col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7112
SELECT DISTINCT - - cor0.col0 / + col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + - col0 * + col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - - col2 + col2 AS col0 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT + + col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col2 * + col0 + - col0 FROM tab1 AS cor0
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 76 * + col1 * - ( col1 ) col2 FROM tab0 cor0
----
-562096
-629356
-715084

query I rowsort
SELECT + col1 * col0 * - col1 AS col2 FROM tab1 cor0
----
-13520
-2028
-6400

query I rowsort
SELECT 32 * - col0 AS col0 FROM tab0 cor0
----
-1120
-2848
-768

onlyif mysql # use DIV operator for integer division
query I rowsort label-7121
SELECT - - 59 + col2 DIV + cor0.col0 FROM tab2 AS cor0
----
59
59
62

skipif mysql # not compatible
query I rowsort label-7121
SELECT - - 59 + col2 / + cor0.col0 FROM tab2 AS cor0
----
59
59
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 34 - - col1 col1 FROM tab0 AS cor0
----
144
166
214

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7123
SELECT ALL + col1 - CAST( + col2 * - col1 AS SIGNED ) FROM tab1 AS cor0
----
1261
1430
580

skipif mysql # not compatible
query I rowsort label-7123
SELECT ALL + col1 - CAST ( + col2 * - col1 AS INTEGER ) FROM tab1 AS cor0
----
1261
1430
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 * - col2 col1 FROM tab2
----
-1248
-1296
-1824

query I rowsort
SELECT ALL - 22 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT ALL cor0.col1 * + col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-7127
SELECT - col0 DIV - cor0.col1 AS col1 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-7127
SELECT - col0 / - cor0.col1 AS col1 FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT DISTINCT col2 * col0 * + col2 AS col1 FROM tab2 AS cor0
----
114076
5103
52728

onlyif mysql # use DIV operator for integer division
query I rowsort label-7129
SELECT ALL col1 DIV + col2 + col0 * + col0 AS col2 FROM tab1 cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-7129
SELECT ALL col1 / + col2 + col0 * + col0 AS col2 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL - col0 + + col1 * - cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
-106176
-1526
-359034

query I rowsort
SELECT DISTINCT col1 * ( col0 ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - col1 * - col0 * - col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7134
SELECT DISTINCT cor0.col2 + + CAST( cor0.col0 AS SIGNED ) FROM tab0 cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT cor0.col2 + + CAST ( cor0.col0 AS INTEGER ) FROM tab0 cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7135
SELECT + col2 DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7135
SELECT + col2 / col1 AS col2 FROM tab2 AS cor0
----
0
0
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-7136
SELECT DISTINCT + + cor0.col2 + ( + col1 ) * + cor0.col2 DIV + col2 + + col0 AS col2 FROM tab0 AS cor0
----
133
143
262

skipif mysql # not compatible
query I rowsort label-7136
SELECT DISTINCT + + cor0.col2 + ( + col1 ) * + cor0.col2 / + col2 + + col0 AS col2 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT ALL tab1.col0 * 50 + - tab1.col2 AS col2 FROM tab1
----
3143
3904
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - ( + col0 ) col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT tab0.col0 * tab0.col1 + col2 * - col1 - col0 FROM tab0
----
-798
3263
548

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 cor2
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 25 + - col2 * + col0 col2 FROM tab1 AS cor0
----
-237
-5248
-9680

query I rowsort
SELECT ALL - col1 * + 78 FROM tab2 cor0
----
-1326
-2418
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7143
SELECT cor0.col2 - col0 DIV col0 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-7143
SELECT cor0.col2 - col0 / col0 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT ALL + - col0 * + col0 * col2 + - col0 + + col1 FROM tab0 AS cor0
----
-1163
-18946
-649520

query I rowsort
SELECT - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT col0 * + 3 FROM tab0 AS cor0
----
105
267
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-7147
SELECT - col0 DIV col2 + + col1 FROM tab0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-7147
SELECT - col0 / col2 + + col1 FROM tab0
----
62
86
90

query I rowsort
SELECT + 44 AS col1 FROM tab2
----
44
44
44

query I rowsort
SELECT ALL + cor0.col0 * col0 + col0 + - col2 AS col1 FROM tab0 AS cor0
----
1259
567
7928

query I rowsort
SELECT + 18 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
468
486
684

query I rowsort
SELECT ALL tab2.col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ( col2 ) * col2 AS col1 FROM tab0
----
1
1089
6724

query I rowsort
SELECT col2 + - col2 * + col2 AS col0 FROM tab0
----
-1056
-6642
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7154
SELECT DISTINCT 68 DIV tab1.col0 FROM tab1
----
0
1
22

skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT 68 / tab1.col0 FROM tab1
----
0
1
22

query I rowsort
SELECT + col2 + - tab0.col0 AS col2 FROM tab0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7156
SELECT 32 * col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7156
SELECT 32 * col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7157
SELECT DISTINCT 86 * col2 DIV + 93 col1 FROM tab1
----
49
52
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7157
SELECT DISTINCT 86 * col2 / + 93 col1 FROM tab1
----
49
52
88

query I rowsort
SELECT - - 29 * - col0 AS col1 FROM tab0 cor0
----
-1015
-2581
-696

query I rowsort
SELECT DISTINCT col0 * cor0.col1 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT col1 * - col0 + col0 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT - tab1.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7162
SELECT DISTINCT CAST( + 93 AS SIGNED ) AS col0 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-7162
SELECT DISTINCT CAST ( + 93 AS INTEGER ) AS col0 FROM tab0
----
93

query I rowsort
SELECT 6 AS col0 FROM tab2
----
6
6
6

query I rowsort
SELECT + + 71 * col2 FROM tab0 cor0
----
2343
5822
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7165
SELECT CAST( + col1 AS SIGNED ) * col1 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-7165
SELECT CAST ( + col1 AS INTEGER ) * col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL - + col0 + + col1 * col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT ALL - ( cor0.col0 ) FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + 26 * + col2 AS col0 FROM tab0 cor0
----
2132
26
858

query I rowsort
SELECT - col0 * - 39 FROM tab2 AS cor0
----
273
3042
3081

query I rowsort
SELECT DISTINCT ( col1 ) * + cor0.col0 AS col1 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 74 col1 FROM tab1 AS cor0
----
3996
4218
7104

query I rowsort
SELECT ( col0 ) * + cor0.col0 - cor0.col1 AS col0 FROM tab1 cor0
----
-17
4086
6387

query I rowsort
SELECT ALL - 54 * col0 AS col0 FROM tab2 AS cor0
----
-378
-4212
-4266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col1 col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - cor0.col0 + + col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - cor0.col0 * col1 * cor0.col1 col2 FROM tab1 cor0
----
-13424
-1974
-6343

query I rowsort
SELECT - - col0 * ( + ( col0 ) ) + - col1 * col1 AS col1 FROM tab2 AS cor0
----
-912
2603
5952

query I rowsort
SELECT DISTINCT - cor0.col2 * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7179
SELECT col0 * + CAST( - col2 AS SIGNED ) FROM tab1 cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-7179
SELECT col0 * + CAST ( - col2 AS INTEGER ) FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT col1 * 13 + col1 FROM tab1 AS cor0
----
140
182
364

query I rowsort
SELECT col0 + ( 14 ) * cor0.col1 FROM tab0 AS cor0
----
1228
1363
1393

query I rowsort
SELECT DISTINCT + + cor0.col2 + cor0.col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT - + col1 + ( + col0 ) * + col0 AS col1 FROM tab1 AS cor0
----
-17
4086
6387

query I rowsort
SELECT DISTINCT + + col1 + 56 * col2 FROM tab0 AS cor0
----
153
1934
4683

onlyif mysql # use DIV operator for integer division
query I rowsort label-7185
SELECT - col0 + ( - col0 ) DIV - col1 AS col0 FROM tab1 AS cor0
----
-3
-58
-74

skipif mysql # not compatible
query I rowsort label-7185
SELECT - col0 + ( - col0 ) / - col1 AS col0 FROM tab1 AS cor0
----
-3
-58
-74

query I rowsort
SELECT 12 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7187
SELECT DISTINCT + CAST( + 28 AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-7187
SELECT DISTINCT + CAST ( + 28 AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0
----
28

query I rowsort
SELECT DISTINCT col2 * 19 FROM tab0
----
1558
19
627

query I rowsort
SELECT col2 * ( col1 * - col2 ) + - 89 FROM tab1
----
-119897
-32579
-75905

query I rowsort
SELECT + 28 + + col0 * col1 FROM tab0 cor0
----
2092
3423
8127

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7191
SELECT - CAST( + col0 AS SIGNED ) * col1 + - 23 * + col0 FROM tab1 AS cor0
----
-147
-2112
-2880

skipif mysql # not compatible
query I rowsort label-7191
SELECT - CAST ( + col0 AS INTEGER ) * col1 + - 23 * + col0 FROM tab1 AS cor0
----
-147
-2112
-2880

query I rowsort
SELECT col0 + 36 AS col1 FROM tab2
----
114
115
43

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab2 AS cor0, tab0 AS cor1
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55

query I rowsort
SELECT DISTINCT + tab2.col1 * 47 AS col1 FROM tab2
----
1457
2773
799

query I rowsort
SELECT + col2 * col1 * col2 AS col0 FROM tab0 AS cor0
----
611884
93654
97

query I rowsort
SELECT col0 * 53 FROM tab1 AS cor0
----
159
3392
4240

query I rowsort
SELECT - col1 + 55 * cor0.col0 AS col1 FROM tab0 cor0
----
1234
1828
4804

query I rowsort
SELECT 93 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT tab2.col0 * ( + col2 ) FROM tab2
----
189
2028
3002

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab2 cor3
----
3645 values hashing to f1fc3f16747aca82b54b2b759d1f5ea2

query I rowsort
SELECT ALL + 70 * 97 FROM tab0, tab2 AS cor0
----
9 values hashing to c26ab5b67006bbe3ba57ff1f493c31f4

onlyif mysql # use DIV operator for integer division
query I rowsort label-7202
SELECT cor0.col1 DIV cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 318c9ee2d951551d2809d5b794d537f4

skipif mysql # not compatible
query I rowsort label-7202
SELECT cor0.col1 / cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 318c9ee2d951551d2809d5b794d537f4

query I rowsort
SELECT ALL - col0 * tab0.col0 * - col0 AS col0 FROM tab0
----
13824
42875
704969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) * - col0 col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT + 55 AS col1 FROM tab0 cor0
----
55
55
55

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c

query I rowsort
SELECT col1 * + col1 + col0 * ( - col2 ) AS col1 FROM tab0
----
6604
9374
983

query I rowsort
SELECT 46 * col2 AS col0 FROM tab2
----
1196
1242
1748

query I rowsort
SELECT - 91 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

query I rowsort
SELECT ALL col1 + col2 * - col0 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT ALL + col1 + + col0 AS col0 FROM tab0
----
110
132
180

query I rowsort
SELECT DISTINCT col1 * tab1.col1 AS col0 FROM tab1
----
100
169
676

query I rowsort
SELECT DISTINCT - 49 + col1 AS col2 FROM tab2 AS cor0
----
-18
-32
10

query I rowsort
SELECT 22 FROM tab1, tab0 cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT ALL - 3 * + 44 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 66e726d07852a222e6a856c93375b730

query I rowsort
SELECT + ( + col2 ) * - col0 + + col2 AS col1 FROM tab0 cor0
----
-34
-7216
-759

query I rowsort
SELECT 36 * - col0 AS col0 FROM tab1
----
-108
-2304
-2880

query I rowsort
SELECT DISTINCT + - col0 * 3 + col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-7219
SELECT DISTINCT + - cor0.col2 DIV 59 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT + - cor0.col2 / 59 FROM tab0 cor0
----
-1
0

query I rowsort
SELECT + - col1 * + col1 + 14 * + col2 * 40 + col0 FROM tab2 AS cor0
----
11157
14166
21070

query I rowsort
SELECT + col2 * + col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + col2 + cor0.col2 AS col2 FROM tab1 cor0
----
108
114
192

query I rowsort
SELECT - col1 + ( - 23 ) AS col1 FROM tab0 AS cor0
----
-109
-114
-120

query I rowsort
SELECT - cor0.col0 + + col2 * col1 * - col0 FROM tab2 AS cor0
----
-119730
-51113
-5866

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 * cor0.col2 + + cor0.col1 * cor0.col0 col1 FROM tab1 cor0
----
-157386
-184553
-883696

query I rowsort
SELECT + col1 + ( 4 ) * col0 FROM tab2 AS cor0
----
333
371
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 22 * + col0 col1 FROM tab2
----
154
1716
1738

query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab0 AS cor0, tab0 cor1
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5

query I rowsort
SELECT tab2.col0 + + 78 FROM tab2, tab2 AS cor0
----
9 values hashing to 447dd2aaff0aa377f4e2bad5139814b8

query I rowsort
SELECT + col1 + 4 AS col1 FROM tab2 AS cor0
----
21
35
63

query I rowsort
SELECT tab1.col0 + + col1 FROM tab1
----
29
74
93

query I rowsort
SELECT + cor1.col1 AS col0 FROM tab2, tab0, tab1 cor0, tab1 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT DISTINCT - ( + col0 ) FROM tab0
----
-24
-35
-89

query I rowsort
SELECT ALL col2 + - col1 * col0 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT + col2 + + col0 FROM tab1 cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-7236
SELECT + - col0 DIV 80 - - 64 FROM tab0 AS cor0
----
63
64
64

skipif mysql # not compatible
query I rowsort label-7236
SELECT + - col0 / 80 - - 64 FROM tab0 AS cor0
----
63
64
64

query I rowsort
SELECT - col1 * + 8 AS col0 FROM tab1
----
-104
-208
-80

query I rowsort
SELECT ALL cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7239
SELECT - cor0.col2 * - CAST( NULL AS DECIMAL ) - ( col1 ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7239
SELECT - cor0.col2 * - CAST ( NULL AS REAL ) - ( col1 ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * 82 - cor0.col0 * col0 FROM tab2 AS cor0
----
-10922
-2591
-7635

query I rowsort
SELECT ALL - + col0 + + col1 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-7242
SELECT DISTINCT - cor0.col1 DIV 88 - col2 FROM tab0 AS cor0
----
-2
-33
-83

skipif mysql # not compatible
query I rowsort label-7242
SELECT DISTINCT - cor0.col1 / 88 - col2 FROM tab0 AS cor0
----
-2
-33
-83

query I rowsort
SELECT ALL + + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7244
SELECT + col0 * - ( + col2 ) - - col2 * - CAST( + col1 * cor0.col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-3430
-671416
-68904

skipif mysql # not compatible
query I rowsort label-7244
SELECT + col0 * - ( + col2 ) - - col2 * - CAST ( + col1 * cor0.col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-3430
-671416
-68904

query I rowsort
SELECT ALL col2 + + col0 FROM tab2 cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-7246
SELECT col0 * - 74 + cor0.col0 DIV - col1 FROM tab0 AS cor0
----
-1776
-2590
-6586

skipif mysql # not compatible
query I rowsort label-7246
SELECT col0 * - 74 + cor0.col0 / - col1 FROM tab0 AS cor0
----
-1776
-2590
-6586

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7247
SELECT + col1 + - CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-54
-67
23

skipif mysql # not compatible
query I rowsort label-7247
SELECT + col1 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - col1 * ( + 48 ) + col1 AS col2 FROM tab0 AS cor0
----
-4042
-4277
-4559

onlyif mysql # use DIV operator for integer division
query I rowsort label-7249
SELECT ALL - - col0 + CAST( + col0 AS SIGNED ) DIV + col2 FROM tab1 AS cor0
----
3
65
80

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL - - col0 + CAST ( + col0 AS INTEGER ) / + col2 FROM tab1 AS cor0
----
3
65
80

query I rowsort
SELECT ALL - col2 + + col0 AS col2 FROM tab1
----
-16
-51
7

query III rowsort
SELECT * FROM tab0 WHERE col1 * - col1 NOT BETWEEN ( col1 + + col1 / col1 ) AND NULL
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7252
SELECT col0 DIV - tab1.col1 AS col2 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-7252
SELECT col0 / - tab1.col1 AS col2 FROM tab1
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col0 * + col2 + - col2 col2 FROM tab1
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-7254
SELECT tab2.col2 DIV tab2.col0 AS col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-7254
SELECT tab2.col2 / tab2.col0 AS col0 FROM tab2
----
0
0
3

query I rowsort
SELECT tab0.col1 FROM tab0 WHERE ( NULL ) >= col2 + + col1
----

query I rowsort
SELECT DISTINCT + col0 + - tab1.col2 * + col0 FROM tab1
----
-159
-3584
-7600

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT - col2 + col1 + col2 AS col0 FROM tab0
----
86
91
97

query III rowsort
SELECT * FROM tab0 WHERE NULL >= - col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7260
SELECT + col1 DIV + col1 col2 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7260
SELECT + col1 / + col1 col2 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT col1 * col1 + col2 + - col1 AS col1 FROM tab1 AS cor0
----
147
252
704

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7262
SELECT + CAST( NULL AS SIGNED ) + 2 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7262
SELECT + CAST ( NULL AS INTEGER ) + 2 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + tab1.col2 col0 FROM tab1
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-7264
SELECT col2 + col1 DIV - col0 AS col2 FROM tab2
----
23
26
38

skipif mysql # not compatible
query I rowsort label-7264
SELECT col2 + col1 / - col0 AS col2 FROM tab2
----
23
26
38

query I rowsort
SELECT DISTINCT col2 + col0 * ( + col0 ) AS col1 FROM tab2 cor0
----
6110
6279
76

query I rowsort
SELECT - + cor0.col2 + - col0 AS col2 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT ( col2 ) + 82 * + 25 * col0 FROM tab1 AS cor0
----
131257
164096
6204

query I rowsort
SELECT - cor0.col2 * + col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - col2 * col1 + col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL + + 21 + cor0.col2 * col0 FROM tab1 AS cor0
----
183
3669
7701

query I rowsort
SELECT cor0.col0 + - col0 AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7272
SELECT ALL + col0 DIV col0 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL + col0 / col0 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - - col2 * col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 col0 FROM tab2 AS cor0
----
37
37
37

query I rowsort
SELECT - 35 * - col0 FROM tab0 AS cor0
----
1225
3115
840

query I rowsort
SELECT ALL 45 AS col1 FROM tab0 AS cor0
----
45
45
45

query I rowsort
SELECT ALL - - col1 * - col1 + + cor0.col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT DISTINCT - - ( - cor0.col2 ) * col1 + - 3 * col1 FROM tab1 AS cor0
----
-1287
-1482
-600

query I rowsort
SELECT DISTINCT + col0 * col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT 79 + cor0.col2 FROM tab1 AS cor0
----
133
136
175

query I rowsort
SELECT ALL - 54 FROM tab1 AS cor0
----
-54
-54
-54

query I rowsort
SELECT DISTINCT col1 * + col2 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + - ( col2 ) FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7284
SELECT - 75 DIV + col2 FROM tab0 AS cor0
----
-2
-75
0

skipif mysql # not compatible
query I rowsort label-7284
SELECT - 75 / + col2 FROM tab0 AS cor0
----
-2
-75
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 * col2 col0 FROM tab1 AS cor0
----
-1056
-594
-627

query I rowsort
SELECT ALL - col2 * 94 + cor0.col0 - - col1 * - cor0.col0 FROM tab1 AS cor0
----
-5151
-5934
-9984

onlyif mysql # use DIV operator for integer division
query I rowsort label-7287
SELECT DISTINCT + - col2 + cor0.col0 DIV col0 FROM tab1 AS cor0
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-7287
SELECT DISTINCT + - col2 + cor0.col0 / col0 FROM tab1 AS cor0
----
-53
-56
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7288
SELECT DISTINCT - cor0.col1 / col2 + col1 * col0 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7288
SELECT DISTINCT - cor0.col1 / col2 + col1 * col0 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL + col2 * + col0 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL + - col1 * + 93 + 60 * col1 AS col2 FROM tab0 cor0
----
-2838
-3003
-3201

onlyif mysql # use DIV operator for integer division
query I rowsort label-7291
SELECT ALL 11 DIV tab0.col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL 11 / tab0.col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - ( - col2 ) + col1 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - col1 * col0 + + col1 + - col2 FROM tab0 AS cor0
----
-2011
-3299
-8090

query I rowsort
SELECT DISTINCT - col2 * col0 + col1 + 80 FROM tab2 AS cor0
----
-1889
-2905
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7296
SELECT CAST( NULL AS SIGNED ) + + col2 + + col0 * 9 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7296
SELECT CAST ( NULL AS INTEGER ) + + col2 + + col0 * 9 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 99 + + cor0.col0 AS col0 FROM tab1 cor0
----
102
163
179

query I rowsort
SELECT - ( 39 ) * + cor0.col0 + + 68 FROM tab0 cor0
----
-1297
-3403
-868

query I rowsort
SELECT ALL 45 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-315
-3510
-3555

query I rowsort
SELECT ALL - ( + col2 ) FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT + 30 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT + cor0.col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT + col2 - 31 AS col0 FROM tab2
----
-4
-5
7

query I rowsort
SELECT ALL tab0.col2 + 38 + + col0 FROM tab0
----
209
74
95

query I rowsort
SELECT ALL 69 + col1 * col1 * 17 FROM tab0
----
125801
140846
160022

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7306
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 FROM tab1
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7307
SELECT + CAST( NULL AS SIGNED ) - tab2.col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7307
SELECT + CAST ( NULL AS INTEGER ) - tab2.col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - ( - ( col0 ) ) * + tab0.col2 + - 49 + + col0 AS col2 FROM tab0
----
21
7338
767

query I rowsort
SELECT - col2 * - col2 + col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT + 81 + col2 AS col0 FROM tab0
----
114
163
82

query I rowsort
SELECT ALL - cor1.col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7313
SELECT ALL - CAST( - col0 AS SIGNED ) + - col0 col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL - CAST ( - col0 AS INTEGER ) + - col0 col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col2 + col0 * col0 + + col0 AS col0 FROM tab2 AS cor0
----
29
6136
6282

query I rowsort
SELECT DISTINCT - - 82 * col2 * - col0 FROM tab1 AS cor0
----
-13284
-299136
-629760

onlyif mysql # use DIV operator for integer division
query I rowsort label-7317
SELECT DISTINCT col0 * col2 DIV col1 col1 FROM tab1 AS cor0
----
364
590
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7317
SELECT DISTINCT col0 * col2 / col1 col1 FROM tab1 AS cor0
----
364
590
6

query I rowsort
SELECT DISTINCT - + col2 * + col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + cor0.col1 * + col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL - 50 + + col2 AS col2 FROM tab1 AS cor0
----
4
46
7

query I rowsort
SELECT cor0.col1 * + col1 + + col1 * - col0 + cor0.col0 * - col1 AS col0 FROM tab2 AS cor0
----
-2397
-5723
527

query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

query I rowsort
SELECT ALL + tab1.col1 * tab1.col2 * - col0 AS col0 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT DISTINCT + - col2 * - col0 AS col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL col0 * - col2 AS col1 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + 81 AS col1 FROM tab0
----
81

query I rowsort
SELECT + + 50 * + cor0.col0 FROM tab0 AS cor0
----
1200
1750
4450

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( 54 AS REAL ) FROM tab0 cor0
----
54
54
54

query I rowsort
SELECT col1 + - col2 + - col0 FROM tab1 AS cor0
----
-111
-163
-31

query I rowsort
SELECT - 18 AS col1 FROM tab0
----
-18
-18
-18

query I rowsort
SELECT 92 * 4 AS col1 FROM tab1
----
368
368
368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 col2 FROM tab2
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 * - col1 col0 FROM tab1
----
-1235
-2470
-950

query I rowsort
SELECT + 41 * - 29 - + col0 FROM tab1 AS cor0
----
-1192
-1253
-1269

query I rowsort
SELECT DISTINCT + col1 * 50 FROM tab1 AS cor0
----
1300
500
650

query I rowsort
SELECT ALL + + cor0.col0 + col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT + cor0.col0 + col0 AS col2 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT ALL + 69 AS col1 FROM tab0 AS cor0
----
69
69
69

query I rowsort
SELECT + 76 + + 47 * + col0 AS col2 FROM tab2 AS cor0
----
3742
3789
405

query I rowsort
SELECT ALL - + cor0.col1 * + col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT 1 * cor0.col2 * + col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - col1 + col2 * col1 * col1 FROM tab2 AS cor0
----
10965
25916
90447

query I rowsort
SELECT DISTINCT - col2 - - col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - 67 * col0 + + col2 AS col0 FROM tab1 AS cor0
----
-147
-4231
-5264

query I rowsort
SELECT + ( cor0.col0 ) + col1 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL - col0 * col1 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - col0 + + col0 AS col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 27 + ( - col1 ) col2 FROM tab1
----
-37
-40
-53

query I rowsort
SELECT ALL - 36 * col0 + col1 * col0 + tab2.col1 AS col1 FROM tab2
----
-1484
-4
1853

query I rowsort
SELECT 39 FROM tab1 cor0
----
39
39
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-7351
SELECT ALL col1 * - col0 + col1 DIV col0 FROM tab0
----
-2061
-3393
-8098

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL col1 * - col0 + col1 / col0 FROM tab0
----
-2061
-3393
-8098

query I rowsort
SELECT ALL - col0 * - col1 + - tab1.col1 * + col1 + + col1 * + col1 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL + ( + 55 ) + tab1.col2 AS col2 FROM tab1
----
109
112
151

onlyif mysql # use DIV operator for integer division
query I rowsort label-7354
SELECT - cor0.col2 DIV col2 + col0 + col1 FROM tab1 AS cor0
----
28
73
92

skipif mysql # not compatible
query I rowsort label-7354
SELECT - cor0.col2 / col2 + col0 + col1 FROM tab1 AS cor0
----
28
73
92

query I rowsort
SELECT DISTINCT col1 * col1 + col1 * col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col2 * col2 + cor0.col2 * col0 )
----

query I rowsort
SELECT cor0.col2 - col1 * - col0 AS col1 FROM tab2 AS cor0
----
1381
244
4628

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col0 * + col0 ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col2 ) IN ( - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT - col0 + col1 FROM tab0 cor0
----
2
62
62

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col0 NOT IN ( col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7362
SELECT - col2 * col2 + + col2 * col1 DIV + col1 FROM tab0
----
-1056
-6642
0

skipif mysql # not compatible
query I rowsort label-7362
SELECT - col2 * col2 + + col2 * col1 / + col1 FROM tab0
----
-1056
-6642
0

query III rowsort
SELECT * FROM tab0 WHERE ( tab0.col0 ) IN ( + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7364
SELECT col1 DIV - col0 FROM tab1 WHERE col0 <> + tab1.col0 - col1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-7364
SELECT col1 / - col0 FROM tab1 WHERE col0 <> + tab1.col0 - col1
----
-8
0
0

query I rowsort
SELECT col2 + + col0 AS col1 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT + col1 * - col2 + + col0 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT + col0 + + col1 * - col1 FROM tab0
----
-7372
-8192
-9374

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 col0 FROM tab1
----
10
13
26

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) NOT IN ( + col1 * col2 - col2 * + col2 )
----

query I rowsort
SELECT DISTINCT col1 + + col1 AS col0 FROM tab2
----
118
34
62

query I rowsort
SELECT DISTINCT + col1 - col2 * col0 * col2 FROM tab1
----
-207926
-737267
-8722

query I rowsort
SELECT ALL col0 * col0 * + tab1.col0 + col1 AS col0 FROM tab1
----
262154
512013
53

query I rowsort
SELECT ALL tab2.col1 FROM tab2 WHERE NOT + col2 * + col1 >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7374
SELECT - col0 * + col0 + col0 * tab2.col1 DIV col1 AS col0 FROM tab2
----
-42
-6006
-6162

skipif mysql # not compatible
query I rowsort label-7374
SELECT - col0 * + col0 + col0 * tab2.col1 / col1 AS col0 FROM tab2
----
-42
-6006
-6162

query I rowsort
SELECT cor0.col2 * col2 AS col0 FROM tab2 cor0
----
1444
676
729

query I rowsort
SELECT - col0 * col0 + col1 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT col1 * col1 + + tab2.col1 * col2 AS col2 FROM tab2
----
1798
5015
935

query I rowsort
SELECT - tab0.col0 + - col1 FROM tab0 WHERE ( col0 * col0 ) NOT BETWEEN col0 AND - col0
----
-110
-132
-180

query I rowsort
SELECT tab0.col1 * tab0.col1 + + col0 FROM tab0 WHERE + col1 + col1 IN ( + tab0.col1 - + tab0.col0 )
----

query I rowsort
SELECT - col0 * + cor0.col0 - col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT + col2 + + col2 * + col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + - col2 - - cor0.col0 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL tab1.col2 * col2 * + col2 FROM tab1
----
157464
185193
884736

query I rowsort
SELECT DISTINCT + cor0.col0 * col1 + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT - col0 - + col1 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL + + col1 * cor0.col2 + - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT ALL col0 * col1 + col2 AS col2 FROM tab2 cor0
----
1381
244
4628

query I rowsort
SELECT ALL + + 31 + + cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
131
200
707

query I rowsort
SELECT 9 AS col0 FROM tab1 cor0
----
9
9
9

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab2 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to b223aa53e3aafe0f3f3f59048cc7a0d2

query I rowsort
SELECT ALL - + ( + 16 ) * - col0 AS col1 FROM tab0 AS cor0
----
1424
384
560

query I rowsort
SELECT ALL - - 29 AS col1 FROM tab1 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT + + 56 + col2 AS col0 FROM tab2 cor0
----
82
83
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-7394
SELECT 22 * col2 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
19
26
396

skipif mysql # not compatible
query I rowsort label-7394
SELECT 22 * col2 / cor0.col0 AS col0 FROM tab1 AS cor0
----
19
26
396

query I rowsort
SELECT DISTINCT + + col1 + + col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT 55 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT + ( col1 ) * - col1 - col2 * col0 FROM tab2
----
-1150
-3291
-5509

query I rowsort
SELECT 1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + cor0.col0 + + tab1.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to fdd2f547b28e02db29f913671a199b7b

query I rowsort
SELECT + col2 * col1 + col0 AS col2 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT 14 * col1 FROM tab2 AS cor0
----
238
434
826

onlyif mysql # use DIV operator for integer division
query I rowsort label-7402
SELECT - + cor0.col0 + col0 DIV CAST( 63 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-24
-35
-88

skipif mysql # not compatible
query I rowsort label-7402
SELECT - + cor0.col0 + col0 / CAST ( 63 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-24
-35
-88

query I rowsort
SELECT DISTINCT 74 * col0 FROM tab2 AS cor0
----
518
5772
5846

query I rowsort
SELECT ( + 40 ) + + col2 AS col2 FROM tab2
----
66
67
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7405
SELECT DISTINCT - 88 DIV - tab1.col1 FROM tab1
----
3
6
8

skipif mysql # not compatible
query I rowsort label-7405
SELECT DISTINCT - 88 / - tab1.col1 FROM tab1
----
3
6
8

query I rowsort
SELECT + col0 + 79 * + col2 FROM tab1
----
4269
4567
7664

query I rowsort
SELECT ALL 43 * 61 AS col1 FROM tab0
----
2623
2623
2623

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 489b7b2b5c4980d50e86e51be30361c3

query I rowsort
SELECT 47 + + ( tab1.col0 ) * + col2 FROM tab1
----
209
3695
7727

query I rowsort
SELECT + 6 AS col2 FROM tab1
----
6
6
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-7411
SELECT + - col1 DIV - 64 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7411
SELECT + - col1 / - 64 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7412
SELECT ALL - cor0.col1 + - cor0.col2 DIV - col2 col2 FROM tab1 AS cor0
----
-12
-25
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL - cor0.col1 + - cor0.col2 / - col2 col2 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT DISTINCT col2 * 18 AS col1 FROM tab0 AS cor0
----
1476
18
594

query I rowsort
SELECT + col2 * 78 + col0 AS col2 FROM tab2 AS cor0
----
2106
2113
3043

query I rowsort
SELECT DISTINCT + + col1 + - col2 * + col0 FROM tab1 cor0
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-7416
SELECT DISTINCT + + col2 DIV - 42 + + col1 DIV - col2 FROM tab0 AS cor0
----
-2
-97

skipif mysql # not compatible
query I rowsort label-7416
SELECT DISTINCT + + col2 / - 42 + + col1 / - col2 FROM tab0 AS cor0
----
-2
-97

query I rowsort
SELECT - col2 + + 67 * col2 FROM tab1 AS cor0
----
3564
3762
6336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 col1 FROM tab0
----
4

query I rowsort
SELECT col0 + col1 * - col0 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT col0 * - 90 FROM tab1 AS cor0
----
-270
-5760
-7200

query I rowsort
SELECT + col0 + + col0 FROM tab0 cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-7422
SELECT col0 * - cor0.col0 + - col1 DIV col2 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-7422
SELECT col0 * - cor0.col0 + - col1 / col2 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7423
SELECT col0 DIV ( - col1 ) FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-7423
SELECT col0 / ( - col1 ) FROM tab1 AS cor0
----
-6
-6
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7424
SELECT ALL col1 + + CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7424
SELECT ALL col1 + + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 70 AS col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
-70

query I rowsort
SELECT ALL tab0.col0 + + col0 AS col0 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL col1 + - col2 * + col2 AS col1 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT ALL + col2 * col2 + col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT DISTINCT + col0 + col0 AS col2 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT ALL - col0 * ( 82 ) - - col0 FROM tab2 AS cor0
----
-567
-6318
-6399

query I rowsort
SELECT - cor0.col0 + + cor0.col1 AS col2 FROM tab0 cor0
----
2
62
62

query I rowsort
SELECT ALL + - col0 + col1 AS col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT col1 + + col2 * + 68 AS col0 FROM tab2
----
1827
1867
2601

onlyif mysql # use DIV operator for integer division
query I rowsort label-7435
SELECT ALL + - cor0.col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL + - cor0.col1 / - col1 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + 80 * - 2 FROM tab2 AS cor0
----
-160
-160
-160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7437
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 75 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 75 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7438
SELECT ALL - ( - col0 ) DIV - col2 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL - ( - col0 ) / - col2 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT - col0 * + cor0.col0 AS col0 FROM tab0 cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL 49 * cor0.col1 + col0 FROM tab2 AS cor0
----
1526
2969
912

query I rowsort
SELECT DISTINCT + 35 + + col2 FROM tab0 AS cor0
----
117
36
68

query I rowsort
SELECT - cor0.col0 + cor0.col0 * - col0 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT ALL + 34 * + 6 AS col2 FROM tab0 AS cor0
----
204
204
204

query I rowsort
SELECT DISTINCT 90 FROM tab1, tab2 AS cor0
----
90

query I rowsort
SELECT DISTINCT - col0 * + col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - ( 91 ) + col2 AS col0 FROM tab1 AS cor0
----
-34
-37
5

query I rowsort
SELECT ALL + col2 * - col1 AS col2 FROM tab1 cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - 38 + - col1 FROM tab2 AS cor0
----
-55
-69
-97

query I rowsort
SELECT ALL + 40 * - col1 FROM tab0 AS cor0
----
-3440
-3640
-3880

query I rowsort
SELECT - col2 + col1 * - col2 FROM tab1 AS cor0
----
-1344
-1458
-627

onlyif mysql # use DIV operator for integer division
query I rowsort label-7451
SELECT ALL col0 DIV 41 AS col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7451
SELECT ALL col0 / 41 AS col0 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT DISTINCT - 59 * col0 + cor0.col1 FROM tab0 AS cor0
----
-1330
-1968
-5160

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7453
SELECT DISTINCT + - CAST( + col2 AS SIGNED ) * + col2 + col2 * col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7453
SELECT DISTINCT + - CAST ( + col2 AS INTEGER ) * + col2 + col2 * col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - cor0.col2 + 87 AS col1 FROM tab0 AS cor0
----
5
54
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 + - col2 col1 FROM tab1
----
-31
-34
-73

query I rowsort
SELECT - - 35 * cor0.col0 * cor0.col0 + - cor0.col2 FROM tab1 AS cor0
----
143303
223904
261

query I rowsort
SELECT ALL 3 AS col2 FROM tab2 AS cor0
----
3
3
3

query I rowsort
SELECT + + col0 - col0 * 36 FROM tab0 AS cor0
----
-1225
-3115
-840

query I rowsort
SELECT DISTINCT - col0 + + col0 * 21 AS col0 FROM tab2 AS cor0
----
140
1560
1580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col1 FROM tab2 cor0
----
-4
-4
-4

query I rowsort
SELECT ALL - col1 * - col0 AS col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT - + ( col1 ) - + 9 FROM tab1 AS cor0
----
-19
-22
-35

query I rowsort
SELECT DISTINCT - + 1 AS col2 FROM tab1 AS cor0
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7464
SELECT DISTINCT + 36 * + cor0.col1 * CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-10404
-125316
-34596

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT + 36 * + cor0.col1 * CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-10404
-125316
-34596

onlyif mysql # use DIV operator for integer division
query I rowsort label-7465
SELECT + col2 + - col0 DIV - 14 col2 FROM tab1 AS cor0
----
101
54
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7465
SELECT + col2 + - col0 / - 14 col2 FROM tab1 AS cor0
----
101
54
61

query I rowsort
SELECT - + col1 * cor0.col1 - cor0.col2 FROM tab0 AS cor0
----
-7429
-8363
-9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 col1 FROM tab0 AS cor0
----
-51
-51
-51

query I rowsort
SELECT DISTINCT + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL + col1 * - 51 + cor0.col1 FROM tab2 AS cor0
----
-1550
-2950
-850

query I rowsort
SELECT ALL - col2 + + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT 16 FROM tab2, tab0 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT DISTINCT col2 * 1 + - ( - col0 ) - + cor0.col0 AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - - col0 * ( - 45 ) - cor0.col1 AS col1 FROM tab0 cor0
----
-1166
-1672
-4096

query I rowsort
SELECT + - col1 + ( - 72 ) FROM tab2 AS cor0
----
-103
-131
-89

query I rowsort
SELECT DISTINCT + col0 * col0 AS col2 FROM tab1 cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col2 col1 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT ALL + col2 * - col0 + + col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT - 49 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-49

query I rowsort
SELECT DISTINCT + cor0.col1 AS col2 FROM tab0, tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL 59 - col1 FROM tab2
----
0
28
42

query I rowsort
SELECT col0 + + col1 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - col0 * col1 + + col1 + cor0.col0 FROM tab1 AS cor0
----
-49
-566
-947

query I rowsort
SELECT + - 38 + cor0.col1 FROM tab2 AS cor0
----
-21
-7
21

query I rowsort
SELECT 24 + - col0 FROM tab1 AS cor0
----
-40
-56
21

query I rowsort
SELECT ALL 87 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT ALL 59 + cor0.col0 FROM tab0, tab0 cor0
----
9 values hashing to ffcbc18df78cf8249af8bdc0d59931aa

query I rowsort
SELECT + + 78 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * tab2.col2 col0 FROM tab2
----
1444
676
729

query I rowsort
SELECT - 68 * + tab0.col0 AS col2 FROM tab0
----
-1632
-2380
-6052

query I rowsort
SELECT DISTINCT tab1.col1 * + col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT + 3 AS col1 FROM tab1 cor0
----
3

query I rowsort
SELECT col0 * - col1 + + ( 5 ) + - cor0.col0 * ( - col0 ) AS col1 FROM tab1 AS cor0
----
-64
3461
5365

query I rowsort
SELECT DISTINCT - col2 + cor0.col2 AS col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 col2 FROM tab1 AS cor0
----
11
11
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-7495
SELECT + col0 + - cor0.col1 * 76 DIV 37 + - col1 AS col0 FROM tab2 cor0
----
-102
-87
28

skipif mysql # not compatible
query I rowsort label-7495
SELECT + col0 + - cor0.col1 * 76 / 37 + - col1 AS col0 FROM tab2 cor0
----
-102
-87
28

query I rowsort
SELECT + 18 + 32 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab1 cor3
----
3645 values hashing to 6156c969b7e054b8a333fdb86aee82f2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab0, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT + col0 + + col1 * - col1 * + col1 FROM tab0
----
-636032
-753482
-912638

query I rowsort
SELECT DISTINCT - + col0 + + col0 AS col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT - col0 * + col0 + + col1 AS col2 FROM tab0
----
-1128
-490
-7830

query I rowsort
SELECT 98 FROM tab0
----
98
98
98

query I rowsort
SELECT 10 * col0 * cor0.col2 + + col1 * col1 + - col1 FROM tab0 AS cor0
----
15230
81170
9662

query I rowsort
SELECT - 55 FROM tab2
----
-55
-55
-55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7506
SELECT CAST( - col2 AS SIGNED ) * + col1 + - col1 * - 2 * - col1 + + col0 * - col0 FROM tab1 AS cor0
----
-2765
-4866
-7986

skipif mysql # not compatible
query I rowsort label-750